Wednesday, 27 May 2015

Android Studio Project ideas for mobile

brief: to teach budding programmers how to program on probably the coolest platform, mobile.

We will probably port this web app to mobile and then teach the kids how to write it.

New Android Studio

May 2015
Tasked with getting kids going on writing an Android App (Android was chose although IOS is allowed.) I think we have 6 hours, maybe 18 tops.
1. Download the Android Studio (this also will get you to download the JDK as well)
2. Finnish installing both, decide on how you want Studio to look for you
3. Learn a bit of Java - just enough to create a simple app to be honest
4. Learn to debug it
5. Personalize and have fun bragging to your mates as school

IPTables forwarding and custom logging /w WOL

Basically I'm wanting to do 2 things on the firewall/forwarding.

1. Forward all packets on a port example 25565 , from one address to another.
2. Log all the "connect" packets into a custom log file (preferably on a ram-drive since I don't want the actual logs for long.)

basic iptables options:
How to add a new log file:

OK, now for the rule:   ???
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25565 -m state --state NEW,ESTABLISHED \
   -j DNAT --to 
And have a log of the "NEW" connection (must come before the ACCEPT rule)
iptables -A INPUT -p tcp --dport 25565 -m state --state NEW -j LOG \
   --log-level 4 --log-prefix "newconnection"
I'm gonna spend a lot more time trying to get this to work than what I thought initially. But I gotta try.
Here is the English translation:
1. "LOG" all "NEW" connections on port 25565 to a separate file
2. "FORWARD" all traffic to port 25565 to address
3. Write python script to parse the log entries, run every 5 seconds, delete log file. Fire off a custom WOL UDP packet directed at
4. Done

Monday, 25 May 2015

Rooting Samsung Galaxy S3 version 4.3

Fortunately I found this link How to enable hidden developer options on your samsung galaxy S4 and the same instructions work for the S3.
Simply follow these steps:
  • Go to SettingsMoreAbout Device
  • Scroll down to Build Number
  • Tap it repeatedly (It'll show a message telling you how many more times you need to tap it to enable developer mode).
  • See the Developer options menu under SettingsMore
 Next you want the full version of SK's tool.