pmav

Month

August 2012

1 post

Aug 18, 2012

April 2012

1 post

Apr 7, 20129 notes
#baleal #portugal #photos #2009

February 2012

1 post

Javascript Simple Internationalization

Simple Javascript library that provides internationalization functions.

http://pmav.eu/stuff/javascript-simple-internationalization/

Feb 11, 2012
#javascript #internationalization #i18n

August 2011

1 post

Random Word Generator

Random Word Generator picks random words from a list of 58 000 english words.

http://pmav.eu/stuff/random-word-generator/

Aug 7, 20118 notes
#english #words #generator #random

July 2011

1 post

Javascript N-Queens

This page presents a Javascript program that solves the N-Queens problem using a very simple Genetic Algorithm.

http://pmav.eu/stuff/javascript-nqueens/

Jul 30, 201132 notes
#javascript #n-queens #genetic #algorithm

May 2011

1 post

procvm

procvm is a linux shell script that list VM size, PID and comand for each process.

Download at github: https://github.com/pmav/procvm

image

May 4, 2011
#procvm #vmsize #linux #shell #script #github

April 2011

1 post

Semantic Youtube Links

Semantic Youtube Links is a Greasemonkey script that appends Youtube video titles to their link.

Project page: http://pmav.eu/stuff/semantic-youtube-links/

Example:

Before: http://www.youtube.com/watch?v=AVbzsRxB5aU

After: http://www.youtube.com/watch?v=AVbzsRxB5aU#universal-declaration-of-human-rights-in-passports

You can get it here: http://userscripts.org/scripts/show/63795

Compatible with Firefox and Chrome.

Apr 16, 201114 notes
#Semantic Youtube Links #semantic #youtube #greasemonkey #script #firefox #chrome

October 2010

1 post

Insert data into PostgreSQL using command line in Linux

Insert data into PostgreSQL using command line in Linux:

sudo -u postgres psql <Database>

\i <SQL File>

Oct 18, 20101 note
#database #postgresql #linux

September 2010

1 post

Play
Sep 4, 20101 note

July 2010

3 posts

Jul 27, 20101 note
Jul 20, 20101 note
Create an executable JAR with dependencies using Maven

Add to pom.xml:

<build>
    <plugins>
        <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <configuration>
                <archive>
                    <manifest>
                        <mainClass>fully.qualified.MainClass</mainClass>
                    </manifest>
                </archive>
                <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                </descriptorRefs>
            </configuration>
        </plugin>
    </plugins>
</build>

Run with:

mvn assembly:assembly

Source: stackoverflow.

Jul 19, 2010
#java #jar #maven

May 2010

5 posts

bookdepository.*

bookdepository.co.uk & bookdepository.com - Same service, different prices?


.co.uk

.com


May 24, 2010
#books #bookdepository
Failed to load JavaHL Library

How to solve the “Failed to load JavaHL Library.” problem in Mac OS X when running Aptana (Eclipse).

Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java

Go to Preferences > Team > SVN > change the SVN interface to SVNKit (PureJava).

May 20, 2010
#aptana #eclipse #mac os x #java #svn
Virtual Hosts on Mac OS X (Apache)

How to solve?

[emerg] (13)Permission denied: couldn’t grab the accept mutex

Add AcceptMutex flock to your httpd.conf.

May 5, 20101 note
#apache #virtual hosts #mac os x
May 4, 20101 note
#book #rework #37signals
May 3, 2010
#bbc #survivors #series #tv

April 2010

1 post

Apr 14, 20102 notes
#javascript #microbars

March 2010

2 posts

Play
Mar 30, 2010
#game #rpg #video
Javascript Web Workers

A new version of my Javascript Web Workers example is now online: http://pmav.eu/stuff/javascript-webworkers/.

This new version is compatible with:

  • Firefox, since 3.5;
  • Chrome, since 4;
  • Safari, since 4.0.4.

Source code can be found here: Javascript Web Workers Source Code.

Suggestions are welcome: pedrovam@gmail.com

Mar 18, 2010
#javascript #web #web workers #threads #html5

February 2010

5 posts

Feb 25, 2010
Feb 19, 2010
#javascript #colors #rainbow #web
Play
Feb 13, 2010
#game #game #trine #hd #video
pmav.eu → pmav.eu

Current projects.

Feb 12, 2010
Feb 12, 2010
Next page →
2011 2012
  • January
  • February 1
  • March
  • April 1
  • May
  • June
  • July
  • August 1
  • September
  • October
  • November
  • December
2010 2011 2012
  • January
  • February
  • March
  • April 1
  • May 1
  • June
  • July 1
  • August 1
  • September
  • October
  • November
  • December
2010 2011
  • January
  • February 5
  • March 2
  • April 1
  • May 5
  • June
  • July 3
  • August
  • September 1
  • October 1
  • November
  • December