Playing with Docker, Silex, Python, Node and WebSockets

Gonzalo Ayuso | Web Architect

I’m learning Docker. In this post I want to share a little experiment that I have done. I know the code looks like over-engineering but it’s just an excuse to build something with docker and containers. Let me explain it a little bit.

The idea is build a Time clock in the browser. Something like this:


Yes I know. We can do it only with js, css and html but we want to hack a little bit more. The idea is to create:

  • A Silex/PHP frontend
  • A WebSocket server with
  • A Python script to obtain the current time

WebSocket server will open 2 ports: One port to serve webSockets ( and another one as a http server (express). Python script will get the current time and it’ll send it to the webSocket server. Finally one frontend(silex) will be listening to WebSocket’s event and it will render the current…

Vezi articol original 171 de cuvinte mai mult

All 5 Songs from the Salt Soundtrack

Reelsoundtrack Blog

There are five songs in the movie Salt, but they did not release a soundtrack album for the film. Not to worry, you can find all five here. Unfortunately, I could only locate the downloads for three of the five songs, but I’m hoping that the list of tunes, combined with info about the scenes the songs were in will help out a bit.

Music didn’t play a major role in the movie. The flashback to 1975 featured a Russian vocal in the background – “Zarya” by Hans Christian and Irina Mikhailova . The girl next door has a song playing on her iPod – “Higher” by Dekoder. There’s some hardcore background music playing in the bar bathroom scene – “Yr the Enemy” by Dekoder. There’s also some choir music during the funeral – Grande Piece Symphonique Op. 17, No. 2. The rest is generally the score by James…

Vezi articol original 238 de cuvinte mai mult


The Reel Pastor

As some of you might know, I have been looking forward to this movie and have been urging people to see it opening weekend.  Now I have seen it, and it is time to face the question, was it worthy of my support and my movie money?


I first discovered this film because I enjoy Kevin Reynolds as a director. His visual style is fantastic and for me, the visuals of a movie mean just as much as the story itself.  Others might have different feelings on that, and that’s fine, but this is my review.  If I had to make a list of directors that I actually get excited about simply see the visuals of a film, he would be on that list.  Behind Ridley Scott and Mel Gibson of course, but he’s up there somewhere. So, for me, seeing Kevin Reynolds direct…

Vezi articol original 1.507 cuvinte mai mult

Mount.cifs cannot allocate memory mounting Windows share


Mounting a Windows (SMB) share on Ubuntu gives us a „cannot allocate memory” error.

Executing a command like this:

mount -t cifs //toad/Backup /media/backup -o user=username,password=password,iocharset=utf8,file_mode=0777,dir_mode=0777

We get an error like this:

mount error(12): Cannot allocate memory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


First, check the permissions on your shared folder. Right-click the folder and select Properties. Your Windows user must be allocated permissions on both the Security and the Sharing tabs.

Open regedit, and set the following registry key to ‘1’. This key tells Windows to set aside enough system cache for sharing large files. Commenter Raoul Duke (thanks!) adds that this change is unnecessary on Windows 7 and later.

HKLMSYSTEMCurrentControlSetControlSession ManagerMemory ManagementLargeSystemCache

And set the following registry key to ‘3’. This value tells Windows to prioritise file sharing over reducing memory usage. You can read more about this key here.


Reboot (or…

Vezi articol original 21 de cuvinte mai mult

How to replace boot.efi with mine

Pike's Universum

El Capitan now runs on unsupported hardware, but that was only step one. We have a few more hurdles to take. Let’s start with the installation process. Take a look at this snippet from ia.log:

Extracting boot files from /Volumes/OS X Install ESD/BaseSystem.dmg
Extracting Boot Bits from Inner DMG:
Copied prelinkedkernel
Copied Boot.efi
Copied PlatformSupport.plist
Ejecting disk images
Generating the file {
	    "Kernel Cache" = "/.IABootFiles/prelinkedkernel";
	    "Kernel Flags" = "container-dmg=file:///Applications/ root-dmg=file:///BaseSystem.dmg";
Done generating the file
Blessing /Volumes/MacintoshHD -- /Volumes/MacintoshHD/.IABootFiles

After which the InstallAssistantTool takes over:

Blessing Mount Point:/Volumes/MacintoshHD Folder:/Volumes/MacintoshHD/.IABootFiles
***************************** Setting Startup Disk *****************************
******           Path: /Volumes/MacintoshHD
******     Boot Plist: /Volumes/MacintoshHD/.IABootFiles/
/usr/sbin/bless -setBoot -folder /Volumes/MacintoshHD/.IABootFiles -bootefi /Volumes/MacintoshHD/.IABootFiles/boot.efi -options config="" -label OS X Installer
Bless on /Volumes/MacintoshHD succeeded

Note: The boot drive (ElCapitanSSD) had El Capitan 10.11.1 installed on it and the target drive (MacintoshHD) had Yosemite 10.10.5 installed on it.

But if I install El…

Vezi articol original 441 de cuvinte mai mult