Bananas Development Blog: Archives

So nicht. SQL injection.

So etwas gibt es in jeder Programmiersprache, nur das PHP sehr weit verbreitet ist und somit einen große Angriffsfläche bietet.

Wei weit verbreitet und leider immer noch nicht bei jedem Entwickler angekommen, veranschaulicht diese Suche auf Github.

mysql_query and the $_GET variable

Viel spass damit, vielleicht wird der eine oder andere darauf nun aufmerksam oder die Community wird zusammenarbeiten und pull requests zum fixen des Problemes erstellen.


Internet Tricks


  • Go to a online retailer fill your cart then let sit for a week, usually will receive a 20% discount or free item code in email reminding you of your cart.

  • When ordering something online (especially from a vendor you haven't used) ALWAYS google their name and "promo code" or "coupon code".

  • Replacing http with https in the search bar can occasionally get past a blocked website at school/work.

  • If you're tabbing though form fields you can shift-tab to go back to the previous one.

  • www.waybackmachine.org to access old and dead versions of websites

  • ctrl + tab cycles forward through your browser tabs

  • Control + L automatically selects the address bar.

  • I learned from the internet that if you put a sheet of toilet paper down into the toilet before pooping, you don't get any splash back of water into your ass. Now that was a game changer.

  • If you click a link with your middle mouse button (scroll button), it will open the link in a new tab. You can also close tabs with this.



Mehr gibt es hier.

Copy & Paste kann gefährlich werden

Copy & Paste vereinfach das Leben.
Man sollte aber aufpassen was man woher kopiert. Folgend ein Beispiel das zeigt was passieren kann wenn man einfach was kopiert und ohne Überprüfung ausführt:

website-terminal-copy-paste
You surely know this: You're looking at some website with some useful shell commands. However, those commands are long as hell and you know you're probably not gonna need them for a few years or so (so there's no need to memorize them).


Also aufpassen. Am Besten solche Sache in einen reinen Texteditor rein kopieren. Somit sollte dann sichtbar werden was man alles kopiert hat.


Wem es nicht gleich auffällt der soll sich den Quelltext der Seite anschauen oder einfach das Kopierte in einen Texteditor einfügen.

Das Leben eines Entwicklers

Sehr, sehr zutreffend ;-)

Pictures from a developer’s life


Comcast verändert den Kundentraffic

Die Idee dahinter ist vielleicht nicht so schlecht ( Kunden über austehende Rechnungen zu informieren etc. ), aber das so etwas erlaubt wird finde ich schon sehr panne. Wenn das durch geht ist das nur der Anfang und wir können nicht mehr sicher sein was wir empfangen aus dem Internet..

This is the code Comcast is injecting into its users web traffic.


Auflistung installierter Perl Module

perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'

Dies kommt alles in eine Zeile.

OSX update auf 10.8 und Macports

Wer ein Update auf OSX 10.8 in Erwägung zieht und macports verwendet, sollte wie folgt vorgehen.

- First installed the latest XCode via the Mac App Store
- Downloaded/Installed Mountain Lion
- Launched XCode to agree with the license and to install the XCode command line tools
- xcodebuild -license as root
- Install latest macports version
- port upgrade outdated


Das kann ne weil dauern.

OOP ? Hat doch nur Vorteile.

OOP ist ja eine gute Sache, oder ?

Was man damit tolles machen kann, zeigt dieses schöne Beispiel:
This awesome yet simple and pragmatic PHP library performs an addition of two numbers.

Wäre doch auch zu einfach wenn man 1+1 einfach so rechnen könnte ;-)



Git Tutorial

Ry’s Git Tutorial
Ry’s Git Tutorial is a complete introduction to distributed version control with a focus on practical command line usage. We explain Git’s robust branching, merging, and collaboration capabilities from the ground up, so prior experience with centralized systems like SVN or CVS is not required.


Linksammlung 04.03.2013

Peek and poke in the age of Linux
In good old times when software size was measured in kilobytes and each byte was quite expensive dynamic allocation was very rare. Whatever could be static, was static. Whatever couldn’t be, was most likely pooled in a specific region and there was a preset number of “things” the program could handle. That means your lives counter or some other important value was most likely always at the exact same address every time. That’s not the case anymore unfortunately. Almost everything needs to handle an arbitrary number of “things” these days and that means dynamic allocation.


My First 5 Minutes On A Server; Or, Essential Security for Linux Servers
Server security doesn’t need to be complicated. My security philosophy is simple: adopt principles that will protect you from the most frequent attack vectors, while keeping administration efficient enough that you won’t develop “security cruft”. If you use your first 5 minutes on a server wisely, I believe you can do that.


Git is a purely functional data structure
I think we should instead talk about Git in terms of what it really
is: A purely functional data structure. Learning to expertly use Git
means learning how to manipulate that data structure.


Kopierst Du noch, oder entwickelst Du schon ?

Vagrant. Development environments made easy.
Vagrant uses Oracle’s VirtualBox to build configurable, lightweight, and portable virtual machines dynamically. The first couple of pages serve to introduce you to Vagrant and what it has to offer while the rest of the guide is a technical walkthrough for building a fully functional web development environment. The getting started guide concludes by explaining how to package the newly created vagrant environment so other developers can get up and running in just a couple commands.


(R)?ex
With (R)?ex you can manage all your boxes from a central point through the complete process of configuration management and software deployment.


Diese Software sollte das Entwickeln und die Handhabung von vielen Projekten vereinfachen und man kann sich auf die eigentliche Arbeit konzentrieren.

Senrendipity theme Yamakazi

Die Portierung das Wordpress Theme Yamakazi war gar nicht so schwer. So "gut" wie das funktioniert hat, werde ich sicherlich noch mehr Portierungen vornehmen.

Die erste Version 1.0 ist nun verfügbar. Bitte testen und feedback. Es gibt sicherlich noch ein paar Ecken an die ich nicht gedacht habe. Ist ja auch die erste Portierung.



Yamakazi theme für Serendipity

Sollte durch das entpacken in das templates Verzeichnis installierbar sein.