Quote:
"Amigos y nadie más. El resto, la selva"
-- Jorge Guillén



Happy birthday friends

From the feb-27 dept. (27) (0) by Luis

Birthday paradox
If you choose 367 people at random, the probability of 2 having the same birthday reaches to 100%. Birthday Problem on Wikipedia
With the number of friends and people I've known in my life, how come 4 people were born Feb 27!!
Happy belated birthday to all. However, in this day I remember my mom, who's birthday was today and she would've been 61 had she not passed so suddenly 5 years ago. She definitely lives through me though because I certainly uphold her values on every action I take.

(Si eliges 367 personas al azar, la probabilidad que dos tengan en mismo día de cumpleaños asciende a 100%. Con el número de personas que he conocido y están en mi Facebook, ¿cómo es posible que conozca 4 personas que nacieron Feb 27?. Felicidades a todos.
En este día yo recuerdo a mi madre quien tuviera 61 años de edad si no hubiese fallecido tan súbitamente hacen 5 años. Ella definitivamente vive al través de mi porque yo mantengo los valores que me enseñó y los aplico a diario en cada acción que cometo.)

More...



Minecraft server on Ubuntu with systemd

From the minecraft-server-properly dept. (416) (0) by Luis

Minecraft Logo

In this previous article, I described how to setup Minecraft with Ubuntu versions previous to 15.04, which by default allowed you to run upstart in user mode to start services and respawn as necessary. Refer to wiki SystemdForUpstartUsers if you want to get a better understanding on how systemd differs from upstart and ArchLinux wiki if you would like to get information on how systemd --user works.

In this article, we'll create the service using the newer systemd, which is now the de-facto system service (/sbin/init with process ID 1) on many Linux distributions and for Ubuntu it starts in version 15.04 (to be released in 2015-04, i.e. April). Please be sure to review the first article as you will need to do some steps from that first.

To recap from the upstart article on how to setup Ubuntu, you needed to do:

After you've downloaded the necessary items, follow these simple steps:

  • You'll need to create a Debian package for Oracle's Java by doing the following from Gnome Terminal:
sudo apt-get install java-package # installs Java packager
cd ~/Downloads # goes to the directory where you downloaded Java tarball
make-jpkg jre-7u60-linux-x64.tar.gz # create .deb package
sudo dpkg -i oracle-java7-jre_7u60_amd64.deb # installs Java
java -version # verifies current version. Be sure this returns a string like java version "1.7.0_60"
  • Create a user account "familia" and set it to automatically login to its desktop (Gnome -> Users. Create user and select to auto-login). Or you may use sudo adduser familia from the Gnome Terminal and then switch to this user account to continue setup
  • Create a directory ~familia/Minecraft and copy the minecraft server .jar into this directory: mkdir ~familia/Minecraft
  • Create a file ~familia/.config/systemd/user/minecraft.service with the following content:
cat > ~familia/.config/systemd/user/minecraft.service <<-EOF
[Unit]
Description="Minecraft server on port 25565"
# author "Luis Mondesi <lemsx1@gmail.com>"
After=network.target

[Service]
DefaultEnvironment=DISPLAY=:0
Restart=on-failure
ExecStart=${XDG_CACHE_HOME:-$HOME}/Minecraft/minecraft_server

[Install]
WantedBy=default.target
EOF
  • Then enable the service with: systemctl --user enable minecraft.service
  • You may optionally create the following text files: touch ~familia/Minecraft/{ops.txt,white-list.txt}
  • You will also need to agree to the end-user license by editing the eula.txt file with eula=true

At this point your server installation is setup. All we need is the wrapper scripts to allow easy access to the service:

  • Create a wrapper script for the minecraft_server.jar:
