posts in the category: Dev Station

Posted by: bob on Tuesday March 13th 2012 no comments
Tags: operating systems, windows

So I just realized that it would be much easier to put everything in one post than it is to rage on IRC over the course of a month. If you recall I had a post similar to this over OSX Lion when it was released. Unfortunately, this one will probably be slightly more negative. I have recently bought a new Alienware laptop, and for the sake of drivers and video games I have decided to make Windows the OS of choice. I do not really feel like rebooting twice every day to switch OS for gaming an working, and I am pretty sure both Linux and OSX will fail terrible on the complexity of the hardware in this machine anyway.

So here is a list of issues I have with Windows and applications written for Windows. Some of them are application specific, some are not. In the end I do not care if they are application specific, since Windows cannot do anything without additional software, the additional software needs to work. Most of these will probably have something to do with consistencies between Windows and OS X versions of the same app. Having used OS X for just over four years exclusively now, what we have here in these lists is mostly a collection of small stupid things that add up over time.

Each entry will have my complaint, followed by why I have it. This is a brand new maxed out Alienware M17x machine (horray tax refunds!) so I can PROMISE you there is not a single issue on this list related to “my computer being too slow” :p

(more…)

Posted by: bob on Monday February 27th 2012 1 comment
Tags: bookmarklet, google, image, search

While I surf tumblr more often than not people are not uploading the largest resolution of an image possible. This is quite annoying to me, mostly since I surf for iOS and Desktop wallpapers. This bookmarket will make it very easy to use Google to find larger versions.

Step One

Drag this link to your bookmarks bar: Google by Image. Literally, drag and drop it up there.

Step Two.

Have an image open in the browser.

And click the bookmarlet.

Step Three

Receive lots of results (sometimes). Google is also sometimes able to tell you what is even happening in the picture. In this example, panda researchers. Turns out this image is not actually as funny as I thought, since the person in the suit is actually taking his job serious. Select All Sizes.

Google will show you what it knows about. I find more often than not it is more useful than Tineye.

Posted by: bob on Friday October 7th 2011 no comments
Tags: development, evolution, framework, php

From explosm.net
from C&H explosm.net

For the past  year one of my side-not-so-side projects has been the zen\this Framework. Technically the project is even older than that. It was started because many years ago I wrote a Database library for MySQL that I really liked. It wrapped mysql/mysqli into what I consider a much more common and better interface. At the time it was designed to be portable to any codebase and handle things like injection protection without me or the other developers (who were at the time, interns) spacing about it. When I decided to write additional libraries the design challenge was to mimic the original design pattern of that database library.

The interface was quite simple. The main database class was a series of static functions, and there was a query object class too. This was before we had namespaces in PHP so the main database class was really just being used as a namespace. Configuration options were placed in a static array, database::$config, and most of the functions referenced that when deciding which database to query as it handled multiple connections.  This worked great as a completely stand alone library but after it evolved into the current edition in zen\this there have been some design issues.

Continue reading about the evolution of that database library…

Posted by: bob on Monday September 19th 2011 no comments
Tags: chrome, fullscreen, osx lion

When OSX Lion came out, most apps had the ability to fullscreen by clicking on the fullscreen icon on the top right of the window titlebar. Chrome had this, and then a day later it was updated to remove it. There was speculation that it did not “work right” even though when I used it, it worked just fine.

I then engaged in some IRC flame wars about what “full screen” really means. Most people seem to think Fullscreen means while the entire screen is used by the application, they should still see the address and tab bar of the browser. To me this is NOT fullscreen, this is just really big. Full screen to me means that all UI is hidden except for the main work area. In this case, the work area is the HTML viewport, so I believe the tabs and address bar should be hidden while in fullscreen, yet easily accessible somehow like touching the top of the screen with the mouse cursor.

Google Chrome 14 has finally updated with full support for OSX Lion, and I am quite impressed with their solution. Considering how bad things like the bookmark manager is in Chrome I assumed they would pick one method of fullscreen and that would be it.

Continue reading about Chrome’s OSX Lion Fullscreen (with screenshots)

Posted by: bob on Friday August 5th 2011 1 comment
Tags: license, opensource

For a while now I have used the Revised 3-Clause BSD License because it was not GNU. I am looking for opinions on the last clause in it, please comment! If you are not familiar with it, here are the clauses:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the <PROJECT> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

Originally I agreed with all of these points. First off I want my code to retain the copyright. Second, I want binaries to have my documented copyright.

And the third point, I originally read the third clause as “You cannot fork this project and say Bob thinks your fork is awesome unless he allows you to.” However, my latest personal project is a framework, and I am unsure if the license is clear on “works derived from” and “works derived with”.

