Evaggelos Balaskas - System Engineer

The sky above the port was the color of television, tuned to a dead channel

Blog
Posts
Wiki
About
Contact
rss.png twitter linkedin github gitlab profile for ebal on Stack Exchange

Next Page »
  -  
Sep
28
2012
Vim English-Greek Spell Dictionary
Posted by ebal at 09:40:55 in blog, planet_Sysadmin

I use vim as my primary editor.


btw i've never believed in Vim Vs Emacs cause the are two very different 
programs that do very different staffs with very different ways.

Apples and Orange.

The only (by me) common thing is that you can use them as editors too.

I use mutt as my primary MUA with $EDITOR=vim.

Writing frequently emails in more than one language can be harsh with no key bindings or a spell checker. You have to be very careful cause a tiny typo error can confuse a lot of people or worse.

People in sysadmin jobs understand what i mean a little better than others.

vim has been integrated with spell checking functionality. English (of course) are embedded.

To read all about that, open vim and on command mode write:


: help spell

If you want globally to map a function key to English spell checking functionality then, in /etc/vimrc write something like that:


:map <f5> :setlocal spell spelllang=en_us<return>

Next time you open vim (or editing an email through mutt) you can press F5 to spell check your text/email.

 

For Greek spell you need to google it. If you do that, then you’ll find instructions of using openoffice greek spell zip file for creating yours vim spell file (hint: mkspell). You can map it with F6 key and use it as above.

But I am writing both English & Greek and i am boring of typing F[what ever] key or switching languages and mpla mpla mpla mpla …

I use english_greek_spelling_dictionary of Firefox.

So how cool should be if a similar spell checking mechanism exist for vim ? A few days ago, linuxinside.gr had a tribute on pkst (Κώστας Παπαδήμας) and the idea strike me at that moment.

Here are the instructions of making your own



wget -c https://addons.mozilla.org/firefox/downloads/file/108368/english_greek_spelling_dictionary-0.5.5-tb+fx+sm.xpi
unzip english_greek_spelling_dictionary-0.5.5-tb+fx+sm.xpi
cd dictionaries/

At this point we will use mkspell.
Open vim:


vim

and on command mode type:


:mkspell engr English & Greek

The result is something like this:


Reading affix file English & Greek.aff ...
Trailing text in English & Greek.aff line 532: υ
Affix name too long in English & Greek.aff line 871: AA
Reading dictionary file English & Greek.dic ...
First duplicate word in English & Greek.dic line 588565: ΑΒΑ
12794 duplicate word(s) in English & Greek.dic
Compressing word tree...
Compressed 12575870 of 13454281 nodes; 878411 (6%) remaining
Compressed 15867 of 20446 nodes; 4579 (22%) remaining
Writing spell file engr.utf-8.spl ...
Done!
Estimated runtime memory use: 4415720 bytes

If you try to use a region name, then you will be facing the below error msg:


:mkspell en_gr English & Greek

E751: Output file name must not have region name

The result is : engr.utf-8.spl

We can move this to vim default spell location:


sudo cp engr.utf-8.spl /usr/share/vim/vim73/spell/

To map a key to English-Greek spell dictionary, open /etc/vimrc and add the below line:


:map <f6> :setlocal spell spelllang=engr<return>

Here is an example:

vim.spell.png

and here is the file (if you dont want to make it)

engr.utf-8.spl

Tag(s): vim, spell, English, Greek, firefox
    Tag: vim, spell, English, Greek, firefox
  • 1 comment
Sep
28
2012
ebalaskas: Vim English-Greek Spell Dictionary…
Posted by ebalaskas timeline at 08:04:54 in microblogging

identica.pngVim English-Greek Spell Dictionary http://ur1.ca/afjqo

from Updates from ebalaskas on Identi.ca!

Sep
24
2012
ebalaskas: On a 1TB sata2…
Posted by ebalaskas timeline at 10:08:11 in microblogging

