This notebook is a collection of code snippets and technical "how to" instructions.
Search This Blog
Mac OS X Netbook
by: PhilComputer: Dell Vostro A90
Upgrades: 16 gb SSD and 2gb DDR2 RAM
Tutorial: http://osx.mechdrew.com/guides/dellefi1.shtml
Quirks:
- towards the end of the tutorial when it says to boot OS X using "-x" user "-x -f" instead which is a force command, when I tried the "-x", all I got was a messed up white display.
- I only had a 8 gb flash drive so i have to use another 2 gb drive to put the 10.5.7 upgrade (unpackaged) and DellEFI onto.
Final Notes:
- OS X takes up about 8.3 gb so either get a bigger SSD or get an external drive.
- I picked up a 16 gb SDHC card (since there's a slot for one and it's basically un-noticeable) .
- My total price came to about $375 with the upgrades and 16 gb SDHC card for the hardware
- a copy of OS X will be $130 as well.
GWT Formatting Best Practices
by: Zainab Aziz- Do NOT use FlexTable to create input forms.
- Use CSS to style elements
- Use CSS to style column width and alignment
- Use modular code, i.e. group of radio buttons could be a separate method or a class
- Do NOT use indices to format, rather use logical object and methods
Code before re-factoring:
Code after re-factoring:
myStyles.css:
MyClass.java:
contentTable.setWidget(BULLETIN_INDEX_1_DIVISION, 0, noWrapLabel("Division:"));
contentTable.setWidget(BULLETIN_INDEX_1_DIVISION, 1, divisionList);
divSelector.setRight(divisionList);
divSelector.setVisible(true);
SQL: like
by: Zainab AzizDon't cry for me Curpentino!
by: Uki D. LucasMac, this is as good as it gets.
Project management tips
by: Uki D. LucasHibernate: Case Insensitive Query
by: Jordan Beckpublic List
fetchByCountry(String country) {
DetachedCriteria criteria = DetachedCriteria.forClass(MobileCarrier.class);
criteria.add(Restrictions.ilike("country", country, MatchMode.EXACT));
return getHibernateTemplate().findByCriteria(criteria);
}
GWT best practices
by: Uki D. LucasCloud Computing
by: Jordan BeckUsing Skype to save on HR costs
by: PhilThe article below discusses the benefits of using Skype for a video interview before having to pony up the dough to get them out for an interview. Skype offers free video chat to other Skype users which can save your start-up or HR department thousands on first interviews, as well as offer something a little more than a dreary old phone interview.
Take a look at the article below...
http://www.time.com/time/business/article/0,8599,1930838,00.html
Dell Vostro A90 (Phil' Computer)
by: Uki D. Lucas10GUI
by: Jordan BeckText Messages(SMS) from Emails
by: Zainab AzizHow it works:
1. Create a new email from your email account
2. Mail to address is: mobilenumber@txt.att.net (For AT&T) See: Mobil carriers
SMS Implementation:
1. create a table MobileMessageType for all the mobil companies that your application will support i.e T-Mobil, AT&T, etc. See: Mobil carriers
2. Create a table MobileMessagingSetting with below fields (add more fields as needed such as max. sms per day):
id
message_type (use MobileMessageType table)
sms_email_to
mms_email_to
3. Create service classes and DAO
4. Create a mailing functionality which send emails to users using his/her mobil number and carrier email address to
See more mobile carriers gateways:
http://www.mutube.com/projects/open-email-to-sms/gateway-list/
Why is there no iPhone Bluetooth keyboard? | Fully Equipped - CNET Reviews
by: Uki D. Lucasloss why I cannot type an article on the keyboard attached to my
iPhone. I had I keyboard for HP Jornada and that was like a DECADE ago!
I am seriously thinking my next phone will be Android, wait! I already
own My Touch, damn, I am a geek.
Mobile Photoshop
by: Uki D. LucasFrom Adobe;
Photoshop.com Mobile for iPhone provides a fun, seamless experience to view photos with full-screen previews and edit images with gesture-based editing. Consumers can transform their photos with essential edits like crop, rotate and flip. Users can correct and play with color by adjusting the saturation and tint, enhancing the exposure and vibrancy and converting images to black and white.
Photoshop.com Mobile for iPhone also offers eye-catching special effects. The Sketch tool helps photos look like drawings, and Soft Focus can give photos a subtle blur for artistic effect. With just one click, users can also apply dramatic changes to the look and feel of their photos with effects such as Warm Vintage, Vignette and Pop. Edits or changes can be undone or redone so users can experiment without the worry of losing the original photo.
The Photoshop Mobile App comes with 2GB of space at Photoshop.com for free.
You can read more about it and download it from here.
Pixelmator: selection smooth, feather and size ROCK!
by: Uki D. LucasTrials and Tribulations of going to GWT 2.0 ms1
by: TrevorPhotoSketch picture software
by: Trevorhttp://www.telegraph.co.uk/technology/news/6265876/PhotoSketch-picture-software-wins-plaudits.html
Mac OS X Netbook
by: Philhttp://gadgets.boingboing.net/2008/12/17/osx-netbook-compatib.html
Dell Vostro A90
Upgrade battery and memory
AppEngine: database annotations JDO or JPA
by: Uki D. Lucaslooking at the following comparison it SEEMS like JDO is a better
choice...
http://db.apache.org/jdo/jdo_v_jpa.html
One of the concerns would be switching back to Hibernate some day when
DataStore upsets me (and it upsets me a lot).
Please let me know what you decided to use yourself.
GWT: KeyDownHandler listening to key typed
by: Uki D. LucasGWT graphics
by: Uki D. LucasDrawingArea canvas = new DrawingArea(400, 400); panel.add(canvas);
Circle circle = new Circle(100, 100, 50); circle.setFillColor("red"); canvas.add(circle);