Archive

Archive for the ‘Technology’ Category

pidgin.im msn protocol alternative: msn-pecan [update #2]

May 23rd, 2010 Lloyd Leung 1 comment

Okay,

Been working with pidgin w/msn-pecan on ubuntu 10.04.  New problem, pecan doesn’t crash pidgin anymore, however I am logged out after I’ve been away from my computer a little bit.  As in, when the screen saver kicks in, pecan logs me out or can’t maintain a connection.

Doesn’t seem to happen in windows 7.

If I can live with this issue,  and so far I have… it’s kind of a nice flaw, as this allows me to be not distracted, while at work.

Categories: Linux, Technology Tags:

pidgin.im msn protocol alternative: msn-pecan [update]

April 8th, 2010 Lloyd Leung 2 comments

Discovered that is crashes a lot, on ubuntu.  Pretty stable (haven’t noticed it crashed yet) on windows.

Verdict thus far: good on windows.  Horrible on ubuntu.

Categories: Technology Tags:

Debugging a segfault in PHP

April 1st, 2010 Lloyd Leung No comments

debugging segfaults is not fun.

My low key technique:

  1. place a printf(“made it here: %s, %s+ %s\n”, __METHOD__, __LINE__, __FILE__); everywhere…
  2. put “DIE(‘something’);” to figure out the exact line that fails.  If dies, good.  move it further down.  If it segfaults, move the die statement up.  Until you’ve found the exact line that fails.
  3. Figure out why it’s segfaulting…  uh… good luck with that.  Google, and look at the changelog in PHP to see if it’s been fixed.

An easier option, if I were the one controlling the box — Update to the latest PHP.

Categories: Programming Tags:

little project ideas

March 1st, 2010 Lloyd Leung No comments

Just found a need to access my home server… however, it’s powered down… how can I overcome this problem in the future.  To answer my own question…  I should go lookup how to send a wake-on-lan command to the box. As well as know what my IP is…

project ideas:

1.) Current IP notifier – send to my webserver, what my home server IP is. (Dynamic). I could use a dynamic dns service… this maybe interesting to learn how to do this, if I have my own VPS… have the home-server, notify the web-server to update the DNS setting. So I would have something like: homelan.lloydleung.com or whatever.

2.) wake on lan commands.
3.) vpn to the network instead… with a combo on 1. This way, everything is encrypted…

My current extension list for firefox 3.0.1

September 17th, 2008 Lloyd Leung No comments
Categories: Programming, Technology Tags:

putty passwordless login

May 29th, 2008 Lloyd Leung 2 comments

If you found this, you know what you’re looking for

  1. goto http://www.chiark.greenend.org.uk/~sgtatham/putty/
  2. download puttyGen
  3. run it, with ssh-2 RSA
  4. click generate
  5. leave key passphrase blank.
  6. yeah save both the private and public keys for future use.
  7. at the top of the app, there’s a “OpenSSH authorized_keys” text window, copy and paste the information into ~/.ssh/authorized_keys as one line.  (You’ll need to shell into the box first).

Start putty

  1. enter the ip/host address
  2. enter a session name.
  3. in the menu tree goto: connection->data enter your auto-login name
  4. in the menu tree goto: connection->ssh->auth click browse and select the private key you saved from the above section.
  5. in the menu tree goto: session click save
  6. test, by clicking open.

Enjoy.

Encryption idea

October 11th, 2007 Lloyd Leung No comments

A few months ago, I saw this method of jumbling words to make words all weird.

“Hree is an exmlape”

Categories: Cool, Technology Tags:

Windows Vista timesync problem

October 11th, 2007 Lloyd Leung No comments

Add “pool.ntp.org” to the server list solved my problem.

The quick explanation is that the other servers on the list, are being hammered by millions of other window machines.

Categories: Technology Tags:

ajax form submits problem

May 8th, 2007 Lloyd Leung No comments

yesterday was a few hours of frustration.

Make sure your your <form> tag is within the same <td> cell element.  Otherwise it’s not XML compliant.

You can have the form outside the <table> — but not between it, and a <td> element.

Categories: Programming Tags:

Got RSS?

March 3rd, 2007 Lloyd Leung 1 comment

Yes, RSS is old news. Everyone and their dog has an rss feed. Okay, maybe not.

However, here’s a super easy way to to monitor RSS feeds.   Thunderbird!!! Yes, that’s old too, I know.  If you don’t have News & Blogs, you’ll have to add an account first.  Now you have an easy way to just drag new feeds over.

  1. Find an rss feed, look on the side of this side, and you’ll see an RSS feed.
  2. Drag it to your News & Blogs section in thunderbird.

Now I don’t need to open up all my those sites to figure out what if there’s something new. RSS feeds will automatically find out for me, and notify me whenever something is new.Suggestions for RSS use:

  1. Monitor a friend’s del.cio.us bookmarks. :) “Hi SAM! I’m watching you!”
  2. Monitor someone’s blog.
  3. okay, here’s a real useful one. Monitor new file releases on sourceforge.
  4. Forums and Announcements

That’s how I’m using RSS… any other suggestions to use RSS?

Categories: General, Personal Blogs, Technology Tags: