Sunday, August 12, 2018

problem with mplayer diacritics

Though not as popular as it used to be, mplayer is very versatile and I like it.
On a certain movie the .srt subtitle was displaying funny characters.
First I added all needed languages in Language Settings and then went into ~/.mplayer/config where I commented the iso8859-1 line and added utf-8. All worked well.

#subcp = iso8859-1 
subcp=utf-8
 
 

Monday, February 05, 2018

Schedule ETH transactions with Chronobot

Sometimes you need to make an Ethereum payment transfer at a specific time that may not be very convenient to you(middle of the night, airplane flight, etc). With Ethereum Chronobot, you can submit signed transactions to be executed lately at the time you choose. In the case of ICOs this might be very handy, because you can prepare everything and schedule the payment exactly when the ICO starts so you minimize the chances of missing it.

Chronobot will broadcast your transactions to multiple nodes so miners can pick it up very fast. There is no need to keep your internet connection up or wallet open, once you have submitted to Chronobot, everything will be done automatically.

Monday, July 10, 2017

Best domains suggestion tool

I've been searching lately for some free domain names and I've tried several tools. leandomainsearch.com has been the most helpful for common extensions such as .com/.net For the new extensions and exotic extensions domainsbot.com is ok.

Wednesday, May 24, 2017

unique and common names combos

Checking again common first names on my surname: Aman and first name Ana, and found at least 17 people named Ana Aman. Amazing!

Saturday, January 14, 2017

unzip skipping: file.txt `PPMd' method not supported

It seems like unzip does not support 7z, so to decompress such file I had to install p7zip:

$ apt-get install p7zip-full
then
$ 7z x file.zip

Friday, June 03, 2016

transfer/copy database with SSH with only one command line

You can migrate a database using a single command line:

mysqldump –add-drop-table –extended-insert –force –log-error=error.log -uUSER -pPASS OLD_DB_NAME | ssh -C user@newhost "mysql -uUSER -pPASS NEW_DB_NAME"

man: can't set the locale; make sure $LC_* and $LANG are correct

I keep getting this error:
man: can't set the locale; make sure $LC_* and $LANG are correct

I tried locale-gen and many other things, without success.
The only thing that fixed it is: export LC_ALL=en_US.UTF-8 (which of course can be added in .profile to be permanent)

Friday, April 15, 2016

Search engine for html source code search

I needed to search for a little code which is available only in HTML source, not in the rendered page. So a simple search would show nothing. After reading on Quora and Stackoverflow, I've found some recommendations: MeanPath, Blekko, Datanyze, Nerdydata. Useless, except some limited results from Google, nothing really worked.

Add Russian charset in Linuxmint/Debian

I opened a console and tried to paste some Russian word but it looked very weird. Then I run: # locale-gen ru_RU.UTF-8 and all works well.

Friday, April 08, 2016

Aman surname

Some more research on my name...
Aman seems to be a popular surname in USA and also a popular first name in India. It means "peace" and rhymes with Atman and Batman.

Friday, April 01, 2016

Surname Aman

Today I have taken a better look on Locate My Name website and I have found some interesting facts. I had no idea my name is so popular in these countries: /fr/Aman /de/Aman /at/Aman.

Monday, March 28, 2016

Type accent marks, diacritics and other characters online

If you need quickly diacritics or currency signs, typeit.org does it for you. Many languages supported.

Saturday, March 26, 2016

SSH port forwarding: bind: Cannot assign requested address

While trying to do a simple port forwarding to access a remote mysql server via a secured channel I was getting an annoying bind: Cannot assign requested address.

$ ssh -v user@host.biz -L5555:localhost:3306
debug1: Local forwarding listening on ::1 port 5555.
bind: Cannot assign requested address

So it must be the buggy IPv6, after adding -4, all worked like a charm.

$ ssh -4 -v user@host.biz -L5555:localhost:3306
debug1: Local forwarding listening on 127.0.0.1 port 5555.
debug1: channel 0: new [port listener]

Diacritics in a linux console for pico/nano/etc

I wanted to quickly edit a text file with pico and when I pasted a word, I noticed that all diacritics were replaced with some funny characters. A quick fix was to edit /etc/locale.gen and add my language like pl_PL.UTF-8 UTF-8 for Polish. Then run # locale-gen as root and all was working good. A list with all supported languages can be found in /usr/share/i18n/SUPPORTED

Monday, January 25, 2016

SCAM ALERT: Blue strawberries, climbing strawberries, blue roses




A few weeks ago I have ordered from Ebay some strawberry seeds. I wanted to get as many varieties as possible and while searching I noticed some guys offer blue or violet or even green strawberry seeds. I ordered a couple of those too, only to find out later that such things don't even exist and the pictures are made in Photoshop. Then I looked at reviews and I realised how many people got scammed the same way. Many gave positive reviews right away after receiving the seeds. Shame on all these sellers for what they are doing. You spend money plus time and resources to take care of something that has no chances to succeed. Shame on them and shame on me because I researched this only after the purchase. This works very well with ebay feedback because getting a fruit from seeds could take years, and you can no longer leave feedbacks after 60 days so these sellers keep 99%+ positives and appear very legit.

It's 100% SCAM. If you look on youtube there is no single video of real blue or climbing strawberries. Yeah, videos can be manipulated too, but not as easy as an image.

Monday, November 30, 2015

Request exceeded the limit of 10 internal redirects due to probable configuration error.

I upgraded to Apache 2.4.10 and I am getting these errors for sites which used to work:

AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

One strange thing is these happen only with .htaccess files. So if I use exactly the same configuration but written in vhosts config file such as /etc/apache2/sites-enabled/000-default.conf all works well. So yes, one quick fix is to put it there. But after doing some tests, I found out apache 2.4 does not like when you redirect stuff to index.php but you don't have a rule for index.php itsels. So simply keeping all rules and adding something like RewriteRule ^index\.php$ - [L] fixed the problem.

[UPDATE] On many other cases it seems to work without any trouble or extra rule, but on that particular one not... strange.

Sunday, November 29, 2015

kernel: do_IRQ: No irq handler for vector (irq -1)

On a fresh Debian Jessie I kept getting every couple of minutes this error:
do_IRQ: No irq handler for vector (irq -1)
A suggested solution is to add "pci=nomsi,noaer" in /etc/default/grub at GRUB_CMDLINE_LINUX
However,  noaer refers to PCIE Advanced Error Reporting and I don't want only to hide the mess, I want to fix it (if possible).
Only adding pci=nomsi seems to do the trick so far.
Also don't forget to do a update-grub after you edit /etc/default/grub.

Saturday, November 28, 2015

Debian 8 does not execute /etc/rc.local

I have just installed a fresh Debian 8 Jessie and then I put something in /etc/rc.local.
To my suprise, after the reboot, the command did not execute.
Log investigation showed:
Failed to start /etc/rc.local Compatibility.
Failed at step EXEC spawning /etc/rc.local: Exec format error
So I simply added "#!/bin/sh -e" in the first line of rc.local and then it worked well.

Thursday, November 19, 2015