ArcGIS Flex viewer 2.1 released
Posted by Kail in Programming on September 26th, 2010
Arcgis flex API 2.1 & Flex viewer 2.1 both are out. There are a lot to catch up on. Still adding KML and shapefiles need some work.
Add transparent picture to ArcMap
Posted by Kail in Blog Settings on October 30th, 2009
1. In a graphics editor application such as Adobe Photoshop, fill the white, background portions of the logo that need to be transparent with a key color that does not appear elsewhere in the map; for example, bright magenta. This allows any areas of the logo that should be opaque white to remain opaque on the map.
2. Note the RGB values of the key color as they will be needed later.
3. Save the new image in BMP format.
4. In ArcMap, place a marker on the layout using the Drawing toolbar’s New Marker tool (see image below).
5. Double-click this new marker to open the Properties dialog box and click the Change Symbol button.
6. Click the Properties button and select Picture Marker Symbol from the Type drop-down list.
7. Navigate to the new logo BMP created previously and click OK.
8. Use the RGB values used for the key color in the Transparent Color picker.
9. Adjust the size of the marker as necessary and click OK on all of the dialog boxes.
Source:http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=29225
Google map for Flash-mouse move lat/lon
Posted by Kail in Blog Settings on October 19th, 2009
To display mouse move lat/lon in a label control and formate it with 6 digits, do so:
Within the map ready function, add:
map.addEventListener(MapMouseEvent.MOUSE_MOVE,
function(e:MapMouseEvent):void {
btnMMLatLng.text = e.latLng.lat().toFixed(6)+”, “+e.latLng.lng().toFixed(6);
});
Reference:
format numbers:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Number.html#includeExamplesSummary
Computer won’t boot
Posted by Kail in Blog Settings on October 17th, 2009
The other, I was surfing on the web…and it suddenly went pretty slow and there’s virus warning message as well. I couldn’t even close the Internet Explorer. I also tried to bring up the task manager to end the Explorer but this didn’t work. The screen is not freezing, I still can do other things, such as moving the mouse and clicking on the start menu. So I tried to log off the computer…but it seems to be taking too long. I press the reset button to restart the computer, then it ended up this nightmare:
“It won’t boot up in normal, safe mode or last working configuration.I tried restore to fix it, such as fixmbr, chkdsk, fixboot…nothing helps.
The computer’s OS is Window XP with SP3 installed. It’s not a problem caused by installing SP3. In fact, it’s not clear what caused this issue.
Luckily I used the Hiren’s Boot CD and started it as Mini WinXP and restore the registry to a last available point and it works!
Combatting Spam In Wordpress – The Easy Way
Posted by Kail in Blog Settings on October 3rd, 2009
Congratulations, your Wordpress installation has completed. For your convienence we have included the following tips and suggestions you may refer to in order to decrease the amount of spam you receive.
Enable Akismet
Akismet is a Wordpress plugin that comes default with every installation. Akismet is a real-time adaptive spam filter which scans all incoming comments and helps you automatically filter spam comments by stopping them at their source.
In order to use Akismet you must first get an API Key from Wordpress. The API Key is free, but it does require you visiting their site and creating an account. Please visit http://www.wordpress.com/signup. Enter your personal information and at the bottom choose “Just a username, please.”
Once you have created and verified your account, log in at http://www.wordpress.com/wp-login.php. Click on the “Profile” link and you will see at the very top, your WordPress.com API Key. We’re going to use this soon so keep it available to you by recording it somewhere.
Go back to your Netfirms Wordpress installation:
1. Log in to your Wordpress Dashboard and click on the Plugins link
2. Click “Activate” for the plug in Akismet
3. You will see a yellow box with a link asking you to enter your Wordpress.com API Key that you created earlier.
4. Once entered, click “Update options” to enable Akismet.
For the vast majority of blogs on the Internet, Akismet alone will eliminate 99% of the spam comments that are generated. There are some other features you may enable on your blog to increase your spam protection.
For more information on Akismet, as well for further assistance should you find Akismet reporting a large amount of false-positives, please visit http://www.akismet.com
Discussion Settings
Under the Settings menu in the “Disucssion” subsection you will see a section which lists 3 options that will apply before a comment appears on your blog. The bottom two options ‘Comment Author must fill out name and email’ as well as ‘Comment author must have a previously approved comment’ are by default checked. We recommend leaving this checked however you may, if you find spam getting past Akismet often enable the option that an Administrator must approve all new comments.
Comment Moderation is another option you may use. You may change the amount of allowed URLs or links from it’s default value of 2 by setting it to 1. This allows the comment to contain 1 link before it is placed in a moderation queue. Setting this to 0 will mean all comments will be placed in the moderation queue.
Be careful with the word lists offered in Comment Moderation and Comment Blacklist. If you were to type the word “ass” it would block the word assistance or assume. Wordpress offers a list of words you may use in the Comment Moderation box available at http://codex.wordpress.org/Spam_Words
Require users to register in order to comment
This is a setting available under Settings menu in the “General” subsection. Most spam bots are not designed to register on a Wordpress site so this will effectively put an end to any spammers, but it may also decrease the amount of comments people leave on your blog. This should only be a last resort.
Going Further Beyond Wordpress
Wordpress’ plugin archecture means you can increase your anti-spam protection even further by using plugins which are available for free at http://wordpress.org/extend/plugins/. Typical plugins that are used to increase the protection of your account would be to add a CAPTCHA image or security image test on each comment. You can browse thousands of freely available Wordpress plugins at http://wordpress.org/extend/plugins/.