How Tor works

Great photos explaining what is disclosed at each point when doing a request on the web, with or without Tor or HTTPS.The photo is provided by the EFF https://www.eff.org/pages/tor-and-https

Strings array access issue

What would you expect for this script to output?error_reporting(E_ALL); ini_set('display_errors',1);$text = "abc";var_dump(isset($text['key']));var_dump((bool) $text['key']);Maybe a notice? maybe some false there..But if you have in mind PHP logic.. you surely know..So, $text is a string and string characters can be accessed with $text[1] this is “b”Then if … Read more »

Foreach with reference

If you iterate over an array with & you should unset the value variable after to not modify the array accidentally after.$array = array('a', 'b', 'c', 'd');foreach($array as $key=>&$value) { if ($key = 3) { // change d to x $value = 'x'; }}// this … Read more »

PHP echo print question

Working with echo or print is very easy in PHP.At the begining it might be harder to understand concatenations or operations order, but after you master them is really easy.But there are some cases where you wonder how does this work ?!?!What does this print?echo … Read more »

Line history on Git

# file pathexport FILE=file/path# line numberexport LINE=10git log –format=format:%H $FILE | xargs -L 1 git blame $FILE -L $LINE,$LINE | uniq -c

Zend Certified PHP Engineer Exam

In a competitive environment as the programming world is this kind of certification can help you differentiate yourself when you are looking for a job. You might want a bigger salary, you want to improve your CV, the certification is clearly a big advantage.Taking the … Read more »

Regex

DocumentationCheatsheet: Dave Child, Dzone, RegexOneTools: (Online) RegExr, Regex101, RagexPal, RegexPlanet, (Offline) Rad Software (free) or RegexBuddy (paid)

Udemy – lots of discounts

Udemy.com is an online learning platform that has a lot of interesting courses in many domains and they also provide a platform for teachers to create and market their tutorials/courses.The prices seem pretty hight at first glance, but if you really want a certain course … Read more »

Clear putty window fully

If you want to full clear putty window including the scroll history with just a command, here is your answer.It seems there is a way to clear the scroll buffer just by sending some special characters with print.[php toolbar=”false”]printf ‘\033[3J'[/php]To make it easier, just put it in … Read more »

M101JS Videos

Mongo University has a collection of great MongoDB courses that help developers into first steps and further understanding MongoDB and NoSQL concepts.Here you have the list of videos from the course. If you didn’t register to the course you can see them on YouTube.If you … Read more »