VNC Server connect to Listener

0 #

There are cases when you can’t connect to a VNC server because it’s behind a NAT router (or some similar reason). Well, a cool trick you can use is to have the VNC server connect to the VNC viewer (which is set up in listener mode). This way, since the server initiates the connection, the NAT router can successfully pass the connections through.

To make this even simpler, you can generate a single-click VNC server using UltraVNC SC service. It’s a little tricky to use, but lifehacker explains it fairly well. Then you can just give the other person this .exe and have him/her double click it to set up the VNC session (make sure your computer is running the viewer in listener mode first though!).

This saves you either trying to run someone through router port forwarding (a complete horror) or doing the whole Hamachi + VNC thing.

Forego Commercial Hosting?

0 #

My Dreamhost account will soon be up for a year’s renewal at roughly $10/month so I’ve been figurin’…..figuring that since I have a bunch of servers here at Caltech that I can use, that I could just move my sites there and go without a commercial hosting account.

So I’ve been making some plans on how to make this transition as smoothly as possible while retaining the “reliability” (it’s not always reliable) that commercial hosts have. This move will probably occur within 2-3 weeks.

Tags: | |

Firefox, Internet Explorer CSS Woes

2 #

Usually every week, my only day to do “non-Caltech” stuff is Friday night. At Caltech, we don’t have weekends. We just do work all the time.

I’ve been seriously mulling over developing a new theme for my blog since last month, but since I only have about 4 partial days (Friday nights) each month to actually work on my own projects, the theme never got completed until recently.

I spent the first “free” day formulating a plan of attack on how to make a Tumblr minimalist-like theme by reviewing existing solutions. The three most popular ones are: T1, Tumble-hybrid, and Tumblejack. Both T1 and Tumble-hybrid are based off of the excellent Sandbox theme for Wordpress which allows amazing control over the presentation of the page using only CSS.

I decided to settle on modifying the CSS to T1 to make it look like the Tumblr minimalist theme. No sweat right? I could do this in a night.

Well, things don’t usually work out as well as you initially planned. The T1 css code, to me, wasn’t very well written (a lot of redundancies) and organized (including bad style) so I had to spend a lot of time deciphering it.

Time ran out and so I had to wait until the next Friday to continue work. Luckily, this was a weekend holiday thing so I was able to extend my CSS hacking into Saturday as well. I made fantastic progress those two days, figuring out some clever CSS tricks to have things be positioned correctly. I also did this cool trick by using jQuery to rewrite the HTML of conversations on the fly so that I could transform them into a list format (so that they could be presented like Tumblr conversations). I was feeling pretty good until I opened up the theme in Internet Explorer 7. Then all hell broke loose.

Well, it wasn’t that bad. The sidebar didn’t float right and the display of some items were off. But the general “look and feel” was there. At this point, I ran out of time so I left the “hacking CSS to make it work in IE” part to next time.

When the next Friday came around, I was all geared up for finishing this theme. I’ve dealt with making CSS work with IE before, and it usually involves adjusting some margins, padding, and other small things. It turns out that none of this was really applicable to the problems this theme encountered. IE just inherently interprets CSS different than FF in some cases. I couldn’t find a way, using floats, to make the theme work in both IE and FF. My enthusiasm dropped, and I commented to a house/dorm neighbor that it was impossible to fix this problem. It just couldn’t be done.

During the week leading up to the next Friday, this problem was stuck in the back of my brain nagging at me. I just spent all that time working on this theme, and if I couldn’t get it to work, I wouldn’t be satisfied posting to my blog. I want microblogging, dammit! As it turns out, I was taking a shower one night, and I thought of a way of using relative CSS positioning to replace the method of floating divs. It would work, I thought!

So on Friday night, I sat down to implement this relative divs method, and in Firefox, it worked perfectly. In IE, it worked, but then messed up the rest of the content of the page. I fiddled around the the CSS a lot, but couldn’t fix this problem. Time ran out.

Well, I kind of broke my Friday night rule, but yesterday night, I was determined to fix this problem, so I tore down all existing CSS code and rebuilt it line by line all while monitoring both FF and IE to make sure they looked the same at both stages. Surprisingly, I learned a lot from this since it was actually some poorly written CSS code that contributed to IE messing up the layout. FF is more forgiving when interpreting ambiguous CSS. I tracked down some offending lines and cleaned up the CSS code. And thus, I finally put it in production-beta use where I can fix things on the fly.

Well, if you encounter any problems with the theme. Leave a comment or email me!

Junior Year at Caltech Begins

5 #

Well, junior year at Caltech begins on October 1st, but I’m leaving for Pasadena tomorrow. This school year is going to be pretty tough, but somehow, I feel optimistic about it. While Caltech sucks (in the usual sense and in the sense that it sucks all the free time and life out of you) and while this image resonates true:
Caltech, where your best just isn't good enough
I feel optimistic about my junior year. Part of the reason could be that I’m off the core courses so now I’m fully taking courses that I choose (so I’m especially interested in them). Part of the reason could be that after two years of schooling, I think I finally have the hang of things. So I think I’ll be able to manage my time better. Speaking of time management, I’m going to make an even bigger effort this year to reduce my procrastination time. I keep telling myself: “The key…is time management. If you can manage your time correctly, then you won’t die a drawn out, painful, and untimely death…” (or something like that)

Who does she smile for?

0 #

For whom does she smile for?
A smile hat transforms the day
like a wind that sweeps the darkness away.
A simple that radiates warmth and life
like a sun that blankets all strife.
So I wonder: Does she ever smile for me?

Tags: |