tag:blogger.com,1999:blog-89516593012691206072024-03-05T09:24:02.946-08:00Naked Proofnakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.comBlogger319125tag:blogger.com,1999:blog-8951659301269120607.post-1259929528389655652013-07-11T18:08:00.000-07:002013-07-11T18:10:47.386-07:00ExperimentYou're doing well so far, if you'd please continue here: <a href="https://twitter.com/uberscientist/status/355493745166258177">https://twitter.com/uberscientist/status/355493745166258177</a>nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-54004262961021975842013-05-09T20:15:00.003-07:002013-05-17T10:14:03.274-07:00Some things I want to learnGNU Debugger (gdb)<br />
Mandarin 你好!<br />
Graph Database (Neo4j)<br />
More python, maybe find and use a websockets library.<br />
Laser Cutter and open source 2D/3D CAD<br />
Kickstarternakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-47523849330772401742013-04-17T01:29:00.000-07:002013-05-17T10:11:50.862-07:00Stick-N-Find Android AppLooking for the Android app? <strike>Nothing in the google play store?</strike> It's still in alpha!<br />
<b><br /></b>
<b>EDIT 5/17/13:</b> It seems to be in the <a href="https://play.google.com/store/apps/details?id=com.ssia.sticknfind">play store</a> now.<br />
I also recieved my stick-n-finds in the mail a couple days ago. I'll be listing them on ebay as time goes on. Here are the first couple listings:<br />
<a href="http://www.ebay.com/itm/181141492912?ssPageName=STRK:MESELX:IT&_trksid=p3984.m1558.l2649">Listing 1</a><br />
<a href="http://www.ebay.com/itm/181141494880?ssPageName=STRK:MESELX:IT&_trksid=p3984.m1558.l2649">Listing 2</a><br />
<br />
You can try pairing with this app:<br />
<a href="https://play.google.com/store/apps/details?id=com.nordic.nordicbleapp">https://play.google.com/store/apps/details?id=com.nordic.nordicbleapp</a><br />
(Thanks to a comment by Brian M.)<br />
<br />
Or if you have a Samsung S3 you can try their code (reported to be crashing instantly and other problems):<br />
<a href="https://docs.google.com/file/d/0ByXd054LiTnBQWZ2aXlEdloyRFE/edit">https://docs.google.com/file/d/0ByXd054LiTnBQWZ2aXlEdloyRFE/edit</a><br />
<br />
Leave any additional information in a comment and I'll move it up here.<br />
Here's the official <a href="http://www.indiegogo.com/projects/sticknfind-bluetooth-powered-ultra-small-location-stickers/x/2033981?c=comments">indiegogo comments section</a>... I'm staying out of that pig sty!nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com1tag:blogger.com,1999:blog-8951659301269120607.post-83814167290996247852013-04-16T20:17:00.001-07:002013-04-17T01:35:28.491-07:00How to fix being stuck on "Checking bootstrapper version ..."So you're trying to install a Steam dedicated server. The really helpful wiki says:<br />
<blockquote class="tr_bq">
<span style="font-family: sans-serif; font-size: 13px; line-height: 19.1875px;">The first run of </span><tt style="font-family: monospace, monospace; font-size: 13px; line-height: 19.1875px;">./steam</tt><span style="font-family: sans-serif; font-size: 13px; line-height: 19.1875px;"> may hang while checking the bootstrap version. You will need to retry several times until it completes.</span></blockquote>
NO. Don't do this. You need to open your firewall first, meaning if you have iptables setup in the first place to protect your server (you should).<br />
<br />
The wiki also gives you the rules:<br />
<pre style="border: 1px dashed rgb(47, 111, 171); font-family: monospace, monospace; font-size: 13px; line-height: 1.1em; overflow: auto; padding: 1em;">-A INPUT -i venet0 -p tcp -m tcp --dport 27015 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p tcp -m tcp --dport 27005 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p udp -m udp --dport 27015 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p udp -m udp --dport 27005 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p tcp -m tcp --dport 27016 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p tcp -m tcp --dport 27017 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p tcp -m tcp --dport 27018 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p tcp -m tcp --dport 27019 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p tcp -m tcp --dport 27020 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p udp -m udp --dport 27016 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p udp -m udp --dport 27017 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p udp -m udp --dport 27018 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p udp -m udp --dport 27019 -m state --state NEW,ESTABLISHED -j ACCEPT
-A INPUT -i venet0 -p udp -m udp --dport 27020 -m state --state NEW,ESTABLISHED -j ACCEPT
</pre><br />
You can just use `iptables-restore < iptables.my.rules` once you save those rules to your rules file, rules rules.<br />
<br />
OK, thought I'd share because I was just restarting the steam process a million times :-(nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-48516505581659324162013-03-01T01:11:00.001-08:002013-03-23T00:05:09.626-07:00What do I do if my domain name registrar's site's domain is expired<b>UPDATE:</b><br />
I found that it was a reseller of <a href="https://www.wildwestdomains.com/">Wild West Domains</a>, the tech support wasn't very helpful at all, just received a canned response, but I was able to access my control panel due to their systems sending me a renewal reminder...<br />
<br />
I then transferred to namecheap.com, but I don't know if I'd really recommend them (I had issues using their nameservers deleting my @ A record for some reason... wtf). I also tried name.com but their one page app was really annoying when trying to transfer 10 domains at once... I ran into an error which cleared the form one too many times.<br />
<br />
I was expecting to see others having problems with 'thedomainz' ... but maybe I'm the only idiot who stayed with them after they changed domain names years ago :/<br />
<br />
<b>-------old post follows------</b><br />
I used to go through this site, <a href="http://thedomainz.com/">thedomainz.com</a> ...<br />
Not anymore it seems. They changed their name once since I started doing business with them in high school from 4nic (something like that)...<br />
This is not good.<br />
<br />
TheDomainz.com is down, anyone else who was with them?<br />
<br />
<br />
<span style="font-family: Courier New, Courier, monospace;">$ whois thedomainz.com</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">Whois Server Version 2.0</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">Domain names in the .com and .net domains can now be registered</span><br />
<span style="font-family: Courier New, Courier, monospace;">with many different competing registrars. Go to http://www.internic.net</span><br />
<span style="font-family: Courier New, Courier, monospace;">for detailed information.</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> Domain Name: THEDOMAINZ.COM</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Registrar: PDR LTD. D/B/A PUBLICDOMAINREGISTRY.COM</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Whois Server: whois.PublicDomainRegistry.com</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Referral URL: http://www.PublicDomainRegistry.com</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Name Server: DNS.PARKPAGE.FOUNDATIONAPI.COM</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Name Server: DNS2.PARKPAGE.FOUNDATIONAPI.COM</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Status: clientTransferProhibited</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Updated Date: 28-feb-2013</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Creation Date: 27-feb-2011</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Expiration Date: 27-feb-2014</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">>>> Last update of whois database: Fri, 01 Mar 2013 09:06:28 UTC <<<</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">NOTICE: The expiration date displayed in this record is the date the </span><br />
<span style="font-family: Courier New, Courier, monospace;">registrar's sponsorship of the domain name registration in the registry is </span><br />
<span style="font-family: Courier New, Courier, monospace;">currently set to expire. This date does not necessarily reflect the expiration </span><br />
<span style="font-family: Courier New, Courier, monospace;">date of the domain name registrant's agreement with the sponsoring </span><br />
<span style="font-family: Courier New, Courier, monospace;">registrar. Users may consult the sponsoring registrar's Whois database to </span><br />
<span style="font-family: Courier New, Courier, monospace;">view the registrar's reported date of expiration for this registration.</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">TERMS OF USE: You are not authorized to access or query our Whois </span><br />
<span style="font-family: Courier New, Courier, monospace;">database through the use of electronic processes that are high-volume and </span><br />
<span style="font-family: Courier New, Courier, monospace;">automated except as reasonably necessary to register domain names or </span><br />
<span style="font-family: Courier New, Courier, monospace;">modify existing registrations; the Data in VeriSign Global Registry </span><br />
<span style="font-family: Courier New, Courier, monospace;">Services' ("VeriSign") Whois database is provided by VeriSign for </span><br />
<span style="font-family: Courier New, Courier, monospace;">information purposes only, and to assist persons in obtaining information </span><br />
<span style="font-family: Courier New, Courier, monospace;">about or related to a domain name registration record. VeriSign does not </span><br />
<span style="font-family: Courier New, Courier, monospace;">guarantee its accuracy. By submitting a Whois query, you agree to abide </span><br />
<span style="font-family: Courier New, Courier, monospace;">by the following terms of use: You agree that you may use this Data only </span><br />
<span style="font-family: Courier New, Courier, monospace;">for lawful purposes and that under no circumstances will you use this Data </span><br />
<span style="font-family: Courier New, Courier, monospace;">to: (1) allow, enable, or otherwise support the transmission of mass </span><br />
<span style="font-family: Courier New, Courier, monospace;">unsolicited, commercial advertising or solicitations via e-mail, telephone, </span><br />
<span style="font-family: Courier New, Courier, monospace;">or facsimile; or (2) enable high volume, automated, electronic processes </span><br />
<span style="font-family: Courier New, Courier, monospace;">that apply to VeriSign (or its computer systems). The compilation, </span><br />
<span style="font-family: Courier New, Courier, monospace;">repackaging, dissemination or other use of this Data is expressly </span><br />
<span style="font-family: Courier New, Courier, monospace;">prohibited without the prior written consent of VeriSign. You agree not to </span><br />
<span style="font-family: Courier New, Courier, monospace;">use electronic processes that are automated and high-volume to access or </span><br />
<span style="font-family: Courier New, Courier, monospace;">query the Whois database except as reasonably necessary to register </span><br />
<span style="font-family: Courier New, Courier, monospace;">domain names or modify existing registrations. VeriSign reserves the right </span><br />
<span style="font-family: Courier New, Courier, monospace;">to restrict your access to the Whois database in its sole discretion to ensure </span><br />
<span style="font-family: Courier New, Courier, monospace;">operational stability. VeriSign may restrict or terminate your access to the </span><br />
<span style="font-family: Courier New, Courier, monospace;">Whois database for failure to abide by these terms of use. VeriSign </span><br />
<span style="font-family: Courier New, Courier, monospace;">reserves the right to modify these terms at any time. </span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">The Registry database contains ONLY .COM, .NET, .EDU domains and</span><br />
<span style="font-family: Courier New, Courier, monospace;">Registrars.</span><br />
<span style="font-family: Courier New, Courier, monospace;">Registration Service Provided By: DOMAIN.CO.IN</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;">Domain Name: THEDOMAINZ.COM</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> Registration Date: 27-Feb-2011 </span><br />
<span style="font-family: Courier New, Courier, monospace;"> Expiration Date: 27-Feb-2013 </span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> Status:RENEWAL HOLD</span><br />
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>Note: This Domain Name has expired. In this status the domain name </span><br />
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>is inactive. This domain name will be activated once it is renewed.</span><br />
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span> The Owner of this domain name can renew this domain name from their control panel. </span><br />
<span style="font-family: Courier New, Courier, monospace;"><span class="Apple-tab-span" style="white-space: pre;"> </span>If this domain name is not renewed by 08-Apr-2013, it will be permanently deleted. </span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> Name Servers: </span><br />
<span style="font-family: Courier New, Courier, monospace;"> ns1.aimdomains.com</span><br />
<span style="font-family: Courier New, Courier, monospace;"> ns2.aimdomains.com</span><br />
<span style="font-family: Courier New, Courier, monospace;"> ns3.aimdomains.com</span><br />
<span style="font-family: Courier New, Courier, monospace;"> ns4.aimdomains.com</span><br />
<br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> Registrant Contact Details:</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Aim Domain Solutions Pvt Ltd</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Domain Admin (domains@aim.co.in)</span><br />
<span style="font-family: Courier New, Courier, monospace;"> 30/171 Mahatma Gandhi Road</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Kumaran Nagar, Padi</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Chennai</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Tamil Nadu,600050</span><br />
<span style="font-family: Courier New, Courier, monospace;"> IN</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Tel. +91.9940422121</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> Administrative Contact Details: </span><br />
<span style="font-family: Courier New, Courier, monospace;"> Aim Domain Solutions Pvt Ltd</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Domain Admin (domains@aim.co.in)</span><br />
<span style="font-family: Courier New, Courier, monospace;"> 30/171 Mahatma Gandhi Road</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Kumaran Nagar, Padi</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Chennai</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Tamil Nadu,600050</span><br />
<span style="font-family: Courier New, Courier, monospace;"> IN</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Tel. +91.9940422121 </span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> Technical Contact Details: </span><br />
<span style="font-family: Courier New, Courier, monospace;"> Aim Domain Solutions Pvt Ltd</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Domain Admin (domains@aim.co.in)</span><br />
<span style="font-family: Courier New, Courier, monospace;"> 30/171 Mahatma Gandhi Road</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Kumaran Nagar, Padi</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Chennai</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Tamil Nadu,600050</span><br />
<span style="font-family: Courier New, Courier, monospace;"> IN</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Tel. +91.9940422121 </span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
<span style="font-family: Courier New, Courier, monospace;"> Billing Contact Details: </span><br />
<span style="font-family: Courier New, Courier, monospace;"> Aim Domain Solutions Pvt Ltd</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Domain Admin (domains@aim.co.in)</span><br />
<span style="font-family: Courier New, Courier, monospace;"> 30/171 Mahatma Gandhi Road</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Kumaran Nagar, Padi</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Chennai</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Tamil Nadu,600050</span><br />
<span style="font-family: Courier New, Courier, monospace;"> IN</span><br />
<span style="font-family: Courier New, Courier, monospace;"> Tel. +91.9940422121 </span><br />
<br />
<span style="font-family: Courier New, Courier, monospace;">The data in this whois database is provided to you for information purposes </span><br />
<span style="font-family: Courier New, Courier, monospace;">only, that is, to assist you in obtaining information about or related to a </span><br />
<span style="font-family: Courier New, Courier, monospace;">domain name registration record. We make this information available "as is",</span><br />
<span style="font-family: Courier New, Courier, monospace;">and do not guarantee its accuracy. By submitting a whois query, you agree </span><br />
<span style="font-family: Courier New, Courier, monospace;">that you will use this data only for lawful purposes and that, under no </span><br />
<span style="font-family: Courier New, Courier, monospace;">circumstances will you use this data to: </span><br />
<span style="font-family: Courier New, Courier, monospace;">(1) enable high volume, automated, electronic processes that stress or load </span><br />
<span style="font-family: Courier New, Courier, monospace;">this whois database system providing you this information; or </span><br />
<span style="font-family: Courier New, Courier, monospace;">(2) allow, enable, or otherwise support the transmission of mass unsolicited, </span><br />
<span style="font-family: Courier New, Courier, monospace;">commercial advertising or solicitations via direct mail, electronic mail, or </span><br />
<span style="font-family: Courier New, Courier, monospace;">by telephone. </span><br />
<span style="font-family: Courier New, Courier, monospace;">The compilation, repackaging, dissemination or other use of this data is </span><br />
<span style="font-family: Courier New, Courier, monospace;">expressly prohibited without prior written consent from us. The Registrar of </span><br />
<span style="font-family: Courier New, Courier, monospace;">record is PDR Ltd. d/b/a PublicDomainRegistry.com. </span><br />
<span style="font-family: Courier New, Courier, monospace;">We reserve the right to modify these terms at any time. </span><br />
<span style="font-family: Courier New, Courier, monospace;">By submitting this query, you agree to abide by these terms.</span>nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com4tag:blogger.com,1999:blog-8951659301269120607.post-21438226556719079422013-02-21T15:11:00.001-08:002013-02-21T18:39:24.461-08:00W: GPG error: http://nginx.org squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62If you get that error, add nginx public key to your keyring like this:<br />
<blockquote class="tr_bq">
<span style="font-family: Courier New, Courier, monospace;">curl http://nginx.org/packages/keys/nginx_signing.key | sudo apt-key add -</span></blockquote>
...then you should be able to run `sudo apt-get update` on your newly added nginx repos.<br />
This was on Debian 6, should work on ubuntu too.nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-44359042803806507802013-01-21T19:51:00.000-08:002013-01-21T19:54:41.515-08:00Reddit InsightPay less attention to finding something that you like to do and pay more attention to finding something that you would like to be. If you only allow yourself to motivated by things which make you feel pleasant doing them, then you're not going to have to work very hard, are you? There aren't many things in life that are awesome and worth having that at some point are not going to feel like a chore. Everything can become a chore, even playing video games, or watching movies, or hanging out with friends. But we don't notice this because when we don't want to watch movies, or play video games, or hang out with friends, we simply switch it off because there's no reason to keep doing it if it's not fun.
But anything in your life that is going to be fulfilling is going to be hard to do. It's going to suck sometimes, but that's often exactly what will make it all worthwhile. The trick is not to find something which you always feel pleasant doing, it's to look ahead a few steps and to find your bliss - find out the kind of person you would like to be, or the kind of lifestyle that you would like to live, because pursuing a goal like this will make all of the intermediary chores worthwhile. And you may find that the "chores" become enjoyable in their own respect as well.
If you have absolutely no direction and no means, if there's nothing you enjoy doing and you haven't had any luck finding a goal for yourself in the future, the trick is to start failing. Your bliss is not going to just come to you, wrapped in a package, neatly labeled with instructions, you might have to actually go and find out for yourself what it looks like. Make your best guess at what it is, and go out and do it. Never give up because it's too hard, or because you don't like what it takes to get there, or because your not absolutely certain that this is the right path for yourself - as long as the fundamental hypothesis that led you down this path hasn't changed, keep slogging. If you work hard enough, and fail big enough, you might eventually discover what your bliss is. <em>Then</em> you can actually go out and start chasing it. You may have to try and fail at many different types of things before you find it, and almost certainly the first thing you go after won't be the right thing for you, but it's not going to come to you just sitting around and waiting until you know for sure that you're going to like something. You have to go out and fail in order to discover yourself.
In the end, there is no "risk" that needs mitigating. If you spend the next four years building a fiberglass sailboat in your garage, and it turns out that you hate sailing, and hate working with fiberglass and doing carpentry, it's true, those skills won't be very useful to you. But you will be four years closer to finding your bliss than you were when you set out. Now you have a good idea of a few things that you really don't like doing, and that narrows your search down a little bit. You've also got really good at slogging through something you don't like, so that it will be easier to slog through more things in search of that bliss.
It's like your first job: it's meant to suck. Never would I advise someone to take their dream career as their very first job, even if it was offered to them right away. You're supposed to have a shitty time of your first job. Then, when you get a decent job, you are able to appreciate it for what it is. It won't be nearly as hard, nearly as menial. You will be able to distinguish the things that suck about all jobs (having to keep to a schedule, reporting to bosses, stress) from the things that are incredible about your own job. If, however, you went straight to your dream career first, you would have no appreciation for it and you wouldn't enjoy it at all. You would feel stress, you would feel exhausted at times, and you would wonder: might there be another job out there in the world which didn't have these things? The answer, of course, would be no, but because you never took the time to do the groundwork and slog through the shit, you would have no appreciation for what you have.nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-23362068581705996742013-01-14T19:31:00.001-08:002013-01-14T19:31:40.659-08:00What's a lexical scope?<blockquote class="tr_bq">
<span font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 13px; line-height: 17px;">A region where some variable can exist (i.e., a scope) defined by the structure of your code (i.e., lexically). For example, in most languages, a function defines a lexical scope; any variable declared inside the function is inaccessible outside of it.</span></blockquote>
-Eevee [<a href="http://stackoverflow.com/questions/150129/what-is-a-lambda/150185#comment18774233_150185">Source</a>]<br />
<br />
I was looking around for some definition for this the other day, ended up defining lexical instead which gave me the general idea.<br />
Found this definition today on stackexchange, reposting here for easy google-ability :-)nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-54371160113765929692013-01-08T09:12:00.001-08:002013-01-08T09:12:35.272-08:00I got 2 comments today!And they were both about how to do something I posted in a better/alternative way:<br />
<br />
1. <a href="http://nakedproof.blogspot.com/2012/09/how-to-strip-file-extension-in-shell.html?showComment=1357659641894#c2881996741671751528">Today I learned about the basename linux utility</a><br />
2. <a href="http://nakedproof.blogspot.com/2012/09/msp430-ez430-rf2500-on-arch-linux.html?showComment=1357653118119#c1396349607981144183">And was further exposed to udev rules</a><br />
<br />
Thanks internet for keeping information flowing :-)nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-91490157113294682802012-11-08T22:19:00.002-08:002012-11-08T22:19:28.439-08:00How I Calculate a Proper TipI was just thinking about tipping while looking at a receipt just now, and decided to let the world in on how I come up with the appropriate amount (in this case at least).<br />
I always tip 20%, because it's the upper end of what I've heard to be the spectrum 15-20% and it makes for relatively easy calculation.<br />
My check was $14.41, divide by 10 (move decimal point left one space) to get 1.44 and multiply by 2 to get to 20%, I saw 1.44 was close to 1.5 so I just made it an even $3 which comes to a 20.8% tip.<br />
<br />
NotBad.JPGnakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-35448843254062232812012-11-01T01:06:00.002-07:002012-11-01T01:06:41.863-07:00Arch Linux VPS and glibc upgrade issue<br />
So I just got a VPS with Archx86_64 and had some trouble with the glibc upgrade (again), I've been following various guides and ran into a little hiccup with glibc that I haven't seen elsewhere, there were files owned by util-linux-ng in /lib, I just had to sync that package explicitly and it was removed and replaced util-linux and glibc installed fine :)<br />
<blockquote class="tr_bq">
[root@lovejes ~]# find /lib -exec pacman -Qo -- {} +<br />error: cannot determine ownership of directory '/lib'<br />/lib/libcrypt.so.1 is owned by glibc 2.16.0-99<br />/lib/libnss_hesiod-2.16.so is owned by glibc 2.16.0-99<br />/lib/libresolv-2.16.so is owned by glibc 2.16.0-99<br />/lib/libpcprofile.so is owned by glibc 2.16.0-99<br />/lib/libuuid.so.1.3.0 is owned by util-linux-ng 2.17.2-2<br />/lib/libcidn.so.1 is owned by glibc 2.16.0-99<br />/lib/libresolv.so.2 is owned by glibc 2.16.0-99<br />/lib/libuuid.so.1 is owned by util-linux-ng 2.17.2-2<br />/lib/libnss_files-2.16.so is owned by glibc 2.16.0-99<br />/lib/librt.so.1 is owned by glibc 2.16.0-99<br />/lib/libBrokenLocale-2.16.so is owned by glibc 2.16.0-99<br />/lib/libnss_nisplus-2.16.so is owned by glibc 2.16.0-99<br />/lib/libblkid.so.1 is owned by util-linux-ng 2.17.2-2<br />/lib/libnss_dns-2.16.so is owned by glibc 2.16.0-99<br />/lib/libSegFault.so is owned by glibc 2.16.0-99<br />/lib/libc-2.16.so is owned by glibc 2.16.0-99<br />/lib/libdl-2.16.so is owned by glibc 2.16.0-99<br />/lib/libBrokenLocale.so.1 is owned by glibc 2.16.0-99<br />/lib/libpthread-2.16.so is owned by glibc 2.16.0-99<br />/lib/libthread_db-1.0.so is owned by glibc 2.16.0-99<br />/lib/ld-linux-x86-64.so.2 is owned by glibc 2.16.0-99<br />/lib/libm-2.16.so is owned by glibc 2.16.0-99<br />/lib/libnss_nis-2.16.so is owned by glibc 2.16.0-99<br />/lib/libnss_compat.so.2 is owned by glibc 2.16.0-99<br />/lib/libdl.so.2 is owned by glibc 2.16.0-99<br />/lib/libnss_hesiod.so.2 is owned by glibc 2.16.0-99<br />/lib/librt-2.16.so is owned by glibc 2.16.0-99<br />/lib/libmemusage.so is owned by glibc 2.16.0-99<br />/lib/libutil.so.1 is owned by glibc 2.16.0-99<br />/lib/libblkid.so.1.1.0 is owned by util-linux-ng 2.17.2-2<br />/lib/ld-2.16.so is owned by glibc 2.16.0-99<br />/lib/libpthread.so.0 is owned by glibc 2.16.0-99<br />/lib/libnss_files.so.2 is owned by glibc 2.16.0-99<br />/lib/libutil-2.16.so is owned by glibc 2.16.0-99<br />/lib/libanl.so.1 is owned by glibc 2.16.0-99<br />/lib/libcrypt-2.16.so is owned by glibc 2.16.0-99<br />/lib/libnss_db.so.2 is owned by glibc 2.16.0-99<br />/lib/libnsl.so.1 is owned by glibc 2.16.0-99<br />/lib/libcidn-2.16.so is owned by glibc 2.16.0-99<br />/lib/libanl-2.16.so is owned by glibc 2.16.0-99<br />/lib/libnss_db-2.16.so is owned by glibc 2.16.0-99<br />/lib/libm.so.6 is owned by glibc 2.16.0-99<br />/lib/libnss_dns.so.2 is owned by glibc 2.16.0-99<br />/lib/libnss_compat-2.16.so is owned by glibc 2.16.0-99<br />/lib/libnss_nis.so.2 is owned by glibc 2.16.0-99<br />/lib/libnss_nisplus.so.2 is owned by glibc 2.16.0-99<br />/lib/libthread_db.so.1 is owned by glibc 2.16.0-99<br />/lib/libnsl-2.16.so is owned by glibc 2.16.0-99<br />/lib/libc.so.6 is owned by glibc 2.16.0-99<br />[root@lovejes ~]# pacman -S util-linux-ng<br />resolving dependencies...<br />looking for inter-conflicts...<br />:: util-linux and util-linux-ng are in conflict. Remove util-linux-ng? [y/N] y</blockquote>
<div>
<br /></div>
nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-62774476058780604742012-10-30T10:55:00.000-07:002012-10-30T10:55:42.957-07:00Github.com won't reliably resolve when pulling/pushingIt started a couple months ago, it was confusing at first, I thought maybe my remote address was screwed up, or I had the wrong public key on github... but it just seems really unreliable. The message looks like this a lot of the time:<br />
<blockquote class="tr_bq">
<blockquote class="tr_bq">
[nak@arch Guru]$ git pull origin development</blockquote>
<blockquote class="tr_bq">
ssh: Could not resolve hostname github.com: Name or service not known</blockquote>
<blockquote class="tr_bq">
fatal: Could not read from remote repository.</blockquote>
<blockquote class="tr_bq">
<br /></blockquote>
<blockquote class="tr_bq">
Please make sure you have the correct access rights</blockquote>
<blockquote class="tr_bq">
and the repository exists.</blockquote>
</blockquote>
<br />
Then I press up-arrow, enter... over and over again until I'm able to get a connection, and then it works fine...<br />
<br />
I figured I'd write about this in case others are googling around, you're not alone, but I don't know the solution yet. Maybe I'll do a wireshark session to see if I can dissect anything.<br />
<br />
Until next time,<br />
Eternally Confused,<br />
Naked Proof~nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com2tag:blogger.com,1999:blog-8951659301269120607.post-85521705740630985212012-10-30T07:36:00.001-07:002012-10-30T07:36:12.683-07:00Blog of confusionThis really seems to be a blog documenting my confusion, and then what proceeds from that confusion:<br />
A lot of the time more confusion, or confusion disguised as revelation, and then maybe if I am lucky, true revelation.<br />
<br />
Like my last post on coffeescript -cw, I'm not sure if there's still an issue with that anymore, did vim patch something? Was I really confused and blaming something that wasn't having problems? Eesh!nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-23324341558250836282012-10-17T10:30:00.000-07:002013-10-13T01:15:54.137-07:00Coffee script `file removed` while using compile/watch switches with vimI thought it was just my main Arch system, but I've recently been forced to use my clunky old laptop to develop and have found that there is a race condition in coffee-script when saving with vim on there too.<br />
<br />
<b>I fixed the problem with<strike> <a href="https://github.com/naked/coffee-script/commit/59f4c331ec36ac73083bc3d5c19a07288ad67730">this simple patch</a> </strike>(a hacky 100ms setTimeout to add a short pause)</b>, I was hoping the CPU on my laptop was slow enough that the logic would line up without the patch. This was not the case.<br />
<br />
Here's what I did since that patch link is now broken:<br />
<br />
<b>in command.coffee I have this:</b><br />
<br /><span style="font-family: courier new,monospace;"># Watch a source CoffeeScript file using `fs.watch`, recompiling it every<br /># time the file is updated. May be used in combination with other options,<br /># such as `--lint` or `--print`.<br />watch = (source, base) -><br /><br /> prevStats = null<br /> compileTimeout = null<br /><br /> watchErr = (e) -><br /> if e.code is 'ENOENT'<br /> return if sources.indexOf(source) is -1<br /> try<br /><b> vimTimeout = wait 100, -></b><br /> rewatch()<br /> compile()<br /> catch e<br /> removeSource source, base, yes<br /> compileJoin()<br /><br /> else throw e</span><br />
<br />
<br />
ALSO: <b><a href="http://srackham.wordpress.com/2011/10/20/compiling-coffeescript-with-vim/">This blog entry</a> seems to have a good suggestion</b>, I may try it myself!<br />
<br />
When I brought the issue up in the coffee-script IRC channel a few months ago, there were some very defensive people (person?) saying the problem wasn't with coffee-script and the -cw switch works fine with vim.<br />
<br />
This has not been the case for me.<br />
<br />
I hope this helps some people, because I don't think I'm the only one who's experiencing this, or will experience this.<br />
<br />
Please let me know if this issue gets patched, I submitted a pull request, but I deleted it due to lack of response and the embarrassingly nasty little hack (although similar hacks are used throughout the compiler to deal with race conditions!).<br />
<br />
Anyway, much love to coffee-script for now, good luck fellow hackers.nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-73954407486867924012012-10-05T12:15:00.002-07:002012-10-05T12:17:22.580-07:00Rant to Self: Arduino Development of Haptic Compass on Arch Linux<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; margin-left: 1em; text-align: right;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTFXUWTWUIgcJXnGokM3iVbNqx_TziltRFTifw1oWZPXwJno7atJwzwFQZPRJlp0AMxnTWlGcr4sa_x3gBGVnCP9V2dlGX74TJ4unnBQBAZ-9NNTk64R0PKHv2Cus6wKxzKeQkKNAemd0/s1600/ponduino.jpg" imageanchor="1" style="clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTFXUWTWUIgcJXnGokM3iVbNqx_TziltRFTifw1oWZPXwJno7atJwzwFQZPRJlp0AMxnTWlGcr4sa_x3gBGVnCP9V2dlGX74TJ4unnBQBAZ-9NNTk64R0PKHv2Cus6wKxzKeQkKNAemd0/s320/ponduino.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Poni Halp Me</td></tr>
</tbody></table>
Yesterday I was able to get the arduino development environment setup on Arch Linux AND get the compass module talking to the arduino over I2C (yay <a href="https://www.sparkfun.com/products/10530">pre-existing code</a>).<br />
<br />
A lot of the haptic compass projects I see are driving the vibrator motors directly from the digital pin on the arduino, naughty!<br />
<br />
I'll post how I used a transistor to switch each motor, even though I haven't done it yet :-P<br />
<br />
So now the hard part where I'm sort of flabbergasted at the moment. I have 6 registers of data spilling out magnetic field strength data for 3 axis, oh yeah the module I have exposed the DRY (data ready) pin from the compass chip, so I altered the sparkfun code to update continuously when that pin is high... high ... heh.<br />
<br />
Anyway. When the data is inspected as a signed integer, I seem to see values from -700 to 700 for each axis. I'll probably have to do something called 'vector addition' heh made that up, maybe, but like... I know I can't directly add or subtract the vectors, x and y are on the same plane and z is sticking out, and it seems like the higher the number the more aligned to north the axis is, negative is when the axis is "pointing" south.<br />
<br />
Also when an axis is pointing down towards the ground its a positive, when it's pointing towards the sky it's negative. Not too sure about this behavior yet.<br />
<br />
I should really read the data sheet more in depth now. Until next time!nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-9728714669089465842012-09-18T18:05:00.001-07:002012-09-18T18:05:16.881-07:00How to strip file extension in a bash shell script function<blockquote class="tr_bq">
FILENAME=`echo $1 | sed -e 's/\..*//g'`</blockquote>
From a BASH function take the first command line argument and strip off the extension and then assign it to the variable FILENAME.<br />
<br />
It's probably not the best way of doing it, but it's how it happened. I couldn't find any one liners from the googles :'(<br />
<br />
Post your better solution in the comments below!11111!!!!<br />
<br />
This is the total function (in my bash.bashrc):<br />
<br />
<blockquote class="tr_bq">
mk430 () {<br />
FILENAME=`echo $1 | sed -e 's/\..*//g'`<br />
msp430-gcc -mmcu=msp430f2274 -o $FILENAME.elf $1<br />
}</blockquote>
<div>
for compiling MSP430 C files to elfs, there's probably a better alias too!</div>
nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com2tag:blogger.com,1999:blog-8951659301269120607.post-26005687842299702212012-09-09T19:18:00.000-07:002012-09-17T19:15:36.549-07:00MSP430 eZ430-RF2500 on Arch LinuxHi, I didn't see much info on this particular model and Arch. So I'll log what I do here:<br />
<br />
I plugged in the USB dongle with the breakout board attached, ran lsusb which showed this entry:<br />
<br />
<blockquote class="tr_bq">
Bus 008 Device 004: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool</blockquote>
<div>
So far so good. Now I need to install some stuff:</div>
<blockquote class="tr_bq">
$ yaourt mspdebug-git</blockquote>
yaourt is a AUR package manager, you can do this manually by searching aur.archlinux.com and then installing the package with makepkg.<br />
<br />
The build fails:<b> make: /bin/install: Command not found</b><br />
I run these commands to make a soft-link to `which install`:<br />
<blockquote class="tr_bq">
$ cd /bin<br />
$ sudo ln -s /usr/bin/install install</blockquote>
<br />
<div>
then select <b>Restart building mspdebug-git? [y/N] y</b></div>
<div>
<br /></div>
<div>
The build succeeds and the package installs.</div>
<div>
I type...</div>
<blockquote class="tr_bq">
$ sudo mspdebug rf2500</blockquote>
because shamwowzow, I'm a frolicking alien and it connects to the device and gives me a prompt, I see the availiable commands and enter:<br />
<blockquote class="tr_bq">
(mspdebug) run</blockquote>
The light on the breakout board begins flashing, I plugin the other board and the green light turns on... signalling a wireless connection I suppose.<br />
I used sudo because I guess my normal user doesn't have permission to do this kind of magic yet, probably have to add it to some group.<br />
[EDIT]: $ sudo gpasswd -a <your username="username"> uucp</your><br />
<br />
<div style="text-align: center;">
<u><b>NOW TO TRY AND WRITE SOME CODE FOR THIS JOLLY WAG.</b></u></div>
<div style="text-align: center;">
<u><b><br /></b></u></div>
<div style="text-align: left;">
I <a href="http://aur.archlinux.org/packages.php?O=0&K=mspgcc&do_Search=Go">search AUR for mspgcc</a> for a gcc toolchain or whatever, and it shows me a lot of stuff. I dunno what to do so I read this <a href="http://karuppuswamy.com/wordpress/2010/10/14/setup-build-and-debug-environment-for-msp430-mcus-using-mspgcc-and-mspdebug-in-ubuntu-linux/">ubuntu guide</a> for some ideas. Then I read this <a href="http://losinggeneration.homelinux.org/2010/07/02/msp430-launchpad-on-linux/">arch linux guide</a> for another MSP430. Seems promising. I search AUR for MSP430, seems like there's a package called `<span style="background-color: white; color: #6c83b0; font-family: 'Bitstream Vera Sans', 'Lucida Grande', Arial, sans-serif; font-size: 14px; font-weight: bold;">gcc-msp430` </span> I'll try that...</div>
<blockquote class="tr_bq">
$ yaourt gcc-msp430</blockquote>
I type `1-3` to install the 3 packages... I lazily don't edit the PKGBUILDs like a lazy arch user that's prone to blowing off his feet because of silly mistakes. Things compile, things install, things download and repeat, I type `y` and `n` seemingly arbitrarily to get through this maze of discrete choice towards getting code into some carefully crafted silicon hanging in it's bare PCB off the dongle at the front of my PC....<br />
<br />
Wow. This takes a long time, I was running BOINC (like SETI for AIDS and malaria and protein folding) and turned it off so my CPU could focus on compiling all this MSP430 junk...<br />
<br />
<blockquote class="tr_bq">
The next patch would create the file ld/emulparams/msp430uni.sh,<br />
which already exists! Assume -R? [n]</blockquote>
Uh oh, I'm just going to press enter and hope the god of good defaults saves me.<br />
<br />
<blockquote class="tr_bq">
Apply anyway? [n]<br />
Skipping patch.<br />
1 out of 1 hunk ignored</blockquote>
Uh oh, now its doing the same thing with `msp430.em`... I'm going to ctrl-c and try putting `y` instead...<br />
I just ran `yaourt gcc-msp430` again, it's retrieving sources.... I dont think yaourt has a cache >.><br />
<br />
Ugh. That was a mistake.<br />
Ok so I pressed `y` to make it assume -R (which means reversed or something, idk) and now it finally came back with:<br />
<br />
<blockquote class="tr_bq">
make[4]: *** No rule to make target `emulparams/msp430uni.sh', needed by `emsp430.c'. Stop.<br />
make[4]: Leaving directory `/tmp/yaourt-tmp-nak/aur-mspgcc-binutils/src/binutils-2.21.1/ld'<br />
make[3]: *** [all-recursive] Error 1</blockquote>
<div>
going to "restart building" again and try just pressing enter like I did the first time... I really don't know what I'm doing at this point, as if I ever did... wow didn't even come to that point.</div>
<div>
<br /></div>
<div>
<blockquote class="tr_bq">
Targets (1): mspgcc-binutils-20120406-1<br />
Total Installed Size: 9.95 MiB<br />
Proceed with installation? [Y/n]<br />
(1/1) checking package integrity [#######################################] 100%<br />
(1/1) loading package files [#######################################] 100%<br />
(1/1) checking for file conflicts [#######################################] 100%<br />
error: failed to commit transaction (conflicting files)<br />
mspgcc-binutils: /usr/bin/msp430-addr2line exists in filesystem<br />
mspgcc-binutils: /usr/bin/msp430-ar exists in filesystem</blockquote>
</div>
<div>
...</div>
<div>
with a ton more "exists in filesystem" messages, then quits saying no packages were upgraded. I don't know what's happening, I don't think it does either.</div>
<div>
Well I guess I'll try and compile some <a href="http://karuppuswamy.com/wordpress/2010/10/14/setup-build-and-debug-environment-for-msp430-mcus-using-mspgcc-and-mspdebug-in-ubuntu-linux/">LED blinking code </a>from here and put it on there.</div>
<div>
<br /></div>
<div>
<blockquote class="tr_bq">
$ msp430-gcc -g -o led.elf led.c<br />
led.c:1:26: fatal error: msp430x20x3.h: No such file or directory<br />
compilation terminated.</blockquote>
</div>
<div>
Guess I need some headers... or something...</div>
<blockquote class="tr_bq">
$ yaourt msp430-libc</blockquote>
Uhh ok its doing mspgcc-binutils again... pray for it.<br />
Wow... I'm just not very good at yaourt, I've been installing crap I don't need by doing stuff like 1-3 ... I need to do a little cleaning after I'm done I think.<br />
<blockquote class="tr_bq">
$yaourt msp430mcu</blockquote>
this says it installs the headers... getting closer<br />
<br />
<blockquote class="tr_bq">
[nak@arch msp430]$ msp430-gcc -g -o led.elf led.c<br />
/usr/bin/msp430-ld: cannot open linker script file memory.x: No such file or directory<br />
collect2: ld returned 1 exit status</blockquote>
<div>
OKAY THIS IS THE -mmcu FOR THE eZ430-RF2500:<br />
<blockquote class="tr_bq">
msp430-gcc -mmcu=msp430f2274 -o led.elf led.c</blockquote>
</div>
it output an elf without any errors, now to put it on the board...<br />
<br />
WOOO ROCKSTAR FROM MARS<br />
<blockquote class="tr_bq">
$ sudo mspdebug rf2500<br />
(mspdebug) erase<br />
Erasing...<br />
(mspdebug) prog led.elf<br />
Erasing...<br />
Programming...<br />
Writing 154 bytes at 8000 [section: .text]...<br />
Writing 32 bytes at ffe0 [section: .vectors]...<br />
Done, 186 bytes total<br />
(mspdebug) run<br />
Running. Press Ctrl+C to interrupt...</blockquote>
<br />
<div>
And the LED is blinking~</div>
<div>
I'll created a compressed version of this sometime.</div>
nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com3tag:blogger.com,1999:blog-8951659301269120607.post-17473308178839484082012-07-30T11:56:00.001-07:002012-07-30T11:56:37.217-07:00Rave-O-Lution 309 Manual in EnglishIt was difficult to find this manual. I uploaded it a couple places<br />
<br />
<ul>
<li><a href="http://www.scribd.com/doc/101555490/309-Manual-En">Scribd</a></li>
<li><a href="http://mindsforge.com/pdf/309ManualEN.pdf">My Site</a></li>
</ul>nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-50684461043293046622012-07-25T13:30:00.001-07:002012-07-25T13:30:47.476-07:00cgoban won't start!Problem: cgoban can't find files.gokgs.com<br />
<br />
Solution: Realize you're running DNS caching and the IP must have just recently changed!<br />
<blockquote class="tr_bq">
sudo pdnsd-ctl record files.kgs.com delete</blockquote>
This is a very specific solution to my current setup, I just didn't know what was happening and thought maybe this hint would help someone else.nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com1tag:blogger.com,1999:blog-8951659301269120607.post-28155144567219424062012-05-31T22:02:00.002-07:002012-05-31T23:26:24.334-07:00I don't post here anymoreDo you know why?<br />
<br />
It's because I have tumblr, twitter, G+, indenti.ca, canv.as, etc accounts<br />
<br />
And I really haven't done many technical how to things lately (which is what I seem to be posting here now...)<br />
<br />
I did purchase a humble bundle for the first time (spent $12 as to not hurt the linux pay average :) )<br />
<br />
I'm installing Amnesia: The Dark Descent now, look at this beautiful picture:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-R4occRYH0Q8/T8hMoxXF1aI/AAAAAAAABK4/5g9aagiYqqU/s1600/amnesia_install.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="http://3.bp.blogspot.com/-R4occRYH0Q8/T8hMoxXF1aI/AAAAAAAABK4/5g9aagiYqqU/s320/amnesia_install.png" width="320" /></a></div>
awww yeah, I'm going to scare my memory blank. I've played it before at my friends house a bit, but I think it would be better to be alone and in the dark with headphones :(<br />
<br />
The bundle also includes a bunch of other cool games.<br />
<br />
Anyway ttyl blogger.<br />
<br />
<br />
EDIT:<br />
Yeah... mfw arch linux: <a href="https://bbs.archlinux.org/viewtopic.php?pid=1109170">https://bbs.archlinux.org/viewtopic.php?pid=1109170 </a><br />
I might just use windows XP for this >.<<br />
<br />
1) You can't use the open sauce gfx drivers for amnesia, boo<br />
2) SwordAndSourcery is 32 bit so... yeah I'm going to have to do the same dance with this as I did for serious sam... I don't think so at the moment...<br />
3) Not going to mess with the other games on linux here, I'm just going to windoze it.nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-52453430895684955572012-03-25T22:22:00.002-07:002012-03-25T22:22:56.718-07:00Serious Sam native on a x86_64 archI used the <a href="http://liflg.org/?catid=6&gameid=71">installer from here</a><br />
And installed these libraries:<br />
<br />
lib32-sdl<br />lib32-sdl_image<br />lib32-smpeg (AUR)<br />lib32-sdl_mixer (AUR)<br />lib32-sdl_net (AUR)<br />lib32-sdl_ttf<br />lib32-libogg<br />lib32-libvorbis<br />lib32-libjpeg<br />lib32-libpng<br />lib32-zlib<br />lib32-freetype2<br />lib32-libgl<br />lib32-ati-dri<br />
<br />
I have to run the game as root for some reason (sudo) or else it seg-faults. And audio doesn't work. Oh well!nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-65141901438753831822012-03-13T22:48:00.000-07:002012-04-14T16:08:15.037-07:00Serious Sam On Arch 86_64 and wine 1.4EDIT: <br />
Well I got it working using the linux installer
software, so I was able to run it natively. Sound hasn't worked yet and
you need to install a bunch of lib32 versions of some libraries. You're
going to have to go through the AUR and makepkg a few times.<br />
If I
can get sound to work I'll post about it, wine was no fun, especially
trying to get directX working... non free software is hell!<br />
<br />
<br />
Ripped a copy of the iso:<br />
ss.iso<br />
<br />
Installed fuseiso to mount the file:<br />
sudo pacman -S fuseiso<br />
<br />
Installed wine to try and run the Setup.exe:<br />
sudo pacman -S wine<br />
<br />
wine Setup.exe<br />
<br />
Then wine installed Gecko... twice :-|<br />
80% through installing Gecko this splashscreen comes up: <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-75siX9V4Uiw/T2Amaf5DKYI/AAAAAAAABEo/0GAIMwugGOc/s1600/Screenshot+-+031312+-+22:03:18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://4.bp.blogspot.com/-75siX9V4Uiw/T2Amaf5DKYI/AAAAAAAABEo/0GAIMwugGOc/s320/Screenshot+-+031312+-+22:03:18.png" width="320" /></a></div>
<br />
Cool, clicking install, things are going well, I see a message about Direct X 8 and think "This might be an issue..."<br />
<br />
I go to the wine.desktop menu and attempt to open, d'oh: CD check!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-bYvaorVHg-zqVvklga3e_-SCTPY6W0B4BiV4YsVFcVlgTeeqYHhC3Llat8SOZ5Bzy-WrCd-F0tOcdrxvI0av5SWn4hRm5GCwgjGeiojcrgEbTEskBZG-f-alzaIpjfLhzp3SYX-KJNw/s1600/Screenshot+-+031312+-+22:07:20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-bYvaorVHg-zqVvklga3e_-SCTPY6W0B4BiV4YsVFcVlgTeeqYHhC3Llat8SOZ5Bzy-WrCd-F0tOcdrxvI0av5SWn4hRm5GCwgjGeiojcrgEbTEskBZG-f-alzaIpjfLhzp3SYX-KJNw/s1600/Screenshot+-+031312+-+22:07:20.png" /></a></div>
I google for "serious sam no cd crack" and find a patched exe in a .7z archive, rename the original to -og.exe and then copy over the nocd version here: /home/nak/.wine/drive_c/Program Files (x86)/Croteam/Serious Sam/Bin<br />
and I try again... and it breaks<br />
<blockquote class="tr_bq">
Unhandled exception: page fault on read access to 0xffffffff in 32-bit code (0x7dc87467).<br />
Register dump:<br />
CS:0023 SS:00 etc... etc...</blockquote>
...oops I need to install directx and make sure that's working >.<nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com2tag:blogger.com,1999:blog-8951659301269120607.post-83512555990146286592012-03-12T23:18:00.000-07:002012-03-12T23:18:31.288-07:00GnuGo + Node.JS == Go babies!<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-pG_Uyx8o8Rg/T17jIRnxapI/AAAAAAAABEc/Rpssrdjab2E/s1600/gnugonode.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-pG_Uyx8o8Rg/T17jIRnxapI/AAAAAAAABEc/Rpssrdjab2E/s320/gnugonode.png" width="247" /></a></div>
So I was working on getting Node.JS hooked up to Fuego go engine yesterday, but I ran into a bunch of problems. The weirdest being the stdout data buffer would cut off at 250bytes with no further data events being emitted :( uh.. wut? anyway:<br />
<br />
No such problems with GnuGo (so far), just ran this little test alternating black/white peices on a column and displaying an ascii board (not very useful in the grand scheme, but nice to see things are working much more smoothly :D)<br />
<br />
Maybe I'll write an actual module for hooking this up in a nice abstract and easy to use way. I was looking at the node-redis codes last night to get ideas as I was trying to write a module for Fuego (glad I gave up, it seems to be a more powerful computer go player, but all I'm interested is the system for game rules, score keeping and stuff like that).<br />
<br />
This bridge will open a lot of web-based go goodies once established :)<br />
<br />
One final goal for this is a webpage where everyone can vote on where the current color should move next and after 12 hours or so, count votes and place the stone: a game through democracy/hivemind antics.<br />
<br />
and then there's the obvious thing to do: browser-based realtime games against people/cpu with socket.io!<br />
<br />
So right now I'm at the point of deciding whether to work hard on this backend glue, or start hacking up an HTML5 canvas/codes for the frontend side of things. Because I could say "ah screw the rest of the Node.JS devs that would like to have a nice gnugo module" and just make everything explicit (vs abstract) for the voting app.<br />
<br />
blerpnakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com3tag:blogger.com,1999:blog-8951659301269120607.post-25594953594580843392012-03-09T22:19:00.003-08:002012-03-09T22:19:55.871-08:00TodayOnline journaling now? Tsk tsk. ;)<br />
What has this blog become?!<br />
<br />
Anyway today spent some time doing real life stuff which was different. I will also say it was good for me.<br />
<br />
I've been working on building a cultural-bubble around myself. Cutting myself off from mainstream, sidestream, wigglestream, etc.<br />
<br />Family, friends (internet and otherwise)<br />
<br />
Website communities, IRC chats.<br />
<br />
It could go further. I could stay logged out of AIM/G-Talk.<br />
<br />
I do HEAR :stuff: (I like to call the stuff memes, idea genetics) from the TV across the hallway when it's on. And my dad puts NPR on every once in a while. Like, I had no idea about this Kony fellow (I dont know if that's how you spell it) until I heard some news program talk about it from the TV across the hall. Then I went on canv.as (I should block that site again...) and saw all the Kony remixes (no pun). Haven't seen the youtube video, and I plan to keep it that way.<br />
<br />
Everything is coming in your head to put it crudely, and you create a zygote through interpreting the meme. What goes from the mating and is expelled through your expressions is another meme that goes into other's heads so on and so forth. Words hardly make sense to me, its more of a shapely thing that occurs, evoking some sort of imagery of the real, or simulated construct.<br />
<br />
I can be negative about things that I see on the TV tube. CEO goes to work with his "low level" employees. Helps a few out, I see this as putting makeup on rotten meat. What little bit of "the problem" being shown to the world and being dressed up in Lisa Frank band-aids.<br />
<br />
I could go back and re-edit.... and I do a lot of the time, but sometimes I think to scramble an egg ruins it in a sense, but on the other hand, it makes it easier to consume.<br />
<br />
I drank a raw egg once, just to see what it felt like.<br />
<br />
I'm not sure if I want to continue down the rails path at the moment, it seems pretty cool, but it seems like a 80/20, where rails decides 80 and I wiggle around on the 20... I guess that's why it's called rails :P no real wiggle room, which can be useful in some situations, quick idea to market (as long as the idea can fit on a train!)<br />
<br />
However, I am not going to be so quick to give up Ruby, I think I might try to do some scripting with it next time I feel like reaching for Python or abusing Node.JS.<br />
<br />
But now part of me wants to write my own framework, on node probably. Maybe something that gives me the 80/20 of Rails, but since I wrote it I would know exactly what the 80 is, and could add features to the railway as needed instead of digging through massive API libraries. I like the idea of having JSON config files to setup ideas, then have the main program thing look at the JSON to setup the right stuff for whatever application needs.<br />
<br />
Something that I haven't found is a template language in the vein of EmbeddedRuBy or embeded PHP, actually, there is EJS (Embedded Javascript) but I haven't really figured that out yet, that was the last hiccup I had with Express before I gave up using it last time (Dotty was almost express until I said FORGET THIS. And had apache serve all the static files)...<br />
<br />
main.json<br />
<br />
{<br />
server: {<br />
port: 80,<br />
local_root: __dirname, <br />
static_dirs: ['images', 'javascript', 'styles'] } <br />
database: {<br />
require: 'mysql',<br />
client: createClient({user: 'root', password: 'root'}),<br />
models: ['models'];<br />
}<br />
<br />
etc . idk, maybe it could work, something like that but a bunch more stuff until it just looks unbearable :P<br />
<br />
whatever, gonna watch a movie, 1975...nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0tag:blogger.com,1999:blog-8951659301269120607.post-84845963557508426562012-03-08T22:17:00.002-08:002012-03-08T22:17:36.049-08:00From and ToI don't know if this will fit in a 140 character microblog so here goes:<br />
<br />
Coming from a long background of destructive hacking in my teens, every time I implement a new feature in one of my new-found love of constructive hacking I think: "How could I exploit this?"<br />
<br />
When working with sending data between the browser and the server, the developer has to remember that everything on the client side programming can be changed: What you would expect to be a JSON string could come in as some executable javascript instead... and run on your server if you have a javascript interpreter running: some NoSQL databases run JS to determine what data to send back to the main program, and Node.JS is completely javascript... I've never used .eval()...<br />
<br />
I still feel very new to this, terms like "Prototypal Inheritance" vs. "Classical Inheritance" don't mean anything to me, but they gnaw at the back of my head irking me on to learn more about ... stuff.<br />
<br />
I just started looking into Ruby on Rails today, partially kicked off by the Igor guy finding a insecure default setting and exploiting it on GitHub.com, and also kicked off by wanting something a little more compatible with MySQL than Node.JS express. I've been frustrated with that framework on multiple occasions... I'm not saying it's bad, it's just a difficult framework for me (at the moment) I still don't have a firm grasp of "middleware" and why I need certain types. The documentation assumes a skill-level and experience with other web-frameworks that I didn't have. However, I have come away from my (couple? three?) projects with Express "smarter" about web frameworks and the terminology in general.<br />
<br />
While looking at Ruby frameworks Sinatra and Rails, I was really tempted to go with Sinatra, I liked how it seemed to be simpler (as in Arch linux simple vs Ubuntu simple) but I think I repeated my actions with my Linux adventures:<br />
I started with Slackware, bumped into Ubuntu and fell in love with how easy it was.<br />
I started with Node.JS Express, decided to finally try Rails, and am enjoying all the defaults it provides. I am also new to the Ruby language, and am impressed by the simple and beautiful syntax that it uses.<br />
<br />
Anyway, I hope to start hacking away at a blog soon, I've almost finished the <a href="http://railsforzombies.org/">Rails for Zombies</a> course, but you don't really start "grokking" until your head start banging against the system for some hours outside of the classroom. The challenges are a great way to teach, but I don't feel like I'm retaining very well today... but I shouldn't be too hard on myself it's only been a short amount of time...<br />
<br />
It's neat to observe the rant style change from emotional poetic of last year to technical ... I'm tempted to say poetic... but it's not ;)nakhttp://www.blogger.com/profile/11166524861572329835noreply@blogger.com0