Skip navigation

Category Archives: Uncategorized

Hi,

I have created this script for getting timezone by providing a particular latitude and longitude,

The idea is I crated timezone polygons for US and using Point in Polygon algorithm we can check the given latitude and longitude falls under which timezone.

Currently the sql dump I created for only USA, we can add polygons for additional countries.

for code: https://github.com/prabhubng/Timezone-US

Thanks.

-Prabhu

Advertisements

Ashada month (Aadi) plays a great role with marriage related issues, I can see there is a general saying that during the month, newly married couple should not stay together and daughter in law and mother in law should not stay in same house, etc

Ok fine, these are the following reasons given by many people, who try to give some strength to this belief:

1, If newly married couple stay together in this month then the possibility of  child’s birth might take place during summer, so it causes health issues for the mother and child.

2, During Ashadam the gods goes to sleep according to Uttharayana and Dhakshinayana theory, so since they are not in active mood, the marriage may not be blessed by gods.

3, During Ashada, weather is too windy. Olden days any auspicious events used to take place in a open space. Blowing wind would lit the lamps off, or would bring the dust along its blow and may spoil the food prepared in open space.
Yagna, Yagas and Homas would be difficult with the blowing wind hence our sages restricted any such events during these 30 days.

Fine, here are few points from my point of view:

If we think the logic 1 is valid, then:

  • Summer is a 3 month period and summer heat varies from region to region, so even avoiding ashada month, child may born in April or May, so these two months are still peak summer in many places, so this seems not valid reason.
  • Older days when there were not enough medical facilities like now, so people might considered it seriously to handle summer.

If we take 2nd logic valid, then:

  • Gods goes to sleep for 6 months, so avoiding one month I am not sure what we can achieve, also god sleeps or going on vacation still he protects his bhaktas at any time and at any condition, so this is completely funny reason.
  • Everyday in temples we can see the last seva for the lord happens to be the Ekanta Seva, the seva before god goes to sleep, basically in tradition we see god as a relationship, so we take care of him just like we serve our own mother or father, so god sleeping in night is just our own belief, but god never sleeps, the explanation of Anantha Sayana of Anantha Padmanabha Swamy is not that he sleeps but he is in divine sleep (Yoga Sadana) in which he actually directs the universe to function.

If we take 3rd logic valid, then:

  • Very simple, we can ignore this as infrastructure now are much better then older days, so no need to worry about this.

Another interesting note:

Note: This section is not my own view but a fact I heard so don’t consider as racism

During old days becoming administrator under king, like ministers, administrators, etc (now simply government jobs), was considered most noble and very powerful (this is true even now), so according to vedic astrology a in a person’s horoscope sun placed in Aries sign considered the planet’s exalted position, so belief is that a person’s horoscope with a strong sun’s placement considered he/she will get into government job or service, so people belonging to few communities (in that era only few particular communities had knowledge of astrology) started spreading roomers to other community people to avoid them getting married or staying together but they preferably used to perform marriages in this particular month. Anyhow I am not sure how much truth behind this factor but still this point is logical.

But in my opinion the belief of Aadi/Ashadam as an inauspicious month is not true, it’s just like any other month, also we have to note that only the first year of the aadi/ashadam married couples need to be separated so I hope this is nothing to do with marriages or any good works.

Please comment your opinion.

-Thanks

Prabhu

Some times mediawiki gives error while trying to login saying that cookies are disabled but in most cases I have seen even in the browser side cookies are enabled properly also get this error message to resolve this please check the php.ini file and check the below line

session.use_cookies = 0

and make the value to 1
session.use_cookies = 1

restart apache and test now, users should be able to login without any problem.

Note: This issue is identified and resolved on apache 2.2/php 5x on linux machine.

