Hello,
commit messages did not work out of the box in notepad++. It displayed the error "aborting due to empty commit message". I tested it what I have found, however error was shown. This link fixes the issue.
Using Notepad++ for your git commit messages [kitware.com/blog]
January 26, 2013
January 24, 2013
Github and ssh authentification
I had to set up git for 2 different accounts, but ssh-agent did not allow me to add anything. I found few solutions but none of them was working in my case. Windows 7 runs on my machine. Eventually I found one article which solved my problem, since that ssh-agent is running always when I execute Git bash. Here's the link:
[www.webweavertech.com/ovidiu/weblog]
Update Januar 24th:
It stopped working, agent was not able to run thus I couldn't fetch anything. The error which was display : bind I was struggling with it again until I tried to change this script:
Re-use existing ssh agent [www.electricmonk.nl]
It executes ssh-agent and automatically add one of my keys when I run git bash:
export SSH_AUTH_SOCK=/tmp/.ssh-socket
ssh-add -l >/dev/null 2>&1
if [ $? = 2 ]; then
# No ssh-agent running
rm -rf $SSH_AUTH_SOCK
ssh-agent -a $SSH_AUTH_SOCK >/tmp/.ssh-script
source /tmp/.ssh-script
echo $SSH_AGENT_PID > /tmp/.ssh-agent-pid
rm /tmp/.ssh-script
# add key only if ssh agent is not running
ssh-add c:/Users/xxx/.ssh/ssh_key
fi
[www.webweavertech.com/ovidiu/weblog]
Update Januar 24th:
It stopped working, agent was not able to run thus I couldn't fetch anything. The error which was display : bind I was struggling with it again until I tried to change this script:
Re-use existing ssh agent [www.electricmonk.nl]
It executes ssh-agent and automatically add one of my keys when I run git bash:
export SSH_AUTH_SOCK=/tmp/.ssh-socket
ssh-add -l >/dev/null 2>&1
if [ $? = 2 ]; then
# No ssh-agent running
rm -rf $SSH_AUTH_SOCK
ssh-agent -a $SSH_AUTH_SOCK >/tmp/.ssh-script
source /tmp/.ssh-script
echo $SSH_AGENT_PID > /tmp/.ssh-agent-pid
rm /tmp/.ssh-script
# add key only if ssh agent is not running
ssh-add c:/Users/xxx/.ssh/ssh_key
fi
January 16, 2013
CoOS RTOS (bookmark)
I finally found some time to explore another RTOS, this time it's CoOS. My KL25 freedom board will be great board for this purpose.
I have played with their CoX library in the beginning, tested all demos and how their code looks like, but I wanted to move to RTOS anyway.
CoOS RTOS [polisoftdesign.com]
Some introduction (part1-part3) to CoOS RTOS.
I have played with their CoX library in the beginning, tested all demos and how their code looks like, but I wanted to move to RTOS anyway.
CoOS RTOS [polisoftdesign.com]
Some introduction (part1-part3) to CoOS RTOS.
Git & gitignore
I had to create git ignore files for our project, and it took me more than my expectation. First of all, ** does not work with directories. Second of all, I had an idea to have only one ignore file with plenty of relative paths (not full but using * or ** ) but eventually it failed in my case. Thus I distributed files into subfolders where projects are generated and libraries are built.
This post made it clear and ever since it was simple to exclude specific files in particular directories
Git ignore specific files in directories [stackoverflow.com]
I have something like
!/*/build/iar/
/*/build/iar/*
!/*/build/iar/config files
!/*/build/iar/*.ewp
!/*/build/iar/*.ewd
!/*/build/iar/*.eww
One more tip, I have googled a bit when I faced a problem with git, and usually I landed at git ready webpage. This is excellent git reference.
git ready [gitready.com]
This post made it clear and ever since it was simple to exclude specific files in particular directories
Git ignore specific files in directories [stackoverflow.com]
I have something like
!/*/build/iar/
/*/build/iar/*
!/*/build/iar/config files
!/*/build/iar/*.ewp
!/*/build/iar/*.ewd
!/*/build/iar/*.eww
One more tip, I have googled a bit when I faced a problem with git, and usually I landed at git ready webpage. This is excellent git reference.
git ready [gitready.com]
January 2, 2013
IAR eclipse plugin (bookmark)
I was suprised when I read today IAR integrated eclipse plugin. Fully integrated IAR C-spy debugger. More information on IAR website.
December 31, 2012
Arithmetic encoding (bookmark)
Based on the previous post, I can't stop until I implement my own arithmetic coding. The worse is I don't have my laptop with me, therefore I only have read articles and tried encoding/decoding on the paper. Which is slightly harder if numbers used are fixed point and want to imitate how C program should work. These 3 pages helped me most to understand the problem.
Arithmetic Code [michael.dipperstein.com]
Basic arithmetic coding [arturocampos.com]
Arithmetic coding how to [pdf] [webspace.ulbsibiu.ro/macarie.breazu]
Arithmetic Code [michael.dipperstein.com]
Basic arithmetic coding [arturocampos.com]
Arithmetic coding how to [pdf] [webspace.ulbsibiu.ro/macarie.breazu]
December 26, 2012
Sort 1 milion of 8 digit numbers in 1M RAM (bookmark)
This one caught my attention yesterday, I will share a blog where it's written a solution and an explanation. There's more to read on that blog.
The question seemed to be asked during the interview, one of those which give you no peace until you find a possible approach.
Sort 1 million of 8 digits in 1MB RAM [preshing.com]
The question seemed to be asked during the interview, one of those which give you no peace until you find a possible approach.
Sort 1 million of 8 digits in 1MB RAM [preshing.com]
December 25, 2012
Books review (C and C++)
I was reading one post about which book you should not buy and realized I have not shared any websites which ultimately can narrow down the search. I normally check some blogs with reviews, accu webpage and amazon rating and google book preview before I purchase a book.
Books review [accu.org]
More than 1800 reviews. I would start with this one.
A few tips for choosing C and C++ books [cs.technion.ac.il/users/yechiel/CS]
Hints for choosing proper book. Links are at the bottom of the page where is list of bad C/C++ books.
I even tried to read some on my kindle but I prefer paper books for this type of reading. More posts about books should arrive.
Books review [accu.org]
More than 1800 reviews. I would start with this one.
A few tips for choosing C and C++ books [cs.technion.ac.il/users/yechiel/CS]
Hints for choosing proper book. Links are at the bottom of the page where is list of bad C/C++ books.
I even tried to read some on my kindle but I prefer paper books for this type of reading. More posts about books should arrive.
Subscribe to:
Posts (Atom)