For example, if the project in question is a PHP library (lets say it is called FalconPunch), would that clause prevent you from saying “Powered by FalconPunch” in the page footer? Is that using the name of the project in vain according to clause three? Using the library would mean your script is a “work derived with” or “work derived by using” it and not a “work derived from”. A “work derived from” would mean you modified the library and redistributed it under its own name.

Because of this I think the wording of the third clause is ambiguous and could be twisted to mean both. Is this why there is also a Simplified BSD License that is only the first two clauses? What do you think?

Posted by: bob on Friday July 29th 2011 2 comments
Tags: bugs, osx lion, usability

Here is a list of all the bugs and problems I have personally encountered in Mac OS X Lion. As I hit more, I will update this post. At the very end after being harsh I will list praises I have for Lion.

[update] August 1, 2011

Bugs

  • [new] Roughtly 50% of the time dragging from the sidebar of Preview does nothing. Generally I drag images from the side bar to a folder on my desktop to create a copy in that folder. Also, see the Usability section.
  • Losing Launchpad icons in the void between Launchpad and Reality. Once there (they bug out when trying to rearrange them sometimes) they are unresponsive and require a full logout.
  • Image Capture utility the checkbox “Delete after import” no longer deletes after import. I use this on my iPhone all the time.
  • Desktop Hot Corners, overly sensitive when I am working so I constantly shut off my monitor which I have set to the lower right corner. However by the time I want to go to bed the corners quit working completely until I go into the settings and turn them off and back on.
  • When Resume is disabled, the checkbox on the shut down / logout screen is still checked by default. It should not be.

Usability Problems

  • [new] Preview forces the sidebar on the left. Mac Desktop sorts Icons from the right side of the screen. This means dragging icons from the Preview sidebar to an Icon on the Desktop means I have to drag across more than 60% of the desktop width. My Macbook is widescreen. Sidebar side needs to be an option. Part of me thinks it used to be one…
  • Natural scrolling needs to allow setting each axis separately. I want natural scrolling when I swipe left and right, but I want normal scrolling for up and down. Inverted up and down scrolling only makes sense to me when I am physically touching the actual screen such as on my phone. On my macbook touch pad, magic pad, or magic mouse, the distance disconnection ruins it.
  • Preview is directly integrated with Versions. Versions is dumb. Preview was the best quick tool ever in 10.6. How it was then is exactly how I want it back, same menu options (Save As… Save All… etc). When I am editing dirty photos I do not want multiple versions floating around in the OS X nether, am I making sense?
  • I cannot delete things from Launchpad unless the item is from the App Store
  • The Apps in the App store need to quit installing installers and install the real app. Seriously.
  • When Dashboard is shown as a space I have been unable to change the background from the ugly grey bubbles to something like an actual wallpaper.
  • Didn’t the bundled PHP used to include PECL? So I could do things like install modules easy?

Bold statements I wish to make

Versions sounds like a personal privacy nightmare as far as digital forensics… remember when our iPhones were logging our locations for eternity how big of a deal that was to people who have a phobia of being arrested?

Back on the topic of Preview. As now there is no save option or even a confirm dialog, preview just saves when you exit – what if I did not want to bother saving one of the 10 I opened? Oh just revert back to a previous version! OK like I said I do not want to keep a history of previous version of pictures that may be embarrassing. Also… where do all the versions go? I am already running low on disk space. Oh, just lock all the files! OK and you do not see how that can get annoying having to lock stuff all the time? Oh, just set the lock time to 1 day! OK and you think I want to wait 1 day just so I do not have to manually lock them?

Basically, Versions just needs a 100% kill switch option, perhaps it even does and it just has not been discovered. Spotlight had one, it could be killed and prevented completely through a few console commands.

Good things about Lion

  • Best new feature: when I have multiple files selected and I right click, now I have “make new folder and put these things in it”.
  • I like how my terminal tabs have spinners on them now while things are processing.
  • The new login screen is pretty nice.
  • My World of Warcraft is running a little smoother in Lion, as in slightly higher frame rate and less random drops in frame rate and stutters.
  • Spotlight seems snappier too.

Posted by: bob on Wednesday May 4th 2011 no comments
Tags: coda, namespace, php

If you develop on a Mac, chances are you might have at least heard of Coda if not already fallen in love with it. It has been a while since they updated it, and I have submitted a few feature requests including Namespace support for the default PHP syntax mode. They mailed back thanking me and said it has been filed, but still no updates. So I decided yesterday to take matters into my own hands.

It could not be too difficult since they support third party syntax modes, but rather add a new PHP mode I wanted to edit the default one already configured. It was easy, and here is how I did it.

 

Continue Reading…