identica.pngOn a 1TB sata2 disk: # yes > yesfile # shred yesfile is something you can do … if you have a gazillion years of free time !

from Updates from ebalaskas on Identi.ca!

Sep
20
2012
ebalaskas: openssl x509 -in <(openssl…
Posted by ebalaskas timeline at 11:41:53 in microblogging

identica.pngopenssl x509 -in <(openssl s_client -connect google.com:443) -noout -enddate #bash

from Updates from ebalaskas on Identi.ca!

Sep
13
2012
ebalaskas: The Computer Language Benchmarks…
Posted by ebalaskas timeline at 09:54:35 in microblogging

identica.pngThe Computer Language Benchmarks Game http://ur1.ca/b834

from Updates from ebalaskas on Identi.ca!

Sep
10
2012
How to determine if you are running a 32bit or a 64bit distro
Posted by ebal at 08:00:37 in blog, planet_Sysadmin

This is one of the most idiotic questions i am reading all the time on the web (linux related).

So lets take the most frequent answer on this:


file /bin/ls

If the result is 32 then you are using a 32bit distro.
If the result is 64 then you are using a 64bit distro.

SO ?

I ‘ve already knew that cause i installed a 32bit linux on my machine !
It’s obvious !

When people asking this question at 99,9999% of the times, they want to know if their machine has 64bit capabilities.
And at that point you have to give them a hint, that they have to look on their CPU flags.

I’ve comment on a blog (ubuntu related) that this isnt the right way cause you can install a 32bit distro on a 64bit CPU and if you are using file linux command you cant understand if your CPU is 64bit !

They immediately removed my comment (wat?)

My comment had an extra tip :

If the below command has output


grep ^flags /proc/cpuinfo | grep ' lm '

or in one line:


grep -E '^flags.* lm .*'  /proc/cpuinfo

then your cpu has Long Mode (x86-64) capabilities.

The definition of flags are in cpufeature.h
and can be found online here:

cpufeature

One other way is to search online the model name of your cpu. The model name can be also located in /proc/cpuinfo

  • 2 comments
Sep
05
2012
hackerspace
Posted by ebal at 08:35:00 in blog, planet_Sysadmin

Σήμερα στο hsgr έχουμε ανοιχτή συνέλευση: Meeting

Είναι ιδανική μέρα για να έρθετε, να μιλήσουμε, να μας γνωρίζεται, να συζητήσουμε τις ιδέες σας ή να λύσουμε κάποιες από τις ερωτήσεις σας.

Πατήστε εδώ για να δείτε πως θα έρθετε.

” Το Hackerspace είναι ένας ανοιχτός χώρος δημιουργικότητας, συνεργασίας, έρευνας, ανάπτυξης και φυσικά μάθησης. Είναι όμως και κάτι περισσότερο από ένας φυσικός χώρος. Είναι μια ενεργή κοινότητα ανθρώπων με ιδέες που πηγάζουν απ’ τη φιλοσοφία του Ελεύθερου Λογισμικού. “

HSGR Vision

Α. Νέα Μέλη

Εάν πιστεύεται ότι συμφωνείτε με το πως ρολλάρουμε κι επίσης συμμερίζεστε το όραμά μας, συμπληρώστε μια αίτηση για νέο μέλος (υπενθύμιση ότι το hsgr είναι φυσικός χώρος κι έτσι οι μέντορες ζητούν φυσική παρουσία από τα υποψήφια νέα μέλη).

Β. Εξοπλισμός

Donate for Hackerspace.gr Equip

Εάν έχετε διαθέσιμο εξοπλισμό να δωρίσετε στο hsgr (ή έχετε τρόπο να μας προσφέρετε εξοπλισμό ή έκπτωση) υπάρχει σε εξέλιξη αυτή η hsgr campaign.

φαίνεται πως έχουν παγώσει οι δωρεές - λογικό αυτό τον καιρό - μα κάθε βοήθεια ευπρόσδεκτη.

Γ. Τεχνικά Βιβλία

Εάν θέλετε να δωρίσετε τα τεχνικά σας βιβλία στο hsgr, με χαρά μας να τα δεχθούμε. Ίσως να μην τα πάρουμε όλα ! αλλά σίγουρα κάτι θα βρούμε για να εμπλουτίσουμε την βιβλιοθήκη μας.

Μερικά από τα ήδη υπάρχοντα βιβλία/περιοδικά στον χώρο είναι τα εξής: books
Ελεύθερα μπορείτε να έρθετε στο Hsgr για να διαβάσετε ένα από αυτά, χωρίς καμία δέσμευση.

Δ. Υπολογιστές

Έχουμε διαθέσιμα αρκετά spare κομμάτια ήδη. Δεν ζητάμε παραπάνω. Ζητάμε τεχνικούς με μεράκι να μας βοηθήσουν να τα συναρμολογήσουμε ώστε να φέρουμε σε ζωή παλιό εξοπλισμό. Για όσους υπολογιστές φτιάξουμε και δεν χρησιμοποιηθούν στο hsgr, θα γίνουν δωρεά σε ανθρώπους ή νέα παιδιά που δεν έχουν. Εάν έχεις χρόνο στην διάθεσή σου και ξέρεις να συναρμολογείς μπορείς να βοηθήσεις. Κι έναν να φτιάξεις για εμάς είναι αρκετό.

E. Workshops / Παρουσιάσεις aka Events

Είμαστε διαθέσιμοι για να ανοίξουμε τον χώρο σε όποιον φίλο θέλει να κάνει κάποια παρουσίαση ή workshop στον τομέα του.
open source is a philosophy - keep that in mind !

ΣΤ. Σύλλογοι / Ομάδες εργασίας

Ο χώρος είναι διαθέσιμος να φιλοξενήσει οποιοδήποτε ομάδα ή σύλλογο θέλει να κάνει τις συναντήσεις του στο hsgr.
Εάν υπάρχει μέλος του hsgr διαθέσιμο να σας ανοίξει, τότε απλά βλέπετε το πρόγραμμα του hsgr και δεσμεύεται την ημερομηνία.

Εάν δεν υπάρχει κάποιο μέλος του hsgr και θέλετε σε μηνιαία (ή εβδομαδιαία) βάση να έρχεστε, τότε το hsgr είναι ναι μεν διαθέσιμο (θα βρούμε εμείς κάποιο μέλος να ανοίγει τον χώρο), αλλά θα σας συζήσουμε μια μικρή συνδρομή για τα έξοδα του χώρου.

Ζ. Ψυγείο / Προμήθειες.

Στο χώρο έχουμε ένα ψυγείο. Μπορείτε να βοηθήσετε γεμίζοντάς το με αναψυκτικά ή μπύρεςςςςςςς!
Μπορείτε να βοηθήσετε κι απλά φέρνοντας ένα πακέτο καφέ, ζάχαρη (τσάι, σάμαλι, γαλλικό, ελληνικό, εσπρέσσο κλπ κλπ κλπ κλπ).

Η. Supporters

Σε αυτή την σελίδα έχουμε καταγράψει τους Supporters του hsgr:

ή ανώνυμα υπάρχει ένα donation box μέσα στο hsgr !

Κι εάν είστε μακριά και δεν μπορείτε να έρθετε, ορίστε πως μπορείτε να προσφέρετε:
Donate

Θ. Προπαγάνδα

Μπορείτε να μας βοηθήσετε κι απλά συμμετέχοντας στην προπαγάνδα μας:

Για να μην σας ταλαιπωρώ άλλο με το εκτενές post μου, ρίξτε μια ματιά στα events που έχουμε φιλοξενήσει μέχρι τώρα.

Tag(s): hsgr
    Tag: hsgr
Sep
05
2012
ebalaskas: Hackerspace.GR
Posted by ebalaskas timeline at 06:55:53 in microblogging

identica.pngHackerspace.GR http://ur1.ca/a48qe just a few words about hsgr. Plz read it and RT it

from Updates from ebalaskas on Identi.ca!

Sep
05
2012
ebalaskas: How many hours have…
Posted by ebalaskas timeline at 06:08:07 in microblogging

identica.pngHow many hours have your disk been Powered On ? sudo smartctl -a /dev/sda | grep Power_On_Hours

from Updates from ebalaskas on Identi.ca!

Sep
04
2012
ebalaskas: Archers, plz dont forget…
Posted by ebalaskas timeline at 05:18:10 in microblogging

identica.pngArchers, plz dont forget to add yourself to ArchMap http://ur1.ca/8buwt #archlinux

from Updates from ebalaskas on Identi.ca!

Sep
03
2012
ebalaskas: simple port scan/knocking :…
Posted by ebalaskas timeline at 19:22:06 in microblogging

identica.pngsimple port scan/knocking : $ nc -zv example.com 1-65355

from Updates from ebalaskas on Identi.ca!

Sep
03
2012
ebalaskas: bash tip: word=”lowercaseUPPERCASE”…
Posted by ebalaskas timeline at 17:28:09 in microblogging

identica.pngbash tip: word=”lowercaseUPPERCASE” $ echo ${word^^} LOWERCASEUPPERCASE $ echo ${word,,} lowercaseuppercase

from Updates from ebalaskas on Identi.ca!

Sep
03
2012
ebalaskas: Auto Blind copy your…
Posted by ebalaskas timeline at 15:08:57 in microblogging

identica.pngAuto Blind copy your self with mutt: my_hdr Bcc: Evaggelos Balaskas <ebalaskas_AT_ebalaskas_DOT_gr> replace AT with @ and _DOT with .

from Updates from ebalaskas on Identi.ca!

Sep
03
2012
ebalaskas: tip: If you want…
Posted by ebalaskas timeline at 07:01:49 in microblogging

identica.pngtip: If you want to remove a very very large file on linux, first $ truncate -s 0 very.very.large.file and then $ rm very.very.large.file

from Updates from ebalaskas on Identi.ca!

Sep
03
2012
ebalaskas: Try This : What’s…
Posted by ebalaskas timeline at 06:12:38 in microblogging

identica.pngTry This : What’s your PS1? http://ur1.ca/a3i39

from Updates from ebalaskas on Identi.ca!

Sep
03
2012
ebalaskas: how to blame a…
Posted by ebalaskas timeline at 05:04:28 in microblogging

identica.pnghow to blame a service: #systemd systemd-analyze && systemd-analyze blame

from Updates from ebalaskas on Identi.ca!

  -  

Search

Admin area

  • Login

Categories

  • blog
  • wiki
  • pirsynd
  • midori
  • books
  • archlinux
  • movies
  • xfce
  • code
  • beer
  • planet_ellak
  • planet_Sysadmin
  • microblogging
  • UH572
  • KoboGlo
  • planet_fsfe

Archives

  • 2025
    • April
    • March
    • February
  • 2024
    • November
    • October
    • August
    • April
    • March
  • 2023
    • May
    • April
  • 2022
    • November
    • October
    • August
    • February
  • 2021
    • November
    • July
    • June
    • May
    • April
    • March
    • February
  • 2020
    • December
    • November
    • September
    • August
    • June
    • May
    • April
    • March
    • January
  • 2019
    • December
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2018
    • December
    • November
    • October
    • September
    • August
    • June
    • May
    • April
    • March
    • February
    • January
  • 2017
    • December
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2016
    • December
    • November
    • October
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2015
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • January
  • 2014
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2013
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2012
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2011
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2010
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
  • 2009
    • December
    • November
    • October
    • September
    • August
    • July
    • June
    • May
    • April
    • March
    • February
    • January
Ευάγγελος.Μπαλάσκας.gr

License GNU FDL 1.3 - CC BY-SA 3.0