In 28th April 2011, Cairo Startup weekend took place in AUC, I participated with a project called "Balooshy", I didn't win any cash but I won "GEP Entrepreneurship master class", for me it was much better.
Search This Blog
Thursday, June 02, 2011
Me, Cairo Startup weekend and Balooshy.
In 28th April 2011, Cairo Startup weekend took place in AUC, I participated with a project called "Balooshy", I didn't win any cash but I won "GEP Entrepreneurship master class", for me it was much better.
Wednesday, January 26, 2011
Getting twitter feed while Twitter is blocked
// I have got this code from http://www.pcs.cnu.edu/~dgame/sockets/client.c
#define PORT 80
#define HOST "128.121.243.228"
#define DIRSIZE 8192000
#define HTTP_HEADER "GET /statuses/user_timeline/Neo_4583.json HTTP/1.1\nHost: twitter.com\n\n"
char* strToSend = HTTP_HEADER;
char hostname[100];
char dir[DIRSIZE];
int sd;
struct sockaddr_in pin;
struct hostent *hp;
strcpy(hostname,HOST);
if ((hp = gethostbyname(hostname)) == 0) {
exit(1);
}
memset(&pin, 0, sizeof(pin));
pin.sin_family = AF_INET;
pin.sin_addr.s_addr = ((struct in_addr *)(hp->h_addr))->s_addr;
pin.sin_port = htons(PORT);
if ((sd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
perror("socket");
exit(1);
}
if (connect(sd,(struct sockaddr *) &pin, sizeof(pin)) == -1) {
perror("connect");
exit(1);
}
if (send(sd, strToSend, strlen(strToSend), 0) == -1) {
exit(1);
}
if (recv(sd, dir, DIRSIZE, MSG_WAITALL) == -1) {
exit(1);
}else {
// The data is ready to be served
printf("%s\n", dir);
}
close(sd);
Friday, November 19, 2010
iOS SDK Text To Speech in one line
[[[NSClassFromString(@"VSSpeechSynthesizer") new]autorelease] startSpeakingString:@"I like to speak everywhere"];
As you can see, with this line u can make the iOS speak whatever to you, just find useful use for it, something to read the twits or RSS feeds.
Enjoy :)
BR
Ahmed Essam


