Monday, October 17, 2011

Tech Review: Friday, October 14, 2011

New 6" Kindle for $79


  • 800,000 titles for $10
  • very small
  • Wi-Fi
  • E-Ink display
  • holds 1,400 Books
    • this seems a little small
  • read up to one month on the battery
  • adjustable text sizes
  • email PDF and personal documents to device
  • free cloud backup
  • borrow from you public library
  • buy once, read everywhere
  • NO TOUCH!
  • lots of difference between Kindles
Secure Android Kernel and 'classified' smart phones


  • research team
    • Google
    • George Mason University
    • National Security Agency
  • hardened kernel for Android 3.0
  • final stages of certification testing
  • secure national wireless network for first responders
    • looking to replace radio with smart phones
  • Connecting Soldiers to Digital Applications (CSDA) program
  • Michael McCarthy
    • Army's Brigade Modernization Command's Mission Command Complex
  • right security accreditation to operate on military networks and classified networks
    • hardware accreditation
    • software accreditation
    • triple-level security
  • OS accreditation help from NSA
  • Android kernel being tested for Federal Information Processing Standard 140-2 certification
    • mid-Oct
    • testing complete, just filling out paperwork 
  • FBI and Justice planning pilot projects on a larger scale than Army
Android a likely target once mobile crime pays

Google's Dart Web Language

New Style of Attack Can Slip Past Firewalls, Prevention Systems


  • techniques minipulates TCP/IP protocols to fragment packets and TCP segmentation.
    • confuses intrusion prevention systems
    • packets reassembled by host device
  • advanced evasion technique (AET)
  • Stonesoft
    • Finnish security company
    • Vasburgh

Friday, October 14, 2011

Tech Review: Wednesday, October 12, 2011

Open-Source Software and Intellectual Property


  • Opensource defies traditional IP models
Adding Users with 'sudo' Privileges in Linux


  • sudo adduser <username>
  • sudo addgroup <groupname>
  • sudo adduser <username> <groupname>
  • run a pipe commands sudo
  • sudo sh -c "ls > /root/somefile"
  • sudo password is stored for 15 minutes
  • password is not show on screen, even with *, it is input a each key stroke
  • use 'gksudo' or kdesudo' to start graphical applicatons
    • prevents file in home directory being owned by root
  • gksudo "gnome-open %u"
    • lets you drag and drop files as root
  • login as another user
    • sudo -i -u <username>
  • to enable root
    • sudo -i
    • sudo passwd root
  • re-disabling root account
    • sudo passwd -dl root
  • removing the password prompt for sudo
    • sudo visudo
    • add to the end of the file
      • <username> ALL=NOPASSWD: ALL
    • ^x to save file
    • log out and in
  • reset sudo to ask for password
    • sudo -k
US drone fleet infected by virus


  • keys stroke recorder
  • Creech Air Force Base in Mojave Desert
  • wipe from machines, but keeps coming back
  • call to double drones by 2021
  • 12 camera drones sharing data with troops on ground





Tuesday, October 11, 2011

Tech Review: Monday, October 10, 2011

C# null-coalescing operator



  • From C# Reference for VS 2010
  • example
    • int? x = null;
    • int y = x ?? -1;
    • string s = null;
    • Console.WriteLine (s ?? "Unspecified");
  • used to define a default value for a nullable value type
  • it returns the left-hand operand if it is not null; otherwise it returns the right operand
  • not in Java, but some would like to add the feature
  • more about not in Java
  • coalescing mean "to grow together"
  • does this sound like a good description of what the operator is doing?

Regions in Java


I know the above picture is not about 'Regions in Java' code, but it looked nice.

  • Basically, there are no region pre-compiler directives in Java
  • There is support in some IDEs
    • NetBeans
      • // <editor-fold defaultstate="collapsed" desc="Your Fold Comment">
      • ...
      • // <editor-fold>
    • Eclipse
      • does it automatically for methods, imports, etc.
      • Not declaration like in NetBeans
      • Could you add one?
    • Emacs?
Velocity Android 2.0 Internet Table 7" $100

Velocity Micro T103 Cruz Android 2 Internet Tablet
  • almost what I want
  • missing the camera
  • Multi touch capacitive screen
Viewsonic gTablet 10.1" Android 2.2:  $270
Viewsonic gTablet 10.1" 16GB Internet Tablet
  • This is what I want except the price and Android version


Simple C# Program



  • the main routine starts with a Capital 'M' in C#
  • starts with a lower case 'm' in Java
Listeners and Events (Actions) in Java


  • lesson on writing event listeners
  • action listener
    • public class Beeper ... implements ActionListener {
  • adding an action listener to something
    • button.addActionLisener ( new Beeper() )
  • implement the method that does the action
    • public void actionPerformed (ActionEvent e) {
  • complete Beeper example
Java Color Map


  • color map in java
  • Copyright
    • Carnegie Mellon
    • Sun
    • Mitsubishi
Java List Interface and ArrayList Class



  • Class ArrayList<E>
  • Example
    • List list = Collections.synchronizedList (new ArrayList(...));
Java Collection Interface and Collections Class

  • static void sort (List list)
  • reverse (List list)
Java Queue Interface and PriorityQueue Class



  • new elements are put (enqueued) on the back of the queue
  • element are pulled (dequeued) from the front of the queue
  • First In First Out (FIFO)
  • Interface Queue<E>
  • offer (E o) // enqueue
    • adds an element to the tail of the queue
  • poll () // dequeue
    • returns a removed element from the queue
    • null is empty
  • Class PriorityQueue<E>
  • boolean add (E o)
  • boolean offer (E o)
  • E poll ()
Java Map Interface and HashMap Class

  • Interface Map<K,V>
  • V put (K key, V value)
  • V get (Object key)
  • Class HashMap<K,V>
  • Example:
    • Map m = Collections.synchronizedMap (new HashMap (...));


Chrome Remote Desktop


  • BETA
  • allow users to remotely access another computer through the Chrome browser or Chromebook
  • An add on
  • can easily miss the Icon after installation 















Monday, October 10, 2011

Tech Review: Sunday, October 9, 2011

WinMerge


  • WinMerge 3
    • Qt library
    • window 
    • linux
    • Opensource
Repast Simphany Display


  • I think the above link might be old
  • I really need to know a lot more about display in Repast-S