tag:blogger.com,1999:blog-7597694615734048512024-02-11T15:44:52.015-08:00VIKAS ke FUNDE: Technology, travel, phone, information sharedTechnical and information bloggingvickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.comBlogger149125tag:blogger.com,1999:blog-759769461573404851.post-52007756105146212972018-11-13T03:43:00.000-08:002018-11-13T03:43:06.688-08:00Quickly plot a shapefile in Matlab
Are you having a trouble in plotting shapefile in Matlab or the geoshow and mapshow is taking too much time to plot your shapefile then you can use the approach shown below. This is very quick.
shpfile=('landareas.shp');
S1 = shaperead(shpfile);
XX=[];YY=[];
for j=1:length(S1)
%Look for your X and Y variables in your shapefile
XX=[XX S1(j).X;];
YY=[YY S1(j).Y;];
end
plot(XX,YY)
Please leave avickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-36996254702757859782018-05-23T21:08:00.004-07:002018-05-28T01:45:11.573-07:00wget from Google Drive and Dropbox: One line command to download in LinuxGoogle Drive
Make sure the link is shared, and it will look something like this:
https://drive.google.com/open?id=FILEID&authuser=0
Then, copy that FILEID and use it like this
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME.EXT
DropBox
When you share a file in Dropbox, the link will look like
https://www.dropbox.com/s/vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-75049868952758273722018-05-14T23:37:00.000-07:002018-05-14T23:37:22.803-07:00MPICH make error "unknown size for unsigned int."If you are trying to install MPICH libraries, you may encounter the following error
make[4]: Entering directory `/home/vsingh/public/LIBRARIES/mpich-3.0.4/src/pm/hydra/tools/topo/hwloc/hwloc/src'
make[5]: Entering directory `/home/vsingh/public/LIBRARIES/mpich-3.0.4/src/pm/hydra/tools/topo/hwloc/hwloc/src'
CC topology.lo
CC traversal.lo
In file included from traversal.c:12:0:
/home/vsingh/publicvickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-41741260899640237662017-11-03T00:15:00.002-07:002017-11-03T00:15:41.154-07:00Convert a vector or array of numbers into a comma separated CSV string
Lets say A is vector or numbers or integers and you want to add a separator "," or ".,"
A=[1:10]
for j=1:length(A);
%Here ".," is the separator, you can use other separator also
C{j}=sprintf('%s.,',num2str(A(j)));
end;
cell2mat(C)
Output
1.,2.,3.,4.,5.,6.,7.,8.,9.,10
If you want comma only then you can use "," as a separator in sprintfvickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-55251637673290392762016-11-14T09:53:00.001-08:002017-11-15T01:36:03.623-08:00Withdraw cash from shops by swiping ATM debit card at POS point of sale or card swipe machinesIndia is in queue these days due to scrapping of old Rs 500 and Rs 1000 notes but most of us do not know that we can withdraw cash from shops by swiping out ATM debit card at POS point of sale/card swipe machines. To my knowledge, currently this facility is offered by SBI POS for all major Banks including Axis Bank, HDFC Bank etc. in India along with State Bank Group Debit cards card holders.
vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-67677607470352282932015-01-15T08:28:00.000-08:002015-01-15T08:44:03.042-08:00GFS update : Change required to run WRF GFS Analysis and Forecast System has been upgraded wef 1200 UTC, January 14, 2015. Your WRF forecast is likely to fail if you have not yet updated your scripts. Please do the following changes in order for the run to be successful.
Update your Vtable after downloading from this command/link
wget http://www2.mmm.ucar.edu/wrf/src/Vtable.GFS_new
GFS file naming conventions have also been vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com9tag:blogger.com,1999:blog-759769461573404851.post-51591125112905754362014-12-24T01:00:00.003-08:002014-12-24T01:00:54.878-08:00Password to open e-aadhaar Card PDF fileThe password to open your e-aadhaar card pdf file is your Postal Index Number (PIN code).
Postal Index Number (PIN) or PIN Code is a 6 digit code of Post Office numbering used by India Post. The PIN was introduced on August 15, 1972.
If you havn't got your eaadhaar card, then you can get it from eaadhaar.uidai.gov.invickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-22453648935159185782014-02-13T01:43:00.001-08:002014-02-13T01:43:58.887-08:00Germany Schengen Visa remarksYou have recently got a German business or visitors visa (Type C), you should have seen some remarks in German.
The english meaning of such remarks are as follows
besuchs -/ geschäftsvisum : visit - / business visa
erwerbstätigkeit nicht gestattet : gainful employment not permitted
öffentliches interesse : public interestvickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com12tag:blogger.com,1999:blog-759769461573404851.post-26602779118929354542013-05-07T08:20:00.000-07:002013-05-07T08:25:21.200-07:00New Rules to add spouse name in the Indian passportAddition of spouse name in no more one day job as there are no miscellaneous services in the new rules. Now if you want to include the spouse name in the passport you must apply for the Reissue of Passport with the following document.
Documents required to endorse spouse name
Old Passport in original with self-attested photocopy of its first two and last two pages, including ECR/Non-ECR page (vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com318tag:blogger.com,1999:blog-759769461573404851.post-27632440148926190772013-04-18T03:25:00.000-07:002013-04-18T03:25:49.044-07:00How to calculate mean wind direction - average of circular function - MatlabThe calculation of mean wind direction is not just taking the average as they are in radial co-ordinates. In this I will show you how you can calculate mean wind direction with on line formula.
Please note, all the angles are in degrees and Matlab degree trigonometric functions (sind, cosd and atand) have been used in the calculations. The formula is based on the calculation of the mean of the vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-7545375836465807412013-04-14T04:32:00.001-07:002013-04-14T04:32:38.428-07:00Calculate distance between two lat long points on the Earth – Matlab
You can calculate the distance in Kilometers between two points on the Earth. It can be calculated with either Native functions of Matlab or with your own code using the spherical law of cosines.
Lets say, C is coordinate vector containing Latitudes and Longitudes of both points in degrees.
C=[ lat1, lon1, lat2, lon2]
Using native Matlab function:
distanceKM=deg2km(distance(C(1),C(2),C(vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-71598387064286891372013-04-05T02:34:00.000-07:002013-04-05T02:34:34.788-07:00Matlab operations between matrix and a vector array - Divide, Multiply, add and subtract element by element with bsxfunYou can use matlab function bsxfun to Divide, Multiply, add and subtract element by element between two arrays. One or both arrays can be matrix.
Example:
To divide a matrix A by a vector array b
A=[1 2 3; 4 5 6];
b=[1 2 3];
D=bsxfun(@rdivide, A,b)
The result will be
D =
1.0000 1.0000 1.0000
4.0000 2.5000 2.0000
Other functions are
@plus to add
@minus to Minus
@times tovickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-34928488862627784362012-04-15T02:11:00.000-07:002012-04-15T02:11:24.111-07:00NDTV Imagine TV UK and USA shutting down: Imagine dil se channel program is not coming in April 2012Did you notice that from Friday 13th April 2012, Imagine TV schedule has changed and not airing as it should be. The sad news is that this channels is shutting down. Turner Broadcasting System has decided to shut 'Imagine TV'
Read more newsvickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com5tag:blogger.com,1999:blog-759769461573404851.post-88620039305819873692011-10-27T08:45:00.000-07:002011-10-27T08:45:32.552-07:00Add Quick Launch toolbar in Win 7 and change icon sizeWhen I moved to windows 7 from xp, the first thing I notices that quick launch bar was missing. Below you can find the way to add quicklaunch bar.
Adding Quick launch bar
Right click on the taskbar and uncheck the "Lock the taskbar"
Right click again and select Toolbars >> New Toolbar..
Add your appdata folder which is located at:
%appdata%\Microsoft\Internet Explorer\Quick Launch
Whichvickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-46745574933854365722011-07-22T04:18:00.000-07:002011-07-22T04:18:57.907-07:00Internet explorer IE9 64-bit stopped working after Windows update in win7If you have recently made changes or updated your PC and your IE9 has stopped working then you may try the following steps to solve the problem.
Goto Control panel
Click Internet Options in Network and Internet
Click the Advanced tab, and then browse to the Accelerated graphics (Top).
Click to select the Use software rendering instead of GPU rendering check box.
Click Apply, and then click OK.
vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com3tag:blogger.com,1999:blog-759769461573404851.post-9226057770709695872011-04-19T06:46:00.000-07:002011-04-19T06:46:18.501-07:00ArcGIS python script to print the field names of a feature or shp fileOpen the command windows in your arcgis and run the following scrip. Dont forget to edit TypeYourFeature with your feature.
featurename='TypeYourFeature'
for field in arcpy.ListFields(featurename):
print field.name
Example:
If you have shp file named "streets.shp" located in D:/Mycity/roads then you need to write
featurename='D:/Mycity/roads/streets.shp'
for field in arcpy.ListFields(vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-56353904547091524752011-04-12T05:44:00.000-07:002011-04-12T05:44:08.318-07:00lnk2019 unresolved external symbol imsl intel visula fortran compilation errorFollow these steps to solve the problem:
Click on Project > Properties > Linker > Input > Additional Dependencies
Add "imsl_dll.lib imsls_err.lib"
Rebuild the solution again.vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com1tag:blogger.com,1999:blog-759769461573404851.post-68336932548360070022011-03-28T07:16:00.000-07:002011-03-28T07:16:41.985-07:00Full screen on extended desktop on second monitor, watch youtube video, movie with vlc, media player on dual monitor, HD TVWant to watch movies or video in full screen mode on your LCD, LED, HD TV while working on your laptop and sending the display on the extended desktop.
Earlier, you could watch the movie on full screen but it was not possible to work on the main monitor. The latest update from adobe supports dual monitor full screen mode. You need to update the adobe flash payer and then you can vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-73520710306083485852011-02-11T08:47:00.000-08:002011-02-11T08:47:23.035-08:00Last day of the month, number of days in a month Linux shell bash script, date command in UnixNumber of days in a month is not inbuilt command in linux, In order to get the number of days in a month, we create a new date string of the first day of the next month and then go back to previous day which gives us the last day or number of days in the current month.
Lets say “di” is the date in format YYYYMMDD
di=20100101
Then you can derive the following
#Current date
DD=`date -d "${di}" vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-83752062793530154102010-12-07T07:09:00.000-08:002010-12-07T07:10:23.023-08:00Solution to Windows 7 keeps on checking update or searching updatesAre you having one of the following problems related to Microsoft windows 7 update.
Windows 7 keeps on checking update or searching updates
Windows update stopped working
Microsoft windows does not install the pending updates
Windows does not show the installed updates.
No windows updates after you install IE9.
Windows7 failed to install updates many times.
Windows update hangs
Cause: The Unknownnoreply@blogger.com6tag:blogger.com,1999:blog-759769461573404851.post-1189270910671035652010-06-29T09:23:00.000-07:002010-06-29T09:24:11.997-07:00Convert Longitude 0-360 to -180 to 180 or 180W-180E in fortran and matlab, transform lat lon coordinatesVariables in explanation
long1 is the longitude varying from -180 to 180 or 180W-180E
long3 is the longitude variable from 0 to 360 (all positive)
To convert longitude from (0-360) to (-180 to 180)
Matlab and fortran
long1=mod((long3+180),360)-180
Matlab
long1=rem((long3+180),360)-180
Fortran
long1=modulo((long3+180),360)-180
To convert longitude from (-180 to 180) to (0-360)
Matlab
lon3vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com3tag:blogger.com,1999:blog-759769461573404851.post-4299760497955382112010-06-10T12:18:00.000-07:002010-06-28T12:03:03.440-07:00int2str and str2num in fortran, How convert string to integer number of vice versa.To convert a number/integer to a string, you need to write the variable into the string character.
Integer I
Character* str
I = 9999
Write( str, '(i10)' ) I
End
To convert a string to number or integer, you need to read the strign and assign it to the integer
Integer I
Character* str
I = 9999
read( str, '(i10)' ) I
Endvickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com6tag:blogger.com,1999:blog-759769461573404851.post-48176248269054997022010-05-12T11:54:00.000-07:002010-05-12T12:27:53.657-07:00XE Trade review: Lower exchange rates to India: on-line money transfer service from XE.comXe.com is one of the most visited website to find the currency conversion rates, accidently I found the link for their foreign exchange service called XE Trade and immediately registered for that thinking that they will give the best rate.
The account opening was bit long process, I had to register then send my ID proof (copy of passport) address proof (copy of bank statement) then I had to callvickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com3tag:blogger.com,1999:blog-759769461573404851.post-67478869717657344632010-05-06T06:36:00.000-07:002010-05-06T06:36:31.745-07:00China airlines non stop direct flight between India and Italy (Rome-Delhi)China Airlines is the first airline to operate a direct flight between Delhi and Rome. Earlier there was direct flight from Alitalia which stopped after some problems.
According to the news, Starting on December 1 2009, China Airlines has started three round-trip flights each week from Taoyuan Taiwan to Delhi and Rome. The flight will start from Delhi around 1300-1400 Hours, unlikely other EU vickyhttp://www.blogger.com/profile/05298037530172967668noreply@blogger.com0tag:blogger.com,1999:blog-759769461573404851.post-52139980098231759002009-11-24T11:24:00.000-08:002009-11-24T11:24:53.672-08:00SBI Loyalty Rewards Program for onlinesbi internet banking customers of State Bank of IndiaLOYALTY REWARDS PROGRAM is a scheme to reward existing as well as new retail internet banking customers of SBI w.e.f. 26th Nov., 2009. It is the stimulus for the customers to transact online, earn reward points and redeem the points for cash. This process is just one of the ways to reward our esteemed customers for their continued support and loyalty.
All existing and new retail internet bankingUnknownnoreply@blogger.com3