Lets say i have folder with images and I want to import all of those images with IMG_Load or SDL_LoadBMP no matter what the names of those images are and no matter how many of those images are in that folder. For instance, if I have 10 images in folder "Images" I need to use IMG_Load 10 times, and every time to write name of every single image in IMG_Load function. So if I add another 10 pictures with different names this obviously wont work. So my question is how can I import images from folder with arbitrary amount of those images in it using SDL? So to be precise, is there a way to import those images with integers or array? I mean to sort names of those images ascending and call them by numbers. IMG_Load(1), IMG_Load(2), ...
How can I determine the list of files in a directory from inside my C or C++ code?  I'm not allowed to execute the ls command and parse the results from within my program.
Can you find all classes in a package using reflection? Default constructor with empty brackets Can a finite group act freely (as homeomorphisms) on $\mathbb R^n$ I am asking if whether or not a finite group acts freely (as homeomorphisms) on $\mathbb R^n$.  To answer in the negative, it suffices to show: for any homeomorphism $f$ such that $f^d=\text{id}_{\mathbb R^n}$, then $f$ has a fixed point.  I am looking for a complete self-contained answer. How do I use large bitmaps in .NET? I'm trying to write a light-weight image viewing application. However, there are system memory limitations with .NET.  When trying to load large bitmaps (9000 x 9000 px or larger, 24-bit), I get a System.OutOfMemoryException. This is on a Windows 2000 PC with 2GB of RAM (of which 1.3GB is used up). It also takes a lot of time to attempt loading the files.  The following code generates this error:  Image image = new Bitmap(filename); using (Graphics gfx = this.CreateGraphics()) {     gfx.DrawImage(image, new Point(0, 0)); }   As does this code:  Stream stream = (Stream)File.OpenRead(filename); Image image = Image.FromStream(stream, false, false); using (Graphics gfx = this.CreateGraphics()) {     gfx.DrawImage(image, new Rectangle(0, 0, 100, 100), 4000, 4000, 100, 100, GraphicsUnit.Pixel); }   Also, it is enough to do just this:  Bitmap bitmap = new Bitmap(filename); IntPtr handle = bitmap.GetHbitmap();   The latter code was intended for use with GDI. While researching this, I found out that this is in fact a memory issue where .NET tries to allocate twice as much as is needed in a single contigous block of memory.    I know from other applications (Internet Explorer, MS Paint etc.) that it IS possible to open large images, and rather quickly. My question is, how do I use large bitmaps with .NET?  Is there anyway to stream them, or non-memory load them? How to keep processes running after ending ssh session? Let's say I launch a bunch of processes from a ssh session. Is it possible to terminate the ssh session while keeping those processes running on the remote machine? My online friend is asking for money in order to visit my home country. Is this a legit request or a scam? Runtime error : ERROR 000358: Invalid expression using SelectLayerByAttribute in ArcPy? I cannot for the life of me persuade SelectLayerByAttribute to work (I need to automate this for a complex script).  Working in ArcMap's python console on already loaded shapefile, the format below:  import arcpy from arcpy import env arcpy.env.workspace = r"C:/Users/.../working" arcpy.SelectLayerByAttribute_management("layer", "NEW_SELECTION", " 'ATTRIBUTE' = 'Criterion' ")   results in error:     Runtime error : ERROR 000358:   Invalid expression Failed to execute (SelectLayerByAttribute).   An alternative method:  import arcgisscripting import arcpy gp = arcgisscripting.create(9.3) gp.workspace = "C://...//working" sFile = "C://...//working//shapefile.shp" lyr = "layer" gp.makefeatureLayer_management(sFile, lyr) gp.toolbox = "management" gp.SelectLayerByAttribute("layer", "NEW_SELECTION", " 'ATTRIBUTE' = 'Criterion' ")   .. selects everything, including features that don't meet the criterion!  Does anyone have any idea what's going wrong?  I've read some pages on , but found no solution that works here. The working directory is correct. The attribute field and criterion are correctly specified (case sensitive etc), etc. Its very confusing. Mass retagger badge I've been busy retaggin questions since I got my retag privileges.  Shouldn't there be an incentive to retag wrongly tagged questions, other than the urge to do things right?  I'm mean, the only "badge incentive" for retagging are "Firs edit" (Organizer) and "Creation of a tag used 50 times" (Taxonomist). The first one is easy to get, and the second one, right now in SO is almost impossible to get without cheating, that's editing 50 questions with an unlikely tag. Taxonomist I guess, could encourage wrongly tagging.  Is this really a problem?  We could have an "Tagged 200 question" badge, so people go for that badge, instead of taxonomist. What are the benefits of modeling in one piece, or as separate parts? Is there any benefit of creating model in one piece or I can create separate pieces and just overlap them to create a visually joint part.  For example, the below image were made from two parts 1. Blade 2. Spinner  Is there any benefit to model them (e.g. extrude from the spinner) or it is actually ok to have them separated since visually I can achieve the same effect (See picture 2) When performing k-fold cross validation, I understand that you obtain the accuracy metrics by pointing all the folds except one at that one fold and make predictions, and then repeat this process $k$ times.  You can then run accuracy metrics on all of your instances (precision, recall, % classified correctly), which ought to be the same as if you calculated them each time and then averaged the result (correct me if I'm wrong).  The end result you want is a final model.  Do you average the models obtained to make your set of $k$ predictions to end up with the model that has the accuracy metrics obtained by the above method? In my object record type i have created formula field. Now i want my formula field to work as below.  If Basement__c = NA and Property__r.Basement__c = NA OR  Basement__c = Crawl and Property__r.Basement__c = Crawl OR  Basement__c = Slab and Property__r.Basement__c = Slab Then it will return Type__c(formula field) = "MAtch"  And (Another rule) Basement__c DOES NOT contain any of the following "N/A,Crawl,Slab,None and Property__r.Basement__c Does not contain any of this then formula field will return "HAs basement"  How can i achieve this? Please help. In Leibniz notation, the 2nd derivative is written as $$\dfrac{\mathrm d^2y}{\mathrm dx^2}\ ?$$  Why is the location of the $2$ in different places in the $\mathrm dy/\mathrm dx$ terms? Beamer how to change color of infolines and frame title How could I change the color of color of infolines and frame title in beamer. I am using this now   \documentclass[xcolor=dvipsnames]{beamer} \usetheme{CambridgeUS} \useinnertheme{rectangles} \useoutertheme{infolines} \usecolortheme[named=Brown]{structure}    I need to change the color from red to brown. [named=Brown] doesn't work for \useoutertheme{infolines}. This is my current output. I also need to change the background of frame title (mouse pointer) I just ran the following command in a directory with several files, some owned by root, some by a normal user. I got a strange message:  $ sudo chmod -rwx * chmod: example-file: new permissions are ----w----, not ---------   Why the heck does chmod refuse to clear all permissions, if a file had group write rights? What is the thought behind this behaviour?  And is there a way to force removing all permissions in one step, without having to execute sudo chmod g-w * afterwards? $\prod_{k=0}^{\infty} \cos(x \cdot 2^{-k}).$ Task is to find $$\prod_{k=0}^{\infty} \cos(x \cdot 2^{-k}).$$  I tried to make it with double-angle formula: $\prod_{k=0}^{\infty} \cos(x \cdot 2^{-k}) = \frac{\prod_{k=0}^\infty \sin(x2^{1-k})}{2^\infty \cdot \prod_{k=0}^\infty \sin(x \cdot 2^{-k})} $ I'm sad to admit, that I'm stuck with that one. So I would appreciate any help, such as pointing the right direction. It's a shame to type out an entire question, press post and then:     Sorry, you are only allowed to ask 50 questions in a 30 day period   Could you put some sort of notice on the page itself before submitting it to let you know the question won't be going through?  Or perhaps tell me how many questions I've asked in the last 30 days if it's >0?  Edit  This is not a complaint or statement about the limit, just a request that the error handling be done in a slightly better way to save people a lot of time. Equivalent of "both" when referring to three or more items? Inconsistency in display of animated avatars It has been discussed previously that animated avatars are disliked because they cause a distraction from the content. However, currently animated avatars are not treated consistently.   On desktop, animated avatars are displayed as a still image, both in posts and on the profile page. On mobile, animated avatars are displayed as a still image in posts, but animated on the profile page.   I'm tagging this  because I'm guessing one of these two is unintended. Either avatars should animate on the profile page on both desktop and mobile, or on neither. (I sincerely hope that we are all agreed there should be no animation of avatars in posts.)  Example animated profile    This appears to animate on mobile, and show a still image on desktop (for myself and for other users who have tried).    I'd also like to hear arguments for and against animating only on the profile page, but the main purpose of this post is to clear up the inconsistency. itoa() is a really handy function to convert a number to a string. Linux does not seem to have itoa(), is there an equivalent function or do I have to use sprintf(str, "%d", num)? RESTful Authentication What does RESTful Authentication mean and how does it work?  I can't find a good overview on Google.  My only understanding is that you pass the session key (remeberal) in the URL, but this could be horribly wrong.