Blog Archives

General Unix Tips

(At least on Mac OsX), Bash doesn’t read .bashrc when a new terminal is opened. it reads ~/.profile MySQL accounts are different from system accounts. They should be created using GRANT statements. The MySQL option file is located at ~/.my.cnf.

Posted in Notes

Apache2 and PHP tips

/Library/Webserver/Documents/ . My localhost is set to this folder. I haven’t yet been able to find out which config file sets this directory. ip: 141.211.98.236 The root web folder is set to /Users/naviddianati/Sites. This is the default choice of Mac. This

Posted in Notes

(Farsi) به خودخواهی دینی و نفرت پراکنی پایان دهیم: یک بیانیه

مسلمانان جهان از جمله مسلمانان ایرانی به شدت به طرح آتش زدن قرآن در یک کلیسای کوچک و حاشیه ای در آمریکا اعتراض کرده و توهین به مقدسات و جریحه دار شدن احساساتشان را محکوم می کنند. با این حال،

Posted in General

Sanctity: An instrument of political exertion

Recently, I had a heated exchange with some friends and associates over a subject that in my opinion defines the current struggle towards secular and modern politics in middle eastern societies where religious themes run deep within the political establishment:

Tagged with: , , , ,
Posted in General, Politics

Slideshow

Slideshow. Share via email

Posted in Notes

Converting Latex Formulas To Images

If you are preparing a PowerPoint or OpenOffice Impress presentation with lots of mathematical formulas, you have probably noticed how clumsy it is to use their built-in formula generators. If you’d like to have Latex-quality formulas in your presentation, you

Tagged with: , , , , , , ,
Posted in Computing, Notes

Importing XML dumps into MediaWiki

I tried to import a large XML dump from Wikipedia and failed. The automatic import feature of MediaWiki failed and gerenated numerous error messages. After Googling around for along time, I came up with this solution: 1. Remove the tags

Posted in Computing, Notes

Importing XML dumps into MediaWiki

I tried to import a large XML dump from Wikipedia and failed. The automatic import feature of MediaWiki failed and gerenated numerous error messages. After Googling around for along time, I came up with this solution: 1. Remove the tags

Posted in Computing, Notes

An Experiment on Vision and Attention

The relationship between human Attention and vision is a fascinating subject in Neuroscience. Fortunately, there is a great deal that can be learned about this and other inner workings of the human mind by conducting experiments of a particularly simple

Tagged with: , , , ,
Posted in Science

Mini Debate On Hijab And Human Dignity

“I am not opposed to a woman’s choice to wear a burqa. Nor am I opposed to a woman (or man) choosing to be an exotic dancer. I am in opposition only to the idea of banning any individual from

Tagged with: , , , , , ,
Posted in General, Politics

The 22nd of Bahman, and the future of the Green movement(part II)

The Internet and the Green movement With a few exceptions, most of the Internet gateways in Iran are either owned by the government or de facto run by the government, though operated by private companies. The exceptions are a few

Posted in Iran, Politics

The 22nd of Bahman, and the future of the Green movement(part I).

The following is an article on the 22nd of Bahman, and some of the lessons I think the Iranian Green movement should learn from the experience. It’s gotten a bit too long to be a single post already, so I

Posted in Iran, Politics

Installing a new package in Latex

Here‘s a simple guide to installing new packages or Document classes in Latex Share via email

Posted in Computing, Notes

It Is Not An Embarrassment To Look Like A Woman

The Islamic regime that’s been holding my nation hostage for decades, has recently arrested a student activist after brutal beating, and then released pictures of him wearing a headscarf (which the islamic regime forces women to wear ) in order

Posted in General

Some Java Techniques: Running Multiple Jar Files, A Case Study

It’s definitely best if you learn the basics of a computer language before attempting to compile and run an open source program written by someone else in that language. However, there are times when the installation directions look too simple

Tagged with: , , , , ,
Posted in Notes

“Notes” Category In the Blog

I decided to introduce a particular category of posts called “Notes” which would be a collection of small notes mostly on cool technical methods in Math, Physics or Computer programming I come across and want to document and share. So,

Posted in General

Mathematica Code For Unit Balls in Lp Norm

Mathematica has a very convenient method for graphing implicit functions. the function ContourPlot can plot implicit functions as well as contours of surfaces. The following code defines a function that for every input value P, outputs a printable graph of

Tagged with: , ,
Posted in Mathematics, Notes, Science

HTML: linking to the same page

If you need to create a link to an item on the same page, you have to first assign an anchor to that item, and then use the “name” of that anchor as if it were the url of the

Tagged with: , , ,
Posted in Notes

Capitalism or Corporatism? The non-dialectic of sanctity

I watched Michael Moore’s new movie Capitalism, A Love Story, and I have to admit that it went beyond my expectations. Even though the stigma historically attached to any representation of socialist ideas is still prevalent in American society, the

Tagged with: , , , , ,
Posted in General

David Bromwich: “Iran Was An Easier Enemy Before We Saw Their Faces.”

David Bromwich writes in Huffingtonpost.com about the fundamental change brought about to the discourse on Iran by the special coverage of the 2009 Iranian presidential election and its aftermath.  The ignorant self-righteousness of the “vicarious politics of liberation” has been

Tagged with: , , ,
Posted in Iran, Politics

Free Photoshop?

You do not have to buy Photoshop inorder to use all its functionalities. Yes. There is an absolutely Free software called Gimp that offers an amazing range of image proccessing and manipulation tools. I am not a professional graphist, so

Tagged with: , , ,
Posted in Computing, General

Physicist-Mathematician

Thanks to Charlie’s original idea and further insistence, I am taking three graduate level math classes this semester, which is hopefully going to end up in a masters degree in Mathematics. At first, it didn’t look like a necessary or

Posted in Science
Follow Navid on Twitter
Tags
Links
News
Archives
Meta