PHP compilation error: undefined reference to `mysql_create_db’

When you try to compile PHP 5.2.10 with MySQL support you may see this error, to resolve it please try to download earlier versions of PHP probebly download PHP 5.2.0 which works fine.

MySQL is not allowing to connect using IP address? but able to connect locally using localhost as hostname?,
then possibly there is a problem with the user account permission.

To Resolve: Create a new user

CREATE USER ‘newuser’@’%’ IDENTIFIED BY ‘some_pass’;

mysql> CREATE USER ‘newuser’@’%’ IDENTIFIED BY ‘some_pass’;
mysql> GRANT ALL PRIVILEGES ON *.* TO ‘newuser’@’%’
->     WITH GRANT OPTION;

Here the difference is ‘newuser’@’%’ string where mostly your other user accounts created using ‘user’@’localhost’ string.

Note: This is tested using MySQL 5x, for other versions please check “how to create a user” for different versions of MySql.

Hope this helps,

Description: Subversion helps developers to tag a revision it is just like a snapshot of a development state

It’s good practice to have repository structure like the following.

Project/			-	Root directory
	branches/		-	to enable separate development line, read branching
	tags/			-	Labeling any state
	trunk/			-	Current active version

Step 1:

Select all files into the Smart SVN interface then select Modify –> Copy Repository to Repository.

svn-copy-1

Step 2:

svn-copy-2

Done, now the copy will be reflected in /project/tags/dec-31.

Example:

svn-copy-3

Note:

1. “Tagging” in Subversion is just a copy of a revision/state.
2. Subversion doesn’t copy the entire revision physically, it’s like hard link concept in UNIX.
So no need to worry about creating any number of tags.
3. Steps described here to create a Tag from Repository to Repository, in the same way
Local copy to repository also can be created using Modify –> Copy Local to Repository.

This example shown using SmartSVN client

All of us are big time Googlers. Have you heard of the Blackle search engine? Blackle (Google powered) is a search engine designed all in Rich Black so that your system consumes less power. So change your homepage.

As noted, an all white web page uses about 74 watts to display, while an all black page uses only 59 watts. I thought I would do a little math and see what could be saved by moving a high volume site to the black format.

Take at look at Google, who gets about 200 million queries a day. Let’s assume each query is displayed for about 10 seconds; that means Google is running for about 550,000 hours every day on some desktop. Assuming that users run Google in full screen mode, the shift to a black background [on a CRT monitor! mjo] will save a total of 15 (74-59) watts. That turns into a global savings of 8.3 Megawatt-hours per day, or about 3000 Megawatt-hours a year.

So please use blackle.com when you google next time, also I know most of firefox users use the search on the firefox tool bar, but this add-on does not have a support for blackle.com to enable just follow these steps.

Go to: Firefox installation directory\Mozilla Firefox\searchplugins

you can see few xml files and these are all configured search engines already available on firefox, just create a .xml file and copy this content

<SearchPlugin xmlns=”http://www.mozilla.org/2006/browser/search/”&gt;
<ShortName>Blackle</ShortName>
<Description>Blackle Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width=”16″ height=”16″>data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAaRJREFUeNpiVIg5JRURw0A0YAHio943kYV%2B%2Ff33%2BdvvX7%2F%2FMjEx8nKycrGzwKXOiPKzICvdeezLhCV3jp15%2Bfv%2FX0YGhv8MDDxMX2qKTIw0RK10eYD6QYqATvoPBkt3f5K0W9Ew4fjTFz%2F%2Bw8Dm3W8UPeZxqFa%2BevsFyD0twgfVsOfkRxHrtfV9u5BVQ8Crd98%2FffkGYQM1QJ20%2FfSPv79eNxQGYfpSVJADmcvEAHbr7oOX2dj%2FERNKIA2%2F%2F%2Fz%2FxfCDhYVoDUDw5P6vf9%2B5iY0HVmZGQWm%2BN3fff%2Fn2k4eLHS739x%2FDiRs%2Ff%2F%2F5x8HO%2FOHzN3djfqgNjIwMgc6qzLx%2Fpy47j2zY%2Feff06tXhOUucgxeun33AUZGpHh4%2Bvo7t8EyIJqz%2FhpasD59%2B5dNrqdnznZIsEL9ICXCsWuBCwvTv%2FymS5PWPP32ExEALz%2F%2BB5r848cPCJcRaMP9xaYQzofPPzfuvrnj0Jst%2B5%2F8%2Bc4sLPeDkYlRgJc93VPE18NIXkYUmJYQSQMZ%2FP3379uPH7%2F%2F%2FEETBzqJ0WqLGvFpe2LCC4AAAwAyjg7ENzDDWAAAAABJRU5ErkJggg%3D%3D</Image>
<Url type=”application/x-suggestions+json” method=”GET” template=”http://suggestqueries.google.com/complete/search?output=firefox&amp;client=firefox&amp;hl={moz:locale}&amp;q={searchTerms}”/>
<Url type=”text/html” method=”GET” template=”http://www.google.com/search”&gt;
<Param name=”q” value=”{searchTerms}”/>
<Param name=”ie” value=”utf-8″/>
<Param name=”oe” value=”utf-8″/>
<Param name=”aq” value=”t”/>
<Param name=”cx” value=”013269018370076798483:gg7jrrhpsy4″/>
<Param name=”cof” value=”FORID:1″/>
<!– Dynamic parameters –>
<Param name=”rls” value=”{moz:distributionID}:{moz:locale}:{moz:official}”/>
<MozParam name=”client” condition=”defaultEngine” trueValue=”firefox-a” falseValue=”firefox”/>
</Url>
<SearchForm>http://www.google.com/firefox</SearchForm&gt;
</SearchPlugin>

Save the file.

Now restart firefox and you can configure blackle.com as default search engine.

Hope this helps.

Click here for Translations: Russian, Hungarian

Steps

1.Download cramfs-1.1-1.tar.bz2 from http://ftp.uni-kl.de/pub/windows/cygwin/release/cramfs/cramfs-1.1-1.tar.bz2

2. Extract the contents of cramfs-1.1-1.tar.bz2 into a directory

3. You can see cramfsck.exe and mkcramfs.exe under bin

4. You need cygwin for windows you can download and install from http://www.cygwin.com/ (if you already don’t have cygwin on your machine)

Run these tools under command prompt:

cramfsck.exe – To test and extract cram contents into any other directory

mkcramfs.exe – To create a new .cram file

Example:

Extract Contents:

c:\cramfs\bin>cramfsck -x c:\cram\temp\ c:\temp\temp.cram

This command will extract the contents of temp.cram to c:\cram\temp\ Create a .cram file:

c:\cramfs\bin>mkcramfs c:\cram\contents temp.cram

This command will create temp.cram file.

Note: use -h option for help for both commands.

Setup

1. Download and Install ext2 driver for Windows, you can download it from http://www.fs-driver.org/download.html

2. Download filedisk utility from http://www.acc.umu.se/~bosse/index.html

3. Extract the filedisk zip file and copy the driver (filedisk.sys) to %systemroot%\system32\drivers\ and %systemroot%\system32\

4. Double click on filedisk.reg to make registery entries (the filedisk.reg file can be imported if double click doesn’t work)

5. Restart your machine.

Usage

In command prompt go to filedisk directory and use the following commands:

1. filedisk /mount [size[k|M|G] | /ro | /cd]

example: c:\filedisk>filedisk /mount 0 c:\loop\w3serv_01.02.1.loop f:

You can see the loop file mounted as F: drive

2. filedisk /umount

example: c:\filedisk>filedisk /umount f:

3. filedisk /status

example: c:\filedisk>filedisk /status f:

Alternatively by installing “ext2 driver for Windows” is useful to connect any external hard disk with ext2 file system to view it’s contents.