博文

目前显示的是 八月, 2013的博文

JAR File Specification

From:http: // docs.oracle.com/javase/1.3/docs/guide/jar/jar. html JAR File Specification Contents Introduction The META-INF directory Name-Value pairs and Sections JAR Manifest Overview Manifest Specification Main Attributes Per-Entry Attributes Signed JAR file Overview Signature File Signature validation The Magic Attribute Digital Signatures Notes on Manifest and Signature Files JAR Index Overview Index File Specification Backward Compatibility Service Provider Overview Provider Configuration File Example API Details See Also Introduction JAR file is a file format based on the popular ZIP file format and is used for aggregating many files into one. A  JAR file is essentially a zip file that contains an optional META-INF directory. A JAR file can be created by the command-line jar tool, or by using the  java.util.jar API in the Java platform. There is no restriction on the name of a JAR file, ...

Oracle 12c - need to start container AND pluggable databases

From : blog .contractoracle. com/2013/06/ oracle-12c-need-to-start-container-and. html Oracle 12c - need to start container AND pluggable databases.  In Oracle 12c we start the Container Database (CDB) the same as we started previous database versions. [oracle@rac1 lib]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.1.0 Production on Thu Jun 27 14:47:35 2013 Copyright (c) 1982, 2013, Oracle.  All rights reserved. Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area 1653518336 bytes Fixed Size                  2289016 bytes Variable Size             989856392 bytes Database Buffers          654311424 bytes Redo Buffers                7061504 bytes Database mounted. Database opened. But then we find that the Pluggable Databases (PDBs) are still in "MOUNTED" ...

Connecting to a 12c database instance with MapViewer 11.1.1.7.x

Ref :h t t p s : / / b l o g s .oracle.com/oracle_maps_blog/entry/connecting_to_a_12c_database Connecting to a 12c database instance with MapViewer 11.1.1.7.x By jsharma on Jul 22, 2013 The the jdbc connection string (or jdbc url) for a 12c database now requires a service name instead of a SID. In MapViewer 11.1.1.7.1 the jdbc info in the map_data_source element in the mapviewer configuration file accepts a service name but requires a different syntax. The relevant details (from the README) are MapViewer native (non-container) data sources can now use database service name in place of SID. To supply a db service name, you will use the same jdbc_sid attribute, but specify the service name with double slashes in front, e.g.: <map_data_source name="myds" jdbc_host="foo.com" jdbc_sid="//mypdb1.foo.com" jdbc_port="1522" ... ... /> If you're using 11.1.1.7.0 then you need to use a container data so...

ec2

ec2 Amazon linux apache + mysql + php sudo yum install httpd mysql-server php php-mysql puttygen  -->  putty h tt p:/ /a ws.amazon.com/free/ h t t p:/ /  d otcms.com/docs/latest/amazonLinuxEc2DotcmsRecipe Fire up a new Amazon instance - ami-1624987f.  You need to ssh to the box using: ssh -i ~/keys/your-key.pem ec2-user@{servers.amazon.public.ip} once in, you start here: sudo -i yum update yum install -y git yum install -y ant yum install -y ant-contrib yum install -y ant-junit.noarch yum install -y mysql55-server.x86_64 /etc/init.d/mysqld start mysql CREATE USER 'dotcms'@'localhost' IDENTIFIED BY 'some_password'; CREATE USER 'dotcms'@'127.0.0.1' IDENTIFIED BY 'some_password'; GRANT ALL PRIVILEGES ON *.* TO 'dotcms'@'127.0.0.1' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON *.* TO 'dotcms'@'localhost' WITH GRANT OPTION; CREATE DATABASE dotcms default character set = utf8 default coll...

great tools

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required. http://stackoverflow.com docs.angularjs.org/api/ng/ egghead.io/technologies thinkster.io www.meetup.com kapeli.com/dash Quora is built by people like you who write answers to share their knowledge. You can read millions of fascinating answers about every subject.https://www.quora.com/ MVVM: http://avalonjs.github.io/#tutorial/concepts/vmodel.html jsfiddle.net -- http://jsfiddle.net/5ytkx/9/ curl -- http://curl.haxx.se/  likes postman. curl is used in command lines or scripts to transfer data. It is also used in cars, television sets, routers, printers, audio equipment, mobile phones, tablets, settop boxes, media players and is the internet transfer backbone for thousands of software applications affecting billions of humans daily. http://producingoss.com/ .Net http://sourceforge.net/projects/whitestaruml/    WhiteStarU...

