Posts

Showing posts with the label tips

How to open a door from the outside .... without the key

Image
Hello Internet! Today I want to tell you a little tip that will save you some money... i.e. the cost of a call to locksmith :) Did ever happen to you to lock out of your appartment? In many countries apartment doors have handles only on the inside, so if you go out (without the key ) and your door closes after you, you are screwed! Personally I did happen to me twice in the last 8 months :( Anyway, the easiest way (the one I used!) to unlock your door is with a credit card or, better, a loyalty card from a supermarket, because it could be damaged in the process! Then, the only thing you have to do, is to insert the card just next the knob and push ! That's it! After some practice, it works :) However, I have to tell you a couple of things... 1) Not all doors can be opened this way. 2) If you don't have a loyalty card to use, your neighbor certainly has it! This nice video explains it better that I did! There are also other ways to open a door without keys ,...

How to Install new dictionaries in WinEdt

On Windows, WinEdt is a great program for editing latex file, but in my opinion the procedure to install new dictionaries is quite poor. In this post I'm gonna fix this in 10 easy steps! This procedure applies to WinEdt 5.x but probably it works for 6.x too. Download the dictionary for the language you are interested in (for example German) from the website http://www.winedt.org/Dict/ Unzip your file: You will see two files with extensions .txt and .dic . The most important is the second one. Locate within your WinEdt installation folder the subfolder " dict " .Usually it should be somewhere like: C:\Programs\WinEdt\dict Inside "dict" create another folder named after the language you want to install, in my case German. Copy the file .dic into the freshly created folder. Now it's time to tell WinEdt to load this dictionary. Launch WinEdt and select: Options-> Dictionary Manager Select " Insert " and give a meaningful name... for examp...

How to cut onions like a boss (without crying)

Image
Chopping, cutting onions without crying is possible! Solutions like cutting onions under the water or next to a fan work but... are pretty lame, don't you think? I wanted something like, you know, cutting onions like a boss ... and here is! The problem with onions is in the roots , the roots are the root of all evil ... sorry, but the joke was pretty easy :) We have to remove safely the roots and the bulb that is attached to them. This can be done by cutting  a cone out of the bottom of the onion, where the roots are. The cone has to be quite "big".  About 1/3 of the diameter of the onion and 1/3 deep. When done, throw it away. And quickly! That's it. Now you are able to chop onions like a boss. Enjoy! Here is the video which I took this information from: If you still fails, you can do like the guys below (image taken here )!!!

How to fit IMPLICIT functions with Matlab! A worked-out example

Image
In Matlab you can perform implicit curve fit using either "nlinfit" or "lsqcurvefit" (the last one only if you have the optimization toolbox) but you need to re-write the implicit function into an explicit one solving it numerically (i.e. using "fzero"). THERE IS NO WAY to fit directly using an implicit expression! To learn how to successfully fit using an implicit function you can follow the instructions on this Matlab page page or to read and use my worked-out example. I will show you how my implementation of the Langevin function with a field Weiss (that is an implicit equation). This example is interesting by itself becasue it addresses the topic of how to model an hysteresis loop. The equation is taken from the paper by D.C. Jiles and D.L. Atherton ,  Ferromagnetic Hysteresis , IEEE Transaction on Magnetics, Vol. Mag-19, No. 5, September 1983. For a general reference about the Langevin equation (and generally for magnetism) I recommend the ...

Subscript and Superscript in OpenOffice and Microsoft Office

Today I found here how to make subscript and superscript text in OpenOffice and Microsoft Office. Here we go.. Select the text you want to put in subscript or superscript and then In OpenOffice … CTRL+SHIFT+B for  subscript CTRL+SHIFT+P for superscript In Microsoft Office… CTRL+= for subscript CTRL+SHIFT+= for superscript GO TO THE HOME PAGE

Two-column equation in LaTeX RevTex

Image
If you are writing a scientific paper using  the RevTex 4 LaTeX class (Phys. Rev. Lett., Phys. Review B, etc ),  occasionally you may have the need to make an equation to span over two columns instead than only one.  Well, ... how to do this? You can do that very easily using the environment widetext \begin{widetext}   your equation \end{widetext} This local modification of the layout from two-columns to one-column affect does not affect the preprint because this already uses the single column format. Source: http://www.physics.csbsju.edu/tk/370/papers/Journal_Style_Manuals/auguide4-1.pdf Did you like this post? Why you don't make a small donation?

MAC: Keyboard shortcut to switch among different windows of the same program

Hello Everybody, today I want to share with you this little trick I have just found, i.e. (as the title says) how to switch among different windows of the same program in MacOS. So... As you know the combination cmd + TAB in Mac OS allows you to switch among different programs, but what if you have multiple windows of the same program (for example Firefox or Safari)? Well in this case the combination you are looking for is:   cmd + '  if you have an Italian layout for your keyboard... otherwise it is   cmd + 1 for all the other layouts  I have tested (American, German) The " ' " is above the TAB key in the American keyboard and next to 0 in the Italian one. The little annoying thing is that while with " cmd + TAB " you get a row with all the icons of the open programs in the middle of the screen, in the case of " cmd + ' " you just switch sequencially among all the different windows while, I think, it would have been much nic...