yannis assael | the blog

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


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

A little bit of Android, Phonegap and GWT (gwt-phonegap)

Written by iassael on 04/02/2012. Posted in android, general

This guide will demonstrate how to build the gwt-phonegap showcase application on Android
1) Checkout from here http://code.google.com/p/gwt-phonegap/source/browse/gwtphonegap.showcase.gwt/src/main/java/com/googlecode/gwtphonegap/?repo=showcase

(for more info http://code.google.com/p/gwt-phonegap/wiki/GettingStarted)

2) Edit your index.html so that it looks like this:

<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>index</title>
<script type="text/javascript" language="javascript" src="phonegap.js"></script>
<script type="text/javascript" language="javascript"
src="ChildBrowser.js"></script>
 
<script type="text/javascript">
document.addEventListener("deviceready", (function() {
PhoneGap.available = true;
}), false);
</script>
 
<script type="text/javascript" language="javascript"
src="showcase/showcase.nocache.js"></script>
</head>
 
<body>
<iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1'
style="position: absolute; width: 0; height: 0; border: 0"></iframe>
 
</body>
</html>

<!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>index</title> <script type="text/javascript" language="javascript" src="phonegap.js"></script> <script type="text/javascript" language="javascript" src="ChildBrowser.js"></script> <script type="text/javascript"> document.addEventListener("deviceready", (function() { PhoneGap.available = true; }), false); </script> <script type="text/javascript" language="javascript" src="showcase/showcase.nocache.js"></script> </head> <body> <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position: absolute; width: 0; height: 0; border: 0"></iframe> </body> </html>

3. Run GWT Compile

4. Create a new Android Project

5. Add Phonegap Lib as described here http://phonegap.com/start#android

6. Copy everything from the %SHOWCASE%\target\gwtphonegap-showcase-gwt-1.2.0.0-SNAPSHOT directory to the Android Project \asserts\www directory

7. Make your Activity look like this:

public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   super.loadUrl("file:///android_asset/www/index.html");
}

public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.loadUrl("file:///android_asset/www/index.html"); }

8. Ready to go!

Sorry I was not that analytic about the process. Please feel free to contact me for any help!
J.

 

  • Continue Reading
  • 5 Comments

Overclock Atom N550 Samsung NF310

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

nf310Download SetFSB (http://www13.plala.or.jp/setfsb/)
Run the program and set as Clock Generator: CV179CNLG
Ready to go!

Ps. there are many guides that you can follow on how to choose the best suitable speed for your CPU!

  • Continue Reading
  • No Comments

Pame Stoixima for Android

Written by iassael on 12/01/2012. Posted in android, computing

Κουπόνι ΟΠΑΠ για το Πάμε Στοίχημα
Ποίος ο λόγος να πας ως το πρακτορείο?
Δες τρέχον το Κουπόνι με όλα τα ανερχόμενα Σημεία και Αποδόσεις τώρα από το κινητό σου!


Download here!

Η εφαρμογή λειτουργεί και offline χωρίς να χρειάζεται πρόσβαση στο Internet, εφόσον έχει γίνει τουλάχιστον μια ενημέρωση των δεδομένων εντός των προηγούμενων ημερών.

 

 

 

  • Continue Reading
  • 1 Comment

Ti tha Fame | Greek Delivery for Android

Written by iassael on 06/01/2012. Posted in android, computing

Όλοι έχουμε βρεθεί κάποια στιγμή να ψάχνουμε «απεγνωσμένα», τηλέφωνα σε καταλόγους από Delivery ή στο Internet, αναζητώντας «Τι Θα Φάμε?».

Το «Τι Θα Φάμε?» αποτελεί ένα ηλεκτρονικό κατάλογο για εύκολη ανεύρεση Delivery & Εστιατορίων για όλη την Ελλάδα. Ευχαριστούμε θερμά το foodland.gr το οποίο αποτέλεσε κύριο άξονα της βάσης δεδομένων μας.

Οι κατηγορίες που μπορεί να επιλέξει ο χρήστης είναι: «Fast Food», «Pizza», «Κρέπα», «Εστιατόρια», «Κινέζικο», «Κοτόπουλο» και «Μικρο-γεύματα» ή αν είναι αναποφάσιστος μπορεί να τα επιλέξει όλα!

Ti Tha Fame | Greek Delivery

  • Continue Reading
  • No Comments

Java Printing Unicode in Windows

Written by iassael on 07/12/2011. Posted in computing

After many tries this code works for printing a String in Java on a Windows Machine.

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.printing.Printer;
import org.eclipse.swt.printing.PrinterData;

public class TextPrinter {

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