Tuesday, 25 October 2016

Setting default interpreter in MATLAB figures

To set the default interpreter to "none" in all your MATLAB figures, use the following command

>> set(0,'DefaultTexInterpreter','none');

Source: https://in.mathworks.com/matlabcentral/newsreader/view_thread/285567

Thursday, 4 June 2015

World's First Wireless MIDI Guitar Controller for Acoustic Guitar - ACPAD





My friend worked on it for 3 years, came up with several prototypes and now releasing it to market.

If you like it, visit acpad.com and subscribe to their newsletter.



Peace.

Saturday, 30 May 2015

Scilab plots : Legend

To include legend into a scilab plot there is no GUI based method as in MATLAB. At least, there are none that i know of.
Instead we use the following commands after the figure has been plotted.

g = gcf();
legend(g, ['Legend entry 1','Legend entry 2'],-5);

The last argument decides the location of the legend in the plot. -5 puts it outside the plot on the top left side. Vary this argument to find other positions.





Peace.

Sunday, 24 May 2015

Scilab : Shortcuts in Scinotes

To navigate between tabs in scinotes, the short cut is

Ctrl + Tab + up/down arrow

This is for Scilab version 5.3.3





Peace.

Monday, 11 May 2015

Scilab Plots : axes ranges

The plots themselves adjust the axes ranges depending on the values of the data being plotted.
However, if you need to set the ranges fixed, then use the following code after your plot command.

{code}
g = gca();
g.data_bounds = [0,0;1,1];
{\code}

where, 
g.data_bounds = [xLowerLimit, yLowerLimit: xUpperLimit,yUpperLimit];





Peace.

Scilab Plots : Background

The scilab plots by default come with a grey background which is just hateful. You need to go to the figure properties in order make it into white background. To make the background white as you plot, use the following code just after your plot command.

figure; plot(...);
f = gcf();
f.background = 8;

The number 8 corresponds to white. To know what other numbers correspond to, check the sliding bar in figure properties.



Peace.

Tuesday, 28 April 2015

Ubuntu 12.04 : Applets on the panel

This is if you are using a gnome gui for ubuntu
If panel gets screwed then -
Alt + Right-Click on the panel and delete it

Then, Alt + Right-Click on the bottom panel and say "New Panel"

On the new panel do Alt + Right-Click, and click on "Add to Panel..."
In the window and add the following applets

1. Notification Area
2. Indicator Complete
3. Menu Bar (Custom menu bar)

this should resemble the default gnome toolbar.


Peace.


Friday, 24 April 2015

Scilab : Include value of a variable in figure title

If your plot command is in a loop and you want to change the title everytime based on a changing variable then use the string command and the + operator.

For example,
In my code, the variable "init_level" was changing in each iteration and I wanted it to be in the title of the plots. So I modified the title() command for my figure in the following way.

title('5. For initial Level = '+string(init_level)+' the variation is :' ,'fontsize',3);

Note how the single quotes are used as the  string command divides the title into two parts. and the + operator joins them all together.

Here, you can also see how I was able to vary the font size of the title as well.


Source of adding variable value in title - http://www.equalis.com/forums/Posts.aspx?topic=185466



Peace.

Wednesday, 25 March 2015

Scilab related

When you are displaying some variable repeatedly on the screen, there is a need to press a key to continue the display of variables
else the execution halts.
To remedy this add the following command at the beginning of the code.

lines(0);



Peace.

Tuesday, 10 March 2015

Ubuntu time format settings from terminal

 gsettings set org.gnome.desktop.interface clock-show-seconds true
this show seconds count too

Monday, 9 March 2015

Commands to run to get most latex packages

Install texlive from synaptic package manager
sudo apt-get install texlive-latex-base
sudo apt-get install texlive-extra-utils 
sudo apt-get install texlive-latex-extra

Tuesday, 27 January 2015

Update manager gets stuck on a package download

