News for hackers. Stuff that matters.
Re:Show HN: Simple iOS Online/Offline Switch for Development by barumrho on Saturday December 03, 2011 @07:47PM (#3309419)
If you have wired connection, you can setup wifi sharing and turn it on and off. This way you can simulate slow connection as well. (Using http://mschrag.github.com/)
Re:Show HN: Simple iOS Online/Offline Switch for Development by derwildemomo on Saturday December 03, 2011 @07:54PM (#3309445)
this is interesting. haven't thought about that. thanks!!
Re:Show HN: Simple iOS Online/Offline Switch for Development by namank on Saturday December 03, 2011 @08:10PM (#3309477)
I appreciate the licensing. It agrees with me.

A sneak preview: =====================================

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

 Copyright (C) 2004 Sam Hocevar <[email protected]>

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.
Re:Show HN: Simple iOS Online/Offline Switch for Development by derwildemomo on Saturday December 03, 2011 @08:15PM (#3309493)
well, i'm afraid it's incompatible with the GPL though :-D
Re:Show HN: Simple iOS Online/Offline Switch for Development by ka010 on Saturday December 03, 2011 @06:40PM (#3309254)
I can definitely see this come in handy, nice stuff :)
Re:Show HN: Simple iOS Online/Offline Switch for Development by conradev on Saturday December 03, 2011 @07:22PM (#3309385)
Wasn't there something that could simulate a 3G connection? Or was that not for iOS?
Re:Show HN: Simple iOS Online/Offline Switch for Development by derwildemomo on Saturday December 03, 2011 @07:24PM (#3309388)
there are a few tools that can do that, like the Network Conditioner that comes with the developer tools or something like the Charles Proxy, but the special purpose of this little project is to fake the Reachability Information provided by the Device into completely offline, which is a bit different.
Re:Show HN: Simple iOS Online/Offline Switch for Development by awolf on Saturday December 03, 2011 @06:17PM (#3309205)
Is turning on and off wifi really that big of a pain point?
Re:Show HN: Simple iOS Online/Offline Switch for Development by derwildemomo on Saturday December 03, 2011 @06:24PM (#3309218)
In fact yes. At least for stuff I do I consider it necessary to test almost all eventualities when it comes to online/offline behavior. This makes me have to switch between airplane and online a lot of times, and it is simply a matter of time. So I built this to avoid having to toggle on/off airplane mode all the time.
Re:Show HN: Simple iOS Online/Offline Switch for Development by awolf on Saturday December 03, 2011 @06:30PM (#3309228)
I just use the iOS simulator and switch on and off my Mac's wifi.
Re:Show HN: Simple iOS Online/Offline Switch for Development by derwildemomo on Saturday December 03, 2011 @06:34PM (#3309238)
I'm streaming my music mostly, so that's a no-go for me, but of course a perfect solution if it works for you.
Re:Show HN: Simple iOS Online/Offline Switch for Development by ryanpetrich on Saturday December 03, 2011 @08:01PM (#3309460)
It would be much more useful if it failed NSURLConnections that are already live—that's the failure case that's difficult to test.
Re:Show HN: Simple iOS Online/Offline Switch for Development by derwildemomo on Saturday December 03, 2011 @08:05PM (#3309468)
Yes, and it's unfortunately not caught in a reproducible ( does that word exist? ) manner by the existing tools like the connection conditioner. I'll look into it, I thought about extending this project and add some categories to widely used libraries like ASIHTTPRequest, CocoaAsyncSockets and NSURLConnection. Would be superuseful I suppose..