The best place to *find* answers to programming/development questions, imo, however it's the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but again, a great reference for *finding* answers.

My Music (Nickleus)

Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

20120118

how to install the gedit regex/regexp plugin for unity in ubuntu linux 11.10 oneiric ocelot

download this file http://live.gnome.org/Gedit/Plugins?action=AttachFile&do=get&target=regex_replace-gedit3.tar.gz

close all instances of gedit

open a terminal/console and move to where you downloaded the file, e.g. /home/myuser/Downloads
cd /home/myuser/Downloads
tar xzvf regex_replace-gedit3.tar.gz
mkdir -p ~/.local/share/gedit/plugins
mv regex_replace ~/.local/share/gedit/plugins


start gedit > edit > preferences > plugins > put a checkmark on "regular expressions"
now when you want to use regular expressions in search and replace you go here: search > regular expressions

source: http://halfhourhacks.blogspot.com/2008/03/gedit-regular-expression-plugin.html

20120112

how to import local source code to a new, remote, subversion svn repository from the command line

i have newly configured jboss 7 web profile for a potential migration we will do from jboss 4. i was asked to commit my entire jboss 7 to subversion so another developer could look at it. here's how i did it, the errors i got during the process and how i overcame them.


on my local machine (where i have the jboss source), log into the remote svn server:
ssh mySshUser@myRemoteSvnServer

(i'm now) on myRemoteSvnServer (ip address: 192.168.1.254), create the new svn repo:
sudo svnadmin create /srv/svn/repos/jboss-as-web-7.0.2.Final

now copy the password file from another svn project (the same people will be allowed to access this jboss project):
sudo cp -f /srv/svn/repos/anotherSvnProject/conf/passwd /srv/svn/repos/jboss-as-web-7.0.2.Final/conf/

otherwise just edit the new repo password file, defining who has access to it, etc.

now make sure the ownership of the new repo is correct:
sudo chown -R www-data:www-data /srv/svn/repos/jboss-as-web-7.0.2.Final

on my local machine, import the jboss source to the new, remote repo you just created:
svn import /path/to/jboss/source/jboss-as-web-7.0.2.Final https://192.168.1.254/svn/jboss-as-web-7.0.2.Final

on myRemoteSvnServer, just to be sure, make sure ownership is correct again:
sudo chown -R www-data:www-data /srv/svn/repos/jboss-as-web-7.0.2.Final

---
along the way i got various errors:

svn: OPTIONS of 'http://192.168.1.254/svn/jboss-as-web-7.0.2.Final': could not connect to server (http://192.168.1.254)
svn: Your commit message was left in a temporary file:
svn:    'svn-commit.tmp'
this was most likely due to the fact that the remote svn server actually runs on https, not http.
svn: Can't open file '/srv/svn/repos/jboss-as-web-7.0.2.Final/db/txn-current-lock': Permission denied
svn: Your commit message was left in a temporary file:
svn:    'svn-commit.2.tmp'
this was most likely due to a permissions/ownership issue, so i ran this on the remote svn server:
sudo chown -R www-data:www-data /srv/svn/repos/jboss-as-web-7.0.2.Final

20111017

how to run opera web browser in ubuntu 11.10 unity

when i do the keyboard shortcut alt+F2 and type: opera
the only thing that comes up as a suggestion is opera-widget-manager

i found out that if i simply type: oper
then the opera icon comes up as well. i can either click on the big, red circle opera icon or just hit enter =)

weird bug.