Ubuntu fresh installations have the guest account enabled by default. This caused me few problem already and not really happy about it. So, after searching and learning about this I found that there is a simple solution for it.
Start a terminal session using Alt+Ctrl+t or any other way you know,
in the terminal type the following
gksudo gedit /etc/lightdm/lightdm.conf
This command will open gedit editor with the file lightdm.conf for editing
Also, it will require root access, so your account must be in the sudoers account.
Now add the following line to the lightdm.conf file
allow-guest=false
This line will disable the guest account on this computer.
Then you should restart the lightdm using this command
sudo restart lightdm
This process is very well everywhere on the internet if you search for it, but, I like to add my own to make it easier to find and track later.
Monday, April 22, 2013
Thursday, March 14, 2013
Spartan-6 Clock Multiplier / Divider using PLL DCM
I started using Spartan-6 FPGA couple of weeks ago. Going back to my old VHDL coding to be able to work on a custom application.
I needed to divide my input 100MHz CLK to run a task at 33MHz. I know I should be able to do that with the PLL/DCM built in the Spartan-6. But, I can not find any reference code to show what/how is this done in code. How can I configure the PLL registers to divide/multiply and what is the labels I will be using to trigger to my task.
If someone out there able to explain that, I really would appreciate a lot.
I needed to divide my input 100MHz CLK to run a task at 33MHz. I know I should be able to do that with the PLL/DCM built in the Spartan-6. But, I can not find any reference code to show what/how is this done in code. How can I configure the PLL registers to divide/multiply and what is the labels I will be using to trigger to my task.
If someone out there able to explain that, I really would appreciate a lot.
Saturday, March 9, 2013
FPGA SPARTAN-2 XC2S200 Tools
I am going back to my Digilab 2 FPGA Board that has Spartan-2 FPGA from Xilinx for a small project and proof of concept, but for my surprise, the new ISE Webpack from Xilinx does not support this chip anymore. And, of-course, Digilent does not support it either, is it discontinued board. So, now what should I do?
I know this board is more than enough for what I am working on. I got another board Nexys-3 that has Spartan-6 and it works so far great, but, is the Spartan-2 really un-usable now? or, is someone out there can guide to and point me to a tool that I can use to program it with?
I am going to work on this task and try to see what I can do and find...
I know this board is more than enough for what I am working on. I got another board Nexys-3 that has Spartan-6 and it works so far great, but, is the Spartan-2 really un-usable now? or, is someone out there can guide to and point me to a tool that I can use to program it with?
I am going to work on this task and try to see what I can do and find...
Friday, January 18, 2013
Android Development How to Set Focus
You ever need to set focus for a control on your GUI.
You could design a GUI interface for your Android application but, you need to set the focus to one specific control on start-up. In this example I am using a Button control for that. You have two options, option one: add the focus option in the xml file that describes your GUI, or option two: add the code that does the same thing in option one but can be used in run time instead of only once on start-up.
Option One:
Add this part to your xml GUI file
<Button
android:id="@+id/open_bt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/open_comm"
android:onClick="onClick"
android:focusableInTouchMode="true"
>
<requestFocus/>
</Button>
Option Two:
Add this to the Activity module:
static Button Open_Button;
Open_Button = (Button) findViewById(R.id.open_bt);
Open_Button.setFocusableInTouchMode(true);
Open_Button.requestFocus();
More information will be added, and screen shots...
You could design a GUI interface for your Android application but, you need to set the focus to one specific control on start-up. In this example I am using a Button control for that. You have two options, option one: add the focus option in the xml file that describes your GUI, or option two: add the code that does the same thing in option one but can be used in run time instead of only once on start-up.
Option One:
Add this part to your xml GUI file
<Button
android:id="@+id/open_bt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/open_comm"
android:onClick="onClick"
android:focusableInTouchMode="true"
>
<requestFocus/>
</Button>
Option Two:
Add this to the Activity module:
static Button Open_Button;
Open_Button = (Button) findViewById(R.id.open_bt);
Open_Button.setFocusableInTouchMode(true);
Open_Button.requestFocus();
More information will be added, and screen shots...
Wednesday, December 12, 2012
MPLAB X IDE So Slow and takes for EVER
Anyone can help with this would be great. It was working fine for ever, then suddenly it started to take forever when I connect to the board to download FW or edit project settings.
I now I installed some Java for Android development recently and this is about the time it started to do this...
What part is causing this I am not sure yet...
Some of the things I did so far and did not work:
This is not good, it is killing me, I can not do any development like this...
Updates: 12/13/2012:
It was something with my Bluetooth. I started working on Bluetooth around the same time when MPLAB started acting this way. So, I thought to disconnect my BT dongle, and walla, MPLAB working just fine!! Something was going on between BT dongle and MPLAB. I will have to find out!
I now I installed some Java for Android development recently and this is about the time it started to do this...
What part is causing this I am not sure yet...
Some of the things I did so far and did not work:
- I changed the path to jdkhome="" in the following file "C:\Program Files (x86)\Microchip\MPLABX\mplab_ide\etc\mplab_ide.conf"
- I also, added the switch to the start-up icon "C:\Program Files (x86)\Microchip\MPLABX\mplab_ide\bin\mplab_ide.exe" --jdkhome "C:\Program Files (x86)\Microchip\MPLABX\sys\java\jre1.6.0_32-windows-x64\java-windows"
This is not good, it is killing me, I can not do any development like this...
Updates: 12/13/2012:
It was something with my Bluetooth. I started working on Bluetooth around the same time when MPLAB started acting this way. So, I thought to disconnect my BT dongle, and walla, MPLAB working just fine!! Something was going on between BT dongle and MPLAB. I will have to find out!
Monday, December 10, 2012
Configure Eclipse to Auto-Save before Executing App
So, if you develop using Eclipse, you must know how you have to save your modules every time you click on run. So, it is an extra click every time. Usually in most other IDEs you would not have to do this, because they have an option to auto-save your modified documents.
I know there was an option in Eclipse too, and I used it before but, I forgot how to do that and it took me a while to find it again.
so, here it is, a note to my self and to others who need to know how...
Click on Window -> Preferences
Select General from the list on the left
Expand it and click on Workspace
In the right side make sure the "Save automatically before build" is checked
Now Select Run/Debug from the list on the left
and Expand it to Select Launching
In the right side find and make sure "Save required dirty editors before launching" is Always
Click OK and you are set to go.
I know there was an option in Eclipse too, and I used it before but, I forgot how to do that and it took me a while to find it again.
so, here it is, a note to my self and to others who need to know how...
Click on Window -> Preferences
Select General from the list on the left
Expand it and click on Workspace
In the right side make sure the "Save automatically before build" is checked
Now Select Run/Debug from the list on the left
and Expand it to Select Launching
In the right side find and make sure "Save required dirty editors before launching" is Always
Click OK and you are set to go.
Tuesday, December 4, 2012
Do you get this message: "javadoc java platform manager"
If you are using NetBeans and writing Java applications, you try to get some information on functions or properties details and you get this message, "javadoc java platform manager". Then you most likely missing some Documentation from Java JDK.
Try and delete this folder first after backing it up some where:
Try and delete this folder first after backing it up some where:
/home/elsaghir/.netbeans/7.0/var/cache
Here is what you need to add:
sudo aptitude install openjdk-6-jdk
sudo aptitude install openjdk-6-doc
replace the number 6 with the latest revision of java at this time...
you should see new data and folders in this folder
/usr/lib/jvm/default-java/docs
Subscribe to:
Posts (Atom)

