Loading

Sort and display directory list alphabetically using opendir() in php

php noob here - I've cobbled together this script to display a list of images from a folder with opendir, but I can't work out how (or where) to sort the array alphabetically

Difference between CPPFLAGS and CXXFLAGS in GNU Make

What's the difference between CPPFLAGS and CXXFLAGS in GNU Make?

How to tag an older commit in Git?

We are new to git, and I want to set a tag at the beginning of our repository. Our production code is the same as the beginning repository, but we've made commits since then.A tag at the beginning ...

Testing if a checkbox is checked with jQuery

If the checkbox is checked, then I only need to get the value as 1; otherwise, I need to get it as 0. How do I do this using jQuery?$("#ans").val() will always give me one right in this case:

Wanting a type of grid for a pixel editor

I am currently trying to develop a basic pixel editor application to build up my programming experience with Java. I am designing it so the user has several colour options on, they click on an option ...

Django: How can I protect against concurrent modification of database entries

If there a way to protect against concurrent modifications of the same data base entry by two or more users?It would be acceptable to show an error message to the user performing the second commit/...

How can you undo the last git add?

Is it possible to unstage the last staged (not committed) change in git? Suppose there were a lot of files in the current branch, some staged, some not. At some point, some foolish programmer ...

set dropdownlist datasource and values at runtime using C#

If setting a drop down lists datasourceId to a SqlDataSource at runtime depending on certain conditions, how do I set what field from the SqlDataSource to show and what to set as it's value?Currently ...

Why do I keep getting mixed tabs and spaces in a Visual Studio 2010 C# code window?

I have just been working on a C# file (Global.asax.cs) in a web application for the last hour or so, and I have been shown the prompt to "tabify" or whatever about four times. Each time I choose to ...

How do I clone a github project to run locally?

I am trying to follow this railscast tutorial for authlogic - and it points to the source here - I have git installed - how do I replicate the source onto my localhost so that I can follow the ...