Thursday, November 14, 2013

attempts to work edit remote files locally

java

multithreading - kill -3 to get java thread dump - Stack Overflow

http://stackoverflow.com/questions/4876274/kill-3-to-get-java-thread-dump
jstack PID > outfile

css

Border-radius: create rounded corners with CSS! - CSS3 . Info

http://www.css3.info/preview/rounded-border/

Beautiful! Simple and effective. IE, why can't you conform?!

xterm

Setting up X Term

Trying to get xterm to work appears to be rather simple, even if Apple decided to not include X11 with it's OS anymore. XQuartz was simple enough to set up. I'm not currently using xterm right now, but it's there if I need it. One major bone to pick -- why can't I paste into an xterm window?! I don't have a middle mouse button (Magic Mouse) and I don't know how to overcome this obstacle.

ssh; xforward

Configuring xhost

The effort to use xhost to use an xterm session to work on remote resources should be relatively easy and straight forward. It's easy, that is, if you have control over the remote to turn the X Forward option on.

ssh

Speeding up SSH (ControlMaster) - nion's blog

http://nion.modprobe.de/blog/archives/502-Speeding-up-SSH-ControlMaster.html

Nearly two years passed and there are still people out there who don't know 'ControlMaster' which was introduced in OpenSSH 4.0.

http://nion.modprobe.de/blog/archives/502-Speeding-up-SSH-ControlMaster.html

vim - Using Macvim over ssh - Stack Overflow

http://stackoverflow.com/questions/5321594/using-macvim-over-ssh

Slick; just found out about this option. Open a single file remotely through my Vim client for editing. This works if you have already configured the remote with your ssh key.

:e scp://username@host.com/path/to/file

SSH Can Do That? Productivity Tips for Working with Remote Servers | Smylers [blogs.perl.org]

http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html

Extensive resource on how ssh can be used to ease your burdens.

$ mkdir gallery_src
$ sshfs dev:projects/gallery/src gallery_src
$ cd gallery_src
$ ls

Setting up OXSFuse and SSHFS

This is just what I need to use my local editor to edit files on a remote system. I can open multiple files with a single call and I don't need to worry with scp'ing files over once I'm done editing them.

umount - Unmount the directory which is mounted by sshfs in Mac - Stack Overflow

http://stackoverflow.com/questions/14057830/unmount-the-directory-which-is-mounted-by-sshfs-in-mac

If this doesn't work, try using sudo.

umount -f <absolute pathname to the mount point>

c3p0 debugging/logging

c3p0-v0.9.5-pre5 - JDBC3 Connection and Statement Pooling - Documentation

http://www.mchange.com/projects/c3p0/#configuring_logging

Logging levels.

  • OFF
  • SEVERE
  • WARNING
  • INFO
  • CONFIG
  • FINE
  • FINER
  • FINEST
  • ALL

log4j.properties example

http://www.mkyong.com/logging/log4j-log4j-properties-examples/

Basic log4j.properties file. Log to STDOUT and to a file.

# Root logger option
log4j.rootLogger=INFO, file, stdout
 
# Direct log messages to a log file
log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=C:\\loging.log
log4j.appender.file.MaxFileSize=1MB
log4j.appender.file.MaxBackupIndex=1
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
 
# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

No comments:

Post a Comment