XS Labs

Archive for August, 2010

Change file type icons easily in Windows 7 / Vista

by pompo500 on Aug.26, 2010, under Software

Web development icons

In Windows 7 / Vista changing the file type is next to impossible; you have to fire up regedit.exe and do some inhuman things.

Luckily, NirSoft has developed this wonderful and FREE program to handle just this case. Get FileTypesMan here.

Short tutorial is here, if you don’t find it simple enough. It should be though.

Remember, Windows only understands .ICO files; so should you need to convert .PNG or other formats to .ICO, I recommend Icon Sushi (free program) or converticon.com (free web service)

Leave a Comment more...

Facebook profile picture sync to GMail and phonebook

by pompo500 on Aug.24, 2010, under Software

facebook > gmail > phone sync

How would you like to see your friends’ Facebook profile pictures in your phone’s phonebook? Or GMail’s contacts? For free! Note: this only works with contacts you already have on your GMail’s contact list. For importing Facebook’s contacts to your contact list first, see this link.

Interested? Here’s a how-to.

What you need:

  • Facebook account, obviously
  • GMail or Google Apps account (if you don’t know what Google Apps is, don’t worry; this doesn’t concern you)
  • You should have your GMail contacts by their full names. E.g. “John Smith” instead of just “John”. This application only works with full names. “John Smith IBM inc.” works though, because it searches for the Facebook full name in GMail’s contact list.
  • Windows
  • .NET framework 3.5

How do I know if I have the .NET 3.5 framework? If you have Windows Vista or 7 or you frequently update or XP, you should have it. If you want to check you can go to Windows’ “Add or Remove Programs” to check if it’s mentioned there. If you need to install it, you can grab it easily from here.

Instructions

  1. Download FacebookGmailPhoneSync.xslabs.zip, unpack it somewhere, e.g. desktop or C:\Program Files\FacebookGmailPhoneSync
  2. Run FacebookGmailPhoneSync.exe
  3. Enter your GMail or Google Apps account details, click “Sync”
  4. Log in to Facebook
  5. It doesn’t have a progress bar, it just quietly runs a while
  6. After it’s done, it pops up “Done.”
  7. That’s it, it may take a few minutes for the pictures to update into your GMail, and if you’ve set up GMail <-> Cell phone sync, to your phone!

If there’s any error, please check the “What you need” section again, and please note that XS Labs does not offer any support for this, since this software is not originally ours and it’s free anyways.

Is it safe?

Yes, XS Labs has reviewed the source code, and it does not save or send your private information anywhere.

Should you want to see it for yourself, see the “Source code” section.

Source code

If you don’t know what source code means, you don’t need to download this. You only need to follow the “Instructions” section. Source code is intended for developers who want to modify this program.

Download FacebookGmailPhoneSync.xslabs-source.zip

What you need to compile FacebookGmailPhoneSync from source code:

  1. Microsoft Visual Studio, preferably 2008 or newer version. Search xs.fi for “dreamspark” and see if you’re eligible for the free version.
  2. The FacebookGmailPhoneSync.xslabs-source.zip mentioned above, unpacked somewhere
  3. Google Data API Setup (1.6.0.0) or newer from http://code.google.com/p/google-gdata/downloads/list

Credits

GoogleContactSync was not developed by XS Labs. Original credits go to www.koushikdutta.com

However, XS Labs has modified the program a bit (the source code in it’s current form didn’t work and relied on having Microsoft Office installed).

Changes made in MainForm.cs:

  1. deleted “using Microsoft.Office.Interop” lines.
  2. commented out “Microsoft.Office.Interop.Outlook.ApplicationClass app = new ApplicationClass();” and following three lines.
  3. replaced “match.Google.PhotoEditUri” with “match.Google.PhotoUri”

Changes made in Facebook API (Entity/User.cs):

  1. Added enum “Widowed” to User.RelationshipStatus, that was causing Exceptions with people who had widowed friends
10 Comments more...

