Friday, August 26, 2011

SQUID - The requested URL could not be retrieved

Error from squid is that it can not retrieve the url "/",
but the browser's url is http://google.com

ERROR

The requested URL could not be retrieved


The following error was encountered while trying to retrieve the URL: /
Invalid URL
Some aspect of the requested URL is incorrect.
Some possible problems are:
  • Missing or incorrect access protocol (should be http:// or similar)
  • Missing hostname
  • Illegal double-escape in the URL-Path
  • Illegal character in hostname; underscores are not allowed.
Your cache administrator is .





  
the fix :
in squid.conf :
http_port 3128 transparent



Saturday, August 13, 2011

Ubuntu kdm gdm lxdm

I have installed Kubuntu-desktop and Lubuntu-desktop on top of Ubuntu
If I want to switch from gdm to kdm or lxdm :
In a terminal window one of the following commands can be used :

sudo dpkg-reconfigure gdm
sudo dpkg-reconfigure kdm
sudo dpkg-reconfigure lxdm




 

How to Switch Between GDM and KDM on Ubuntu

Sunday, August 7, 2011

Change SQL Server Password by Windows Authentication

Change SQL Server Password

Change SQL Server Password by Windows Authentication

If Builtin/Administrator is present in SQL Server, you can login with an ID which is member of Administrators group and reset sa password in SQL Server. Just do as follows:

  • 1. Login into SQL server using Windows Authentication.
  • 2. In Object Explorer, open Security folder, open Logins folder. Right Click on sa account and go to Properties.
  • 3. Type a new SQL sa password, and confirm it. Click OK to finish.
After restarting SQL Server and all its services, you can log into SQL Server by sa login with new SQL sa password.


VirtualBox VBoxManage


In NAT mode, the guest network interface is assigned to the IPv4 range 10.0.x.0/24 by default where x corresponds to the instance of the NAT interface +2. So x is 2 when there is only one NAT instance active. In that case the guest is assigned to the address 10.0.2.15, the gateway is set to 10.0.2.2 and the name server can be found at 10.0.2.3.

If, for any reason, the NAT network needs to be changed, this can be achieved with the following command:

VBoxManage modifyvm "VM name" --natnet1 "192.168.61/24"

This command would reserve the network addresses from 192.168.61.0 to 192.168.61.254 for the first NAT network instance of "VM name". The guest IP would be assigned to 192.168.61.15 and the default gateway could be found at 192.168.61.2.





VBoxManage startvm "New Saratele"

Waiting for the VM to power on...
VM has been successfully started.


Port forwarding with NAT



As the virtual machine is connected to a private network internal to VirtualBox and invisible to the host, network services on the guest are not accessible to the host machine or to other computers on the same network. However, like a physical router, VirtualBox can make selected services available to the world outside the guest through port forwarding. This means that VirtualBox listens to certain ports on the host and resends all packets which arrive there to the guest, on the same or a different port.


Network Interface in Virtual Machine ( Windows Server 2008 - guest ) has IP = 192.168.61.15
Network Interface on the HOST Machine has IP = 192.168.101.22 
ping from guest to host is OK , but from host to guest KO ... 












From Linux : to acces  port 80 ( IIS service ) on the Windows Server 2008  guest : 
1.  VBoxManage modifyvm "New Saratele" --natpf1 "guest_iis,tcp,192.168.101.22,8000,192.168.61.15,80"


2. From host Browser : 
http://192.168.101.22:8000






Network & sharing in VirtualBox - Full tutorial


VBoxManage modifyvm




Saturday, August 6, 2011

Android SDK, 64-bit linux & ia32-libs


Android SDK on a 64-bit linux machine


When installing Android SDK on Eclipse Indigo on Linux Mint 11 Katya amd64, appears an error 
of shared libraries : 

[2011-08-06 22:29:50 - SDK Manager] Created AVD 'a1' based on Android 1.5, ARM (armeabi) processor
[2011-08-06 22:36:34 - LocalPassport] /opt/android-sdk-linux_x86/platform-tools/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory


The available SDK downloads seem to be just for 32-bit versions of Linux; 
Is it possible to develop using the Android SDK on a 64-bit linux machine.



The solution is :


apt-get install ia32-libs
apt-get install sun-java6-jdk

GUID Partition Table - 2TB HDD

The new HDD I will buy must have at least 2TB capacity ;
When it comes to formatting, in order to have more than 4 primary partitions
the disk must be initialized with GUID Partition Table ( GPT )

Windows Server 2008 - Password Policy

I have a testing virtual machine (no AD ) and I am dealing with only few local accounts;
I use to disable the password policy from:
Administrative Tools -> Local Security Policy -> Account Policies -> Password Policy.



Friday, August 5, 2011

Eclipse Indigo with Android Development Plugin

Eclipse Indigo with Android Development Tools ADT Plugin

Step 1 :

Download and install the Android SDK


Step 2 : 

 Downloading the ADT Plugin

Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer.<>
Assuming that you have a compatible version of the Eclipse IDE installed, as described in Preparing for Installation, above, follow these steps to download the ADT plugin and install it in your Eclipse environment.
  1. Start Eclipse, then select Help > Install New Software....
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
    https://dl-ssl.google.com/android/eclipse/
  4. Click OK Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
  5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  6. In the next window, you'll see a list of the tools to be downloaded. Click Next.
  7. Read and accept the license agreements, then click Finish. Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
  8. When the installation completes, restart Eclipse.
























Android requires compiler compliance level

Eclipse IDE for Java Developers
Version: Indigo Release
Build id: 20110615-0604


ERROR :
Android requires compiler compliance level 5.0. Please fix project properties

[2011-08-04 23:56:54 - LocalPassport] Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please use Android Tools > Fix Project Properties.

Problem solved :
Right click on your 
project->properties->java compiler, 
modify the version to 1.6



Thursday, August 4, 2011

Android Indigo : invalid command-line parameter



Android Emulator on Eclipse Indigo has an error like 
"invalid command-line parameter" :

 This post is about Eclipse Indigo Build id = 20110615-0604

[2011-08-04 18:13:32 - AndroidViews2] ------------------------------
[2011-08-04 18:13:32 - AndroidViews2] Android Launch!
[2011-08-04 18:13:32 - AndroidViews2] adb is running normally.
[2011-08-04 18:13:32 - AndroidViews2] Performing net.learn2develop.AndroidViews.ViewsActivity activity launch
[2011-08-04 18:13:32 - AndroidViews2] Automatic Target Mode: launching new emulator with compatible AVD 'avd_2.3'
[2011-08-04 18:13:32 - AndroidViews2] Launching a new emulator with Virtual Device 'avd_2.3'
[2011-08-04 18:13:37 - Emulator] invalid command-line parameter: Files\Android\android-sdk-windows\tools/emulator-arm.exe.
[2011-08-04 18:13:37 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2011-08-04 18:13:37 - Emulator] please use -help for more information


It seems that the error is caused by the SDK location path : 
C:\Program Files\Android\android-sdk-windows








This works on i386 : 
C:\Progra~1\Android\android-sdk-windows






After OK & Run : 




SDK location path on AMD64
C:\PROGRA~2\Android\android-sdk



Wednesday, August 3, 2011

Marketshare 2014 : Android = 75 % & WP7 = 5%


If in 2011 - Android takes almost 50% share of worldwide smart phone market , then in  2014 Android can have :
 - 50 % share of worldwide tablet market
 - 75 % share of smart phone market !
 ... only if Google pays minor damages to Oracle in the Java lawsuit. 


Before Windows 8 will appear , Android will be able to run on common PC desktops and laptops . 
Before Windows 10 , Android ChromeOS (and Linux) can have 10 percent of desktop market share ... 
We must consider the posibility that facebook can be replaced by Google+ ...




comScore Reports June 2011 U.S. Mobile Subscriber Market Share




Smartphone Platform Market Share
78.5 million people in the U.S. owned smartphones during the three months ending in June 2011, up 8 percent from the preceding three month period. Google Android ranked as the top smartphone platform with 40.1 percent market share, up 5.4 percentage points. Apple strengthened its #2 position with 26.6 percent of the smartphone market, up 1.1 percentage points from the prior reporting period. RIM ranked third with 23.4 percent share, followed by Microsoft (5.8 percent) and Symbian (2.0 percent).
Top Smartphone Platforms
3 Month Avg. Ending Jun. 2011 vs. 3 Month Avg. Ending Mar. 2011
Total U.S. Smartphone Subscribers Ages 13+
Source: comScore MobiLens
Share (%) of Smartphone Subscribers
Mar-11Jun-11Point Change
Total Smartphone Subscribers100.0%100.0%N/A
Google34.7%40.1%5.4
Apple25.5%26.6%1.1
RIM27.1%23.4%-3.7
Microsoft7.5%5.8%-1.7
Symbian2.3%2.0%-0.3




Microsoft's share of the smartphone market has fallen 38% (from 8% to 5.8%) since the Windows Phone 7 launch.


The question is for how much longer handset makers and carriers will consider it worth supporting Windows Phone 7. Microsoft's mobile market share has been declining for the past six months. At that pace, its overall share may be be hovering around just 4% by the end of the year 2011.







Android leads as smartphone sales jump worldwide





Worldwide Smartphone Sales to End Users by Operating System in 2Q11 (Thousands of Units)
Operating System
2Q11
 Units
   2Q11 Market Share (%)
 2Q10
 Units
      2Q10 Market Share (%)
Android
46,775.9
43.4
        10,652.7
17.2
Symbian
23,853.2
22.1
 25,386.8
40.9
iOS
19,628.8
18.2
8,743.0
14.1
Research In Motion
12,652.3
11.7
11,628.8
18.7
Bada
2,055.8
1.9
577.0
0.9
Microsoft
1,723.8
1.6
3,058.8
4.9
Others
1,050.6
1.0
2,010.9
3.2
Total
107,740.4
100.0
62,058.1
100.0
Source: Gartner (August 2011)

Eclipse INDIGO Subversion - Google.Code


Subversion ( Subversive ) installation instructions


http://eclipse.org/downloads/
Eclipse Classic does not have Marketplace;
It's better to be used Eclipse IDE for Java Developers

1. Eclipse Marketplace


2.
    Find SUBVERSION

3.
Install Subversive


4.
After restart : check SVN Kit



And now , SUBVERSION ( Subversive ) is installed ;
Instead of Subversive , on Win32 - an alternative is SUBCLIPSE .

Now let's import in Eclipse a project from Google Code :

5.

File -> Import -> SVN -> Project from SVN


Let's check out :
  Enter 
     http://jtelmon.googlecode.com/svn 
  in the URL and then click BROWSE :  






We've just imported from code.Google.com a project ;
With a user and password one can modify the project and commit updates .




~ ~ ~ 
         Android SDK for Eclipse on Ubuntu : 

How to Install the Android SDK and Eclipse Indigo on Ubuntu