c# Hide a property in datagridview with datasource
Is there an Attribute I can use in my class to tell DataGridView not to create a column for it when bound to a List
How do I parse a string to a float or int? In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or parse the string "31" to an integer, 31?  I just want to know how to parse a float str to a float, and (separately) an int str to an int. How to write the Fibonacci Sequence? I had originally coded the program wrongly. Instead of returning the Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 should = only those numbers between 1 &amp; 20), I have written for the program to display all Fibonacci numbers between a range (ie. startNumber 1, endNumber 20 displays = First 20 Fibonacci numbers). I thought I had a sure-fire code. I also do not see why this is happening.  startNumber = int(raw_input("Enter the start number here ")) endNumber = int(raw_input("Enter the end number here "))  def fib(n):     if n &lt; 2:         return n     return fib(n-2) + fib(n-1)  print map(fib, range(startNumber, endNumber))   Someone pointed out in my Part II (which was closed for being a duplicate - ) that I need to pass the startNumber and endNumber through a generator using a while loop. Can someone please point me in the direction on how to do this? Any help is welcome.    I'm a learning programmer and I've run into a bit of a jumble. I am asked to write a program that will compute and display Fibonacci's Sequence by a user inputted start number and end number (ie. startNumber = 20 endNumber = 100 and it will display only the numbers between that range). The trick is to use it inclusively (which I do not know how to do in Python? - I'm assuming this means to use an inclusive range?).  What I have so far is no actual coding but rather:   Write Fib sequence formula to infinite Display startNumber to endNumber only from Fib sequence.   I have no idea where to start and I am asking for ideas or insight into how to write this. I also have tried to write the Fib sequence forumla but I get lost on that as well. Converting *.tif file into headerless (flat) binary file? I am using NDVI files (value range -1 to +1) created from Landsat CDR images to produce a timeseries in TIMESAT software.   My  .tif file has following characteristics.  File type  TIFF,Data Type  Double Precision, Byte Order Host (Intel), Interleave BSQ  As per the requirement of TIMESAT, the image should be headerless(flat) binary file, and values can be stored as 8 bit integer(0-255), 16 bit signed integer(-32767 to +32768) or 32 bit real.   Now i need to change my data type into any of these 3 format and .tif file into headerless binary files.   Any idea? Windows does not mount USB NTFS superfloppy I have a Transcend Storejet external USB hard disk. This is not an SSD, but a mechanical disk with rotating plates. I have formatted the whole disk, without partitioning, as NTFS. I have used mkntfs tool under Linux.  When plugged into a Linux machine, the system sees a drive with two partitions (/dev/sdc /dev/sdc1 /dev/sdc2). However, as I know it is a partitionless disk, I can mount the whole device (mount -t ntfs /dev/sdc /mnt) and it works without any problems.  When plugged into a MS Windows XP machine, the systems sees a disk with two unformatted partitions, and it does not assign a drive letter to either the whole disk, nor to any of the partitions.  Would anyone know how to get MS Windows to mount my disk as a NTFS superfloppy?  I have already tried removing old USB mounting points and residual devices using 'DriveCleanup'. It did not help.  By the way, I also have an external Kingston USB SSD, also formatted as NTFS superfloppy, without partitioning. However, this one is recognized and mounted normally by MS Windows. Getting 2-factor Gmail authentication code from Sweden mobile number I have been facing a serious problem for many months. Usually I get a 2-factor authentication code from 51501 when I am supposed to log into Gmail. But for months I am getting a code from a Sweden-based mobile number: +46701327805. The first code I received from this number was in October 2015.  There is also a mobile number from USA that sometimes sends the code. I change my passwords every time this happens. What could be the possible reason for this and how to overcome this problem?   By the way, I must say I have been hacked for years. I don't use VPN; my internet runs off a broadband modem. Reprojecting MODIS-Sphere ESRI GRID file to WGS84 using QGIS/GDAL I have an ESRI GRID file projected in MODIS-Sphere (here's the dataset ) that I need to convert to a WGS84 GeoTIFF.  I tried Raster > Projections > Warp (Reproject) and got this nonsense:   I then thought I'd use the MODIS reprojection tool or HEG to convert it, but they only accept HDF files and using QGIS' warp or translate functions to convert this file to HDF throwns an error. This guy was trying to do the same thing in Arc, no joy:   I looked for clues in the metadata, and the file seems a little goofy; gdalinfo yields:  Driver: AIG/Arc/Info Binary Grid Files: seto_uf        seto_uf.aux        seto_uf/.aux.xml        seto_uf/.DS_Store        seto_uf/dblbnd.adf        seto_uf/hdr.adf        seto_uf/log        seto_uf/metadata.xml        seto_uf/sta.adf        seto_uf/vat.adf        seto_uf/w001001.adf        seto_uf/w001001.tif        seto_uf/w001001.tif.aux.xml        seto_uf/w001001x.adf Size is 7468, 2911 Coordinate System is `' Origin = (-17345341.010356999933720,8423784.764957003295422) Pixel Size = (5000.000000000000000,-5000.000000000000000) Corner Coordinates: Upper Left  (-17345341.010, 8423784.765)  Lower Left  (-17345341.010,-6131215.235)  Upper Right (19994658.990, 8423784.765)  Lower Right (19994658.990,-6131215.235)  Center      ( 1324658.990, 1146284.765)  Band 1 Block=256x4 Type=Byte, ColorInterp=Undefined   Description = Seto_UF   Min=0.000 Max=101.000    NoData Value=255   So it can't determine the coordinate system.  There's a .tif included in the directory, but gdalinfo on that shows:  Driver: GTiff/GeoTIFF Files: w001001.tif        w001001.tif.aux.xml Size is 7468, 2911 Coordinate System is: GEOGCS["Unspecified datum based upon the GRS 1980 Authalic Sphere",     DATUM["unknown",         SPHEROID["unnamed",6371007,1]],     PRIMEM["Greenwich",0],     UNIT["degree",0.0174532925199433],     AUTHORITY["EPSG","4047"]] Origin = (-17345341.010356999933720,8423784.764957003295422) Pixel Size = (5000.000000000000000,-5000.000000000000000) Metadata:   AREA_OR_POINT=Area Image Structure Metadata:   INTERLEAVE=BAND Corner Coordinates: Upper Left  (-17345341.010, 8423784.765)  Lower Left  (-17345341.010,-6131215.235)  Upper Right (19994658.990, 8423784.765)  Lower Right (19994658.990,-6131215.235)  Center      ( 1324658.990, 1146284.765)    So it says the units are degrees but those huge corner coordinates and origin values don't agree.  Any ideas?  My setup: OSX 10.9.4 QGIS 2.6.1 Brighton GDAL 1.11.2 (apparently there are newer versions but this is the latest you can get on OSX without having to compile it yourself) Dupehammer creates and deletes a comment, causing notifications to go out Why Does the Transaction Log Keep Growing or Run Out of Space? How compute $\lim_{p\rightarrow 0} \|f\|_p$ in a probability space? When do you use Java's @Override annotation and why? What are the best practices for using Java's @Override annotation and why?     It seems like it would be overkill to mark every single overridden method with the @Override annotation.   Are there certain programming situations that call for using the @Override and others that should never use the @Override? There are a plethora of words for user accounts, like logon, login, signon, and also the action of logging in (or logging on) or signing in.  Are there any usage guidelines here? Trouble with batch conversion of .png to .pdf using convert Equation of a line maintaining equal ratio distance between two points. Say I have two points. One at $A = (0, 0)$ and another at $B = (0, 10)$. I wish to derive an equation for a line that, for any point $P$ on the line, would equal a set ratio for the distance $P$ to $A$ and $P$ to $B$.  This is easy if the predetermined ratio for $A:B$ is $1:1$. I would create a line from $A$ to $B$, find its midpoint, then create an orthogonal line at the midpoint. Then at any $P$ on the line I know that the ratio distances from $P$ to $A$ and $B$ will be $1:1$.  But what if the ratio for $A:B$ is something like $11:18$?  This is for a positioning algorithm I am implementing - not for homework :)  EDIT: Note - If an exact formula is not possible, an approximation of the line out to $\pm 200$ from $A$ or $B$ is acceptable as values further from $A$ and $B$ will not be utilized anyway. A linear equation for the final result/approximation is ideal for speed in running multiple computations. Names of some months don't make sense I'm not a native English speaker but I'm always trying to do my best. Unfortunately I have a real problem with dates for some odd reason, I couldn't learn when was my birthday until I was 12 years old.  Anyway, as I was learning names of the months on English, and since I know some Latin from high school I noticed that English months don't match up with their Latin numeral counterparts. For example:  September - 9. month October - 10. month November - 11. month December - 12. month  While on latin septem, octo, novem and decem are words for 7, 8, 9 and 10.  So, does anyone know why is that. At first I thought it had something to do with switch from Julian to Gregorian calendar but I figured it's too small of a difference.  Anyone? :) What does "I have straight A's." mean? ‘And what on earth’s a Squib?’ said Harry.   To his surprise, Ron stifled a snigger.   ‘Well – it’s not funny really – but as it’s Filch ...’ he said. ‘A Squib is someone who was born into a wizarding family but hasn’t got any magic powers. Kind of the opposite of Muggle-born wizards, but Squibs are quite unusual. If Filch’s trying to learn magic from a Kwikspell course, I reckon he must be a Squib. It would explain a lot. Like why he hates students so much.’ Ron gave a satisfied smile. ‘He’s bitter.’   Chamber of Secrets - pages 110-111 - British Hardcover   If a Squib is 'kind of the opposite of a Muggle-born wizards' wouldn't that make a Squib more Muggle than wizard? Does a Muggle strictly have to be born to Muggle parents to be considered a Muggle, or can the lack of magic render a person, even of wizarding parentage, a Muggle?  Hermione can say in all truthfulness that she is a 'Muggle-born witch.' The nickname (albeit derogatory) for a Muggle-born is 'Mudblood.' Filch can say in all truthfulness that he is a 'wizarding-born non-magic person,' which, according to Hagrid is a Muggle.  'Squib' may be derogatory in the same way as 'Mudblood' is. Neville laments his family thought he was a Squib when he showed no magical tendencies as a child; the Longbottoms were so rattled at the thought of Neville being a Squib that they, among other things, threw him out a second-story window to see if he would bounce. So could 'Squib' actually be a derogatory term meaning the opposite of 'Mudblood'? After all, the Ministry doesn't allow Squibs to register as magical beings, and many Squibs are schooled and trained in Muggle professions. Squibs don't get a Hogwarts letter.    Wizards can be born to Muggles. Can Muggles be born to wizards?  ETA 11.22.14: In regard to this question, I was glancing through Philosopher's Stone, and I came across this, that Neville said:     ‘Well, my gran brought me up and she’s a witch,’ said Neville, ‘but the family thought I was all Muggle for ages. My great-uncle Algie kept trying to catch me off my guard and force some magic out of me – he pushed me off the end of Blackpool pier once, I nearly drowned – but nothing happened until I was eight.’   Philosopher's Stone - page 93 - Bloomsbury - chapter seven, The Sorting Hat   Could what Neville says contribute to the theory and/or conclusion that Squibs are, or are not, Muggles? How do we apply what Neville said? Does there exists an entire function such that for each $|z|>C$ for some constant $C$, $|f(z)|=|z|+1$? I'm building an object detector using HOG features and linear SVM. Some of the regions of the object are more "distinctive" so I would like to give more weight to the features extracted from those regions. (e.g. imagine we want to detect between mugs and glasses, then the most "distinctive" part is the mug's handle)  How could I do this? For sure there should be a more intelligent way than just replicating the features of those "distinctive" regions. Uninstall apps locked by phone vendor Displaying row/column of point in raster using QGIS? Is it possible in QGIS to display column and row index of pixel in raster?   I mean something similar to value tool.