Johan Rylander

2011-03-10

git svn crash course

Postat i: Programming — Johan Rylander @ 10:49

git svn clone -s <svn-url-without-trunk-or-whatever>

Om det skiter sig, cd in i utcheckningen och kör git svn fetch tills klart

Ev kör git reset –hard HEAD om svn status ger fel

vi .git/config och lägg till ”svn” efter ”remotes” dvs /remotes/ blir /remotes/svn/

git svn fetch för att hämta remotes under nya namn

git branch -r | grep -v svn | xargs -n 1 git branch -d -r för att ta bort de gamla remotes

Det sista gör att man slipper ”ambigous” mellan svn-branches och lokala d:o

Welcome to it! :)

 

Referenser:

 

2010-12-31

Using private/public key to login with putty

Postat i: Computers — Johan Rylander @ 15:38

On Windows 7, using putty the private key file needs to be in a directory without slashes. A stored config to login with a key file is:

  1. Session->Host Name: Whatever host you want to access
  2. Connection->Data->Auto-login username: The login name to use at remote host
  3. Connection->SSH->Auth->Private key file…: The file containing the private key. N.B that the path to this file cannot have spaces in it.

Sleep and wake your mac from Windows

Postat i: Computers, Uncategorized — Johan Rylander @ 15:31

I use my mac mini to backup my windows box using the (free) software from crashplan.

The mac mini sits at the top of a book shelf and so is hard to reach so to wake it up and put it to sleep, I use putty with a stored config that executes:

pmset sleepnow

I use puttygen to get a public/private key and put the public one into .ssh/authorized_keys on the mac and then put:

putty.exe -load MiniSleep

into a batch file (MiniSleep is the stored config).

To wake it up, I use mc-wol.exe and use the ethernet-mac address on the mac as argument. That is also put into a batch file.

So, now I have two batch files, wakeup.bat and sleep.bat

Links:

2010-10-07

ant completion in bash

Postat i: Computers, java, Programming — Johan Rylander @ 14:32

Originally from http://matthew.mceachen.us/blog/ant-bash-completion-on-mac-os-x-43.html

  1. sudo brew install bash-completion
  2. Add to .profile or .bash_profile:
    if [ -f `brew --prefix`/etc/bash_completion ]; then  . `brew –prefix`/etc/bash_completionficomplete -C /usr/share/ant/bin/complete-ant-cmd.pl ant

2010-09-16

Bra om git

Postat i: Programming — Johan Rylander @ 9:13

http://smalltalk.gnu.org/blog/bonzinip/using-git-without-feeling-stupid-part-1

Med svn bakom:

http://www.viget.com/extend/effectively-using-git-with-subversion/

2010-08-04

Get rid of that zooming in IntelliJ

Postat i: Programming — Johan Rylander @ 11:08

Settings -> IDE Settings group -> Editor -> Enable Ctrl+MouseWheel changes font size (in top left group ”Advanced mouse usage”)

Ahh! At last :)

2010-07-02

Huawei E122 and Dovado 3GN

Postat i: Computers — Johan Rylander @ 13:00

How we all continue to buy things that are this complicated to get to work never ceases to amaze me:

I have a Huawei E122 (from tre) that has worked really well and the installation went really smooth too. Trying to get it to work in Dovado:

  1. Start Dovado 3GN and surf to 192.168.0.1
  2. The login page and all subsequent pages loads extremely slow (minutes)
  3. At the end it does not connect with the modem
  4. Update modem with firmware from tre.se, need to use a Windows computer
  5. Test again, still extremely slow
  6. No go.
  7. Update Dovado from dovado.se
  8. Hey, it works!

But really… Yes, Dovado should work with a myriad of products but still, how is any normal consumer supposed to cope with all this?

innerHTML vs jquery html()

Postat i: web — Johan Rylander @ 10:02

Just learnt from hard experience the performance difference between the vanilla javascript innerHTML property and jquery’s html() method.

For Firefox 3.6 it was not so bug, just maybe 50% but for Safari the difference was several 100% (!). For Google Chrome, the difference was somewhere in between. All this is for a pretty large chunk of html and has been tested on Mac OS X. In usability the difference meant not being show a spinning beach ball in Safari and for Chrome not being asked whether it should terminate the script.

2010-06-08

Debugging javascript in ie7

Postat i: Programming, web — Johan Rylander @ 17:38

This article worked nicely:

http://www.berniecode.com/blog/2007/03/08/how-to-debug-javascript-with-visual-web-developer-express/#comment-41712

2010-05-11

Tail for windows to view large files

Postat i: Computers — Johan Rylander @ 7:59

Being stuck on windows for a while I needed a program to be able to view large log files. This one worked well and worked on big files, including opening them over lan: http://www.baremetalsoft.com/baretail/

« Nyare inläggÄldre inlägg »

Tema: Silver is the New Black. Blogga med WordPress.com.

Följ

Få meddelanden om nya inlägg via e-post.