10 Questions From Modern Web Designers: Answered

by pompo500 on Aug.24, 2010, under Software

  1. What New Technologies Should I Focus on Most?
  2. What Types of Things Should I Invest Money In?
  3. The Big One: Should I Go Freelance / Stick With A Firm?
  4. As a Web Designer, Do I Need to Code If I Don’t Want To?
  5. With All The Hype, Should I Learn How to Make WordPress Themes?
  6. What is the Most Effective Way to Market Myself in This Industry?
  7. What’s a Good Balance Between Spending Time on My Own Stuff vs. Client Projects?
  8. What Are The Best Places to Find Web Design Resources?
  9. For Web Design Projects, Should I Use a Fixed Price or Charge Hourly?
  10. Are Bigger Clients Necessarily Better?

Read the article here (via onextrapixel.com)

Leave a Comment more...

Coders’ reference

by pompo500 on Aug.23, 2010, under Software

XS Labs has compiled a reference for the benefit of coders’ frequently needed information. Included:

  • Data Types
  • SQL Numeric Types
  • HTTP Codes
  • Common Ports
  • PHP Reference
  • ASCII & Hex tables
  • Bitwise Operations
  • Web Notes
  • CSS Reference
  • Binary permutations

http://xs.fi/static/codersreference/

Leave a Comment more...

Java’s visual appeal is zero

by pompo500 on Aug.20, 2010, under Software

Today the visual appeal of software means more than ever. Just take a look at Windows’ history: Windows 3.1, Windows 95, Windows 2000, XP, 7..

Every release of Windows has been more visually appealing than the previous version. Today it matters how your software looks.

If your installer looks like this, you’re going to think less of the entire product right before even using it. It’s incredible how Java has had this butt-ugly grey default dialogs from since, 1990?

Get with the times, Oracle.

Leave a Comment more...

This is why PHP rocks

by pompo500 on Aug.19, 2010, under Software

PHP lets you concentrate on the most important part of software development: the problem itself. If you manage to put together hig-level APIs that do most of the work for you, then it’s easy as this.

The previous function GetMatchDuration() would be implemented without this library somewhat like this:

$SQL = ‘SELECT MINUTE(MatchEnds – MatchStarts) FROM matches WHERE MatchID = ‘.mysql_escape_string($MatchID);

if(!($Query = mysql_query($SQL)))

return false;

if(!($Row = mysql_fetch_row($Query)))

return false;

return $Row[0];

Quite a lot prettier in the picture, huh?

PHP effin’ rocks.

Leave a Comment more...

jQuery UI’s datepicker adds extra empty space at bottom of the page

by pompo500 on Aug.18, 2010, under Software

There seems to be a small bug in jQuery UI’s datepicker component that adds empty space at the bottom of the page, which looks pretty nasty with layout like the one in the picture. I don’t know if this concerns other themes, but at least the default one (“UI lightness”)

The added space is marked with a red circle in the picture.

Luckily there’s an easy fix to it, just add the following code to jQuery UI’s theme CSS file, at the bottom:

#ui-datepicker-div { display:none }

I’ve submitted a bug report to jQuery UI, hope it’ll be fixed in future releases. :)

7 Comments more...

Tip: HTML template for starting new pages quickly

by pompo500 on Aug.01, 2010, under Software

This tip is particularly useful for us webheads.

Ever been frustrated when typing the same <html><head><title>..</title><link>…</link></head><body><div>.. stuff over and over again?

Wouldn’t it be wonderful by just right-clicking on the desktop or inside a folder and just picking “New -> Firefox Document”, then Windows creating a fresh template for you with the most frequently used tags already typed in?

(continue reading…)

Leave a Comment more...

Public service announcement

From the council of desultory bulletins:

The rate, at which feces fly, is simply stunning compared to the ionized gaps between nanoparticles upon impact of the floral microscopic patterns of neutron stars.
You should think about it for a moment. After all, it affects the longevity of random synergized spatulas.