How to Fix Slow/Erratic Wi-Fi Problem in Ubuntu 12.04 LTS?

How to Fix Slow/Erratic Wi-Fi Problem in Ubuntu 12.04 LTS?
  • First, you need to install Wicd from Ubuntu Software Center.
  • Search for Wicd network manager in Ubuntu Software Center.
  • After Wicd installation is complete, search for ‘network-manager’ in Ubuntu Software Center and remove it before going any further.
  • Now, open Wicd from Unity Dash (see screenshot above). Wicd will automatically detect the available networks around. Simply enter the credentials and CONNECT.
wicd network manager
  • And when you tick “Automatically connect to this network” option, Wicd will be added to your Startup Applications list. And you’re good to go.
  • OR if you prefer command line, all you need to do is the following:
sudo apt-get install wicd
sudo apt-get purge network-manager

How to change wordpress theme without wordpress admin panel ?

 

There are situations you can’t login into wordpress admin panel to change the wordpress theme.

You can do the following procedure to change it without login into wordpress admin.

1. Login using FTP and change the rename the theme name to temporary. Next time wordpress will revert back to default theme.

2. Change it directly from databse. To do that Enter into PhpMyAdmin or MySQL Console and execute below query,


UPDATE wp_options SET option_value = 'default' WHERE option_name = 'template';
UPDATE wp_options SET option_value = 'default' WHERE option_name = 'stylesheet';
UPDATE wp_options SET option_value = 'default' WHERE option_name = 'current_theme';

To Check the current active theme name you can also execute this before updating it to default theme ,


SELECT *
FROM wp_options
WHERE option_name = 'template'
OR option_name = 'stylesheet'
OR option_name = 'current_theme';

 

( Be sure that theme folder contains the default wordpress themes comes with the installations ( TweentyEleven & TwentyTen until Version 3.0 ).

wget alternative for windows “THE POWER SHELL”

Power shell is integrated in Windows 7 .

 

You can do many advanced scripting in it.

To Open PowerShell, open command prompt with cmd , then type powershell.exe

 

To download a file from internet use ,

(new-object System.Net.WebClient).DownloadString(‘url’) > filename.ext

To Know more about windows power shell,

http://en.wikipedia.org/wiki/Windows_PowerShell

Installing OpenGL Development Environment in Ubuntu

1. Download OpenGl liberies

sudo apt-get install freeglut3 freeglut3-dev
sudo apt-get install binutils-goldc
sudo apt-get install libglew1.5

2. Create a test file (test.c):

#include 

//Drawing funciton
void draw(void)
{
  //Background color
  glClearColor(0,1,0,1);
  glClear(GL_COLOR_BUFFER_BIT );
  //Draw order
  glFlush();
}

//Main program
int main(int argc, char **argv)
{
  glutInit(&argc, argv);
  //Simple buffer
  glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB );
  glutInitWindowPosition(50,25);
  glutInitWindowSize(500,250);
  glutCreateWindow("Green window");
  //Call to the drawing function
  glutDisplayFunc(draw);
  glutMainLoop();
  return 0;
}

3.Compile the file linking the OpenGL/Glut libraries:

gcc -lGL -lglut -lGL -lGLEW test.c -o test 

or

g++ -I/usr/include -L/usr/lib -lglut -lGL -lGLU -lGLEW 

4. Configuring with eclipse

  1. Donwload and ADD CDT plugin for eclipse. Download Link
  2. After installing CDT, go to eclipse’s Menu, Projects->Properties
    From leftside bar, Expand C/C++ General->Path & Symbols
  3. Go to libraries add this four lib one by one ( glut, GL,GLU, GLEW ) .
  4. Now try to build and compile your code

git Deploy/Export

Probably the simplest way to achieve this is with git archive. If you really need just the expanded tree you can do something like this.

git archive master | tar -x -C /somewhere/else

Most of the time that I need to ‘export’ something from git, I want a compressed archive in any case so I do something like this.

git archive master | bzip2 >source-tree.tar.bz2

ZIP archive:

git archive --format zip --output /full/path/to/zipfile.zip master 

From a repository, you can do:

git checkout-index -a -f --prefix=/destination/path/

git archive also works with remote repository.

git archive --format=tar --remote=ssh://remote_server/remote_repository master | tar -xf -