Log in Register now
Pages: 1 2 3 »

CentOSXMind bug on CentOS

java: cairo-misc.c:380: _cairo_operator_bounded_by_source: Assertion `NOT_REACHED' failed.

The bug is fixing with adding to the XMind.ini the following command:
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false

XMind: 6
CentOS: 6.6

GolangGolang: Setup GOROOT on CentoOS

export GOPATH=/usr/local/go
export GOROOT=$HOME/go
export PATH=$PATH:$GOROOT/bin In IntelliJ IDEA
File -> Project Structure -> SKDs: Add to the classpath /usr/local/go/src

neo4jNeo4j orphan nodes detection

MATCH (n)
WHERE NOT EXISTS((n)--())
RETURN n

GolangSet up Golang SDK for IntelliJ IDEA on CentOS

/usr/local/go/pkg/linux_amd64 path should be chosen.

neo4jNeo4j + httpd + Selinux on CentOS

With enabled selinux I had non-working Neo4j with httpd on CentOS. To make it working we should introduce Neo4j 7474 port to Selinux.

It easily can be done with semanage tool. To find it you can use yum provides /usr/sbin/semanage command. In my case it gave me the policycoreutils-python-2.0.83-19.39.el6.x86_64 package. So yum installs policycoreutils-python-2.0.83-19.39.el6.x86_64

After semanage install Neo4j and httpd should be shutdown. Without it I had "Killed" message.

And add our desired listen port, 7474/tcp to the list:
semanage port -a -t http_port_t -p tcp 7474
After httpd and Neo4j start the problem has gone.

CentOSCentos + Tor + New identity forcing

Out-of-the-box known methods are not working because of a passwod on Vidalia. The password disabling through Control Panel breaks browser connection. The solution is in adding to ../tor-browser_en-US/Data/Vidalia conf file the following string:
AuthenticationMethod=none

SeleniumSelenium. Using custom firefox profile.

Technically the firefox profile can be hosted anywhere. It is just inserted as compressed encoded to base64 string in the invoking script.

You can create a packed firefox profile which includes any installed Firefox plugins:

cd /your/profile
zip -r profile *
base64 profile.zip profile.zip.b64


Usage example:
$web_driver = new WebDriver( $wd_host );

$desired_caps = array( "firefox_profile" => file_get_contents("/your/profile/profile.zip.b64") );

$session = $web_driver->session('firefox', $desired_caps );

neo4jNeo4j duplicates removing with Cypher

This approach allows to delete all duplicate nodes with their relationships.

START project=node(123)
MATCH project-[:T]->tA<-[:F]-jA
WITH project, MIN(ID(jA)) AS minId
MATCH project-[:T]->tB<-[:F]-jB
WHERE ID(jB)>minId
WITH jB
MATCH jB-[r]-()
DELETE jB,r

In the result we will have one single node without duplicates.

UPD. The idea was good, but it not works as desired.

CentOSCentOS/RHES + php tidy 2.0

Sometimes pecl install tidy may not work. Or even yum install php-tidy

Then building from sources might help:

# Download sources
svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/ext/tidy/

# Configure tidy for installed php5 API
cd tidy
phpize


# Configure & Compile the source
./configure
make clean <-- Without this the compile builds a bad module for some reason
make
make install

CentOSCentos 6.3 healing missing libs for google chrome

error while loading shared libraries: libXrandr.so.2: cannot open shared object file: No such file or directory
yum install libXrandr.so.2

error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
yum install libgtk-x11-2.0.so.0

error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
yum install libasound.so.2

error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory
yum install libudev.so.0
1-10 11-20 21-27