Friday, August 17, 2012
מדריך לבניית אתרי אינטרנט או המוסד לביטוח לאומי - שרות ונגישות מעל הכל
Wednesday, June 6, 2012
Painstaking tasks (recursive archives)
Wednesday, May 9, 2012
Taking the longer path
As I am the "computer guy" in the family, I was appointed to be incharge of the presentation for my father-in-law 70th birthday.
Well, at least ,in charge of getting 200 picture images into a powerpoint presentation file (in deed a job worthy of my experties).
As i was starting this tedious task i looked online for an automatic solution for my problem that will save me some time, and found this nice post in msdn.
The task, of course, was a small battle of it's own (the code and my machines configuration needed some modifications due to it beeing a sample and not intended to work out of the box).
but, 3 houers (and 5 seconds of runtime) later, after showing the outcome to the "client", she said: "I would had done it faster manually".
well. I think I still like the longer path ... and I'll see what happens on his 80th (assuming I can find the code)
'till next time.
G.
Saturday, April 21, 2012
Tuesday, March 13, 2012
make Windows 8 CP look native in Virtualbox
I recently encountered another hassle in attempting to perfect my Window 8 machine. setting the virtual machine's screen resolution to fit my laptop screen (16:9) dimensions and resolution (1600X900X32bit) proved to be challenging.
I'm not the guy to run away from such a challenge.
Due to the Beta nature of the OS it was not surprising that Virtualbox's guest addition (Ver. 4.1.8), dose not yet support display dimensions that differ from 4:3
although there is the option of using the "scale mode" <host key+> it doesn't quite cut it.
Disregarding the annoying host top window bar, the font looks stretched and it's just not it :( no worries, there is a solution:
Shut down all of your Virtual machines and VirtualBox too (not mandatory for linux or Mac hosts).
for windows hosts:
open the command line interface type the following line:
in c:\Program Files\Oracle\virtualBox>
...>VBoxManage.exe setextradata "MachinName" CustomVideoMode1 1600x900x32for Linux hosts:
open terminal and type
:~$VBoxManage setextradata "MachineName" CustomVideoMode1 1600x900x32* replace MachineName with the name of your Virtual machine
Lo and behold ... it works (you can obviously use your favorite screen settings [Hight]x[Width]x[Depth]).
Saturday, March 10, 2012
A winning Combination
I have been working with Vim "text editor" for some time now. I found a few helpful entries I'd like to share. These helpful tips and tricks helps me be more efficient, code faster and makes the very powerful Vim even stronger.
First of all - install Vim and learn how to work with it (took me a while, but totally worth it).
The first cool add-on: snipMate (super easy to install) check it out
a short feature that show just the tip of the iceberg
Than i found some cool new features that actually transforms Vim editor in to an IDE altogether.
basically you need to run these commands:
$ git clone https://github.com/sontek/dotfiles.git $ cd dotfiles $ ./install.sh vim
unfortunately the both (snipMate and Pathogen) don't work well together, this is just a challenge for me, there is no way I'll give up and just choose one.
So I looked for a way to combine the two.
The trick was, installing them in the right order, snipMate then Pathogen (although you can mess around with it to find your way).
and then follow this little patch, to fix this small twitch, regarding mapping a different key <Ctrl+j> to activate snippet instead of <tab> to allow the both to co-exist.
Any way, the real cool thing about these features is that you can easily modify and adapt them to your needs. writing new code snippets, changing text highlighting, customizing auto-completions and syntax checking can be super helpful and is super easy to do.
you can create your very own customized, "free of Charge",flexible and "free spirited" IDE.
For example:
writing a new code snippet for "*.xml" filetype:
simply write a new file named "xml.snippets" and place it in "~/.vim/snippets/"
(or equivalent, e.g. $HOME\vimfiles on Windows), edit the file and add (for the example sake) this code:
snippet versionsnippet <>
<?xml version="${1:*.*}"?>
<${1:TagName}>
</${2:TagName}>
this is what it does (I'll let you do the simple revers engineering):
but the guidelines are "${1:text}" - the first variable the marker will enter when snippet key (in my case <Ctrl+j>) is hit.
* the video is a bit fuzzy but ... you'll get the picture :)
In future entries I'll try summarizing all of my insights in customizing Vim.
let me know what you think ... i feel this work was life changing (seeing that i suck in getting syntax correct the first time).
- Cool fact: "*.snippets" filetype has snippets (recursive ?) -
G.
Tuesday, March 6, 2012
Are you a team player ?
Do you lead ? Do you follow ? Do you feel obliged to do your best for the "greater good" ?
Or do you only take care of no. 1 ?
In order to make it as a team every one needs to pitch in, buck up, give it his best effort and "take one for the team".
Following the rules of the community you live / work in, is the foundation of team work. all you have to do as a team is set the standards and live by them.
Here is an example of a set of rules that puts logic and order into potential chaos.
http://kde.org/code-of-conduct/
A global community moving in unison towards a common goal ... on what logically would seem lead to total anarchy ... is driven by the common goal and basic set of rules.
What do you think ?
G.









