code-infection

Recent Posts

MySQL + MongoDB + PHP

published on

We used MySQL with PHP… In the past months we try to migrate MySQL tables to MongoDB. And yes it was not a simple method (but we did it).

Now I’ll tell you a simple source of bugs because i have too much fun with this. We have a users table with some fields for example member_type (int). The types already migrated to MongoDB. We fetch the user and we make a query with member_type value but it doesn’t work for us. Why?

Read More...

Facebook == 'The Big Brother' ?

published on

Facebook activated a new function… This is Tag Suggestions (auto tagging) for photos. Facebook can recognize your face when you are tagged in another photo.

If you don’t want to enable photo-tagging automatically about you (on photos of other users) search Account (top right corner) > Privacy Settings > Customize settings > Things others share > (When photos look like me, suggest my name) and disable this function.

Read More...

Professional backup with Git

published on

Backup is a very-very important thing in IT. The loss of code-snippets, patch-sets, configurations or documents is very painful for programmers, system administrators and secrataries.

There are many options for this, among others hand (manually) copying. There are many applications responsible for backup on Linux, Mac or Windows. Many people use rsync as lacyc3 wrote a good post about it (in Hungarian).

What happens if the target is a remote machine?

Of course, it’s a good idea because when your local machine fails you can restore all data. For example I use git.

Read More...

PHP (and vs. &&)

published on

PHP has two methods which should work the same way. The and operator and the &&operator. But if you do not pay attention your program will be broken.

Read More...

Categories

Advent-of-Code (1)

Changelog (1)

Conference (1)

Docker (1)

Howto (16)

Javascript (6)

Misc (4)

Open-Source (1)

Php (5)

Ruby (1)

Security (4)

Tools (3)

Tags

advent-of-code (1) alpine (1) android (2) artificial-intelligence (1) backup (1) blogging (4) book (2) coffeescript (1) configuration (1) css (2) database (3) docker (1) editor (2) email (1) facebook (2) fiction (1) flash (1) gingerbread (2) git (1) google (3) haml (1) health (1) heimdall (1) im (1) irc (1) javascript (3) learn (1) letter (2) linux (1) mac (3) mongodb (2) mysql (2) nodejs (3) notice (2) open-source (1) php (8) plugin (1) pomodoro (1) privacy (2) programming (2) regex (1) rss (1) ruby (2) samsung-galaxy-s (2) scss (2) security (3) spreadsheet (1) tumblr (2) ubuntu (1) vim (1) workspace (1) zsh (1)