Export or Strip Email Attachments in Outlook

see: http://www.experts-exchange.com/Software/Office_Productivity/Groupware/Outlook/A_3562-Export-or-Strip-Email-Attachments-in-Outlook.html ---------------------------- Option Explicit Public Sub ExportAttachments() Dim objOL As Outlook.Application Dim objMsg As Object Dim objAttachments As Outlook.Attachments Dim objSelection As Outlook.Selection Dim i As Long, lngCount As Long Dim filesRemoved As String, fName As String, strFolder As String, saveFolder As String, savePath As String Dim alterEmails As Boolean, overwrite As Boolean Dim result saveFolder = BrowseForFolder("Select the folder to save attachments to.") If saveFolder = vbNullString Then Exit Sub result = MsgBox("Do you want to remove attachments from selected file(s)? " & vbNewLine & _ "(Clicking no will export attachments but leave the emails alone)", vbYesNo + vbQuestion) alterEmails = (result = vbYes) Set obj...
What does it mean "<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> "? On many devices (such as the iPhone), it prevents the user from using the browser's zoom. If you have a map and the browser does the zooming, then the user will see a big ol' pixelated image with huge pixelated labels. The idea is that the user should use the zooming provided by Google Maps. Not sure about any interaction with your plugin, but that's what it's there for.

VectorLayer , Feature, Point, Style

 Summarize For mapviewer 11G v2 at client. 1. draw a point  var local_route;   local_route = new OM.layer.VectorLayer("local_route",{def:{type:OM.layer.VectorLayer.TYPE_LOCAL}});   map.addLayer(local_route);   var nStyle = new OM.style.Marker({src: "/m/icons/t_pr_ena.png"});   var nPoint = new OM.geometry.Point(-122.4469157,37.7699298, 8307, 1, 0);   var nFeature = new OM.Feature("feature1", nPoint,{renderingStyle:nStyle});    local_route.addFeature(nFeature); 2.draw a line   var start = new OM.style.Marker({width: 90, height: 90, src: "../../images/circle.gif"});          var end= new OM.style.Marker({width: 70, height: 70, src: "../../images/pin.gif"});      var lineStyle0 = new OM.style.Line({strokeThickness:5, stroke:"#0000f3", strokeOpacity:0.5,startMarker:start,endMarker:end});   var line = new OM.geom...

How to parse Google Maps direction api's “overview_polyline”

图片
How to parse Google Maps direction api's “overview_polyline” 1.In Javascript I use this function to decode Polyline ‌​s in my Node.JS program. – josebetomex // These functions decode a polyline pointstring. // The first is mine and simply links the second function to the form. function decode () {   var instring;   var outstring;   var points;     instring = document.getElementById("polylineDecoder").encodedPolylineIn.value;   instring = instring.replace(/\\\\/g, "\\");   points = decodeLine(instring);   outstring = "";   for(i=0; i < points.length; i++) {     outstring = outstring + points[i][0] + ", " + points[i][1] + "\n";   }   document.getElementById("polylineDecoder").decodedPolylineOut.value = outstring; } // This function is from Google's polyline utility. function decodeLine (encoded) {   var len = encoded.length;   var index = 0;   var array = [];   var lat = 0...

Spring Password Encoding

Password Encoding A hash in with the spring-security-core jar           String s = "test";           org.springframework.security.authentication.encoding.Md5PasswordEncoder md5e =             new org.springframework.security.authentication.encoding.Md5PasswordEncoder();         System.out.println("md5e.encodePassword(s, null):" +                            md5e.encodePassword(s, null)); A hash with Salt added  The StandardPasswordEncoder in the crypto package uses a random 8-byte salt, which is stored in the same field as the password.          org.springframework.security.crypto.password.StandardPasswordEncoder S...