Saturday, March 03, 2012
Abi jigsaw #2
Wednesday, February 29, 2012
Gmail wont open eml files
It seems that if someone sends you attachments as '.eml' filetypes, gmail won't read it as anything else but plain text. C'mon, this is just a simple mime file.
So how to read it?
- Download the file as a .mht file eg: so photos1.eml becomes photos1.mht
- Open the file with IE9 or Opera 11. Nope chrome, firefox don't work.
Saturday, February 18, 2012
[dataists] Ranking the popularity of programming languages
Thursday, November 10, 2011
the four agreements, don miguel ruiz book - a code for life and personal development
the four agreements - don miguel ruiz's code for life
- Be impeccable with your word
- Don’t take anything personally
- Don’t make assumptions
- Always do your best
Saturday, September 17, 2011
The 20 most useful Android smartphone apps of 2011 | TechRepublic
Summary:
1. google voice ** got it - but dont use it **
2. advanced task killer (rechild) ** samsung has a good built in one
3. dropbox ** I live on this for work
4. evernote ** great for a while, but I like to share. Try Springpad, it's better
5. taskos
6. droidanalytics
7. documents2go ** desperately in love with this. Best on my ipad though :-(
I personally use the swype keyboard on my samsung galaxy S2, it's way fast "typing" for me.
But hey, when I hack the operating system of my smartphone, I need a Linux compatible keyboard and this is the perfect one for me
Sunday, July 31, 2011
Eclipse and ctrl-space
- open "regedit.exe" in run dialog
- Browse the registry editor to the location: HKEY_CURRENT_USER\Control Panel\Input Method\Hot Keys\
- Now delete registry entries that with the name: 0000007x (x indicates any number)
Wednesday, June 22, 2011
The worst decision Google ever made | ZDNet
Agreed. Google should have bought Sun. Then all the Sun java team wouldn't have left Oracle and left java in a big hole.
Then all the android.* api's will eventually become javax.* instead :-)
Would google android then implement Java ME? LOL.
Five Word tips that could change your life | TechRepublic
Wow, I love these tips!
1. vertical text selection: hold alt key down
2. Use ctrl-z to remove autocorrect stuff
3. Use --- for horizontal line. See also ~~~, ___, ***, ===, ### for other styles. Again, use ctrl-z to remove if accidentally created
4. Move text (in table, a row, else a block of text). Click, then Hold alt-shift then use the arrow keys
5. Save All. Hold shift. Then pull down File menu. Save All appears.
More quickies:
| Keystroke | Function |
| Ctrl + Shift + D | Double underline the selected text |
| Ctrl + ] | Increase the size of selected text by 1 point |
| Ctrl + [ | Decrease the size of selected text by 1 point |
| Ctrl + Shift + A | Make selected text all caps |
| Ctrl + = | Toggle subscripting for selected text |
| Ctrl + + | Toggle superscripting for selected text |
| Ctrl + Shift + Q | Apply Symbol font to selected text |
| Ctrl + Shift + N | Apply Normal style to current paragraph |
| Ctrl + Alt + 1 | Apply Heading 1 style to current paragraph |
| Ctrl + Alt + 2 | Apply Heading 2 style to current paragraph |
| Ctrl + Alt + 3 | Apply Heading 3 style to current paragraph |
| Ctrl + Shift + L | Apply List Bullet style |
| Ctrl + 0 (zero) | Apply or remove space above current paragraph |
| A line break | Shift+Enter |
| A page break | Ctrl+Enter |
| A column break | Ctrl+Shift+Enter |
| An optional hyphen | Ctrl+- (hyphen) |
| A nonbreaking hyphen | Ctrl+Shift+- (hyphen) |
| A nonbreaking space | Ctrl+Shift+Spacebar |
| A copyright symbol | Alt+Ctrl+C |
| A registered trademark symbol | Alt+Ctrl+R |
| A trademark symbol | Alt+Ctrl+T |
| An ellipsis | Alt+Ctrl+. (period) |
| An em dash | Alt+Ctrl+\ |
| An en dash | Ctrl+- (on numeric keypad) |
| The page number | Alt+Shift+P |
| The current date | Alt+Shift+D |
| The current time | Alt+Shift+T |
| Keystroke | Function | Notes |
| Shift + F3 | Toggles through capitalization options. | This one isn’t perfect — for instance, it insists on capitalizing articles and prepositions in Title Case mode — but it’s still a big timesaver. |
| Ctrl + Shift + N | Applies the Normal style. | If you work with documents that are riddled with obscure and specialized styles (typically other people’s), it’s handy to turn them into Normal paragraphs on the fly. |
| Ctrl + Shift + C | Copies the formatting of selected text. | Once you’ve copied the format, you can press Ctrl + Shift + V to paste the formatting onto a new selection. Yeah, I know — Format Painter does this, too. But Format Painter forgets the formatting as soon as you’re finished with it. This shortcut remembers what you copied until you close out of Word. |
| Alt + F9 | Toggles the display of field codes on and off. | Unless you work with field shading turned on — and I don’t know many users who do — you can’t necessarily tell what’s literal text and what’s being generated by an underlying field code. A quick peek using this shortcut can prevent the headache of inexplicable changes and unwanted editing consequences. |
| F4 | Repeats your most recent action. | This might be the all-time best shortcut (except for Undo, which I’m not including in this list because for me, at least, it’s like breathing and requires no conscious thought). The F4 shortcut will repeat nearly all the actions you take on document text: typing: formatting, deleting.It will also let you repeat the action of adding or removing table rows, but it isn’t well implemented with tables overall. For instance, changing table properties is not replicable via this shortcut. |
| Ctrl + H | Opens the Find And Replace dialog box with the Replace tab selected. | Replace functionality is my constant companion, so this one is essential for me. Ctrl + F opens to the Find tab if you just want to locate something in a document (or make sure something isn’t in there). |
| Ctrl + drag text or an object | Creates a copy of the text or object. | Apologies to the keyboard purists, but this useful trick does require mouse action. It’s handy when you need to copy an object and control where that copy ends up. For example, a picture or other object that has certain positioning attributes may land in some unpredictable location if you use the standard copy and paste functions. This shortcut lets you drag it exactly where you want it.Just make sure you drop the text or object before you release the Ctrl key or Word will move the original instead of copying it. BONUS: If you hold down Shift along with Ctrl as you drag, Word will keep the copy aligned with the original. |
| Ctrl + Q | Removes paragraph formatting that isn’t part of the style assigned to a selected paragraph. | When you want to strip out manually applied formats and return to only those characteristics defined by a paragraph style, this is the quickest way to get there. Ctrl + Spacebar works the same way for character formatting. |
| Ctrl + 0 (zero) | Applies or removes 12 points of space above the current paragraph. | This sounds a little lame, but you can improve readability of selected text in about two seconds using this trick. For instance, table text is often jammed up against top borders. Select the table and hit Ctrl + 0 and you’ll get an instant improvement. |
| Alt + drag the mouse vertically | Make a vertical text selection. | Another keyboard/mouse hybrid, this one is obscure but useful. Some users have trouble making it work, but the problem is usually sequence. Just make sure you press Alt before you press the mouse button and drag. Then, release Alt before you release the mouse button. |
Security or convenience: Does it have to be a choice? | TechRepublic
Parno's thesis "Trust Extension as a Mechanism for Secure Code Execution on Commodity Computers "is that we can make security more convenient by leveraging the security possessions we have - the Trusted Computing Module in my thinkpad, the new Flicker architecture in the latest x86 architecture, a USB keyfob.
We specifically ask for elevations of security when we need it, not the all-in-one approach of logging in.
Finally, remote execution via Yao’s Garbled Circuits and homomorphic encryption.
nice thesis
Wednesday, June 08, 2011
Eclipse Helios vs Netbeans 7 for PHP development
This guy's blog has a very good compare and contrast between them!
Sunday, May 01, 2011
xkcd: Fairy Tales
I like the "Inductive White and the (n-1) dwarfs"
or the "lim[x->infinity] (x) Little pigs" fairy tails seem a bit weird...
or the time management comic: http://xkcd.com/874/
Friday, March 18, 2011
The dead grandmother syndrome
now I am also the course coordinator for the BSc(Information Technology) and academic advisor for the faculty of engineering and IT for IT undergraduates. This means, apart from my normal teaching and research workload, I have the additional joy of dealing with special considerations, misconduct appeals, exclusion "suspension" appeals, heaps of paperwork and administrivia and ... blarghhh!!!
Normally it's great. But one thing I have noticed (and my fellow coordinators and directors) is the dreaded .... drumroll ... DEAD GRANDMOTHER SYNDROME.
It seems that for some unknown reason, grandmothers start to get sick just before the final assignments are due at the end of semester, then die just before the exam. In fact, sometimes students claim all 5 grandmothers have died over their past 3 years at uni. Oh, wait, was that the other grandma? Oh, sorry, we don't have death notices or records in vietnam. Oh, I meant my girlfriend's grandmother.
But seriously, here is a paper on the dead grandmother syndrome, also called the "The Toadstool Waxing Plan" in bulgaria. See http://www.cis.gsu.edu/~dstraub/Courses/Grandma.htm
Further research is needed over why grandfathers don't have the same problem...
Wednesday, October 27, 2010
Callan Park - OUR plan, OUR say
This website is the worst example I have ever seen of 'push polling' - your options are only to 'support this plan' or do some minor tinkering with 'my options' questions which are specifically designed so you can't change the major parts of the plan.
As an academic, I find this planning/survey question process quite un-transparent and would violate/fail our ethics committee on the structure of the questions.
I would almost laugh at this attempt to push an opinion, except instead I am crying since I am a local resident.
How on earth did this so-called survey occurred? Who approved it?
Monday, September 20, 2010
TinEye Reverse Image Search
Tried this out today - you can upload an image, or provide an image URL and it will detect (using image recognition) where else in the web is the picture. It's quite remarkable and works quite well. I'm using it to track where students are copying images and diagrams from, without acknowledgements..
Now only if turnitin does the same thing for essays/reports ...
Wednesday, September 15, 2010
Wednesday, September 08, 2010
Bug in Helios - J2EE Module dependencies KAPUT!
Eclipse community forums /Web Tools Project (WTP)/tomcat and WTP: How to get dependent libraries into WEB-INF/lib
http://www.eclipse.org/forums/index.php?t=msg&goto=552136&S=60071956fefa1bb80b3a32ba65cd0f66
See also:
ClasspathEntriesPublishExportSupport - Eclipsepedia (http://wiki.eclipse.org/ClasspathEntriesPublishExportSupport)
UPDATE: New way around this stupidity
Choose Deployment Assembly:
Click Add > Classpath Container > User Library > whatever
Now it will work. Geez!!
Wednesday, August 25, 2010
Android still sucks - still no WPA2 enterprise support!
Are they mad? Are they INSANE?
Even worse my wireless no longer works - their update overwrote my /etc/wifi/wpa_supplicant.conf with a dummy WRITE PROTECTED one so my old wifihelper app (and wifinder) can't write to it.
This means my Motorola Milestone does not work with most common university/corporate networks. My ipod touch seemlessly works. Android developers - I HATE YOU.
Oh, of course, I could ROOT my phone so I could update it myself (or use wifinder again). Pain in the (*^(*^(!
What is so embarrassing is that we teach android at this uni and our students can't connect to the network here - we use UTS-WPA (a WPA2 Enterprise network - simple set up, just use WPA2 + AES for stage one, and EAP = PEAP for stage 2. Just use student/staff number and your email password)
For eduroam, you use EAP-TTLS, and use the PAP (nnnnn@uts.edu.au, password) instead.
SIMPLE EH?
Monday, August 02, 2010
Quality-oriented teaching of programming
Worth reading. I see this all the time too.
Why is there a double hump marks distribution with programming subjects?
This post is a good reason why.
mmm...
Tuesday, July 27, 2010
What is your personal organisation style?
Schlenger and Roesch describe five distinct styles to organizing time:
- The Hopper quickly and and frequently switches tasks throughout the day. Hoppers often enjoy variety and like to feel the gratification of completing small tasks, but they may be easily distracted by other people or technology. This is the most common of the temporal organizing styles.
- The Perfectionist Plus seeks excellent performance in every activity, sets very high standards for herself and others, and may have difficulty distinguishing between valuable and less-valuable uses of her time.
- The person who is Allergic to Detail enjoys thinking about the big picture and new ideas, sometimes neglecting smaller details or follow-through.
- The Fence Sitter can see both sides of an issue and thoroughly researches upcoming decisions, both large and small, sometimes to the point of forestalling action.
- The Cliff Hanger thrives on adrenaline, deadlines, and external pressure, but sometimes loses track of all the commitments he's juggling.
Schlenger and Roesch describe five styles of organizing physical space:
- The Everything Out likes to have reminders, mementoes, and project materials in plain sight and within easy reach.
- The Nothing Out prefers to have surfaces cleared off and materials stored away.
- The Right Angler enjoys having things look a certain way, with the appearance of precision.
- The Pack Rat keeps almost everything.
- The Total Slob believes that organizing things is a waste of time that could be spent on creative pursuits.
Chinese spam
But why do they pick on me, not the other ones I am aware of?
If you are a chinese blog-spamster, F*** off!!
Blackboard aka UTS Online - how I hate thee
There are so many websites and blogs (google it) bemoaning the pile of crap Blackboard inc. have written.
Sigh.
Tuesday, July 13, 2010
App Inventor for Android
Oh dear, does this make us programmers redundant?
Apps for Android made easy - I now see a million iFart applications appearing...
Incidentally, It's amazing how your mind explores links - from this website I got to Kawa, then qexo (Xquery) which then leads back to HTML + JSP vs HTML generation via Xquery (http://www.gnu.org/software/qexo/XQ-Gen-XML.html) ...
Monday, June 14, 2010
Go Ahead: Next generation Java Programming Style
here is a brief summary of style changes recommended:
Final is your new love
No setters
Do not use loops for list operations (hint: Use functional programming style)
Use one liners
Use many, many objects with many interfaces (ie: domain driven design)
Use Erlang-Style Concurrency (huh?)
Use Fluent Interfaces (and Domain Specific Languages)
Data Transfer Objects without setters and getters (yeah, makes your code look simpler)
Friday, June 04, 2010
Sunday, May 30, 2010
Too Smart for good?
Enterprise Software Development with Java: Spring and Google vs. Java EE 6
But: Spring and VMware are going to build their own Java universe where they dictate momentum, their 'standards' and more and more the commercial consequences as well. From an Enterprise Java point of view it's simpler. Too many things are called "Spring". And this makes it easy on the first look. You don't have to talk about 30 something specifications but about one big framework. And while Spring and Rod Johnson in particular have been extremely valuable in influencing the direction of Java (2)EE after the 1.4 release to the new, much more pragmatic world of Java EE 5, Spring has also caused polarization and fragmentation. Instead of helping forge the Java community together, it has sought to advanced its own cause. Which is perfectly valid - but should be recognized for what it is. Spring is not necessarily open, is not free, is not a community or even multi-vendor effort. Lock in with Spring is just another type of vendor-lockin. And that is, why it will never be a replacement for Java EE.
But there is another takeaway for the Java community and the owner of Java. The hype around innovative and integrated solutions is a proof for the Java EE universe moving too slowly along. Bring in more flexibility. Have more courage with changes. Find a way to adopt trends faster and support better modularity.
Thursday, May 06, 2010
Monday, April 12, 2010
All Your Apps Are Belong to Apple: The iPhone Developer Program License Agreement | Electronic Frontier Foundation
Oh boy. Apple have really made me angry. They are forcing this agreement down our throats.
Here is a partial quote:
The entire family of devices built on the iPhone OS (iPhone, iPod Touch, iPad) have been designed to run only software that is approved by Apple—a major shift from the norms of the personal computer market. Software developers who want Apple's approval must first agree to the iPhone Developer Program License Agreement.
So what's in the Agreement? Here are a few troubling highlights:
Ban on Public Statements: As mentioned above, Section 10.4 prohibits developers, including government agencies such as NASA, from making any "public statements" about the terms of the Agreement. This is particularly strange, since the Agreement itself is not "Apple Confidential Information" as defined in Section 10.1. So the terms are not confidential, but developers are contractually forbidden from speaking "publicly" about them.
App Store Only: Section 7.2 makes it clear that any applications developed using Apple's SDK may only be publicly distributed through the App Store, and that Apple can reject an app for any reason, even if it meets all the formal requirements disclosed by Apple. So if you use the SDK and your app is rejected by Apple, you're prohibited from distributing it through competing app stores like Cydia or Rock Your Phone.
Ban on Reverse Engineering: Section 2.6 prohibits any reverse engineering (including the kinds of reverse engineering for interoperability that courts have recognized as a fair use under copyright law), as well as anything that would "enable others" to reverse engineer, the SDK or iPhone OS.
No Tinkering with Any Apple Products: Section 3.2(e) is the "ban on jailbreaking" provision that received some attention when it was introduced last year. Surprisingly, however, it appears to prohibit developers from tinkering with any Apple software or technology, not just the iPhone, or "enabling others to do so." For example, this could mean that iPhone app developers are forbidden from making iPods interoperate with open source software, for example.
...Kill Your App Any Time: Section 8 makes it clear that Apple can "revoke the digital certificate of any of Your Applications at any time." Steve Jobs has confirmed that Apple can remotely disable apps, even after they have been installed by users. This contract provision would appear to allow that.
We Never Owe You More than Fifty Bucks: Section 14 states that, no matter what, Apple will never be liable to any developer for more than $50 in damages. That's pretty remarkable, considering that Apple holds a developer's reputational and commercial value in its hands—it's not as though the developer can reach its existing customers anywhere else. So if Apple botches an update, accidentally kills your app, or leaks your entire customer list to a competitor, the Agreement tries to cap you at the cost of a nice dinner for one in Cupertino.
Overall, the Agreement is a very one-sided contract, favoring Apple at every turn. That's not unusual where end-user license agreements are concerned (and not all the terms may ultimately be enforceable), but it's a bit of a surprise as applied to the more than 100,000 developers for the iPhone, including many large public companies. How can Apple get away with it? Because it is the sole gateway to the more than 40 million iPhones that have been sold. In other words, it's only because Apple still "owns" the customer, long after each iPhone (and soon, iPad) is sold, that it is able to push these contractual terms on the entire universe of software developers for the platform.
In short, no competition among app stores means no competition for the license terms that apply to iPhone developers.
Thursday, April 01, 2010
Oracle purchases Apache foundation
Tsk tsk tsk.
Apparantly Oracle will change the Apache Software Licence (ASL) to the Apache Full and Open Oracle License (AFOOL) :-)
Wednesday, March 24, 2010
David Siegel discusses the Power of Pull; a different view of the Semantic Web? | The Semantic Web| ZDNet.com
Siegel wrote books such as Futurize Your Enterprise and Creating Killer Websites (both impressive books, though at a view from 10000 feet).
In his new book "Pull: The Power of the Semantic Web to Transform Your Business" he suggests that using Semantic Web (though not just W3c technologies such as OWLS, RDF SPARCQL) can be the savior for web enabled businesses (and those who aren't :-)
What IS interesting is that Google are in an indirect way doing this - "PULLing" past information to make interesting deductions for the present. It's sometimes spooky how their data mining algorithms work - check the advertisements displayed from gmail.
Friday, March 19, 2010
motorola milestone - finally rooted
(since I have a british milestone from expansys.com.au, it gets its update from europe motorola via the internet),
Menu -> Settings -> System Updates ... & it runs for while....
When complete, you can now root.
Follow instructions from http://news.lehsys.com/?p=7537
1. download http://rapidshare.de/files/49019165/milestone_root.zip and rename to /sdcard/update.zip
2. switch off phone
3. hold camera button. Then power on.
4. When you get the triangle screen, release the power & camera button
5. Now tricky bit: Press Volume+ button & camera simultaneously. I had to attempt this about 10 times to get it to work
6. Now you get a list of options - Open the keyboard, use the navigation pad to select "Update from SD card."
7. Use the centre pad key to select - what ever you do, don't choose the "Format SD card" or "Hard Reset" options!!
8. You should see an updating screen - this may have an error message, but as long as you see the message "Rooting phone" (or similar :-), it has worked
9. Reboot the phone
10. Assuming it all booted up & you get your normal phone scree, start a Terminal emulator (I used ConnectBot or "Android Terminal Emulator (Jack Palevich)" from the Android Market, others use "Terminal Emulator" but this gives me the dreaded Force Close message)
11. Type su to get root access!!! ps: Android throws up a big screen "The following application has requested Superuser access to the phone". Select Yes.
ps: sometimes su hangs. I have to restart the terminal emulator to get it working again.
now for linux tools for android: http://android.modaco.com/content/htc-hero-hero-modaco-com/299984/linux-tools-coming-to-mcr/ & http://alldroid.org/threads/16201-HOW-TO-Root-Extras-Telus-Motorola-Milestone
Wednesday, March 10, 2010
Axis2: Why bother?
Bit harsh but very true - axis2 is not really a usable system. Sun's metro stack is way better. Just trying to get axis2's wsdl2java working resulted in me breaking a tooth in anger.
What get's my goat about Eclipse is it's linkages to Apache - the Web Tools Project webservices stuff deals only with Axis and it's ilk.
Oh yeah, there is a new Apache CXF interface which at least implements a marginally better product. But just check out the predic8 blog entry: http://www.predic8.com/axis2-cxf-jax-ws-comparison.htm
I'll quote it here for your reference:
WS-* Standards
| Standards | Axis2 | CXF | JAX-WS/Metro |
|---|---|---|---|
| WS-Addressing | X | X | X |
| WS-Coordination | X(2) | X | |
| WS-MetadataExchange | X | ||
| WS-Policy | X | X | X |
| WS-ReliableMessaging | X(3) | X | X |
| Web Services Security | X(1) | X(4) | X |
| WS-SecureConversation | X(1) | X | |
| WS-SecurityPolicy | X | ||
| WS-Transaction | X(2) | X | |
| WS-Trust | X | X | |
| WS-Federation |
(2) Supported by the additional module Apache Kandula2
(3) Supported by the additional module Apache Sandesha2
(4) By Apache WSS4J Interceptor
Another post is: http://www.arobs.com/innovationtech/tag/axis2-vs-cxf-vs-metro/ ps: this seems to be mostly a cut and paste from Thomas's blog... mmm ggrr.
And also: http://srikanthnukala.net/devblog/2009/06/29/axis2-vs-jax-ws-vs-apache-cxf-vc-spring-ws/
My problem is that Eclipse only supports the Apache products with the web services client generator.
Bugger them.
Tuesday, March 09, 2010
Oscars for former UTS students
From an internal email"
Congratulations to the following computer graphics students:
Glenn Sharah, who is credited on Avatar as a Shader Writer. Avatar won the
Academy Award for best visual effects.
Andre Mazzone, who is credited on Star Trek as a Research and Development
Programmer. Star Trek was nominated for best visual effects.
This is not the first time that these people have been up.
How many gadgets?
Mark only had 2.
I had 2.
But I also have about another 4 hanging around in various places.
Sigh.

