313 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Forum | Blogs | Search | myPL | About 
 
Latest 7 Posts
Log File Roller For Microsoft Windows
Thu, Dec 11th 2008 29
HOWTO Restart shoutcast if inbound stream is lost
Tue, Oct 21st 2008 13
HOWTO Edit your crontab with Emacs
Tue, Oct 14th 2008 17
Simple Combobox using Autocompleter.Local from Script.aculo.us
Wed, Oct 8th 2008 52
lotus.com/ldd no more :-(
Thu, Sep 4th 2008 115
HOWTO Use Lotus Notes, Domino Designer and Domino Administrator 8.01 on Ubuntu 8.04 via Wine 1.0.0
Mon, Sep 1st 2008 23
MySQL Commands Cheat Sheet
Thu, Jul 31st 2008 16
Top 10
lotus.com/ldd no more :-(
Thu, Sep 4th 2008 115
Simple Combobox using Autocompleter.Local from Script.aculo.us
Wed, Oct 8th 2008 52
Log File Roller For Microsoft Windows
Thu, Dec 11th 2008 29
HOWTO Use Lotus Notes, Domino Designer and Domino Administrator 8.01 on Ubuntu 8.04 via Wine 1.0.0
Mon, Sep 1st 2008 23
HOWTO Edit your crontab with Emacs
Tue, Oct 14th 2008 17
MySQL Commands Cheat Sheet
Thu, Jul 31st 2008 16
Bash Variables Cheat Sheet
Thu, Jul 31st 2008 16
HOWTO Restart shoutcast if inbound stream is lost
Tue, Oct 21st 2008 13
Linux Directories and Files Cheat Sheet
Thu, Jul 31st 2008 12
Linux Commands Cheat Sheet
Thu, Jul 31st 2008 12


Johan Känngård
Blog Title Johan Känngård
Blog Description Useful tips for developers
Blog URL http://johankanngard.net
RSS Feed http://johankanngard.net/feed
Validate Feed feedvalidator.org or validator.w3.org
Feed Last Checked Jan 09, 2009 6:53:37 PM EST. Realtime Update:
Landed Here Sep 04, 2008
Location
Posts: # / 1st / Latest 14 - Mar 13, 2008 - Dec 11, 2008
Total Hits 335. myPL RSS Selections: 16

Johan Känngård's Planet Lotus Keyword Cloud

microsoft


Total: 42 Average per Post: 3.0000

Blog Posts
29


Log File Roller For Microsoft Windows
Thu, Dec 11th 2008 8:50a   Johan Känngård
A simple log file roller, that rolls a file from FILENAME.0, to FILENAME.1, onwards to FILENAME.9. If FILENAME.9 exists, it is deleted. Can be used to keep log files small and managable, and delete old ones. The code is not pretty, I could not get it work with loops. If anyone has a better way of doing this, please let me know! :-) Usage: rollLog LOGDIRECTORY LOGFILENAME For instance, if you have a log at c:\log\at.log, you can run: rollLog c:\logs at.log Afterwards, you have one fi [read] Keywords: microsoft
13


HOWTO Restart shoutcast if inbound stream is lost
Tue, Oct 21st 2008 10:52a   Johan Känngård
This is a simple way to get Shoutcast restarted (tested in Ubuntu 8.04) if the inbound stream is lost. Put in file shoutcast_supervisor.sh in /usr/bin: #!/bin/bash ONLINE=$(lynx -dump localhost:8000 | grep "Stream is up" | wc -l) if [ "$ONLINE" -eq "0" ] then logger -i Inbound connection not found. Restarting Shoutcast. /etc/init.d/shoutcast restart fi Change ownership and group: $ sudo chown root /usr/bin/shoutcast_supervisor.sh $ sudo chgrp root /usr/bin/shoutcast_supervisor [read] Keywords: ubuntu
17


HOWTO Edit your crontab with Emacs
Tue, Oct 14th 2008 10:51a   Johan Känngård
Another “wee” tip. I had a hard time doing this right… Put emacs in the EDITOR shell variable: $ EDITOR=emacs $ export EDITOR and add the following to your ~/.emacs: (set 'temporary-file-directory "/tmp") Now, edit the crontab file via: $ crontab -e Edit and save the file, and you should get a response from crontab: crontab: installing new crontab If you get an error message, something is wrong. You can check that your edits really changed your crontab [read] Keywords:
52


Simple Combobox using Autocompleter.Local from Script.aculo.us
Wed, Oct 8th 2008 9:51a   Johan Känngård
The Autocompleter.Local in the Script.aculo.us Prototype-addon is quite nice. It can be used to get type-ahead into a field if you have a local JavaScript Array. I wanted to extend the functionality to have it behave as a Combobox, which is like a Select with a text input field. Here is how I did it, be advised it has some bugs, let me know if you have a better solution! var Combobox={}; Combobox.Local=Class.create(Autocompleter.Local,{ initialize:function($super,element,update,array,optio [read] Keywords: javascript css wiki
115


lotus.com/ldd no more :-(
Thu, Sep 4th 2008 9:50a   Johan Känngård
IBM has removed the old redirect for the Lotus Developer Domain, I only get to Lotus Software using that old URL. Now is time to remember this: http://www.ibm.com/developerworks/lotus [read] Keywords: domino ibm ldd lotus
23


HOWTO Use Lotus Notes, Domino Designer and Domino Administrator 8.01 on Ubuntu 8.04 via Wine 1.0.0
Mon, Sep 1st 2008 4:09p   Johan Känngård
I just followed Julian’s excellent guide and it worked! Even though the guide was for previous versions of both Notes, Ubuntu and Wine, I did not have to make any additional steps to get it working. All programs works, I haven’t found anything that is broken (yet), and it’s great having the Designer “directly” in Ubuntu instead of firing up VirtualBox. Thanks Julian, for your excellent guide! [read] Keywords: designer domino lotus notes ubuntu
16


MySQL Commands Cheat Sheet
Thu, Jul 31st 2008 8:03a   Johan Känngård
Another memory-dump. The manual contains more information (that’s a surprise :-). mysql> delete from TABLE where id=X Removes the specified row mysql> describe TABLE; Shows the structure of the specified table mysql> select * from TABLE; Shows all rows in the specified table :-O mysql> show procedure status; Shows stored procedures mysql> show table status; Shows tables in current database mysql> use MYDATABASE; Changes the database to act on [read] Keywords: database mysql
16


Bash Variables Cheat Sheet
Thu, Jul 31st 2008 4:49a   Johan Känngård
For a complete list, see Bash Reference Manual - Bash Environment Variables. This is just my own memory-dump. To get the value of a variable, you can use: echo $OLDPWD OLDPWD previous current directory PWD current directory LANG the language used by programs, check with locale -a for available locales. Can be set in .bash_profile with export LANG=”en_US.utf8″ LANGUAGE the language used by programs, check with locale- a for available locales. Can be set in .bash_profile with expo [read] Keywords:
12


Linux Directories and Files Cheat Sheet
Thu, Jul 31st 2008 4:10a   Johan Känngård
Just a memory dump for important files and directories. ~/.bashrc runs on interactive login ~/.bash_aliases runs from .bashrc (if uncommented…) ~/.emacs Emacs settings /etc/crontab file that controls scheduled running of scripts /etc/cron.d/hourly, daily, weekly, monthly for running scripts on a scheduled basis /etc/group groups in the system /etc/hosts hard-coded hosts like in Windows. /etc/motd the greetings text when logging into the system /etc/resolv.conf DNS hosts /etc/sudoers user [read] Keywords: desktop linux
12


Linux Commands Cheat Sheet
Thu, Jul 31st 2008 3:48a   Johan Känngård
There are a lot of these on the net. Why not one more? I will try to keep this updated. Some commands are shell-specific (I use bash), and some are application specific, like the Apache commands. a2enmod enable apache module a2dismod disable apache module a2ensite enable apache site a2dissite disable apache site apt-get upgrades Debian/Ubuntu. Do sudo apt-get update first to update info, then sudo apt-get upgrade to get new version of installed files. To install a specific package, use sudo a [read] Keywords: connections application linux network password server ubuntu
8


HOWTO: Install Shoutcast 1.9.8 on Ubuntu 8.0.4
Tue, Jul 22nd 2008 9:31a   Johan Känngård
If you want to stream your own radio station, Shoutcast is an easy solution. This little HOWTO focus only on the server part, and not on the actual audio/feeding client part. I recommend reading ShoutCast Streaming for beginners and Streaming radio with ShoutCast and WinAmp to get the hang of the audio part. Install Download the tarball from shoutcast.com. $ tar -xvf sc_serv_1.9.8_Linux.tar.gz $ sudo cp sc_serv_1.9.8_Linux/sc_serv /usr/sbin $ sudo mkdir /etc/shoutcast $ sudo cp sc_serv.conf /e [read] Keywords: password php server ubuntu
7


HOWTO: Install Lotus Domino 7.0.2 on Ubuntu 8.0.4
Wed, Jul 16th 2008 5:05a   Johan Känngård
This minimalistic guide shows how to install Domino 7.0.2 on Ubuntu 8.0.4 server or workstation. I did this on Ubuntu 7, but did not write everything down, which meant learning/searching for the information once more. Please let me know if you have better ways of doing this! Create a domino user and group $ sudo useradd -m domino $ sudo groupadd domino $ sudo passwd domino Add required libraries Domino uses some libraries that is not installed by the standard Ubuntu installation. $ sudo a [read] Keywords: admin domino ibm lotus notes notes client nsd applications java linux server ubuntu
10


Full and incremental dump of a Subversion repository from a Windows BAT file
Fri, May 23rd 2008 9:47a   Johan Känngård
The first is something you should do weekly on your Subversion repository - a full dump. Put the following in a BAT or CMD file on a Windows box, and run it scheduled. @echo off REM Creates a full dump of the repository, should be run weekly for /f \"tokens=1-4 delims=- \" %%a in (\'date /T\') do set year=%%a for /f \"tokens=1-4 delims=- \" %%a in (\'date /T\') do set month=%%b for /f \"tokens=1-4 delims=- \" %%a in (\'date /T\') do set day=%%c for /f \"tokens=1-2 [read] Keywords: google
5


links for 2008-03-13
Thu, Mar 13th 2008 1:21p   Johan Känngård
celemony (tags: audio music recording midi sample arrange software) [read] Keywords:




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - FAQ - Mobile Edition