Recent Notes

Displaying keyword search results 1 - 10
Created by voodoo on February 17, 2012 10:40:43    Last update: February 17, 2012 10:40:43
When a certificate is "untrusted" by IE (such as a self-signed certificate), it displays a "Certificate error" icon next to the address bar. It used to be that you can click on that icon, "View certificates", then install it. On Windows 7, because of UAC , the "Install Certificate..." button is no longer displayed. In order to see the button, you have to start IE9 with administrator privileges: right click on the IE9 shortcut icon and select " Run as administrator... ". To save the certificate to a file, click the Details tab on the Certificate dialog, then click " Copy to File... ".
Created by woolf on July 30, 2011 13:03:48    Last update: October 24, 2011 07:52:42
Contrary to the DD-WRT router database , the Belkin F5D7231-4 v2000 cannot be flashed with TFTP . When I followed the TFTP procedures, I always got TTL=64 , never TTL=100 or TTL=128 , which is supposed to indicate that the router TFTPd is ready. I got network timeout when I tried to send the bin file anyway. The right way to flash the Belkin F5D7231-4 v2000 is to use the binary and Sercomm Utility provided by eko. Simply: Put the router in upgrade mode: unplug router, press reset button and keep it pressed while plugging in the power. Release it when lan leds turn off. Power and Connected led must blink . start the Sercomm Utility select the network interface connected to the router select...
Created by balu on October 14, 2011 10:21:08    Last update: October 14, 2011 10:21:08
Got this error while trying to start vFabric tc server : C:\Apps\vfabric-tc-server-standard-2.6.1.RELEASE>t... It's a UAC error. Need to start the command prompt with Administrator privileges: right click the shortcut and select Run as administrator . Or enable administrator rights for the shortcut: Bring up the cmd shortcut properties Select the Shortcut tab, click the Advanced button. Check Run as administrator .
Created by woolf on July 30, 2011 13:18:57    Last update: July 30, 2011 13:19:21
The normal 30/30/30 reset does not work for the TP-Link TL-WR1043ND running OpenWRT. OpenWRT provides a failesafe mode from where you can recover any configuration mistakes. For the TP-Link TL-WR1043ND: Power up the router When SYS button starts to blink, press and hold the QSS button till SYS starts to blink faster Telnet to 192.168.1.1. No password needed. Erase user space data with mtd -r erase rootfs_data or mount the jffs2 file system with: mount_root and start fixing things.
Created by freyo on May 05, 2011 09:00:36    Last update: May 05, 2011 09:07:27
This example uses an Intent with Uri scheme tel: to invoke the phone dialer. Create a new project with: $ ~/android-sdk-linux_86/tools/android create proj... Update the layout res/layout/main.xml to add a text field and a button: <?xml version="1.0" encoding="utf-8"?> <LinearL... Update the Java class src/com/android/intenttest/CallPhone.java to handle button click and start the built-in phone dialer with Intent : package com.android.intenttest; import andr... Update AndroidManifest.xml to add CALL_PHONE permission: <?xml version="1.0" encoding="utf-8"?> <manifes... Install to the emulator and test: ant install The phone dialer will be invoked when you click the "Call" button. So how did this happen? The CallPhone activity creates an Intent with action Intent.ACTION_CALL and Uri tel:<a number> and sends it off to Android. Android starts the activity com.android.phone.OutgoingCallBroadcaster because the intent matches the...
Created by freyo on April 12, 2011 15:13:32    Last update: May 03, 2011 15:20:55
Create new project $ tools/android create project \ > --package co... Edit res/values/string.xml , add strings for the main screen. <?xml version="1.0" encoding="utf-8"?> <resourc... Add widgets to main layout ( res/layout/main.xml ). <?xml version="1.0" encoding="utf-8"?> <LinearL... Edit src/com/android/apkinfo/GetAPKPermissions.java and change contents to: package com.android.apkinfo; import android... Install the debug package to the emulator: ant install The screen should look like: Add display permissions activity. Start by creating a new layout res/layout/display_permissions.xml : <?xml version="1.0" encoding="utf-8"?> <LinearL... Add the strings used by the new Activity ( res/values/strings.xml ): <?xml version="1.0" encoding="utf-8"?> <resourc... Add the Display Permissions Activity ( src/com/android/apkinfo/DisplayPermissions.java ): package com.android.apkinfo; import android... Change src/com/android/apkinfo/GetAPKPermissions.java to invoke the Display Permissions Activity: package com.android.apkinfo; import android... Declare Display Permissions Activity in AndroidManifest.xml : <?xml version="1.0" encoding="utf-8"?> <manifes......
Created by freyo on April 01, 2011 15:46:16    Last update: April 01, 2011 15:47:57
Follow these steps to build your first app that allows you to enter input and click a button: Start from the Hello World example. Edit res/layout/main.xml , change the contents to: <?xml version="1.0" encoding="utf-8"?> <LinearL... This adds a text input field and a button to the screen. It also declaratively binds an event handler ( onClick="sayHi" ) to the button. Add the string resources ( res/values/strings.xml ): <?xml version="1.0" encoding="utf-8"?> <resourc... Implement the event handler ( src/com/android/helloworld/HelloWorld.java ): package com.android.helloworld; import andr... Change the Activity label to Greeting ( AndroidManifest.xml ): <?xml version="1.0" encoding="utf-8"?> <manifes... Reinstall the debug package to the emulator: ant install The screen should look like this:
Created by Dr. Xi on August 21, 2007 21:25:58    Last update: January 10, 2011 22:19:09
You can grab some animated icons here: http://mentalized.net/activity-indicators/ . And here's some code to demonstrate how to use such an icon. <html> <head> <script language="JavaScript"... However, if you use Ajax and send a synchronous request, the icon won't show up at all, i.e., the following code doesn't work: function eventHandler() { startBusy(); ... This works: function eventHandler() { startBusy(); ...
Created by woolf on October 22, 2010 03:00:32    Last update: October 22, 2010 03:00:54
You can configure Windows XP such that when you press the "Power" button it goes to standby instead of showdown: From Start menu, bring up the Control Panel Double click the Power Options icon: In the Advanced tab, select "Stand by" for the option "When I press the power button on my computer".
Created by James on June 30, 2010 19:04:45    Last update: July 03, 2010 21:24:33
Technically, file upload cannot be handled by Ajax, because XMLHttpRequest (XHR) does not handle file inputs. All techniques not using Flash rely on an invisible iframe as the upload form submit target. JavaScript then grabs the response content from the iframe and present it, giving the same illusion as Ajax. webtoolkit AIM The technique by webtoolkit is very simple. It involves 3 simple steps: include the AIM script, implement the start/finish JavaScript functions, and add an onsubmit handler to the normal file upload form. The hooked up form looks like: <head> <script type="text/javascript" src="webt... The AIM script is also quite simple: /** * * AJAX IFRAME METHOD (AIM) * http... The above code only supports HTML responses. In order to support JSON responses, the above...
Previous  1 2 Next