It recently happened to me that I was stuck at work on a Windows installation without access to admin privileges. While I could use a bunch of portable apps I could not find a portable JDK. To get a portable JDK without admin privileges in Windows you have to follow three simple steps.
Being able to make software is great. Not only because you can make a living from it, but also because it helps you in everyday life. Like when you have to manage your 10k+ wallpaper library. I for once always get baited by these “575 awesome wallpapers you absolutely need” posts and download them right away into my library. Every now and then a black sheep sneaks in but i only see it after it pops up on my Desktop (as if i would review all of these 575 wallpapers).
And here it comes together: as a software developer i have the means to write a small piece of code that gets rid of these ugly wallpapers.
So i hacked this snippet that moves the current wallpaper out of its current folder and into a “reject” folder. The current wallpaper path can be found in a registry entry “TranscodedImageCache” in “HKCU\Control Panel\Desktop” (at least in Windows 8.1). It’s encoded with unicode though and has to be cleaned a little bit.
I just created this Snippet to add the hidden file attribute using the Firefox Addon SDK API. I basically read the current file attributes, check if the file is already hidden and if not set the hidden attribute while keeping the other file attributes.
Often while programming you find yourself glueing pre-existing code fragments together. This works out sometimes but even more often it is rather annoying. These days i had to encrypt a pdf and do some other stuff with it in java and therefore put together some libraries i found. One of these libraries offered a method to encrypt the pdf and write the result into a ByteArrayOutputStream. Later then i had to push the encrypted pdf into another method that needed it as a ByteArrayInputStream. First i simply copied the content of the ByteArrayOutputStream as byte array into the ByteArrayInputStream, but this didn’t satisfy me since i knew that the ByteArrayInputStream just needed to be initialized with the internal buffer of the ByteArrayOutputStream. Since this internal buffer is hidden from outside i made up the ByteArrayInOutStream which is a ByteArrayOutputStream that has an additional method that returns a ByteArrayInputStream which is initialized with the internal buffer of the ByteArrayOutputStream. This allows for a instant ‘conversion’ that does not use up more memory than required.
When i went through my files i stumbled over a paper i made at my university and thought maybe someone could find interest in it.
The paper features a summary of the history of mobile networks and tries to make a forecast about which technologies are most likely to play a role in next generation mobile networks.
I am going to quote the abstract here:
The ubiquitous access to information through mobile networks changed our lives. These mobile networks are in a state of permanent evolution. In this paper we identify the most probable drivers for future mobile networks. We provide an overview over the most successful commercial mobile networks and point out the technologies used in these mobile networks that will most likely be reused in future networks. We discuss the difficulties and requirements for future mobile networks that come with the deployment of billions of autonomous Machine-to-Machine devices. While some solutions have been proposed to deal with these Machine-to- Machine requirements many problems remain unsolved.
You would think that such a basic problem would be solved within seconds of try and error or after a small trip to our favorite search engine.
But I personally had to come to the conclusion that it is not that simple, at least when you want to have a “CSS only” solution. To this day I stumbled across various approaches to solve this problem. Continue reading