yannis assael | the blog

  • Home
  • About
  • Categories
    • Android
    • Computing
    • iOS
    • Machine Learning
    • MacOSX
  • GitHub
  • Mobile Apps
  • yannisassael.com


uTorrent stuck at Checked 0.0%

Written by iassael on 27/10/2013. Posted in computing, macosx

If you experience such a problem with uTorrent app when you add a new torrent follow these steps:

OS X
1) Open Terminal and execute this command:
cd “~/Library/Application\ Support/uTorrent” && sudo rm -f *.old
2) Open uTorrent and everything should be back to normal

Windows
1) Open Windows Explorer and navigate to the path: %AppData%/uTorrent
2) Then remove all files ending *.old
3) Open uTorrent and everything should be back to normal

  • Continue Reading
  • 6 Comments

Java convert ArrayList to double[]

Written by iassael on 25/05/2013. Posted in computing

Java can be very efficient sometimes… First, you need to to download the apache commons lang library, from here http://commons.apache.org/proper/commons-lang/. Then, using this function you can convert your List<>
double[] arr = ArrayUtils.toPrimitive(arrlist.toArray(new Double[arrlist.size()]))

  • Continue Reading
  • No Comments

Convert Javascript Date from UTC to Local Timezone

Written by iassael on 03/05/2013. Posted in android, computing, iOS

var strdate = ‘2013/05/03 03:13:00’;
var d = new Date(strdate);
var d = new Date(d.getTime() – d.getTimezoneOffset() * 60 * 1000);

used it with Titanium Appcelerator

  • Continue Reading
  • 1 Comment

Disable Google Similar Results

Written by iassael on 25/03/2013. Posted in computing, general

The following solution is for google chrome and uses the “verbatim” search tool to acomplish the good old functionality.
1) Go to options and edit your Search Engines
2) Add a new search engine with the following code
{google:baseURL}search?q=%s&{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:searchClient}{google:sourceId}{google:instantExtendedEnabledParameter}ie={inputEncoding}&tbs=li:1
3) Set it as default
4) And let the good old times roll …

  • Continue Reading
  • 1 Comment

Make Bootable USB from ISO – MacOSX

Written by iassael on 01/02/2013. Posted in computing, macosx

1) Partition your Disk with MBR (in options) in MSDOS FAT
2) Download Unetbootin http://unetbootin.sourceforge.net/unetbootin-mac-latest.zip
3) Select your ISO and click ok
4) Make your partition Active by running:
diskutil list -> find the diskN (N: number)
sudo fdisk -e /dev/rdiskN
>f 1
>write
>exit
5) Ready to boot

  • Continue Reading
  • No Comments

SSH Auto Login – MacOS X

Written by iassael on 23/10/2012. Posted in computing

  1. Create your set of keys:
    Start up the Terminal application and run:
    ssh-keygen -t rsassh-keygen will the ask where to store the public key it is about to create. Normally the default suggestion works just fine (~/.ssh/id_rsa.pub). ssh-keygen then ask you to enter a pass phrase. Please use something secure here and please also remember it.
  2. Copy the public key to your SSH server
    Copy the newly created public key to the SSH server(s) you need to auto login into by using your favourite transport method. Please be careful not to overwrite ~/.ssh/authorized_keys if it already exist! This is how I personally copy the key, might not be your preferred method:

    • If authorized_keys exist: 
      cat ~/.ssh/id_rsa.pub | ssh [email protected] "cat - >> ~/.ssh/authorized_keys"
    • If authorized_keys does not exist: 
      scp ~/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys
  3. Optional step: You might consider restricting file access to the file authorized_keys on the SSH server. chmod 0600 ~/.ssh/authorized_keys to even further improve your system security.
  • Continue Reading
  • No Comments

Magic Mouse on Windows 7

Written by iassael on 29/05/2012. Posted in computing, general, iOS


Fully working Magic Mouse everything is here: http://www.trackpadmagic.com/magic-mouse/download

  • Continue Reading
  • No Comments

Status Barred – Crop your iPhone/iPad Screenshots for Appstore

Written by iassael on 15/05/2012. Posted in computing, iOS

Status BarredCrops your iOS screenshots to remove the status bar. Removing the status bar is recommended by apple before submitting to iTunes Connect and being displayed on the app store (Page 13 in the iTunes Connect Developer Guide).

Supports:
-iPod/iPhone non retina display (portrait & landscape)
-iPod/iPhone retina display (portrait & landscape)
-iPad (portrait & landscape)

  • Continue Reading
  • No Comments

Appcelerator Latest iOS SDK not Detected

Written by iassael on 02/05/2012. Posted in computing

If you are having a problem with Appcelerator Titanium not detecting an iOS SDK while you updated your XCode…
First run this to see the available SDK versions:
xcodebuild -showsdks
And then if it doesnt show up.. select the lastest:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
I was facing this problem with iOS 5.1 …
J.

  • Continue Reading
  • No Comments

[Fix] Weka >3.7 Package Cache Problem

Written by iassael on 26/02/2012. Posted in computing, general

Change your RunWeka.ini to look like this….

cmd_default=javaw -Dfile.encoding=#fileEncoding# -Xmx#maxheap# -classpath "#wekajar#;#cp#" #package# #mainclass#
cmd_console=cmd.exe /K start cmd.exe /K "java -Dfile.encoding=#fileEncoding# -Xmx#maxheap# -classpath \"#wekajar#;#cp#\" #package# #mainclass#"
cmd_explorer=java -Dfile.encoding=#fileEncoding# -Xmx#maxheap# -classpath "#wekajar#;#cp#" weka.gui.explorer.Explorer
cmd_knowledgeFlow=java -Dfile.encoding=#fileEncoding# -Xmx#maxheap# -classpath "#wekajar#;#cp#" weka.gui.beans.KnowledgeFlow

maxheap=6g

mainclass=weka.gui.GUIChooser
package=-Dweka.core.wekaPackageRepositoryURL=http://www.cs.waikato.ac.nz/ml/weka/packageMetaData

fileEncoding=Cp1252

cp=%CLASSPATH%

  • Continue Reading
  • No Comments
  • 1
  • 2
  • 3
  • 4