there was some weird problem in my ubuntu pc. the network connection is closed frequently and it was fixed by rebooting. i googled the situation and nothing found. then i check the resolv.conf and it was empty and there was a message #Generated by NetworkManager. WTF!
i googled it and found these solutions
sudo chmod -w /etc/resolv.conf
sudo chattr +i /etc/resolv.conf
this prevents to change the resolv.conf file, but not a good idea
this one is more primitive solution
sudo vi /etc/dhcp3/dhclient.conf
and change this line.
prepend domain-name-servers 8.8.8.8
i don’t know which one works and which one works not. i applied all.. and got no problem now. so i wish you luck! enjoy the ubuntu life!
i encountered the same trouble again.
like this:
dyld: Library not loaded: /opt/local/lib/db46/libdb-4.6.dylib
Referenced from: /opt/local/bin/svn
Reason: no suitable image found. Did find:
/opt/local/lib/db46/libdb-4.6.dylib: mach-o, but wrong architecture
this time, i manage to fix it. it was because snow leopard doesn’t use 32bit libraries. so you need to uninstall and rebuild all products for 64bit system. if you clean-install snow leopard, you don’t need to this.
1
2
| port installed # listing installed software
sudo port -f uninstall installed |
and install necessary program again
for me:
1
2
| sudo port install coreutils +with_default_names
sudo port install subversion |
etc… etc…
you may need to reinstall macports 1.8.0 for snow leopard again, after uninstalling all programs
i don’t know who sees this message but i opened another blog for korean people. this blog’s theme is gourmet, and travel. it may not so fun..
http://fri13th.com/ep
i’ll add some link for this blog..
and anyway.. i will setup another blog for my art works..
the name will be e.a.f.d.l..
this blog will continue also, i earn money by developing software..
(i’m deeply suffered by ie6 in these days.. maybe there will be a chance to tell the whole story.)
i just finished to transfer my blog. it was very simple job, thanx~ i’ll do the tedious egloos to wordpress transfer in this weekend and if it is finished, i’ll restart my gourmet blog again in wordpress..
the time i couldn’t have been post an article, i felt disconnected and depressed.. it was not good at all.. so it is very important to start blog for my mental health..
and also i’ll lunch another php ajax-based site sooner or later. i’ll notify it later..
most critical part in ie6 may be the hover property. ie6 only support hover in a tag, while other all modern browsers support hover properties in any tag. you have to manually add onmouseover and onmouseout event.
like this:
1
2
3
4
| if (item.className = "orig") {
item.onmouseover=function(){this.className+=" over";};
item.onmouseout=function(){this.className="orig"};
} |
and a tag’s behavior is somewhat wierd also..
1
2
3
4
5
| <style>
li {text-align:left; width:100px;}
a {text-align:center;}
</style>
<li><a>test</a></li> |
this one wil be broken in ie6..
and many more..
anyway i can fix all these problem by using firebug and ietester. thank you so much~
i used zipplus only because it supports alzip’s alz format. alz is an awkward derivation of zip, very popular in korea. korean people use alz because alz supports splitted zip and is free and fancy and its menu is korean.
but alzip isn’t my type. it’s default format is alz, not zip. alz will not be supported by linux or mac. and except korean none in the world can extract it.
finally i decided not to use any alz file. it’s the right way. i started to use winrar from when i installed vista64 in my home pc. winrar is so fast, it supports dual core cpu. of course rar’s icon sucks, but i can endure..
i always wonder why there’s any terminal that supports transparency mode in windows. my main purpose of using mac is just using iTerm, seriously. today, i found some good term for windows. it’s cool and cute! it is based on PuTTY 0.6, and so there’s nothing to worry about ssh terminal features ^_^
http://www.9bis.net/kitty/
though i don’t like safari, it’s a great news. most people think good browser is only in pc. but the pmp, cell phone or many consumer electronics will get their own browser someday, and the total count of browser will be more than pc. so this is a good decision, desktop browser’s market is already taken by ms ie. and because it’s a game of monopoly, the share will not be changed so drastically. but embedded browser market is different. you can’t choose or complain or uninstall, in most case. now the time is coming soon, everybody have to learn ie is not the default browser for internet.
http://arstechnica.com/journals/linux.ars/2007/07/23/the-unforking-of-kdes-khtml-and-webkit
windows media recorder, not from MS.. it records all kind of streaming media except flash, flash is not a streaming media itself.. when capturing, you don’t even need to click the link.. it automatically captures streaming packet. so, cool.. very useful to me who loves music and musician..
the famous FizzBuzz Problem.
this is my solution, it takes 5 min (if(!0) doesn’t work, so i have to use ==0, it takes about 3min), and i revise it in another 3 min to remove a temporary variable, and make code neat.
#!/usr/bin/perl
for $i (1..100) {
print $i if $i%3&&$i%5;
print "Fizz" if $i%3==0;
print "Buzz" if $i%5==0;
print "\n";
}
of course i can solve by using many other language.. but the basic is the same.. someone might save some character, but i don’t want to ruin the readablity nor main concept of algorithm.
http://tickletux.wordpress.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/
P.S. i can remove two mod operations by using a temp varibale, but i can’t say it’s right or wrong..
P.P.S. i found more simple solution from internet.. this code is just what i imagine.. cool..
print(($_%3?"":Fizz).($_%5?"":Buzz)or$_) for(1..100)