Skip to main content

Posts

Calendar invitations are broken

The ability to respond to calendar event invitations in most applications is broken.  This is true for both web and desktop applications. There are a whole host of calendaring applications on the market with the likes such as Exchange , Google , Yahoo , iCloud , you name it.  In more closed environments like those in many offices that use Outlook as the client for email and calendaring, the problem is less noticeable.  The integration is much tighter.  Take Google Calendar and iCloud for example, the integration is less tight because invitees will get their notifications using Apple Mail , Yahoo Mail , iOS , Android , and who knows what else.  This is because the invitees will be using their email and calendaring application of choice rather than whatever is issued in the office. Attempts have been made by most software vendors to gracefully handle invitations from email, and the calendar vendors try their best to make the invitations simple to respond from...

Filters to add to Eclipse projects

Eclipse has the ability to prevent certain files from being incorporated into projects or from being scanned during file searches.  The limits are applied by way of patterns in the file names. It may well be the case that several IDEs are used in the development of projects which will litter the projects' folders with IDE support files.  These can get in the way of Eclipse, but can be ignored with this resource limiting provision. To get there: Right click on a project Choose Properties Expand Resource Choose Resource Filters Some common "exclude" filters might be: .buildpath (file-level should be fine) .git (folder-level, and should exclude children as well) *.komodoproject (file-level should be fine) .project (folder-level, and should exclude children as well) .settings (folder-level, and should exclude children as well) *.sublime-* (file-level should be fine) Adding these filters to an Eclipse project should allow the placement of project file...

Jump to any point in a YouTube video

Google provides a feature with its YouTube service that allows a user to jump to any place in a video.  The trick?  Simply put a minute and second marker in the URL using the MMmSSs format, where "MM" is the minute value with a leading zero, and "SS" is the seconds value, also with a leading zero. This minute and second values combination then just needs to be combined with some URL notation to tell YouTube to jump to this spot in the video.  This looks like:  #t=MMmSSs.  Just tack this bit to the end of your URL and away you go.  Compare the differences in an actual YouTube URL: Plays the video from the beginning http://www.youtube.com/watch?v=Bu927_ul_X0 Plays the video from second 23 http://www.youtube.com/watch?v=Bu927_ul_X0#t=00m23s

Quickly cast array elements in PHP

It's not immediately obvious, but there is a concise way to cast all elements of an array to a single type.  It's all possible with the array_walk() function. array_walk($test, function(&$value, $key){$value = (integer) $value;}); Used in an example it would look like this. $sampleArray = array("one"=>"1", "two"=>"2", "three"=>3, "four"=>"4d"); var_dump($sampleArray); array_walk($sampleArray, function(&$value, $key){$value = (integer) $value;}); //--------------------------------^ Required! ^ //--------------------------------------------------------+ Type to cast to. var_dump($sampleArray); NOTE:  It's important to note that the ampersand is necessary.  See the note about references on the second argument of the array_walk() function documentation.

Consolidated query executions version 2

This is an extension of a piece from late last year titled, " Consolidated query executions ."  That version had a problem in that it didn't work as advertised with MySQL .  As a result it has been re-worked and listed here.  It's pending further testing, specifically against SQL Server , it's just listed now in the event that it may prove useful to someone. private function run($sql) { $Query = $this->Conn->prepare($sql); if((func_num_args() == 2) && is_array(func_get_arg(1))) { $Query->execute(func_get_arg(1)); } else { $Query->execute(array()); } $errorInfo = $Query->errorInfo(); if($errorInfo[1] != NULL) { return $errorInfo[2]; } $rowCount = $Query->rowCount(); $rowCountStatus = $Query->errorCode(); $fetch = $Query->fetchAll(\PDO::FETCH_ASSOC); $fetchStatus = $Query->errorCode(); if(($rowCountStatus == "00000") && ($fetchStatus == "00000")) { return $fetch; } els...

Toggle Wi-Fi radio with keyboard combination

Make sure the Wi-Fi radio is turned on if wireless access to a network goes missing.  It's common practice for vendors to include function buttons to toggle or control hardware features of their computers.  Typically, these control things like screen brightness and volume level.  Other toggles however, might be to cycle through monitor set-ups and to turn Wi-Fi on and off.  It seems like a "no brainer" but it can be simple to overlook if this control is never used, and this may well be the culprit of the network issue. The toggle is tripped with a function key combination.  This may be something like pressing the Fn and F2 keys together.  Presumably, there is a corresponding Wi-Fi indicator light on the machine, so if this lights-up after pressing this key combination, it's a good bet this has addressed the network "outage." NOTE:   The keyboard combination may vary by make and model.

Start Garden setting out to grow Michigan ideas

With roots in Michigan , this blog is fond of the state.  It's specifically fond of western Michigan.  Accordingly, it has interest in the success of the Start Garden venture capital project in Grand Rapids .  The enthusiasm comes not only from pride in the state, but because Michigan has been getting too much bad press concerning its economy lately.  This venture is good not only because it's good news on the business front in Michigan, but hopefully because it will have an impact on the tech business front as well. Check it out with some of the following pages. About Start Garden http://startgarden.com/about Start Garden in Grand Rapids http://startgarden.com/space What's happening at Start Garden http://startgarden.com/events