Posted by jpluimers on 2017/03/29
Every now and then, Google Drive on Mac OS X gets confused and starts showing the spinning wheel when hovering over the menu bar icon similar to for instance DropBox does every once in a while.
This is how to terminate and restart Google Drive from the terminal (no need for su):
killall -v -SIGKILL Google\ Drive
open -a Google\ Drive
Alternatively you can start Google Drive using this:
/Applications/Google\ Drive.app/Contents/MacOS/Google\ Drive &
I found this executable through osx – Find all executable files within a folder in terminal – Ask Different
Note that this won’t kill Google Drive as it sends the TERM signal (SIGTERM):
killall -v Google\ Drive
Posted in Apple, bash, Development, Google, GoogleDrive, iMac, Mac, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X, OS X El Capitan, OS X Maverick, OS X Mountain Lion, OSX Yosemite, Power User, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2017/03/28
Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud.
Source: Cloud Application Platform | Heroku
As mentioned in the first part, node.js was initially developed for the cloud. While there are enough paid hosting providers available, much nicer is of course to get it running for free! :). We will try to get our node.js server of part 2 up and running in the cloud…
Source: Server-side Node.js (part 3): Node.js in the cloud (free hosting!) – Smart Mobile Studio [WayBack]
Heroku is ideal for experimenting as their free plan allows for sleeping dyno instances that only get activated when there is a need for it (they sleep after 30 minutes of inactivity) and rain from the pool of 1000 free dyno hours per month.
See these links for more information
Posted by jpluimers on 2017/03/17
When you want to defrag.exe (the built-in Windows one, not the SysInternals Windows NT4 one, so make sure SysInternals comes last in your path) a volume, you have to run it with an elevated UAC Admin token.
But I just found out that you can do this without an Admin token:
C:\Windows\System32>Defrag.exe C: /t /v /u
Microsoft Drive Optimizer
Copyright (c) 2013 Microsoft Corp.
Tracking operation on (C:)...
Performing pass 2:
Free Space Consolidation: 31% complete...
This makes it much easier to separate monitoring scripting from execution.
Posted in Batch-Files, Development, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2017/03/16
Hosted at: Decode URLs from The Great Suspender after a browser restart fails to reload them
Converts URLs like these:
It decodes a URL encoded by The Great Suspender which is a cool Google Chrome plugin that suspends pages after some idle time.
The uncool thing is that when Google Crome restarts after a crash (it’s software, it does that, especially as it consumes truckloads of memory and is full of memory leaks) it often fails to restore some (but not many) of the suspended pages into a usable state: it shows only the encoded URLs.
Posted by jpluimers on 2017/03/15
One day I write some scripts based on:
Some starting materials are at:
A thing I learned is that the Microsoft Remote Desktop 8 is basically a rebranded iTap RDP (it looks like Microsoft bought iTap RDP for Mac, as iTap RDP for Mac is now discontinued)
Posted in Apple, Development, OS X, OS X El Capitan, OS X Maverick, OS X Mountain Lion, OSX Yosemite, Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Scripting, Software Development, Windows, XML, XML/XSD | Leave a Comment »