Saturday, December 29, 2012
Learning Node
- Node.js Infrastructure: Part 1 (video)
- http://net.tutsplus.com/tutorials/javascript-ajax/node-js-infrastructure-part-2/
- http://nodemanual.org/latest/
Sunday, December 23, 2012
Friday, December 21, 2012
Thursday, December 20, 2012
Tuesday, December 18, 2012
TO DO
- nodechat.js – Using node.js, backbone.js, socket.io, and redis to make a real time chat app
- read about Cross-site scripting
- read about Cross-site scripting
Monday, December 17, 2012
Wednesday, December 5, 2012
How Your Brain Works
http://science.howstuffworks.com/life/inside-the-mind/human-brain/brain1.htm
Monday, December 3, 2012
JavaScript Inheritance
http://robertnyman.com/2008/10/06/javascript-inheritance-how-and-why/
http://robertnyman.com/2008/10/21/javascript-inheritance-experimenting-with-syntax-alternatives-and-private-variables/
http://robertnyman.com/2008/10/29/javascript-namespacing-an-alternative-to-javascript-inheritance/
http://robertnyman.com/2008/10/14/javascript-how-to-get-private-privileged-public-and-static-members-properties-and-methods/
http://robertnyman.com/2008/10/21/javascript-inheritance-experimenting-with-syntax-alternatives-and-private-variables/
http://robertnyman.com/2008/10/29/javascript-namespacing-an-alternative-to-javascript-inheritance/
http://robertnyman.com/2008/10/14/javascript-how-to-get-private-privileged-public-and-static-members-properties-and-methods/
Sunday, December 2, 2012
Sunday, November 11, 2012
the problem with c:\\fakepath:
- Some browsers have a security feature that prevents javascript from knowing your file's local full path.
- If you go to Internet Explorer, Tools, Internet Option, Security, Custom, find the "Include local directory path When uploading files to a server" (it is quite a ways down) and click on "Enable"
- The issues are one and the same. It's part of the spec for HTML 5 that you shouldn't be able to display the real local path when using an upload control that manipulates the string with JavaScript. There are exceptions, tweaks, work-arounds, and (as always) questionable implementations depending on your browsers, but it all boils down to that security spec.
- If you really need to send the full path of the uploded file, then you'd probably have to use something like a signed java applet as there isn't any way to get this information if the browser doesn't send it.
-
- Some browsers have a security feature that prevents javascript from knowing your file's local full path.
- If you go to Internet Explorer, Tools, Internet Option, Security, Custom, find the "Include local directory path When uploading files to a server" (it is quite a ways down) and click on "Enable"
- The issues are one and the same. It's part of the spec for HTML 5 that you shouldn't be able to display the real local path when using an upload control that manipulates the string with JavaScript. There are exceptions, tweaks, work-arounds, and (as always) questionable implementations depending on your browsers, but it all boils down to that security spec.
- If you really need to send the full path of the uploded file, then you'd probably have to use something like a signed java applet as there isn't any way to get this information if the browser doesn't send it.
-
IDE for JS
If you installed the basic Eclipse package you might not have HTML editors installed. If you installedEclipse IDE for Java EE Developers it comes with the Web Tools Platform preinstalled. It has relatively good HTML editor (tag and attribute autocompletion with ctrl+space etc.) and even a "Web Page Editor" which lets you see the elements you are editing in a preview window. I guess you could try installing the Web Tools Platform (plugin) to your existing install.
Getting Started with Web Development using Eclipse
Closure Compiler
Getting Started with Web Development using Eclipse
Closure Compiler
is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.
Note for those using Eclipse 3.7 Indigo. To install the Eclipse Web Page editor:
Go to "Help" > "Install New Software" Choose to work with the site "http://download.eclipse.org/releases/indigo", Expand "Web, XML and Java EE development", Check "Web Page Editor" and click Next to continue with the install
Friday, November 9, 2012
Wednesday, November 7, 2012
Thursday, November 1, 2012
READ DATA FROM SERIAL PORT DEVICE AND ACCESS DATA FROM WEB BROWSER
Using Java Applet embedded in HTML - http://student.howest.be/thomas.goemaere/?cat=17
Wednesday, October 31, 2012
Monday, October 29, 2012
Monday, August 20, 2012
Android : Passing data between main thread and worker threads.
The original text was taken from the blog - http://techtej.blogspot.com
There may be situations where you want to spawn a thread from your Activity or Service to handle long running (and may be blocking) tasks. In such cases, its sometimes necessary to pass data back and forth between the main thread and the worker thread(s). E.g. if the worker thread finishes a task and returns the result to the main activity to display the results OR you want to keep a worker thread around and ask it to switch between tasks depending on some message you pass to it.
There may be situations where you want to spawn a thread from your Activity or Service to handle long running (and may be blocking) tasks. In such cases, its sometimes necessary to pass data back and forth between the main thread and the worker thread(s). E.g. if the worker thread finishes a task and returns the result to the main activity to display the results OR you want to keep a worker thread around and ask it to switch between tasks depending on some message you pass to it.
Sunday, May 27, 2012
Networking
Well, since I am working on an Android project that involves networking, I am going to write some reference notes here. Hopefully I can upload this project at the Market very soon.
Let's start from the basic definitions.
Let's start from the basic definitions.
Subscribe to:
Posts (Atom)