Mostrando entradas con la etiqueta EN. Mostrar todas las entradas
Mostrando entradas con la etiqueta EN. Mostrar todas las entradas

2024-09-15

How 3 Phase Power works: why 3 phases?

2024-04-20

2018-07-17

How to delete the mp3 file of the current audacious song

I you want to delete the mp3 file of the current song playing in audacious just follow these steps:

  • First add the following text to the change song plugin for the starting songs
    echo "%f"<audacious.tx
  • now execute this command each time you want to delete a song.
    rm "`cat audacious.txt|sed -e 's/%20/ /g' |sed -e 's/%26/\&/g' |sed -e 's/file:..//g'`"
    

Maybe you'll have to add more sed commands depending on the name of your songs.

Happy hacking!!!

2018-07-10

Try-With-Resource in Plain Java

Try-With-Resource in Plain Java

This article explains the difference between Java 8 and Java 9 handling try-resource problem

2018-06-28

How to recreate /etc/nginx directory

Maybe you removed the /etc/nginx directory or you messed around with it, how can you recreate it?

To recreate it, first uninstall using purge to remove even configuration files and records:

sudo apt-get purge nginx nginx-common nginx-full

then reinstall:

sudo apt-get install nginx

If above doesn't work for you, you can also try using --force-confmiss option of dpkg.

sudo dpkg --force-confmiss -i /var/cache/apt/archives/nginx-common_*.deb

Borrowed from stackoverflow

2018-05-11

2017-05-09

What are these 240p, 360p, 480p, 720p, 1080p units for videos? What's the basic idea behind it?

From this entry in Quora

240p, 480p, 720p, etc. are Video Resolutions which denote the vertical resolution. However "P" does not stand for "pixels" but for "progressive".

720p means that all 720 lines are drawn in each frame.

It is the opposite to Interlaced (denoted as "i") where just half of the lines is drawn each frame. So the numbers give you vertical resolutions.

Most Common Video Resolutions are the following ones:

352 x 240(240p)(SD)
480 x 360(360p)
858 x 480(480p)
1280 x 720(720p)(Half HD)
1920 x 1080(1080p)(Full HD)
3860 x 2160(2160p)(Ultra-HD) (4K)

2017-04-24

How to Keep a CHANGELOG

This is a good reference on how to keep a change log for your apps

http://keepachangelog.com/en/

2016-10-10

"Now, I am become Death, the destroyer of worlds." Julius Robert Oppenheimer

We knew the world would not be the same. A few people laughed, 
a few people cried, most people were silent. I remembered the 
line from the Hindu scripture, the Bhagavad-Gita. Vishnu is 
trying to persuade the Prince that he should do his duty and 
to impress him takes on his multi-armed form and says, 
"Now, I am become Death, the destroyer of worlds."
I suppose we all thought that one way or another.

-J. Robert Oppenheimer

You can watch Oppenheimer speech in a vídeo pronounced by himself.

http://www.atomicarchive.com/Movies/Movie8.shtml

2016-08-12

Cannot start the Emulator in Android Studio 2.0+

If you see the following error:

libGL error: unable to load driver: r600_dri.so

Just do this:

$sudo apt-get install lib64stdc++6

$ cd $ANDROID_HOME/android-sdk-linux_x86/tools/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.bak
$ ln -s /usr/lib64/libstdc++.so.6 $ANDROID_HOME/android-sdk-linux_x86/tools/lib64/libstdc++

Happy hacking!!!

2015-10-06

15 Sorting Algorithms in 6 Minutes

Visualization and "audibilization" of 15 Sorting Algorithms in 6 Minutes. Sorts random shuffles of integers, with both speed and the number of items adapted to each algorithm's complexity. The algorithms are: selection sort, insertion sort, quick sort, merge sort, heap sort, radix sort (LSD), radix sort (MSD), std::sort (intro sort), std::stable_sort (adaptive merge sort), shell sort, bubble sort, cocktail shaker sort, gnome sort, bitonic sort and bogo sort (30 seconds of it). More information on the "Sound of Sorting" at http://panthema.net/2013/sound-of-sorting/

2015-07-15

Get a QR code for your android app

To get a QR code for your app go HERE

2015-07-13

Converting from Joda-Time to java.time

What steps are needed to upgrade from Joda-Time to Java SE 8 date and time (JSR-310)?

From Joda-Time to java.time

Joda-Time has been a very successful date and time library, widely used and making a real difference to many applications over the past 12 years or so. But if you are moving your application to Java SE 8, its time to consider moving on to java.time, formerly known as JSR-310.

The java.time library contains many of the lessons learned from Joda-Time, including stricter null handling and a better approach to multiple calendar systems. I use the phraseology that java.time is "inspired by Joda-Time", rather than an exact derivation, however many concepts will be familiar.

More at blog.joda.org

Why JSR-310 isn't Joda-Time

One question that has been repeatedly asked is why JSR-310 wasn't simply the same as Joda-Time. I hope to expain some reasons here.

Joda-Time as JSR-310?

At its heart, JSR-310 is an effort to add a quality date and time library to the JDK. So, since most people consider Joda-Time to be a quality library, why not include it directly in the JDK?

Well, there is one key reason - Joda-Time has design flaws.

more at blog.joda.org

2015-06-28

BrandColors

Oficial color codes for the world's biggest brands

http://brandcolors.net/?ref=webdesignernews.com

Ariel the Mermaid vs the Peeing Statue

GNU/Linux command line sortcuts

The following keyboard shortcuts are incredibly useful and will save you loads of time:

  • CTRL + U – Cuts text up until the cursor.
  • CTRL + K – Cuts text from the cursor until the end of the line
  • CTRL + Y – Pastes text
  • CTRL + E – Move cursor to end of line
  • CTRL + A – Move cursor to the beginning of the line
  • ALT + F – Jump forward to next space
  • ALT + B – Skip back to previous space
  • ALT + Backspace – Delete previous word
  • CTRL + W – Cut word behind cursor
  • Shift + Insert – Pastes text into terminal

Borrowed from here

2014-08-01

Samsung Galaxy S3 mini I8190 unlock pattern lock


Sometimes your hacker inside calls for some obscure task, here you are how to bypass the unlock pattern in a gross mode, that is, erasing all }:->



Do it just to your phone, and do not evil :-)

Happy hacking!!!


2014-05-13