I'm a Senior at the University of Alabama, my major is Computer Science, and I love everything about computers, technology, and programming.
Thursday, October 13, 2011
IOS 5 iCloud Dilemma and solution
Of course Apple still refuses to offer any sort of merging of accounts. So you get IOS 5, on setup it asks for your iCloud account, well I didn't really know which account to give it, so I gave it the one that I knew purchases were associated with, hoping I could add additional accounts as well. So I do that, and everything is fine, except I can't change the primary iCloud account!!! I can change random stuff like iMessage from , but a lot of the functionality is directly linked to the primary account.
Solution:
On initial IOS 5 setup, using your iCloud account that you want to use. Then later, go to the Store options, under Settings, and change that account to your account that all of your purchases are associated with.
Saturday, August 6, 2011
Social network change
Thursday, August 4, 2011
Social Network
Monday, February 21, 2011
Memory Management
Saturday, February 5, 2011
Duplicate iTunes So Lets Write some Code!
Blogging from android app
Google has now released an official blogger app. So far looks pretty simple and good. We'll see once I actually post this. Sorry for the lack of usefulness in this post.
Monday, January 24, 2011
Fun with RFID
<intent-filter>
<action android:name="android.nfc.action.TAG_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
intent-filter>
Also make sure you enable nfc permissions and hardware requirement.
<uses-permission android:name="android.permission.NFC" />
<uses-sdk android:minSdkVersion="9">uses-sdk>
<uses-feature android:name="android.hardware.nfc" android:required="true" />
byte[] byte_id = getIntent().getByteArrayExtra(NfcAdapter.EXTRA_ID);
This one above line, retrieves the unique id from the rfid chip, and pushes it into a bytearray.
Tricky Part:
My card type and rfid chip:
High quality CR80 30mil white PVC RFID
cards HF Icode SLI
CR80ICODESLI
Operating frequency 125KHZ
Link to documentation: http://www.nxp.com/acrobat_download2/other/identification/SFS052611.pdf
//Modified from function, I found on internet to suit specific needs.(Not trying to take credit :) )
public String ConvertbyteArrayToHexString(byte in[]) {
byte ch = 0x00;
int i = in.length-1;
if (in == null)
return null;
String HEXSET[] = {"0", "1", "2","3", "4", "5", "6", "7", "8","9", "A", "B", "C", "D", "E","F"};
//Double length, as you're converting an array of 8 bytes, to 16 characters for hexadecimal
StringBuffer out = new StringBuffer(in.length * 2);
//You need to iterate from msb to lsb, in the case of using iCode SLI rfid
while (i >= 0) {
ch = (byte) (in[i] & 0xF0); // Strip off high nibble
ch = (byte) (ch >>> 4); // shift the bits down
ch = (byte) (ch & 0x0F); // must do this is high order bit is on!
out.append(HEXSET[ (int) ch]); // convert the nibble to a String Character
ch = (byte) (in[i] & 0x0F); // Strip off low nibble
out.append(HEXSET[ (int) ch]); // convert the nibble to a String Character
i--;
}
return (new String(out));
}
Tuesday, April 20, 2010
Visual Studios 2010
Saturday, August 8, 2009
TextMate
Thursday, May 21, 2009
Putback
I was flipping through my c++ book today, a book I haven't really used since my freshmen year, and discovered a very useful function, putback(char) . When reading in a stream of characters it allows you to put a character back into the stream, could be very useful for certain parsing needs.
-- Post From My iPhone
Sunday, April 19, 2009
Bison
-- Post From My iPhone
Thursday, February 26, 2009
airport extreme basestation and Fedora 10
Thursday, February 12, 2009
SDF
For anyone that doesn't know SDF or Super Dimension Fortress is a truly awesome resource for the linux/unix geeks. And best of all it'sThe website isn't very user friendly, and signing up for a membership isn't clear at all. But the services are great. For a small price you can get ftp,ssh, domain names for your website, and lots of different programming languages.
Wednesday, February 11, 2009
Fedora 10 & Radeon x3870x2
Thursday, January 8, 2009
Getting wireless working in Fedora 10
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="network1"
scan_ssid=1
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="somepassword"
}
The password will be encrypted to do get the encrypted form of your password, you'll need to run a "wpa_passphrase + your network name + your network password". Then copy and pass the encytped passphrase into the .conf file. Now you should be ready to connect to your network. There are two commands neccesary to complete this. The first command to run is
wpa_supplicant -d -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
The command to run next is
dhclient wlan0
It was wlan0 for me, but that will be the name of whatever your adpater is recognized as. The first command will cause the adapter to connect to the router. The dhclient command will actually retrive an i.p address from the router. Sometimes it takes a few minutes after running the dhclient command for anything to happen. I hope this helps. Also you will probably want to create a startup script for these two commands, so that your computer connects upon startup. Otherwise you'll have to run these manually each time.