# bytesharp

Untitled

January 14, 2010 · Leave a Comment

All these–the sort of people that lived in these houses, and all those damn little clerks that used to live down that way–they’d be no good. They haven’t any spirit in them. I’ve seen them skedaddle off to work–hundreds of ‘em, bit of breakfast in hand, running wild and shining to catch their little season-ticket train, for fear they’d get dismissed if they didn’t; skedaddling back for fear they wouldn’t be in time for dinner. Lives insured and a bit invested for fear of accidents. And on Sundays–fear of the hereafter. As if hell was built for rabbits!

H.G. Wells.  1898

Posted via web from bytesharp

→ Leave a CommentCategories: Uncategorized

Crème de la Crème(R)

January 14, 2010 · Leave a Comment

→ Leave a CommentCategories: Uncategorized

Google making things right with China policy : Official Google Blog: A new approach to China

January 14, 2010 · Leave a Comment


“We have decided we are no longer willing to continue censoring our results on Google.cn, and so over the next few weeks we will be discussing with the Chinese government the basis on which we could operate an unfiltered search engine within the law, if at all. We recognize that this may well mean having to shut down Google.cn, and potentially our offices in China.”

finally.

Posted via web from bytesharp

→ Leave a CommentCategories: Uncategorized

@Override specification changes in Java 6

February 16, 2009 · Leave a Comment

from here

Between Java 5 and Java 6 changes to the specification of @Override have been made. In Java 6 it is possible to add the @Override annotation to methods that implement methods of an interface which is not allowed in Java 5.

I noticed the difference when a friend told me that he had to remove all the @Override annotations to make his Java 6 project compile with Java 5.

The interesting thing is that there is no documentation about this change. The API specification of @Override is exactly the same in both Java versions. I found out that this was forgotten by Sun developers. Peter Ahé, a former developer at Sun, calls it the @Override Snafu.

→ Leave a CommentCategories: Uncategorized

ubuntu numlock

January 11, 2009 · Leave a Comment

omg.. my numlock stopped to worked and after and hour or so i found this
Apparently
SHIFT + NUMLOCK together it enables “Mouse Keys” which seems to disable numlock and turn Caps into a shift key.
Pressing SHIFT + NUMLOCK together again deactivates it.

Lesson learned : keep cats and kids away from the keyboard :)

→ Leave a CommentCategories: numlock · t61 · ubuntu

How to avoid typing a password for the default keyring for wireless after booting Ubuntu every time

January 9, 2009 · 1 Comment

From here

After booting your Ubuntu, you are always asked to unlock the default keyring for wireless connection, the simple solution to avoid this:

Step 1: delete the following two files:

default.keyring
login.keyring

Find the two files at Place–> Home Folder
.gnome2/keyrings/

Or In Terminal, type the command:

rm ~/.gnome2/keyrings/*keyring

Step 2:
Next time, if it asks to type a default key for the keyring, just left it as blink, and choose unsafe storage.

→ 1 CommentCategories: Uncategorized

Toggle stuff.

January 2, 2009 · 2 Comments

here we go – too much Toggle gps/wifi apps on the market and if you ask me AnyCut is just enough.
So for people who curious how to do that kind of stuff small code samples for wifi/gps ( not polished but you’ll get the idea ). One layout with two check boxes.
Check for wifi


mWm = (WifiManager) this.getSystemService(Context.WIFI_SERVICE);

       if (mWm.isWifiEnabled()) {           mWifi.setChecked(true);           mWifi.setText("Wifi is : enabled");       } else {           mWifi.setChecked(false);           mWifi.setText("Wifi is : disabled");       }

Check for gps

 mLocationManager = (LocationManager) this               .getSystemService(Context.LOCATION_SERVICE);       boolean isGps = mLocationManager               .isProviderEnabled(LocationManager.GPS_PROVIDER);

       if (isGps) {           mGps.setText("GPS is : enabled");           mGps.setChecked(true);           //       } else {           mGps.setChecked(false);           mGps.setText("GPS is : disabled");       }

Change wifi

//to enablemWm.setWifiEnabled(true)to disablemWm.setWifiEnabled(false)// mWm.setWifiEnabled will return a boolean for you check if it was a success

GPS

           String providers = Settings.System.getString(getContentResolver(),                   Settings.System.LOCATION_PROVIDERS_ALLOWED);

           if (providers == null) {               providers = "";           }           String preferredProviders = "";           if (providers.contains(LocationManager.NETWORK_PROVIDER))               preferredProviders += LocationManager.NETWORK_PROVIDER;

           if (isChecked) {               preferredProviders += "," + LocationManager.GPS_PROVIDER;               mGps.setText("GPS is : enabled");

           } else               mGps.setText("GPS is : disabled");

           Settings.System.putString(getContentResolver(),                   Settings.System.LOCATION_PROVIDERS_ALLOWED,                   preferredProviders);

           Intent intent = new Intent(Intent.ACTION_PROVIDER_CHANGED);           sendBroadcast(intent);

→ 2 CommentsCategories: Android · code

Colors & Code Highlights

December 22, 2008 · Leave a Comment

Lately i’m into dark thing and then i found blog of Romain Guy I thought this is exactly what i want. And I’ve stolen some styles. Very nice . And included color coding by using google code prettifier

<pre class="prettyprint">... # Your code goes here</pre>

→ Leave a CommentCategories: Uncategorized

Connecting to Android powerd G1 on Ubuntu

December 10, 2008 · 3 Comments

After the big move to the Ubuntu and connecting G1 via USB -i’ve got a surpirse – adb devices return nothing.
sudo adb devices found my phone . So i have a rights issues. And i found this post

If you’re developing on Ubuntu Linux, you need to add a rules file:

  1. Login as root and create this file: /etc/udev/rules.d/50-android.rules. Edit the file to read (i’m at 8.10):
    SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″
  2. you will need to restart udev (sudo /etc/init.d/udev reload
    ) and say hi to your phone.

→ 3 CommentsCategories: Android · adb · connect · linux · ubuntu · usb

Blue Valley Schools

November 26, 2007 · Leave a Comment

Blue Valley Schools district
http://www.bluevalleyk12.org/

Ratings
http://www.greatschools.net/

Наши школы
Elementary

Oak Hill Elementary School
10200 W 124th St
913-239-6900
http://www.bv229.k12.ks.us/OHE/

Middle

Oxford Middle School
12500 Switzer Rd
913-239-5500
http://www.bv229.k12.ks.us/OMS/

High

Blue Valley Northwest High School
13260 Switzer Rd
913-239-3400
http://www.bv229.k12.ks.us/BVNW/

Model Child application
http://www.bluevalleyk12.org/EdServices/student_services/peerModelApplication.cfm

→ Leave a CommentCategories: schools