Mount windows shares in linux



Use sudo if needed

Mount

mkdir /mnt/share
mount -t cifs //windowsmachineip/sharename -o username=user,password=urPassword /mnt/share

Unmount

umount /mnt/shares

autocomplete from history in terminal (in linux mint)

create a file .inputrc

in your home directory and put there
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
TAB: menu-complete



Restart your terminal.

How you can autocomplete from history using Up and down keys.


pypy with numpy

Looks like pypy now can build numpy. Well, a slightly modified numpy.

1. Get default branch of pypy. be careful cause the developers don't maintain default branch compilable. Revision 84341 (c86b42dd7613) works for me.
2. compile using 
./rpython/bin/rpython -O2 ./pypy/goal/targetpypystandalone.py --withoutmod-micronumpy
3. Create package and vitual environment. Something like this:
./pypy/tool/release/package.py --targetdir ./my_builds/build.tar.bz2 --builddir ./tmp/ --nostrip --archive-name pypy_84341
Needed to copy pypy-c and libpypy to pypy/goal beforehand.
4. Clone and follow instructions from
https://github.com/pypy/numpy/commits/cpyext-ext
Revision 3299d0d76fdb831fbcb4429a89c1f53bb36ea07f worked for me

Testing results:
----------------------------------------------------------------------
Ran 5900 tests in 78.216s

FAILED (KNOWNFAIL=3, SKIP=6, errors=218, failures=83)



scipy can be compiled if disabling submodules io/matlab and spatial. Though is still doesn't work.

Dropbox in linux mint

Hmm. It doesn't work.
I see the icon when i do
dropbox stop
dropbox start
but I cannot clic on it.

Installed nemo-dropbox. At least now I have "Copy dropbox link" command in menu.
Don't forget to do
$ killall nemo
after installation to make it work.

Final Solution

source 
Use 
dropbox stop && dbus-launch dropbox start
Or 
Do: opening 'Preferences' -> 'Startup Applications' and editing the dropbox entry so the command now reads:
CODE: SELECT ALL
dbus-launch dropbox start

 update might overwrite the change. I think it's better to leave the existing entry alone (only disabled) and create a new entry (e.g. "Launch DropBox") with the new start command (`dbus-launch dropbox start`)