If the update manager gets stuck at a package download and then you can't use "apt-get install" due to errors like dpkg locked and you try rm /var/lib/../../lock and it still does not work then do the following
check the output of this command: 
ps aux | grep http 
This will result in 2 or 3 lines with the second column of each line being the pid of the process if the process is doing its job. If the result is just 1 line, say the last phrase being grep http or something, the updates are not being downloaded/installed. Its safe to kill the update manager 
To do this: 
run: ps aux | grep update and note the pid of the update-manager being the second column after your user name in the 2/3 line list of output. Let the pid of update-manager be pid 
Kill this process by running: 
kill -9 pid 
If operation is not permitted, try with sudo, but take care that you don't kill any other process. Note the pid of update-manager carefully.
Source - http://ubuntu.aspcode.net/view/635400140124705175239668/how-to-cancel-update-manager-downloading-flashplugin-installer

Monday, 29 December 2014

Disbaling bluetooth on boot up - ubuntu 12.04

Run sudoedit /etc/rc.local and add this before line with exit 0:
rfkill block bluetooth
You should still be able to enable Bluetooth through the top bar applet.

Thursday, 20 November 2014

Back up slides in Latex

 To have back slides in latex and not screw up the slide numbering, do this.
 1. Add these after your \usepackage{} lines, before \begin{document}
  \newcounter{sauvegardeenumi}
  \newcommand{\asuivre}{\setcounter{sauvegardeenumi}{\theenumi}}
  \newcommand{\suite}{\setcounter{enumi}{\thesauvegardeenumi}} 

2. Then, as below.
\begin{frame}

Your last slide...

\end{frame}
% BACK UP SLIDES
\newcounter{finalframe}
\setcounter{finalframe}{\value{framenumber}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
.
.
.
\end{frame}

\begin{frame}
.
.
.
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{framenumber}{\value{finalframe}}
\end{document}

Wednesday, 19 November 2014

Setting up website on server at IITB

Paste all your files in the public_html folder.

if you can't do that. run
~$ ls -l
and see if have ownership rights on the folder. If you dont, send a email to admin[at]ee[dot]iitb[dot]ac[dot]in and ask them to give you those permissions.

Once you can copy into the folder, you are almost done.
go to - http://www.ee.iitb.ac.in/student/~loginname/

If your CSS file is not loading, then ssh to your account from a terminal, then run
~$ chmod -R 755 public_html

(the -R is very important)

Should be all working now.

Peace.

Monday, 10 November 2014

Increasing number of workspaces

For Ubuntu 12.04, with gnome session fallback

To increase the number of workspaces,

gsettings set org.gnome.desktop.wm.preferences num-workspaces 8
 

Peace.

Tuesday, 21 October 2014

Latex related links

Writing a pseudo code-
http://tex.stackexchange.com/questions/163768/write-pseudo-code-in-latex

Getting the algorithmx package
http://www.latex-community.org/forum/viewtopic.php?f=54&t=21070

Wednesday, 10 September 2014

Post graduate study in Germany

Few details from a seminar I attended on the topic.
1. No tuition fee. Scholarships available enough to pay for lodging and travel.
2. Deadline for application - 2nd October. Entire process is online.
3. Few important links.
    www.daad.de
    www.daad.de/international-programmes
    www.daad.de/research-explorer
    www.phdingermany.de
    www.research-in-germany.de
    www.funding-guide.de
   Major institutions - Maxplanck Society, Leibniz association, Helmholtz association.
4. Resource person in Mumbai
    Shubhada Choudary
    c/o UHDE India pvt ltd.
    3rd floor, A wing,
    Jolly board tower,
    I-think techno campus,
    Station Road, Opposite Crompton Greaves
    kanjur Marg East,
    Mumbai 400042
    mumbai@daadindia.org

Genius Child by Langston Hughes

This is a song for the genius child.
Sing it softly, for the song is wild.
Sing it softly as ever you can-
Lest the song get out of hand.

Nobody loves a genius child.

Can you love an eagle,
Tame or wild?
Can you love an eagle,
Wild or tame?
Can you love a monster
Of frightening name?

Nobody loves a genius child.
Kill him - and let his soul run wild.

-Langston Hughes

Monday, 8 September 2014

Solution : System time conflict between ubuntu and windows.

1. Open terminal

2. type the command
~$ gksudo gedit /etc/default/rcS

3. In the gedit window, edit the BIOS clock section to what is below.
 # assume that the BIOS clock is set to UTC time (recommended)
UTC=no
4. Save and exit.
Source.