cd ~familia/Minecraft
ln -sf minecraft_server.1.7.10.jar  minecraft_server.jar
cat > minecraft_server <<-EOF
#!/bin/bash
cd /home/familia/Minecraft && \
# append "nogui" if you want to run it from the terminal without a GUI
java -Xmx1024M -Xms1024M -jar minecraft_server.jar 2>&1 |zenity --timeout=90 --text-info -
cd -
EOF
  • Make the script executable: chmod a+rx minecraft_server
  • Create a .desktop file:
cat > MinecraftServer.desktop <<-EOF
# Minecraft
[Desktop Entry]
Version=1.0
Name=Minecraft Server
Name[es]=Servidor de Minecraft
Comment=Serve Minecraft
Comment[es]=Sirve Minecraft
GenericName=Minecraft Server
Keywords=Internet;Game;Minecraft
Exec=/home/familia/Minecraft/minecraft_server
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=/home/familia/Minecraft/mc.png
#Categories=GNOME;GTK;Network;WebBrowser;
StartupNotify=false
#Actions=NewWindow;NewPrivateWindow;
EOF
  • Be sure to download a nifty icon for your .desktop file and call it mc.png. Example Minecraft icon Minecraft server icon
  • Make the .desktop file executable: chmod a+rx MinecraftServer.desktop
  • Make a link to the desktop with: ln -s ~familia/Minecraft/MinecraftServer.desktop ~/Desktop/

In order to start the service, you will need to execute

systemctl --user start minecraft.service

More...



Hamlet - No podrás olvidar (sencillo)

From the a-new-star-established dept. (725) (0) by Luis

Hamlet's latest single, "No podras olvidar" (You won't be able to forget) from his salsa collection 2015.

Español:
El último sencillo de Hamlet, "No podrás olvidar" de su colección de salsa para el 2015.

Youtube

MP3 Download

More...



Kiskeyix via HTTPS

From the your-privacy-and-ours dept. (635) (0) by Luis

It only took us 10 years but kiskeyix.org is now available via HTTPS for your privacy and safebrowsing.
All websites should have the option to allow its users to browse them away from prying eyes and we are no different.
Enjoy!

p.s. We've added attribution to StartSSL for their wonderful Free SSL Certificates program.

More...



How to install Octave via Homebrew in Mac OS X 10.10 Yosemite

From the machine-learning-scientific-and-plotting dept. (5371) (14) by Luis

Here is a very quick way to install octave with aquaterm on Mac OS X 10.10 a.k.a. Yosemite. Note that these steps are not for the feign of heart and your millage might vary... Follow at your own risk.

Machine Learning with Octave

updated 2014-10-24 05:15 GMT - includes MacTex

First things first

Before you start you need to get your system setup. You will need:

  1. install Xcode from Apple's dev site
  2. install Xcode command line utilities from Xcode add-ons
  3. install hombrew
  4. install AquaTerm from sourceforge
  5. install Mac Latex (MacTex) from tug.org

After dependencies

Yep, note that I'm assuming that you already have a working Homebrew installation, compilers, and AquaTerm ready... Then you may do:

  1. brew reinstall gnuplot --with-aquaterm
  2. gnuplot # make sure it says "terminal set to aqua"
  3. brew install lua51 # yes, you also need this old version of Lua
  4. brew install octave

Installing Octave will take a while and it will install Lua 2.x as a dependency. If you see the make check | tee make-check.log taking an extremely long time. You might have to open a new terminal and navigate to cd /tmp/octave* and cat make-check.log to see where it went wrong. In my case it used to stop while loading lua dynlib files but installing the older lua51 fixed it.

Leave a comment if you need help, but this should do the trick ;) Now you can move on with your Machine Learning studies!

Test

Here is a quick way to know everything works correctly:

  1. octave
  2. a = [2;3;4;5;6;3;4;32;3;2;1;4;5;6;7;]
  3. b = [12;23;44;55;66;12;44;9;5;27;111;23;66;89;88;]
  4. plot ([a, b])

A B plot test

Happy plotting!

More...




Advertisement