Thursday, July 11, 2013
Experiment
You're doing well so far, if you'd please continue here: https://twitter.com/uberscientist/status/355493745166258177
Thursday, May 9, 2013
Some things I want to learn
GNU Debugger (gdb)
Mandarin 你好!
Graph Database (Neo4j)
More python, maybe find and use a websockets library.
Laser Cutter and open source 2D/3D CAD
Kickstarter
Mandarin 你好!
Graph Database (Neo4j)
More python, maybe find and use a websockets library.
Laser Cutter and open source 2D/3D CAD
Kickstarter
Wednesday, April 17, 2013
Stick-N-Find Android App
Looking for the Android app? Nothing in the google play store? It's still in alpha!
EDIT 5/17/13: It seems to be in the play store now.
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:
Listing 1
Listing 2
You can try pairing with this app:
https://play.google.com/store/apps/details?id=com.nordic.nordicbleapp
(Thanks to a comment by Brian M.)
Or if you have a Samsung S3 you can try their code (reported to be crashing instantly and other problems):
https://docs.google.com/file/d/0ByXd054LiTnBQWZ2aXlEdloyRFE/edit
Leave any additional information in a comment and I'll move it up here.
Here's the official indiegogo comments section... I'm staying out of that pig sty!
EDIT 5/17/13: It seems to be in the play store now.
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:
Listing 1
Listing 2
You can try pairing with this app:
https://play.google.com/store/apps/details?id=com.nordic.nordicbleapp
(Thanks to a comment by Brian M.)
Or if you have a Samsung S3 you can try their code (reported to be crashing instantly and other problems):
https://docs.google.com/file/d/0ByXd054LiTnBQWZ2aXlEdloyRFE/edit
Leave any additional information in a comment and I'll move it up here.
Here's the official indiegogo comments section... I'm staying out of that pig sty!
Tuesday, April 16, 2013
How to fix being stuck on "Checking bootstrapper version ..."
So you're trying to install a Steam dedicated server. The really helpful wiki says:
The wiki also gives you the rules:
You can just use `iptables-restore < iptables.my.rules` once you save those rules to your rules file, rules rules.
OK, thought I'd share because I was just restarting the steam process a million times :-(
The first run of ./steam may hang while checking the bootstrap version. You will need to retry several times until it completes.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).
The wiki also gives you the rules:
-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
You can just use `iptables-restore < iptables.my.rules` once you save those rules to your rules file, rules rules.
OK, thought I'd share because I was just restarting the steam process a million times :-(
Friday, March 1, 2013
What do I do if my domain name registrar's site's domain is expired
UPDATE:
I found that it was a reseller of Wild West Domains, 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...
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.
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 :/
-------old post follows------
I used to go through this site, thedomainz.com ...
Not anymore it seems. They changed their name once since I started doing business with them in high school from 4nic (something like that)...
This is not good.
TheDomainz.com is down, anyone else who was with them?
$ whois thedomainz.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
Domain Name: THEDOMAINZ.COM
Registrar: PDR LTD. D/B/A PUBLICDOMAINREGISTRY.COM
Whois Server: whois.PublicDomainRegistry.com
Referral URL: http://www.PublicDomainRegistry.com
Name Server: DNS.PARKPAGE.FOUNDATIONAPI.COM
Name Server: DNS2.PARKPAGE.FOUNDATIONAPI.COM
Status: clientTransferProhibited
Updated Date: 28-feb-2013
Creation Date: 27-feb-2011
Expiration Date: 27-feb-2014
>>> Last update of whois database: Fri, 01 Mar 2013 09:06:28 UTC <<<
NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
registrar. Users may consult the sponsoring registrar's Whois database to
view the registrar's reported date of expiration for this registration.
TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' ("VeriSign") Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability. VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
Registration Service Provided By: DOMAIN.CO.IN
Domain Name: THEDOMAINZ.COM
Registration Date: 27-Feb-2011
Expiration Date: 27-Feb-2013
Status:RENEWAL HOLD
Note: This Domain Name has expired. In this status the domain name
is inactive. This domain name will be activated once it is renewed.
The Owner of this domain name can renew this domain name from their control panel.
If this domain name is not renewed by 08-Apr-2013, it will be permanently deleted.
Name Servers:
ns1.aimdomains.com
ns2.aimdomains.com
ns3.aimdomains.com
ns4.aimdomains.com
Registrant Contact Details:
Aim Domain Solutions Pvt Ltd
Domain Admin (domains@aim.co.in)
30/171 Mahatma Gandhi Road
Kumaran Nagar, Padi
Chennai
Tamil Nadu,600050
IN
Tel. +91.9940422121
Administrative Contact Details:
Aim Domain Solutions Pvt Ltd
Domain Admin (domains@aim.co.in)
30/171 Mahatma Gandhi Road
Kumaran Nagar, Padi
Chennai
Tamil Nadu,600050
IN
Tel. +91.9940422121
Technical Contact Details:
Aim Domain Solutions Pvt Ltd
Domain Admin (domains@aim.co.in)
30/171 Mahatma Gandhi Road
Kumaran Nagar, Padi
Chennai
Tamil Nadu,600050
IN
Tel. +91.9940422121
Billing Contact Details:
Aim Domain Solutions Pvt Ltd
Domain Admin (domains@aim.co.in)
30/171 Mahatma Gandhi Road
Kumaran Nagar, Padi
Chennai
Tamil Nadu,600050
IN
Tel. +91.9940422121
The data in this whois database is provided to you for information purposes
only, that is, to assist you in obtaining information about or related to a
domain name registration record. We make this information available "as is",
and do not guarantee its accuracy. By submitting a whois query, you agree
that you will use this data only for lawful purposes and that, under no
circumstances will you use this data to:
(1) enable high volume, automated, electronic processes that stress or load
this whois database system providing you this information; or
(2) allow, enable, or otherwise support the transmission of mass unsolicited,
commercial advertising or solicitations via direct mail, electronic mail, or
by telephone.
The compilation, repackaging, dissemination or other use of this data is
expressly prohibited without prior written consent from us. The Registrar of
record is PDR Ltd. d/b/a PublicDomainRegistry.com.
We reserve the right to modify these terms at any time.
By submitting this query, you agree to abide by these terms.
I found that it was a reseller of Wild West Domains, 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...
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.
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 :/
-------old post follows------
I used to go through this site, thedomainz.com ...
Not anymore it seems. They changed their name once since I started doing business with them in high school from 4nic (something like that)...
This is not good.
TheDomainz.com is down, anyone else who was with them?
$ whois thedomainz.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
Domain Name: THEDOMAINZ.COM
Registrar: PDR LTD. D/B/A PUBLICDOMAINREGISTRY.COM
Whois Server: whois.PublicDomainRegistry.com
Referral URL: http://www.PublicDomainRegistry.com
Name Server: DNS.PARKPAGE.FOUNDATIONAPI.COM
Name Server: DNS2.PARKPAGE.FOUNDATIONAPI.COM
Status: clientTransferProhibited
Updated Date: 28-feb-2013
Creation Date: 27-feb-2011
Expiration Date: 27-feb-2014
>>> Last update of whois database: Fri, 01 Mar 2013 09:06:28 UTC <<<
NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
registrar. Users may consult the sponsoring registrar's Whois database to
view the registrar's reported date of expiration for this registration.
TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' ("VeriSign") Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability. VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.
The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
Registration Service Provided By: DOMAIN.CO.IN
Domain Name: THEDOMAINZ.COM
Registration Date: 27-Feb-2011
Expiration Date: 27-Feb-2013
Status:RENEWAL HOLD
Note: This Domain Name has expired. In this status the domain name
is inactive. This domain name will be activated once it is renewed.
The Owner of this domain name can renew this domain name from their control panel.
If this domain name is not renewed by 08-Apr-2013, it will be permanently deleted.
Name Servers:
ns1.aimdomains.com
ns2.aimdomains.com
ns3.aimdomains.com
ns4.aimdomains.com
Registrant Contact Details:
Aim Domain Solutions Pvt Ltd
Domain Admin (domains@aim.co.in)
30/171 Mahatma Gandhi Road
Kumaran Nagar, Padi
Chennai
Tamil Nadu,600050
IN
Tel. +91.9940422121
Administrative Contact Details:
Aim Domain Solutions Pvt Ltd
Domain Admin (domains@aim.co.in)
30/171 Mahatma Gandhi Road
Kumaran Nagar, Padi
Chennai
Tamil Nadu,600050
IN
Tel. +91.9940422121
Technical Contact Details:
Aim Domain Solutions Pvt Ltd
Domain Admin (domains@aim.co.in)
30/171 Mahatma Gandhi Road
Kumaran Nagar, Padi
Chennai
Tamil Nadu,600050
IN
Tel. +91.9940422121
Billing Contact Details:
Aim Domain Solutions Pvt Ltd
Domain Admin (domains@aim.co.in)
30/171 Mahatma Gandhi Road
Kumaran Nagar, Padi
Chennai
Tamil Nadu,600050
IN
Tel. +91.9940422121
The data in this whois database is provided to you for information purposes
only, that is, to assist you in obtaining information about or related to a
domain name registration record. We make this information available "as is",
and do not guarantee its accuracy. By submitting a whois query, you agree
that you will use this data only for lawful purposes and that, under no
circumstances will you use this data to:
(1) enable high volume, automated, electronic processes that stress or load
this whois database system providing you this information; or
(2) allow, enable, or otherwise support the transmission of mass unsolicited,
commercial advertising or solicitations via direct mail, electronic mail, or
by telephone.
The compilation, repackaging, dissemination or other use of this data is
expressly prohibited without prior written consent from us. The Registrar of
record is PDR Ltd. d/b/a PublicDomainRegistry.com.
We reserve the right to modify these terms at any time.
By submitting this query, you agree to abide by these terms.
Thursday, February 21, 2013
W: GPG error: http://nginx.org squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62
If you get that error, add nginx public key to your keyring like this:
This was on Debian 6, should work on ubuntu too.
curl http://nginx.org/packages/keys/nginx_signing.key | sudo apt-key add -...then you should be able to run `sudo apt-get update` on your newly added nginx repos.
This was on Debian 6, should work on ubuntu too.
Monday, January 21, 2013
Reddit Insight
Pay 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. Then 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.
Monday, January 14, 2013
What's a lexical scope?
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.-Eevee [Source]
I was looking around for some definition for this the other day, ended up defining lexical instead which gave me the general idea.
Found this definition today on stackexchange, reposting here for easy google-ability :-)
Tuesday, January 8, 2013
I got 2 comments today!
And they were both about how to do something I posted in a better/alternative way:
1. Today I learned about the basename linux utility
2. And was further exposed to udev rules
Thanks internet for keeping information flowing :-)
1. Today I learned about the basename linux utility
2. And was further exposed to udev rules
Thanks internet for keeping information flowing :-)
Thursday, November 8, 2012
How I Calculate a Proper Tip
I 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).
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.
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.
NotBad.JPG
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.
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.
NotBad.JPG
Thursday, November 1, 2012
Arch Linux VPS and glibc upgrade issue
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 :)
[root@lovejes ~]# find /lib -exec pacman -Qo -- {} +
error: cannot determine ownership of directory '/lib'
/lib/libcrypt.so.1 is owned by glibc 2.16.0-99
/lib/libnss_hesiod-2.16.so is owned by glibc 2.16.0-99
/lib/libresolv-2.16.so is owned by glibc 2.16.0-99
/lib/libpcprofile.so is owned by glibc 2.16.0-99
/lib/libuuid.so.1.3.0 is owned by util-linux-ng 2.17.2-2
/lib/libcidn.so.1 is owned by glibc 2.16.0-99
/lib/libresolv.so.2 is owned by glibc 2.16.0-99
/lib/libuuid.so.1 is owned by util-linux-ng 2.17.2-2
/lib/libnss_files-2.16.so is owned by glibc 2.16.0-99
/lib/librt.so.1 is owned by glibc 2.16.0-99
/lib/libBrokenLocale-2.16.so is owned by glibc 2.16.0-99
/lib/libnss_nisplus-2.16.so is owned by glibc 2.16.0-99
/lib/libblkid.so.1 is owned by util-linux-ng 2.17.2-2
/lib/libnss_dns-2.16.so is owned by glibc 2.16.0-99
/lib/libSegFault.so is owned by glibc 2.16.0-99
/lib/libc-2.16.so is owned by glibc 2.16.0-99
/lib/libdl-2.16.so is owned by glibc 2.16.0-99
/lib/libBrokenLocale.so.1 is owned by glibc 2.16.0-99
/lib/libpthread-2.16.so is owned by glibc 2.16.0-99
/lib/libthread_db-1.0.so is owned by glibc 2.16.0-99
/lib/ld-linux-x86-64.so.2 is owned by glibc 2.16.0-99
/lib/libm-2.16.so is owned by glibc 2.16.0-99
/lib/libnss_nis-2.16.so is owned by glibc 2.16.0-99
/lib/libnss_compat.so.2 is owned by glibc 2.16.0-99
/lib/libdl.so.2 is owned by glibc 2.16.0-99
/lib/libnss_hesiod.so.2 is owned by glibc 2.16.0-99
/lib/librt-2.16.so is owned by glibc 2.16.0-99
/lib/libmemusage.so is owned by glibc 2.16.0-99
/lib/libutil.so.1 is owned by glibc 2.16.0-99
/lib/libblkid.so.1.1.0 is owned by util-linux-ng 2.17.2-2
/lib/ld-2.16.so is owned by glibc 2.16.0-99
/lib/libpthread.so.0 is owned by glibc 2.16.0-99
/lib/libnss_files.so.2 is owned by glibc 2.16.0-99
/lib/libutil-2.16.so is owned by glibc 2.16.0-99
/lib/libanl.so.1 is owned by glibc 2.16.0-99
/lib/libcrypt-2.16.so is owned by glibc 2.16.0-99
/lib/libnss_db.so.2 is owned by glibc 2.16.0-99
/lib/libnsl.so.1 is owned by glibc 2.16.0-99
/lib/libcidn-2.16.so is owned by glibc 2.16.0-99
/lib/libanl-2.16.so is owned by glibc 2.16.0-99
/lib/libnss_db-2.16.so is owned by glibc 2.16.0-99
/lib/libm.so.6 is owned by glibc 2.16.0-99
/lib/libnss_dns.so.2 is owned by glibc 2.16.0-99
/lib/libnss_compat-2.16.so is owned by glibc 2.16.0-99
/lib/libnss_nis.so.2 is owned by glibc 2.16.0-99
/lib/libnss_nisplus.so.2 is owned by glibc 2.16.0-99
/lib/libthread_db.so.1 is owned by glibc 2.16.0-99
/lib/libnsl-2.16.so is owned by glibc 2.16.0-99
/lib/libc.so.6 is owned by glibc 2.16.0-99
[root@lovejes ~]# pacman -S util-linux-ng
resolving dependencies...
looking for inter-conflicts...
:: util-linux and util-linux-ng are in conflict. Remove util-linux-ng? [y/N] y
Tuesday, October 30, 2012
Github.com won't reliably resolve when pulling/pushing
It 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:
Then I press up-arrow, enter... over and over again until I'm able to get a connection, and then it works fine...
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.
Until next time,
Eternally Confused,
Naked Proof~
[nak@arch Guru]$ git pull origin developmentssh: Could not resolve hostname github.com: Name or service not knownfatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.
Then I press up-arrow, enter... over and over again until I'm able to get a connection, and then it works fine...
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.
Until next time,
Eternally Confused,
Naked Proof~
Blog of confusion
This really seems to be a blog documenting my confusion, and then what proceeds from that confusion:
A lot of the time more confusion, or confusion disguised as revelation, and then maybe if I am lucky, true revelation.
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!
A lot of the time more confusion, or confusion disguised as revelation, and then maybe if I am lucky, true revelation.
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!
Wednesday, October 17, 2012
Coffee script `file removed` while using compile/watch switches with vim
I 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.
I fixed the problem with this simple patch (a hacky 100ms setTimeout to add a short pause), 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.
Here's what I did since that patch link is now broken:
in command.coffee I have this:
# Watch a source CoffeeScript file using `fs.watch`, recompiling it every
# time the file is updated. May be used in combination with other options,
# such as `--lint` or `--print`.
watch = (source, base) ->
prevStats = null
compileTimeout = null
watchErr = (e) ->
if e.code is 'ENOENT'
return if sources.indexOf(source) is -1
try
vimTimeout = wait 100, ->
rewatch()
compile()
catch e
removeSource source, base, yes
compileJoin()
else throw e
ALSO: This blog entry seems to have a good suggestion, I may try it myself!
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.
This has not been the case for me.
I hope this helps some people, because I don't think I'm the only one who's experiencing this, or will experience this.
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!).
Anyway, much love to coffee-script for now, good luck fellow hackers.
I fixed the problem with
Here's what I did since that patch link is now broken:
in command.coffee I have this:
# Watch a source CoffeeScript file using `fs.watch`, recompiling it every
# time the file is updated. May be used in combination with other options,
# such as `--lint` or `--print`.
watch = (source, base) ->
prevStats = null
compileTimeout = null
watchErr = (e) ->
if e.code is 'ENOENT'
return if sources.indexOf(source) is -1
try
vimTimeout = wait 100, ->
rewatch()
compile()
catch e
removeSource source, base, yes
compileJoin()
else throw e
ALSO: This blog entry seems to have a good suggestion, I may try it myself!
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.
This has not been the case for me.
I hope this helps some people, because I don't think I'm the only one who's experiencing this, or will experience this.
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!).
Anyway, much love to coffee-script for now, good luck fellow hackers.
Friday, October 5, 2012
Rant to Self: Arduino Development of Haptic Compass on Arch Linux
![]() |
| Poni Halp Me |
A lot of the haptic compass projects I see are driving the vibrator motors directly from the digital pin on the arduino, naughty!
I'll post how I used a transistor to switch each motor, even though I haven't done it yet :-P
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.
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.
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.
I should really read the data sheet more in depth now. Until next time!
Tuesday, September 18, 2012
How to strip file extension in a bash shell script function
FILENAME=`echo $1 | sed -e 's/\..*//g'`From a BASH function take the first command line argument and strip off the extension and then assign it to the variable FILENAME.
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 :'(
Post your better solution in the comments below!11111!!!!
This is the total function (in my bash.bashrc):
mk430 () {
FILENAME=`echo $1 | sed -e 's/\..*//g'`
msp430-gcc -mmcu=msp430f2274 -o $FILENAME.elf $1
}
for compiling MSP430 C files to elfs, there's probably a better alias too!
Sunday, September 9, 2012
MSP430 eZ430-RF2500 on Arch Linux
Hi, I didn't see much info on this particular model and Arch. So I'll log what I do here:
I plugged in the USB dongle with the breakout board attached, ran lsusb which showed this entry:
The build fails: make: /bin/install: Command not found
I run these commands to make a soft-link to `which install`:
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.
[EDIT]: $ sudo gpasswd -a uucp
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...
I just ran `yaourt gcc-msp430` again, it's retrieving sources.... I dont think yaourt has a cache >.>
Ugh. That was a mistake.
Ok so I pressed `y` to make it assume -R (which means reversed or something, idk) and now it finally came back with:
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.
WOOO ROCKSTAR FROM MARS
I plugged in the USB dongle with the breakout board attached, ran lsusb which showed this entry:
Bus 008 Device 004: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool
So far so good. Now I need to install some stuff:
$ yaourt mspdebug-gityaourt is a AUR package manager, you can do this manually by searching aur.archlinux.com and then installing the package with makepkg.
The build fails: make: /bin/install: Command not found
I run these commands to make a soft-link to `which install`:
$ cd /bin
$ sudo ln -s /usr/bin/install install
then select Restart building mspdebug-git? [y/N] y
The build succeeds and the package installs.
I type...
$ sudo mspdebug rf2500because shamwowzow, I'm a frolicking alien and it connects to the device and gives me a prompt, I see the availiable commands and enter:
(mspdebug) runThe light on the breakout board begins flashing, I plugin the other board and the green light turns on... signalling a wireless connection I suppose.
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.
[EDIT]: $ sudo gpasswd -a
NOW TO TRY AND WRITE SOME CODE FOR THIS JOLLY WAG.
I search AUR for mspgcc for a gcc toolchain or whatever, and it shows me a lot of stuff. I dunno what to do so I read this ubuntu guide for some ideas. Then I read this arch linux guide for another MSP430. Seems promising. I search AUR for MSP430, seems like there's a package called `gcc-msp430` I'll try that...
$ yaourt gcc-msp430I 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....
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...
The next patch would create the file ld/emulparams/msp430uni.sh,Uh oh, I'm just going to press enter and hope the god of good defaults saves me.
which already exists! Assume -R? [n]
Apply anyway? [n]Uh oh, now its doing the same thing with `msp430.em`... I'm going to ctrl-c and try putting `y` instead...
Skipping patch.
1 out of 1 hunk ignored
I just ran `yaourt gcc-msp430` again, it's retrieving sources.... I dont think yaourt has a cache >.>
Ugh. That was a mistake.
Ok so I pressed `y` to make it assume -R (which means reversed or something, idk) and now it finally came back with:
make[4]: *** No rule to make target `emulparams/msp430uni.sh', needed by `emsp430.c'. Stop.
make[4]: Leaving directory `/tmp/yaourt-tmp-nak/aur-mspgcc-binutils/src/binutils-2.21.1/ld'
make[3]: *** [all-recursive] Error 1
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.
Targets (1): mspgcc-binutils-20120406-1
Total Installed Size: 9.95 MiB
Proceed with installation? [Y/n]
(1/1) checking package integrity [#######################################] 100%
(1/1) loading package files [#######################################] 100%
(1/1) checking for file conflicts [#######################################] 100%
error: failed to commit transaction (conflicting files)
mspgcc-binutils: /usr/bin/msp430-addr2line exists in filesystem
mspgcc-binutils: /usr/bin/msp430-ar exists in filesystem
...
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.
Well I guess I'll try and compile some LED blinking code from here and put it on there.
$ msp430-gcc -g -o led.elf led.c
led.c:1:26: fatal error: msp430x20x3.h: No such file or directory
compilation terminated.
Guess I need some headers... or something...
$ yaourt msp430-libcUhh ok its doing mspgcc-binutils again... pray for it.
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.
$yaourt msp430mcuthis says it installs the headers... getting closer
[nak@arch msp430]$ msp430-gcc -g -o led.elf led.c
/usr/bin/msp430-ld: cannot open linker script file memory.x: No such file or directory
collect2: ld returned 1 exit status
OKAY THIS IS THE -mmcu FOR THE eZ430-RF2500:
it output an elf without any errors, now to put it on the board...msp430-gcc -mmcu=msp430f2274 -o led.elf led.c
WOOO ROCKSTAR FROM MARS
$ sudo mspdebug rf2500
(mspdebug) erase
Erasing...
(mspdebug) prog led.elf
Erasing...
Programming...
Writing 154 bytes at 8000 [section: .text]...
Writing 32 bytes at ffe0 [section: .vectors]...
Done, 186 bytes total
(mspdebug) run
Running. Press Ctrl+C to interrupt...
And the LED is blinking~
I'll created a compressed version of this sometime.
Monday, July 30, 2012
Wednesday, July 25, 2012
cgoban won't start!
Problem: cgoban can't find files.gokgs.com
Solution: Realize you're running DNS caching and the IP must have just recently changed!
Solution: Realize you're running DNS caching and the IP must have just recently changed!
sudo pdnsd-ctl record files.kgs.com deleteThis 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.
Thursday, May 31, 2012
I don't post here anymore
Do you know why?
It's because I have tumblr, twitter, G+, indenti.ca, canv.as, etc accounts
And I really haven't done many technical how to things lately (which is what I seem to be posting here now...)
I did purchase a humble bundle for the first time (spent $12 as to not hurt the linux pay average :) )
I'm installing Amnesia: The Dark Descent now, look at this beautiful picture:
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 :(
The bundle also includes a bunch of other cool games.
Anyway ttyl blogger.
EDIT:
Yeah... mfw arch linux: https://bbs.archlinux.org/viewtopic.php?pid=1109170
I might just use windows XP for this >.<
1) You can't use the open sauce gfx drivers for amnesia, boo
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...
3) Not going to mess with the other games on linux here, I'm just going to windoze it.
It's because I have tumblr, twitter, G+, indenti.ca, canv.as, etc accounts
And I really haven't done many technical how to things lately (which is what I seem to be posting here now...)
I did purchase a humble bundle for the first time (spent $12 as to not hurt the linux pay average :) )
I'm installing Amnesia: The Dark Descent now, look at this beautiful picture:
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 :(
The bundle also includes a bunch of other cool games.
Anyway ttyl blogger.
EDIT:
Yeah... mfw arch linux: https://bbs.archlinux.org/viewtopic.php?pid=1109170
I might just use windows XP for this >.<
1) You can't use the open sauce gfx drivers for amnesia, boo
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...
3) Not going to mess with the other games on linux here, I'm just going to windoze it.
Subscribe to:
Posts (Atom)

