<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Navarr's Tech Life - Latest Comments</title><link>http://navarrstechlife.disqus.com/</link><description></description><atom:link href="https://navarrstechlife.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 04 Apr 2013 02:16:05 -0000</lastBuildDate><item><title>Re: How to Retrieve a Zipcode Using JavaScript</title><link>http://tech.navarr.me/2010/02/how-to-retrieve-a-zipcode-using-javascript.html#comment-851456056</link><description>&lt;p&gt;This code determines the zip-code based off of the best-possible latitude and longitude coordinates given to it by your computer, and then passes that off to a third party service.&lt;/p&gt;&lt;p&gt;If you are getting the wrong state's zip-code, I'm afraid it's out of my hands.&lt;/p&gt;&lt;p&gt;You should double check the latitude and longitude co-ordinates supplied by your computer, and see where they are located.  If they're right, then the zipcode API is wrong.  If they're wrong, then your computer is reporting a bad location.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Navarr</dc:creator><pubDate>Thu, 04 Apr 2013 02:16:05 -0000</pubDate></item><item><title>Re: How to Retrieve a Zipcode Using JavaScript</title><link>http://tech.navarr.me/2010/02/how-to-retrieve-a-zipcode-using-javascript.html#comment-851455012</link><description>&lt;p&gt;this code not giving me exact zip code .it is giving me another state's zip code can you please solve my problem?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Arjun</dc:creator><pubDate>Thu, 04 Apr 2013 02:13:04 -0000</pubDate></item><item><title>Re: How To: Fix Dell Truemobile 355 Bluetooth + EDR on Windows 7</title><link>http://tech.navarr.me/2010/03/how-to-fix-dell-truemobile-355-bluetooth-edr-on-windows-7.html#comment-847443197</link><description>&lt;p&gt;I realize this thread has been inactive for a few years, but when I try this solution the "bluetooth radios" option doesn't even appear in my device manager. Any ideas why this might be happening?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cgr</dc:creator><pubDate>Sat, 30 Mar 2013 18:02:03 -0000</pubDate></item><item><title>Re: How to create a socket server in PHP</title><link>http://tech.gtaero.net/2010/07/how-to-create-a-socket-server-in-php.html#comment-838383633</link><description>&lt;p&gt;Hey thank you!&lt;br&gt;hashmap is a nice idea. i didn't know that i can save references to the socket object in it.&lt;br&gt;$clients[2]-&amp;gt;socket was a stupid mistake from me. I have forgotten to reference $server ;-)&lt;/p&gt;&lt;p&gt;thanks once again, it just works!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel</dc:creator><pubDate>Fri, 22 Mar 2013 08:31:32 -0000</pubDate></item><item><title>Re: How to create a socket server in PHP</title><link>http://tech.gtaero.net/2010/07/how-to-create-a-socket-server-in-php.html#comment-837461719</link><description>&lt;p&gt;If you want to be able to reference other clients, you'll want to create a hashmap with ids as keys and references to the socket object as values.&lt;/p&gt;&lt;p&gt;On connect you'll want to do something like $clientMap[1] = &amp;amp;$client;&lt;/p&gt;&lt;p&gt;You should also remember to clean this array up on disconnect.&lt;/p&gt;&lt;p&gt;However you should still be able to do $clients[2]-&amp;gt;socket (there is no reason that shouldn't work so long as $clients[2] is set and the socket is still connected).&lt;/p&gt;&lt;p&gt;Let me know if you have any more problems.  I think I'm going to re-evaluate the class and PSR-2 it and write tests and everything too.  (Off topic, more of a reminder for myself)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Navarr</dc:creator><pubDate>Thu, 21 Mar 2013 14:22:05 -0000</pubDate></item><item><title>Re: How to create a socket server in PHP</title><link>http://tech.gtaero.net/2010/07/how-to-create-a-socket-server-in-php.html#comment-837180869</link><description>&lt;p&gt;Hi Navarr, Nice job thank you!&lt;/p&gt;&lt;p&gt;I have a question. How can i send a message from one client connected to the other client?&lt;/p&gt;&lt;p&gt;Not mass message to all others, just for a selected client?&lt;/p&gt;&lt;p&gt;For example i have a client with id:0 another with id:1, third with id:2 etc. and i would like to send message from id:0 to id:2&lt;/p&gt;&lt;p&gt;$clients[2]-&amp;gt;socket does not seem to working?&lt;/p&gt;&lt;p&gt;10x in advance!&lt;/p&gt;&lt;p&gt;Daniel&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel</dc:creator><pubDate>Thu, 21 Mar 2013 08:30:59 -0000</pubDate></item><item><title>Re: How to create a socket server in PHP</title><link>http://tech.gtaero.net/2010/07/how-to-create-a-socket-server-in-php.html#comment-820431223</link><description>&lt;p&gt;No problem and glad it could help. :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Navarr</dc:creator><pubDate>Tue, 05 Mar 2013 18:21:53 -0000</pubDate></item><item><title>Re: How to create a socket server in PHP</title><link>http://tech.gtaero.net/2010/07/how-to-create-a-socket-server-in-php.html#comment-820423163</link><description>&lt;p&gt;Thats a good point, and one that hadn't occurred to me.  Just fork the intensive stuff. While there is overhead in forking, at least all the other clients aren't waiting on what one of the other clients caused to be executed.  Again, clearly nodejs wins on efficiency, but in the end a little fork logic in the handler makes php able to handle it as well without the bottlenecks.&lt;/p&gt;&lt;p&gt;In the end I just added some fork logic to the phpsocketdaemon i linked before.  It doesn't have any setting for max clients, nor does it loop based on max clients, but the code is virtually without any comments, and there's not a lick of documentation, so there might still be some bombshells hiding in there I've yet to run across.&lt;/p&gt;&lt;p&gt;In any case, your article gave me the well-documented launch point that I really needed, so hats off to you, thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Grey</dc:creator><pubDate>Tue, 05 Mar 2013 18:13:23 -0000</pubDate></item><item><title>Re: How to create a socket server in PHP</title><link>http://tech.gtaero.net/2010/07/how-to-create-a-socket-server-in-php.html#comment-820284169</link><description>&lt;p&gt;Well, not everything would be synced in the DB - for example an array of socket connections, or pointers to sockets, etc.  It's not that big of a limitation for smaller servers (since a single processor can only do one thing at a time anyway), but once you get into quad-core etc then it becomes a limitation.&lt;/p&gt;&lt;p&gt;In that case, it would be more preferential to do non IO intensive stuff for the socket and then stuff like updating the database in a quick fork so that the main program can continue on to the next socket.&lt;/p&gt;&lt;p&gt;Keeping all of your socket and quick processing in one place while keeping your IO intensive stuff in another.&lt;/p&gt;&lt;p&gt;This then only becomes a problem if you need to wait on data (from a file, db, etc.) before communicating with the socket and jumping from the next.&lt;/p&gt;&lt;p&gt;But yeah, NodeJS is better for this kind of thing xD;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Navarr</dc:creator><pubDate>Tue, 05 Mar 2013 15:24:46 -0000</pubDate></item><item><title>Re: How to create a socket server in PHP</title><link>http://tech.gtaero.net/2010/07/how-to-create-a-socket-server-in-php.html#comment-820280559</link><description>&lt;p&gt;Well cross-client communication could happen via proper DB integration, which is probably how it should be done considering most applications.  I just finished some testing on that phpsocketdaemon script i linked and it doesn't seem to be asynchronous as it claims.  Two connections in, while one is processing some data input, then other is waiting, and only continues after that first finishes.  I've yet to dig into code to see if that behavior is configurable, or if its pretty much the same limitation.&lt;/p&gt;&lt;p&gt;it'd be like having a web server that could only handle 1 request at a time, definitely a hefty limitation for any real world application.&lt;/p&gt;&lt;p&gt;so i'm still on the hunt for the magic article or class that does the trick.  If I have to write it up from scratch, I would probably rather go NodeJS since as you point out, it is much better suited since it is precisely what it was built for.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Grey</dc:creator><pubDate>Tue, 05 Mar 2013 15:19:58 -0000</pubDate></item><item><title>Re: How to create a socket server in PHP</title><link>http://tech.gtaero.net/2010/07/how-to-create-a-socket-server-in-php.html#comment-820081669</link><description>&lt;p&gt;Correct me if I'm wrong, but without some cross-socket communication forking will prevent the processes from sharing variables, right?  (Not to mention a complete lack of semaphores and such in the PHP language, since it hasn't yet been written to take advantage of those types of features).&lt;/p&gt;&lt;p&gt;Either way, thank you - I think this class is very good for getting your feet wet, as you've said.  The DevZone article definitely came first - but was one of the many articles that I was referencing when I wanted to create this.  I believe this will only block on input from any client plus processing time.&lt;/p&gt;&lt;p&gt;Either way, I think a language like NodeJS is *much* better suited to this type of work (and the max connections can of course be changed)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Navarr</dc:creator><pubDate>Tue, 05 Mar 2013 11:08:58 -0000</pubDate></item><item><title>Re: How to create a socket server in PHP</title><link>http://tech.gtaero.net/2010/07/how-to-create-a-socket-server-in-php.html#comment-820065898</link><description>&lt;p&gt;Thanks for the post.  It was definitely educational, but the code is not very practical.  The limitation of max_clients is too severe.  And the blocking of the sockets that can happen on each iteration of max_clients can be a severe performance problem.  As it stands, any kind of heavy handle_input processing would block all processing on all other connected sockets until that one socket connection was handled.&lt;/p&gt;&lt;p&gt;If anyone is looking here for a jumpstart on their socket server, its good to get your feet wet, but you'll be wanting to settle with a non-blocking socket that forks each connection off into its own process so that you can process all connections asynchronously.&lt;/p&gt;&lt;p&gt;Closest thing I've found to this is &lt;a href="https://code.google.com/p/phpsocketdaemon/" rel="nofollow noopener" target="_blank" title="https://code.google.com/p/phpsocketdaemon/"&gt;https://code.google.com/p/p...&lt;/a&gt; but I haven't actually tested it yet and reviewed the code indepth to say if it does the job well.  I originally skipped over it simply due to its age without updates.&lt;/p&gt;&lt;p&gt;Also regarding this article and code, there's another explanation written at &lt;a href="http://devzone.zend.com/209/writing-socket-servers-in-php/" rel="nofollow noopener" target="_blank" title="http://devzone.zend.com/209/writing-socket-servers-in-php/"&gt;http://devzone.zend.com/209...&lt;/a&gt; which uses a lot of the same code as in the class above (not sure who came first, but doesn't matter) - so its a good read for those learning about socket servers and playing with this class.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Grey</dc:creator><pubDate>Tue, 05 Mar 2013 10:49:24 -0000</pubDate></item><item><title>Re: Connecting to Mac OS X via VNC</title><link>http://tech.navarr.me/2009/09/connecting-to-mac-os-x-via-vnc.html#comment-818774687</link><description>&lt;p&gt;VNC is no doubted, a quality remote support tool. Additionally, one may even consider using other remote support tools such as logmeinrescue, gosupportnow, GoToMyPC etc. or deploying on premise remote support appliance such as RHUB or Bomgar appliances.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Aliasgar Babat</dc:creator><pubDate>Mon, 04 Mar 2013 06:47:06 -0000</pubDate></item><item><title>Re: Using Google Voice with Outlook&amp;rsquo;s Dialer</title><link>http://tech.gtaero.net/2010/04/using-google-voice-with-outlooks-dialer.html#comment-809348972</link><description>&lt;p&gt;Try Clamr! it claims to be able to do this.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cloudshark</dc:creator><pubDate>Sat, 23 Feb 2013 03:28:37 -0000</pubDate></item><item><title>Re: YouTube Mini Audio Player</title><link>http://tech.navarr.me/2009/10/youtube-mini-audio-player.html#comment-793300288</link><description>&lt;p&gt;This normally means that your stylesheet (css) is overriding the height. &lt;br&gt;You may need to tweak your theme slightly.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Navarr</dc:creator><pubDate>Fri, 08 Feb 2013 14:23:55 -0000</pubDate></item><item><title>Re: YouTube Mini Audio Player</title><link>http://tech.navarr.me/2009/10/youtube-mini-audio-player.html#comment-793263767</link><description>&lt;p&gt;Hi. I tried using this on my tumblr, but it didn't work as the width was perfect, but the height was the same. I basically got a long thin strip of youtube video.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Blah</dc:creator><pubDate>Fri, 08 Feb 2013 13:57:33 -0000</pubDate></item><item><title>Re: Somebody loves Google Voice Outlook Mobile Service~ &amp;hearts;</title><link>http://tech.navarr.me/2010/03/somebody-loves-google-voice-outlook-mobile-service.html#comment-792289217</link><description>&lt;p&gt;I realize there haven't been too many comments here recently but is gvoms still supposed to work with Outlook 2007.  I followed the steps carefully.  Everything said it was successful but the test message doesn't show up on my google voice account. Any ideas&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Linda Olsen Harless</dc:creator><pubDate>Thu, 07 Feb 2013 16:13:07 -0000</pubDate></item><item><title>Re: YouTube Mini Audio Player</title><link>http://tech.navarr.me/2009/10/youtube-mini-audio-player.html#comment-784779999</link><description>&lt;p&gt;hi! the code works great via the desktop, but when you view the desktop version of the site on a mobile device the player isnt visible.  please help :)&lt;/p&gt;&lt;p&gt;&lt;a href="http://blindat29.blogspot.com" rel="nofollow noopener" target="_blank" title="http://blindat29.blogspot.com"&gt;http://blindat29.blogspot.com&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">kk</dc:creator><pubDate>Thu, 31 Jan 2013 13:23:23 -0000</pubDate></item><item><title>Re: PHP class mp3Data – Get ID3 Info from MP3</title><link>http://tech.navarr.me/2009/09/php-class-mp3data-get-id3-info-from-mp3.html#comment-776162627</link><description>&lt;p&gt;I'm having some problems displaying the image, can you help me? Is that jpeg image format displaying way for every id3Tags for each mp3?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luardo</dc:creator><pubDate>Wed, 23 Jan 2013 19:35:18 -0000</pubDate></item><item><title>Re: PHP class mp3Data – Get ID3 Info from MP3</title><link>http://tech.navarr.me/2009/09/php-class-mp3data-get-id3-info-from-mp3.html#comment-776151498</link><description>&lt;p&gt;Hi! Very useful, thanks for your colla bro.&lt;/p&gt;&lt;p&gt;Im using it and works perfectly, thanks bro. But, can you create a set of setters aside from the getters?&lt;/p&gt;&lt;p&gt;Hope you can :D&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Luardo</dc:creator><pubDate>Wed, 23 Jan 2013 19:21:05 -0000</pubDate></item><item><title>Re: PHP class mp3Data – Get ID3 Info from MP3</title><link>http://tech.navarr.me/2009/09/php-class-mp3data-get-id3-info-from-mp3.html#comment-772358211</link><description>&lt;p&gt;I found this very helpful, thank you!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jackson</dc:creator><pubDate>Sat, 19 Jan 2013 01:16:42 -0000</pubDate></item><item><title>Re: How to Retrieve a Zipcode Using JavaScript</title><link>http://tech.navarr.me/2010/02/how-to-retrieve-a-zipcode-using-javascript.html#comment-769942118</link><description>&lt;p&gt;very nice. Thanks for the code snippet, this will get me going in the right direction.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andy Picton</dc:creator><pubDate>Wed, 16 Jan 2013 07:56:38 -0000</pubDate></item><item><title>Re: JavaScript: Falling Objects (Images)</title><link>http://tech.navarr.me/2008/02/javascript-falling-objects-images.html#comment-766091616</link><description>&lt;p&gt;how do i make the object fall random over the stage?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Roel</dc:creator><pubDate>Sun, 13 Jan 2013 10:54:02 -0000</pubDate></item><item><title>Re: How To: Fix Dell Truemobile 355 Bluetooth + EDR on Windows 7</title><link>http://tech.navarr.me/2010/03/how-to-fix-dell-truemobile-355-bluetooth-edr-on-windows-7.html#comment-744175263</link><description>&lt;p&gt;Oops..   ok its &lt;a href="http://ftp.dell.com/network/R159805.EXE" rel="nofollow noopener" target="_blank" title="http://ftp.dell.com/network/R159805.EXE"&gt;http://ftp.dell.com/network...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sadie</dc:creator><pubDate>Thu, 20 Dec 2012 17:54:43 -0000</pubDate></item><item><title>Re: How To: Fix Dell Truemobile 355 Bluetooth + EDR on Windows 7</title><link>http://tech.navarr.me/2010/03/how-to-fix-dell-truemobile-355-bluetooth-edr-on-windows-7.html#comment-744173110</link><description>&lt;p&gt;You need to force your 1530 to see the bluetooth...  use dell's patch R159805 (for a different model computer, but it works wonders!)  That will get rid of the annoying press Fn+2 error you keep getting!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sadie</dc:creator><pubDate>Thu, 20 Dec 2012 17:52:44 -0000</pubDate></item></channel></rss>