Quantcast
Channel: Gubatron.com
Browsing all 174 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to change the default page when you open a new tab in Chrome

Install the “New Tab Redirect” Chrome extension. Evil Chrome developers (or evil product managers forcing good developers) have hidden an old setting that used to be in chrome://flags, so now the...

View Article


How to edit the same word/token in multiple places using Sublime Text

1. Double click on the word/variable/token 2. Press Ctrl+Cmd+G 3. start editing, it will edit all the ocurrences of the same token within the same file. 4. When you are done, you can click anywhere,...

View Article


Is there an Android manufacturer for intelligent adults?

I wish there were an Android phone in the market that: - Let’s me have Admin privileges on my device out of the box (rooted by default) - Does not start 20+ background processes I don’t want along with...

View Article

Image may be NSFW.
Clik here to view.

[SOLVED] Sublime Text 2: Git binary could not be found in PATH

Got this annoying dialog popping up on Sublime Text 2? Go to Preferences > Browse Packages … a Finder window will open, go to the “Git” folder, open the file called “Git.sublime-settings” Look for...

View Article

[SOLVED] Gradle: How to increase the Java Compiler’s available Heap Memory

The documentation is not very clear on what all the available options are… after much Googling and many different attempts finally figured out how to raise the maximum heap of the compiler from within...

View Article


GRADLE: How to add a list of local .jar files to the build classpath

Sometimes you don’t want/cant use maven repos, all you have is a bunch of local jars on disk that you want to use as part of your compilation classpath, and the freaking gradle documentation is too...

View Article

GRADLE: How to copy files from another .jar into your resulting output .jar

In our project we like to deliver a single jar as the final product, if you need to copy files that live on an existing jar into the Gradle’s output jar, this example shows you how to do that (and...

View Article

GRADLE: How to specify resources from different folders on your sourceSet

Sometimes you need to have resources in your sourceset and these may come from different locations on disk, the official documentation is lacking in real world examples, or at least I just didn’t...

View Article


Image may be NSFW.
Clik here to view.

KangaWeb (1998) – My first HTML project

This is probably the first piece of HTML with some sort of structure that I wrote back in 1998 KangaWeb

View Article


Image may be NSFW.
Clik here to view.

[bash scripting] How to get a file’s name without its extension(s).

Say you have an encrypted file file.foo.gpg and you want to make a shorthand command to decrypt that file, you’ll want the resulting file to be named file.foo (without the .gpg), or say you want the...

View Article

Image may be NSFW.
Clik here to view.

OnePlus One unboxing

Charger and phone come in separate boxes. Charger does not come with a cable. The phone does. I guess it must be a statement for modularity and perhaps you get to buy only the accesories you need, if...

View Article

Image may be NSFW.
Clik here to view.

New FrostWire 5.7.7 available for Windows, Mac and Linux. Contributors now...

Download FrostWire 5.7.7 for Windows (Bitcoin enabled .torrent) Download FrostWire 5.7.7 for MacOSX (.torrent) Download FrostWire 5.7.7 for Debian/Ubuntu (.torrent) This update focuses on fixing...

View Article

How to resize an EBS (xfs formatted) partition

First of all, create a snapshot of your EBS volume. Then out of that snapshot you will be able to create your new volume. However, when you detach the old one from your instance and attach the new one,...

View Article


2 Java debugging tricks

Embed state in your thread names. Some times when you see a crash log with a thread dump, you see the stack of all the threads at the moment of the snapshot, but there’s no way to see what the state...

View Article

What to do when lighttpd won’t start and won’t give out any error output?

So you upgraded your server, or just all of a sudden you try to start lighttpd, it says the server started ok, but you check and there’s no lighttpd process. You then go after your error log files, and...

View Article


Manifest on Internet’s Evolution

(Forgotten draft from May 31st 2010) I’m a little sad to see some of the paths the internet is taking lately. I personally think it’s enough about the infatuation that people have with “Social...

View Article

Image may be NSFW.
Clik here to view.

# Things to remember when compiling/linking C/C++ software

by Angel Leon. March 17, 2015. Include Paths On the compilation phase, you will usually need to specify the different include paths so that the interfaces (.h, .hpp) which define structs, classes,...

View Article


How to make a “foreach” function in JavaScript

I thought this would be a simple exercise in case of having to interview someone for a JavaScript position. “How would you make your own ‘foreach’ in JavaScript” I came up with the following solution:...

View Article

How to create a list that holds different object types using `void*` in C

I remember being in school back around 1998 and not knowing enough about C to do this. After coding in other languages, then going back to C++ and understanding at a lower level how references and...

View Article

[SYSADMIN] Serve your WordPress cached pages directly with lighttpd and not PHP

Optimizing Your WordPress Cache Loads in Lighttpd. If you don’t configure your wordpress virtual host properly in lighttpd, your wordpress cache will still make use of PHP. Wouldn’t it be nice if all...

View Article
Browsing all 174 articles
Browse latest View live