POST request using Cocoa under iOS

9
Oct
1

I’m digging into iPhone proramming API and I was needing to execute a POST operation. At the beggining I was thinking that I had to make all the request details but fortunetly there is a pretty straigh way of doing it… take a look:


NSURL *url = [NSURL URLWithString:@"http://www.google.com.br"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
[request setHTTPMethod:@"POST"];
NSData *requestBody = [@"username:x&password:y" dataUsingEncoding:NSUTF8StringEncoding];
[request setHTTPBody:requestBody];
NSURLResponse *response = NULL;
NSError *requestError = NULL;
NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&requestError];
NSString *responseString = [[[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding] autorelease];

The “Test One” by Lpx + MC Tresh

26
Aug
2

Hey, long time since the last post. Two months!! I have never had too much patient for writing anyway! Well, this is just shout my new mix. It’s a really powerfull mix in collaboration with my mate MC Tresh! It’s our fist experience recorded so we called it “Test One”. I hope you a have a really nice time hearing it. I can assure you it was a really cool thing recording it!

Lpx + MC Tresh – Test One by sinosoidal

Filed under: Dj, music

Baseband 05.12.01 unlockable!!!! Finally!!! :)

22
Jun
1

The day has finally arrived. After buying an iphone in ebay which was with telephony unsable is now fully working, thanks to the awesome work of dev team. They have just released ultrasn0wn 0.93 which unlocks basebands 04.26.08 thru 05.13.04. To install this latest version of ultrasn0wn you just need to add to your cydia sources repo666.ultrasn0w.com and install or upgrade ultrasn0wn.

For more information go to http://twitter.com/iphone_dev

Congratulation dev team! you are awesome!

Picture of the day

12
Apr
1

iPhone at last

7
Apr
0

For a long time I wanted to have an iPhone. As my work and education is all around technology, computers and touch this was somekind of must have. Altough this is a really expensive gadget…. As if it wasn’t enought it’s base price, you still need to afford a monthly plan with a telecommunications operator. Is too much for me!

Well, in the other day I though about searching for some used iPhones on eBay. After watching some items ended I realized that buying a iPhone for 200 pounds in the UK ebay was the normal thing to happen. Then I say an item with a clear description, it was in a brick state. The seller was saying that it was unlocked but it became locked from one day to another. The only thing visible on the screen was an image telling “No sim card installed” and below “Insert a valid SIM with no pin lock to activate iPhone”. Well, I took the risk and bid it with a maximum of 150 pounds. I won it!

After that I started to dig out information on how to make usable again. I knew nothing of iPhone’s until the day it arrived. The only thing I knew was that I couldn’t make updates from iTunes taking the risk of getting it unlockable. I also didn’t knew which version of the firmware as installed and as well as the baseband version. But believe that the last owner made an upgrade via itunes making it unactivated. I had already the pwnage tool and the latest firmware to make a custom firmware but iTunes didn’t let me to restore the custom hardware. The iPhone was in a such state that only making a restore to factory defaults was possible with iTunes.

I have even oppened it to see of there was something wrong with the sim card slot. And yeah, there was. Two of the contacts of the SIM card inner tray were broken. But at the moment that wasn’t my biggest concern. I was around and around until I found the version 0.94 of the redsn0wn tool available for Windows and Mac OSX. I also found a blog post telling me how to jailbreak the latest firmware available so I cross my fingers and took my chance. Guess what, it worked! But no miracles happened. It have 3.1.3 firmware running but the baseband version is the 05.12.01 which it’s not unlockable at the moment. So I now have to wait for those brillants guys from dev team as well as other iPhone hackers can make the wonderfull job of publish a new tool!

I also need to replace that inner tray otherwise the iPhone will not read the SIM card anyway. I now have a 75% usable iPhone for 150 pounds. Nice deal! :)

This was how received it

‘Vibrate to this’ mix set

27
Mar
1

Tracklist:

1 Flack.su – T-Break (ICR Remix) – Glack Audio
2 Dan F – Right On (Elite Force Remix) – Disuye Records
3 Mesmer – Weird Funk (Original Mix)
4 Rennie Pilgrem – So Real (Andrea Lai Rmx) – TCR
5 Royksopp – TrickyTricky (Binster Rmx)
6 Darkpunk – A.L.E.C.H.A.O.S – Minus Mal’s Records
7 The Playfellow – The Gunz (Sidel Rmx) – Bass Reflections
8 The Loops Of Fury – Soap (Peo De Pitte Mix) – U&A Recordings
9 Slyde – Vibrate To This (Trouble Soup!! Remix)
10 Product.01 – Destrukt – En:Vision Recordings
11 Joan Reyes – Shakedown (Bass Kleph Remix) – Fresco Records
12 Darin Epsilon – Aural Satisfaction (Inkfish In Indica Satisfaction Land Mix) – Inkfish Recordings

Lpx – Vibrate to this by sinosoidal

Filed under: music

Picture of the day

25
Feb
1

Displax stand @ OME, Madrid

TI’s PCM2704 based USB sound card

17
Jan
0

Hey! It has passed a really long time since my last post but I have been really busy at work in this last months. For a long time that I wanted to make a really simple USB external sound card. The reason for this is that i’m using my KRK Rockit 5 reference monitors with a crapy built in motherboard sound card. The connections are only the ones that come within the main board, in the back of the computer, and if that wasn’t enough i also have noise from the computer when nothing is playing which is terrible.

I have searched for some simple chips that could make me the job and I found TI’s PCM2740. It’s a single ended USB audio interface with analog and digital output.

I have followed the application suggestion that came with the datasheet and tested everything on a breadboard first and then i passed the circuit to a prototyping board to fit in a really small box with left and right output plugs.

This is the result:

PCM2704 assembled in a prototyping boardGuess what… it sounds awesome! Great sound quality with absolutely no noise at all. Now i have to finish the box, make a an open for the USB plug and that’s it!

Picture of the day

24
Sep
0
Leaving to Berlin

Leaving to Berlin

Beauty That Never Fades mini mix

18
Sep
0

Hey! I have released a mini mix in my Soundcloud. It is called Beauty That Never Fades! Why don’t you give it a listen and tell me what you think about it?

I love breaks. To not be different from my own sound pattern, guess what… is a breakbeat mix!!!

Beauty that never fades by sinosoidal