So, coding is only for elite circles
http://www.codinghorror.com/blog/2012/05/please-dont-learn-to-code.html
tl;dr GET OFF OUR LAWN, PLUMBERS!
Seriously, why the hell I learned a thing or two on physics, chemistry, sociology, geography, music, cooking, politics, sports, economy, drawing, etc? I’ll never put them to good use
Interesting rebuttal http://inventwithpython.com/blog/2012/05/16/a-modest-proposal-please-dont-learn-to-code-because-it-will-damage-your-tiny-brain/
“A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.”
— Robert Heinlein, Time Enough for Love
A simple base64 converter Python application
Well, it’s certainly not sophisticated. But since the goal was to help me brushing up before tackling more complicated projects, guess it quite alright. I can’t remember the last time I actually do serious coding
#!/usr/bin/env python
from PyQt4 import QtCore, QtGui
from PyQt4.QtGui import *
from PyQt4.QtCore import SIGNAL
from base64 import b64encode, b64decode
import sys
class FormUtama(QtGui.QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
self.setWindowTitle("Konverter base64")
self.setFixedSize(400,160)
self.labelTeks = QLabel(self)
self.labelBase64 = QLabel(self)
self.editTeks = QTextEdit(self)
self.editBase64 = QTextEdit(self)
self.buttonEnkoder = QPushButton(self)
self.buttonDekoder = QPushButton(self)
self.labelTeks.setText("Teks")
self.labelTeks.move(10,30)
self.labelBase64.setText("Base64")
self.labelBase64.move(10,110)
self.editTeks.resize(200,60)
self.editTeks.move(60, 10)
self.editBase64.resize(200,60)
self.editBase64.move(60,90)
self.buttonEnkoder.setText("Enkode")
self.buttonEnkoder.move(280,30)
self.buttonDekoder.setText("Dekoder")
self.buttonDekoder.move(280,110)
# somehow I feel like I'm doing this wrong
self.connect(self.buttonEnkoder, SIGNAL('clicked()'), self.enkoder)
self.connect(self.buttonDekoder, SIGNAL('clicked()'), self.dekoder)
def enkoder(self):
# QString isn't really a normal string, hence toAscii()
teks = self.editTeks.toPlainText().toAscii()
self.editBase64.setText(b64encode(teks))
def dekoder(self):
teks = self.editBase64.toPlainText().toAscii()
self.editTeks.setText(b64decode(teks))
if __name__ == '__main__':
app = QApplication(sys.argv)
fm = FormUtama()
fm.show()
sys.exit(app.exec_())
No more unlimited
Found out today that XL Axiata no longer offer unlimited data plans for its prepaid users. Without any official announcement beforehand.
All I can say is: FUCK YOU, XL >:(
Installing Firefox Aurora binary
I rarely use Firefox these days. I usually use Chrome, Lynx or Opera for web browsing. I think it’s because the latest Firefox version on BlankOn repository is 3.6 (or is it 3.5?). It’s still quite a good one, but I didn’t have any reason to use it while I got other browsers on their latest version at my disposal.
A couple days before, I decided to try Firefox again. But which one? I decided to get Aurora build. I’d like to get the nightly build but I guess it’s a bit overboard. Read more
Wikipedia planned to do anti-SOPA blackout
I’ve heard the news for couple weeks, but only this morning I read official announcement from Wikimedia foundations about their Wikipedia blackout plan. It’s quite an unfortunate decision, but I agree that Wikipedia must make clear of their stance and hold their grounds against the absurdities SOPA and PIPA now (and would) bring.
I heard other Internet giants (Google, Facebook, etc) will launch their own anti-SOPA campaign. I hope their campaign will be a victorious one.
edit:
An incomplete list of sites joining up the blakout campaign http://www.theatlantic.com/technology/archive/2012/01/its-not-just-wikipedia/251555/.
XKCD: http://imgs.xkcd.com/comics/sopa.png
Blackout compilation http://pinterest.com/sollitaire/sopa/
Minutely report of the campaign on The Guardian http://www.guardian.co.uk/technology/2012/jan/18/sopa-blackout-day-of-action-live
(Almost) Full list of blackout participants http://sopastrike.com/on-strike/
