Posted on February 1, 2014 3 Comments
Needed to clean an URL from it’s querystring in Python. Found a lot of examples telling me to use urlparse and then put all the bits and pieces back together. An easier and more efficient way is this: [py]url = ‘http://www.hackviking.com/?var=value’ url = url[:url.find(‘?’)][/py] url now reads ‘http://www.hackviking.com/’
Posted on January 16, 2014 Leave a Comment
I was updating an old project for a client today. I needed to print a simple list and figured that the easiest way should be to format the data in HTML. Most developers out there has built webpages now days and we all know that it is a quick way to format the information and […]
Posted on October 30, 2013 Leave a Comment
Before you ask… Yes I struggled with the title of this post, but give me a break it’s 4:30 am here! 🙂 I’m currently developing in python for Google App Engine and are using the Picasa API. I found this great guide from Google with exampels: https://developers.google.com/picasa-web/docs/1.0/developers_guide_python It’s far from complete but the examples pushes me in […]
Posted on October 21, 2013 6 Comments
Building webapps with Google APIs are pretty straight forward for the most part. Specially when using the Google API Client Libraries! But if you want to accomplish something that are outside of all the nice tutorials that Google supply us with it get’s trickier! Being a C# programmer for many years I have noticed that […]
Posted on October 15, 2013 Leave a Comment
Had a few downloads of the Picasa Web Downloader that I put up yesterday. Also had a few request of the source code, people seem to be nervous about putting there login information into an application that isn’t open source. So now it is open source available at: https://code.google.com/p/picasa-web-downloader/ Compiled and readu to run: [wpdm_file id=4]
Posted on March 24, 2013 Leave a Comment
I have decided what the Power of scripting script should do! If you move a share by moving it in windows explorer the share will stop work. If you move the folder with File System Object from vbscript the share will still be there but will be pointing at the old path that no longer […]
Posted on March 23, 2013 Leave a Comment
So the challenge was accepted! Follow it here! One of the conditions was that the script has to perform like a program or command line tool to be exact! But why go for one when you can go for both! Still not sure what the final script will do but I have to detect how the script is […]
Posted on March 22, 2013 2 Comments
I was speaking at an IT-consultant company kick-off today. Explained to the server maintenance guys how important scripting is! Not only power shell but classic vbscript. A server tech that can’t script is behind the guy who can. Scripting tech can do twice the work in half the time in a big server park. They complained back […]
Posted on March 18, 2013 Leave a Comment
I was sitting trying to do some mods on a Queclink GL200 GPS transmitter for the MPS project. After many hours of no luck at all I gave up for the day. If anyone have some input on that please contact me! So i started messing around with the Google Maps API demo that I […]
Posted on February 26, 2013 Leave a Comment
I compiled a vbscript that loops through all the sub folders of a given folder and print out the size. The script takes the folder name and searches the Active Directory for a corresponding user. If found it prints the name of the user in the output. Use: [ps]cscript homedirsize.vbs[/ps] Three input boxes will appear… Path where the homedir […]