Potablog 1338.at Header

 


vs



Direktlink  Kommentare: 7 geschrieben von potassium am Freitag, 18.09.2009, 12:44


Ich find FML ja generell wunderbar aber diese Form von Selfownage sucht seines gleichen:
ZitatToday, I pulled someone over for speeding. He was only 10 over the speed limit so I gave him an $84 fine. It turns out he is a workplace Occupational Health and Safety officer and because I wasn't wearing my high visibilty vest while standing on the side of the road he gave me a $250 fine. FML
Direktlink  Kommentare: 1 geschrieben von potassium am Freitag, 18.09.2009, 00:40
Eingeordnet unter: g33k-Humor, lost and found @ WWW


Herrlich, gerade über F!XMBR wieder entdeckt.

Direktlink  Kommentare: 0 geschrieben von potassium am Donnerstag, 17.09.2009, 21:14


Three guys and a lady were sitting at the bar talking about their professions.

The first guy says " I'm a Y.U.P.P.I.E, you know... Young, Urban, Professional, Peaceful, Intelligent, Ecologist."

The second guy says "I'm a D.I.N.K, you know... Double Income, No Kids."

The third guy says, "I'm a R.U.B, you know... Rich, Urban, Biker."

They turn to the woman and ask her, " What are you? "
She replies: " I'm a WIFE, you know...
Wash, Iron, Fuck, Etc."

Via MCS

PS: Während des Erstellens sind mir wieder 2 Bugs von PotaBlog entgegengehüpft -_- Man sollte keine Updates erzeugen wenn man so verkühlt ist und gleichzeitig es nach 3 Uhr morgens ist...Echt ne Scheiß Idee...
Direktlink  Kommentare: 0 geschrieben von potassium am Montag, 14.09.2009, 11:03
Eingeordnet unter: Humor, g33k-Humor, lost and found @ WWW


Danke für deine Unterstützung mit SQL letztens, warst echt ne große Hilfe :)
Michi hat mir die Bedeutung von JOINS, CONCAT, und COALESCE gezeigt.
Wurde natürlich postwendend auch hier in PotaBlog teilweise integriert :D

Übrigens: IP2LONG ist auch sehr interssant
Direktlink  Kommentare: 0 geschrieben von potassium am Samstag, 12.09.2009, 23:05
Eingeordnet unter: SQL, Software-Entwicklung


Das Wetter *motz*
Da is es mal schiach und man nützt die Zeit um seine Motorradausrüstung zu waschen und zu pflegen udn dann is es justament 24h später so schön, dass man am liebsten sofort mim Möpi losdüsen würde. Aber nein, die Ausrüstung hängt tropfend am Kleiderhaken....*motz*
Direktlink  Kommentare: 1 geschrieben von potassium am Samstag, 05.09.2009, 12:04
Eingeordnet unter: was mich ärgert...


Picture
Altauseersee mit Loser völlig Glatt

Picture
Altauseersee mit Loser mit Wellen

Picture
Ente? Ente!

Picture
Gasthaus Fischerhütte am Toplitzsee in Gössl

Picture
Meine Oma auf der Loserhütte auf dem Loser
Direktlink  Kommentare: 2 geschrieben von potassium am Mittwoch, 02.09.2009, 21:57


Dieser Blogeintrag ist passwortgeschützt.
Um diesen Blogeintrag zu betrachten, geben Sie bitte unten das entsprechende Passwort ein.


Passwort:

Direktlink  Kommentare: 1 geschrieben von potassium am Mittwoch, 02.09.2009, 21:47


Zitat
Sehr geehrte Frau Kollegin!
Sehr geehrter Herr Kollege!

Sie haben am 30.06.2009 die Prüfung über
die Lehrveranstaltung 163.128 - Synthesepraktikum LU
mit der Note sehr gut (1) abgelegt.

Die Prüfungsdaten wurden der Studienabteilung in dieser Form übermittelt.
Reklamationen richten Sie bitte ausschließlich an das zuständige Institut.

Passt!
Direktlink  Kommentare: 5 geschrieben von potassium am Freitag, 28.08.2009, 18:32
Eingeordnet unter: Synthesepraktikum, Technische Chemie, Uni


When serialize()ing an array containing the data of the last created blogpost there was no error at first.
But if the data were fetched from the database and the script tried to unserialize() them the following error occured:
ZitatNotice: unserialize() [function.unserialize]: Error at offset 51 of 66 bytes in somefile.php

So why is this?
Lets say you have an array with 3 indizes containing 2 strings and one integer.

Code$somearray[0] = "test";
$somearray[1] = "he hasn\'t eaten anything";
$somearray[2] = 36;

As you can see the single quote in the second array-element is escaped by a backslash.
If you now serialize the data you get the following string
Codea:3:{i:0;s:4:"test";i:1;s:25:"he hasn\'t eaten anything";i:2;i:36;}

If this string is now written to the database the backslashes disappears and the field contains the following data:
Codea:3:{i:0;s:4:"test";i:1;s:25:"he hasn't eaten anything";i:2;i:36;}

As the considerate reader might have discovered the length of the highlighted string was first 25 characters and is after inserting into the database 24 characters long.
So if PHP tries to unserialize the string it thinks it has to read 25 characters but there are only 24. This throws the above error.

So how can you circumvent this?
Code$somearray[0] = "test";
$somearray[1] = "he hasn\'t eaten anything";
$somearray[2] = 36;
foreach($somearray as $key=>$value){
$somearray[$key] = stripslashes($value);
}
$serialized_data = addslashes(serialize($somearray));


So the backslashes are removed before serializing the data and added afterwards to prevent database malfunctions or errors.
Direktlink  Kommentare: 0 geschrieben von potassium am Donnerstag, 27.08.2009, 22:33