Latest Episode
Share This Page

Go Back   Keith and The Girl Forums Keith and The Girl Forums Talk Shite

Talk Shite General discussion

Reply
 
Thread Tools Display Modes
Old 06-19-2009, 09:37 PM   #531 (permalink)
Senior Member
 
hayroob's Avatar
 
Join Date: Mar 2008
Location: Detroitish
Posts: 1,386
Quote:
Originally Posted by hypercrypt View Post
Seriously? That sucks so badly!

Oh, I was going to ask, does compiling a fat binary for Arm v6 and v7 make much of a difference when compared to just compiling for v6 on the GS?
Don't know, but I'll try it out.
(Offline)   Reply With Quote
Old 06-19-2009, 09:38 PM   #532 (permalink)
Senior Member
 
hypercrypt's Avatar
 
Join Date: Nov 2006
Location: My Place: Liverpool. Born and raised in Berlin.
Posts: 771
Thanks! Can't afford a GS at the moment (still under contract)

Last edited by hypercrypt; 06-20-2009 at 07:28 PM.
(Offline)   Reply With Quote
Old 06-21-2009, 03:00 AM   #533 (permalink)
Senior Member
 
FreydNot's Avatar
 
Join Date: May 2006
Location: Seattle, WA
Posts: 245
I'm up to 3.0 on my 1st Gen touch and I've got the latest testing version of katg.com installed. It asked me about if I wanted to recieve push messages (I forget the wording).

Do I need to do anything else to receive push messages? Are you sending out broadcast messages to everyone or it is on an individual basis?
(Offline)   Reply With Quote
Old 06-21-2009, 10:16 AM   #534 (permalink)
Senior Member
 
hayroob's Avatar
 
Join Date: Mar 2008
Location: Detroitish
Posts: 1,386
Quote:
Originally Posted by FreydNot View Post
I'm up to 3.0 on my 1st Gen touch and I've got the latest testing version of katg.com installed. It asked me about if I wanted to recieve push messages (I forget the wording).

Do I need to do anything else to receive push messages? Are you sending out broadcast messages to everyone or it is on an individual basis?
Right now it's broadcast. Eventually I might change it, but it's not really important to send individual messages right now.
(Offline)   Reply With Quote
Old 06-21-2009, 11:07 AM   #535 (permalink)
Senior Member
 
garrym13's Avatar
 
Join Date: Mar 2008
Location: Edmond, OK
Posts: 137
How long before you know if the app is approved? Also, I pmed you my udid. What do I do now?

Last edited by garrym13; 06-21-2009 at 11:09 AM.
(Offline)   Reply With Quote
Old 06-21-2009, 11:09 AM   #536 (permalink)
Senior Member
 
hayroob's Avatar
 
Join Date: Mar 2008
Location: Detroitish
Posts: 1,386
Quote:
Originally Posted by garrym13 View Post
How long before you know if the app is approved?
I got no idea, apple is a black box of assholes who don't answer questions.
(Offline)   Reply With Quote
Old 06-21-2009, 06:38 PM   #537 (permalink)
Senior Member
 
Sean7341's Avatar
 
Join Date: Jan 2006
Posts: 131
Will a donation to you or KATG get me in the beta?
(Offline)   Reply With Quote
Old 06-21-2009, 11:49 PM   #538 (permalink)
Senior Member
 
hayroob's Avatar
 
Join Date: Mar 2008
Location: Detroitish
Posts: 1,386
Quote:
Originally Posted by Sean7341 View Post
Will a donation to you or KATG get me in the beta?
$50 to KATG, confirmed by keith, and apologize to keith for wasting time that I should be devoting to katg work.
(Offline)   Reply With Quote
Old 06-22-2009, 01:59 AM   #539 (permalink)
Senior Member
 
hayroob's Avatar
 
Join Date: Mar 2008
Location: Detroitish
Posts: 1,386
This isn't done and it's barely passable as workable code, but it runs and gives you the device tokens from the feedback service.

Code:
#!/usr/bin/env python2.6

import socket, ssl, json, struct

def uniquify(seq):
	set = {}
	map(set.__setitem__, seq, [])
	return set.keys()


theCertfile = 'dist_cert.pem'
theHost = ('feedback.push.apple.com', 2196)
#theCertfile = 'dev_cert.pem'
#theHost = ('feedback.sandbox.push.apple.com', 2196)
ssl_sock = ssl.wrap_socket(socket.socket(socket.AF_INET, socket.SOCK_STREAM), certfile=theCertfile)
ssl_sock.connect(theHost)
f = ssl_sock.read(2048) #Not sure what size this should be, I think 2 MB should be enough
ssl_sock.close()

array = f.split(' ')
array.pop(0)

tokenstring = ''
tokenarray = []

for hextoken in array:
	if len(hextoken) == 37:
		unpacked = struct.unpack('!BH34B', hextoken)
		for value in unpacked:
			converted = hex(value)[2:]
			if (len(converted) % 2) == 1:
			    converted = '0' + converted
			tokenstring = tokenstring + converted
			
		tokenstring = tokenstring[0:64]
	elif len(hextoken) == 32:
		unpacked = struct.unpack('!BH29B', hextoken)
		for value in unpacked:
			converted = hex(value)[2:]
			if (len(converted) % 2) == 1:
			    converted = '0' + converted
			tokenstring = tokenstring + converted
			
		
	tokenarray.append(tokenstring)
	tokenstring = ''
	

print uniquify(tokenarray)

Last edited by hayroob; 06-22-2009 at 11:51 AM.
(Offline)   Reply With Quote
Old 06-22-2009, 09:19 PM   #540 (permalink)
Senior Member
 
Sean7341's Avatar
 
Join Date: Jan 2006
Posts: 131
Quote:
Originally Posted by hayroob View Post
$50 to KATG, confirmed by keith, and apologize to keith for wasting time that I should be devoting to katg work.
Haha alright. I never meant to be a douche or anything. I was thinking maybe $2 or $5. But alright, I'll wait for the actual release. I'm sorry for wasting time, it's my fault for typing my udid wrong, I didn't know about those apps that could email them for you.
(Offline)   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -5. The time now is 11:56 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Keith and The Girl
iPhone news and app directory