Jeff Atwood seems to think he's got the best solution, and you can try it out.
sinistral
@sinistral
Best posts made by sinistral
Latest posts made by sinistral
-
RE: Forum recommendations
-
RE: Free Web-Based CRM
This has an answer on Stack Overflow which might be useful. Despite the question being closed, the answers are still there.
-
RE: Recommendations for the creation of a database using Google maps
@blakeyrat said:
@shimon said:
Hate to sound like Captain Obvious, but knowledge of MySQL alone gives you zilch of a clue about GIS which those map applications really are.
More to the point, isn't MySQL basically the only "major" database left without built-in GIS functions/data types? I'm pretty sure it is, but I'm too lazy to look.
-
RE: Ubuntu Server admin
As you discovered, 10.10 is not a long term release. More important is this note from the Ubuntu Guide. (Specifically, the Maverick Meerkat info page):
Maverick Meerkat is not an LTS (Long Term Support) release and is no longer supported with security updates (as of April 2012). It is recommended to upgrade to the current version of Ubuntu.
The current version as of this post is 12.04, which is a Long Term Support release. The best thing you can do is take the application(s) running on that machine and port them to a staging instance of 12.04. Once you verify the success, you can upgrade the production machine. The upgrade might also provide a PHP that is new enough to meet the needs for the person who did their own compiled version of PHP.
-
RE: MS Office Auto-Update
You can set the Mac Office updater to only check for updates "Manually", and then you won't be bothered. Also, make sure you check again after that big update - one of the applications (Access? don't remember) had an issue where files could be corrupted. That's been fixed in an update to the update, but if you got the first one and not the second one it could still affect you.
-
Mobile Development Challenges Presentation
A slide presentation that's not only excellent, it relates to discussions here about Javascript debugging on mobile devices: Debugging Mobile. I think that Blakeyrat will highly approve
-
RE: I tracked down that iPad problem
Google has recently gotten in hot water about working around this setting:
As you've found out, the settings differ in wording between desktop Safari (on either Windows or Mac OS X) and mobile Safari. They "simplified" the settings on Mobile Safari, and the default setting is to only allow cookies from the same domain. Apple says this is for privacy, others say it's Apple's way of ensuring that you only use iAds (3rd party cookies are often used by ad networks...).</p
-
RE: Graphical Text-Based UI?
What's also interesting is that if you pick a country from the top level landing page, you get sent immediately to the appropriate area of the site, and don't have to go through the "this map isn't clickable" page.
-
RE: IOS devices (iPods, iPads, iPhones) have no JavaScript debugger
@blakeyrat said:
@e4tmyl33t said:
Aardwolf
Interesting. Of course, it's an open source geek project so I'm sure it's absolute torture to use-- notably they don't show the UI at all.
They "pause execution" by sending an asynch XmlHttpRequest, I don't see how that could possibly work in a BeforeUnload handler... and would only work for a few seconds max in the link/form submission handlers, so you better be quick with your debugging!
<font size="150%">Possible tool to do debugging, but may not be true step debugger</font>
In addittion to that project, there's Socketbug. There are several videos that show the basics, show it in action, show how to get the server and console set up:
And, to make sure Blakey knows I've read the thread, I see that the problem you're actually fact involves a BeforeUnload handler, so this may have the same problem as Aardwolf and won't help. It's at least something more than a simple console. This project also lets you take HTML source and ship it back and forth between the mobile device and desktop device and actually show edits and return them (see the video).
<font size="125%">alert() is NOT a DEBUGGER. console.log() is NOT a DEBUGGER.</font>
-
Avoiding the for/case WTF
I've seen instances of hte for/case idiom posted as a massive WTF. I think that the following is an instance, but I cannot think of a good alternative mechanism. Code is PHP, but could reasonably be any language. Thoughts?
// Ids are actually returned by API, and ordering (and relative ordering) are unknown beforehand // Name is a human readable string (or label) that is not necessarily known beforehand // Result is some value that needs to be exposed or passed on $structToSearch = array( array( 'id' => 3, 'name' => 'Alpha', 'result' => 5 ), array( 'id' => 5, 'name' => 'Bravo', 'result' => 1 ), array( 'id' => 1, 'name' => 'Charlie', 'result' => 4), array( 'id' => 2, 'name' => 'Delta', 'result' => 6), array( 'id' => 4, 'name' => 'Echo', 'result' => 3) ); $resultData = array(); // Need to search for ids 1,3,5 only // Synthetickey is used by consumer of this data for ($i = 0; $i < count($structToSearch); $i++) { $syntheticKey = ''; if ($structToSearch[$i]['id'] == 1) { $syntheticKey = 'charlieResult'; } else if ($structToSearch[$i]['id'] == 3) { $syntheticKey = 'alphaResult'; } else if ($structToSearch[$i]['id'] == 5) { $syntheticKey = 'bravoResult'; } if ($syntheticKey != '') { $resultData[$syntheticKey] = $structToSearch[$i]['result']; } } print_r($resultData);