Johan Rylander

2012-01-03

Är jag i view eller edit mode

Postat i: Polopoly, Uncategorized — Etiketter: — Johan Rylander @ 16:36

Eftersom jag ständigt glömmer bort koden, härna:

boolean editMode;

@Override
public void preRender(OrchidContext oc) throws OrchidException {
editMode = (getContentSession().getMode() == ContentSession.EDIT_MODE);
}

2011-12-15

Officiella Google Galaxy Nexus ROM:ar

Postat i: Uncategorized — Etiketter: — Johan Rylander @ 15:34

Finns här: http://code.google.com/android/nexus/images.html

2010-12-31

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-03-21

Yellow dog linux on old powerbook

Postat i: Uncategorized — Johan Rylander @ 0:46
  1. Get http://ydl.oregonstate.edu/releases/yellowdog-6.2/os/images/boot.iso
  2. Burn to cd
  3. Boot from above cd and point to (for Sweden) http://ftp.sunet.se/pub/os/Linux/distributions/yellowdog/releases/yellowdog-6.2/os/

Enjoy

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

Follow

Get every new post delivered to your Inbox.