Well… there are people who used Brainwallets to keep their BTCs under a single password. They have lost a lot. 4BTC… or even more. Brainwallet was described by Forbes in… 2012 The Ultimate in Mobile Money. But it was in 2012. It’s November 2013 right now and the situation has changed.

Brainwallets are not a solution right now. Not at all. Just because you think no one will ever break your password, you must know, someone surely will, and I am going to convince you. I will show you how easy it is to steal BTC from a Brainwallet. As you can see in the first example, a redditor writes: “The pass phrase was a line from an obscure poem in Afrikaans“.

Continue reading

[Qt C++] – Transparent, dynamically generated from text tray icon

#include <QApplication>
 
#include <QSystemTrayIcon>
#include <QPixmap>
#include <QPainter>
#include <QFont>
 
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
 
    QPixmap pixmap(20, 20); // small size should work fine on every platform
    pixmap.fill(Qt::transparent); // set transparency of the icon
 
    QPainter painter(&pixmap);
 
    int size = 15;  // size 15 looks nice on KDE and GNOME
    QFont font("", size);
 
    painter.setFont(font);
 
    QString theText = "3"; // this will be the text in the system tray icon
    painter.drawText(QPoint(5, size+1), theText);
 
    QSystemTrayIcon *tray = new QSystemTrayIcon();
    tray->setIcon(QIcon(pixmap));
    tray->show();
 
    return app.exec();
}

Continue reading

Just a quick fix.

Instead of:

Connection con = null;
 
String url = "jdbc:mysql://localhost:3306/mysql";
String user = "user";
String password = "password";
con = DriverManager.getConnection(url, user, password);

You should have:

Connection con = null;
 
String url = "jdbc:mysql://localhost:3306/mysql";
String user = "user";
String password = "password";
 
try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
} catch (Exception ex) {
    System.err.println(ex.getMessage());
}
con = DriverManager.getConnection(url, user, password);

Continue reading

Many people have problem like this one above, even if they configured and installed¬†ATI SDK + OpenCL + ATI Catalyst correctly, without any errors or warnings. But they still cannot run any application which uses their GPU. So here I’ll show you how to fix it and we will try to run oclHashcat to check if the driver is OK after the fix.

At the beginning after installation, I had this error:

$ ./oclHashcat-lite64.bin 9fe8bcafcd86d85172097bd41abc29c0 ?d?d?d?d?d?d?d?d
oclHashcat-lite v0.4 starting...
ERROR: clGetPlatformIDs() -1001

Continue reading