Saturday, January 9, 2016

OneDrive Offline Files and Windows 10

You just realized that in Windows 10 you cannot open OneDrive and see all the files up on OneDrive unless you have synced all the folders to your PC (imagine you didn’t upgrade to the 2 TB SSD on that new computer, so there is no way you can have all your OneDrive files synced).

Well, apparently, OneDrive for Windows 8 still has this feature (which is one of those that differentiated OneDrive from Dropbox or Google Drive). However, OneDrive in Windows 10 has it disabled…. something about some users were all confused about it.

The good news is that reportedly in Windows 10 Redstone update (in June 2016), the offline files support will be again available on the OneDrive for Windows 10 product. Yay! Now, if they could just add file revision history for *all* files and not just “Office” files, whatever that really includes…. then, welll, OneDrive would top Dropbox and Google Drive in quite a few ways (some have had some sync issues, but I think that’s becoming a thing of the past).

Alright, that news is great and all, but what if you want to be able to see all your OneDrive stuff *NOW* without having to have it synced locally. Here’s how to do it:

Map a network drive (from here: http://ift.tt/18gevIB)

1. Open up your OneDrive account online
2. Right-click on the “Files” button on the left of the screen and select “copy link address”.
3. Take the “cid” querystring value from that URL
4. Go to This PC > right click in the white space > Map Network Location > next next next > paste in “http://ift.tt/1RBvcki; followed by that “cid” querystring value from above > ok next ok ok ok… whatever
5. That effectively maps OneDrive as though it were a drive on your computer, meaning all your OneDrive files are viewable, downloadable, and accessible anytime you have an internet connection.

Pretty sweet workaround for now. Only downside is that the Offline Files feature in OneDrive does a better/faster job at caching things like the files/folders list as well as thumbnails (all the metadata).



Tuesday, January 5, 2016

Great Linx Upstart step-by step

Running Tomcat as a resilient service on Ubuntu 14.04

This is the best I’ve come across. Granted, I’ve not spent a ton of time having to look, but when I have it’s not been this clear.

You can just run pretty much anything you want in that last “exec….” part. Just route the output to /dev/null 2>&1 and you’re set.

Then run it with:
initctl start myservice
initctl stop myservice

create a file at /etc/init/myservice.conf with the following contents:

description “Tomcat 7 service”
#So that you remember what the services does

start on runlevel [2345]
# When the service should start. 2, 3, 4 and 5 are
# runlevels that are various flavours of system startup.

stop on runlevel [06]
# 0 is for system halt and 6 is for system reboot

respawn
# If the service is stopped otherwise than with a proper ‘stop’
# message (system halt or reboot), the service will restart automatically

respawn limit 3 10
# In case the service cannot boot properly (e.g. misconfiguration),
# this prevents the service to go crazy an reboot endlessly.
# 3 10 means “don’t respawn more than 3 times in 10 seconds”

pre-start exec /home/admin/init_casanovald.sh
# pre-start, post-start and pre-stop enable you
# to run stuff before or after starting a service

exec /var/lib/tomcat7/bin/catalina.sh run >> “/var/lib/tomcat7/logs/catalina.out” 2>&1
# This is where the service actually gets started. If you don’t
# redirect the messages, they end in /var/log/syslog.