In C# what's the best way to remove blank lines i.e., lines that contain only whitespace from a string? I'm happy to use a Regex if that's the best solution.
I'm looking for a jQuery lightbox plugin that has the ability to, with it's next and previous buttons, cycle through images repeatedly. Like a carousel effect.
I've been using jQuery Lightbox Plugin (balupton edition) but that doesn't have the option to continue cycling through images. It reaches the last image in the array and then disables the 'next' button.
So to save me some time coding, what are some plugins you can recommend?
If I have several OS-X Terminal.app windows open, how can I move one Terminal window to another space?
I'm happy to use any scripting or programming language to achieve this, but would prefer AppleScript or calls to standard frameworks.
(Note this is to move only one window of an application not all windows.)
Used to be quite happy with the Ctrl+Shift+F10 shortcut in VS2008 to get at the right click menu after typing something that wasn't recognised to quickly resolve it. This doesn't work in VS2010! Anyone know the VS2010 equivalent?
I want to start up my Rails development server like this:
script/server OFFLINE_MODE=1
and have a method that checks for the presence of that constant:
helper_method :offline_mode?
def offline_mode?
defined?(OFFLINE_MODE) ? true : false
end
so I can hide stuff in my app when I'm coding without access to the internet. For some reason though, OFFLINE_MODE doesn't ever seem to be defined and the method always returns false.. thoughts?
I'm coding a application using C# to embed textbox to Taskbar as below picture:
(Taskbar)
https://docs.google.com/leaf?id=0B-E8VK5m5ETqZTI2ZjBlODUtOGI0MC00ZDRhLThjNzItMmE2MTA5NjZlODE5&hl=en
(Title)
https://docs.google.com/leaf?id=0B-E8VK5m5ETqZWE0NzM2MjktZTc5NS00MjdmLThkMmUtMTZjODA3MWUyZTRm&hl=en
--
I downloaded Window API code pack and view some example but I still don't know how to perform my scenario.
Anyone help me for a solution or article (I searched Google but didn't find any article).
Thanks a lot !
So I am in Excel trying to read the last saved metadata from an Access database, but I cannot figure out how on earth to do this.
If I use environ$("username") it will give my the last saved information for the excel document where I am coding, not the access db that I want it to grab from. Excel has a built in function for grabbing username data, but I cannot find one for access.
How can I do this?!
Any help is greatly appreciated!
I am trying to find a way to display numerical digits as a larger font size than chars on a website (not my idea!). The reason for this is to make the numbers stand out.
I have looked for a font that would satisfy this without coding but I could not find any. Also, I don't want to slow down the website by having the font coverted to an image.
Does anyone have a solution to this ridiculous problem?
Is there an alphanumeric sort for R?
Say I had a character vector like so:
> seq.names <- c('abc21', 'abc2', 'abc1', 'abc01', 'abc4', 'abc201', '1b', '1a')
I'd like to sort it aphanumerically, so I get back this:
c('1a', '1b', 'abc1', 'abc01', 'abc2', 'abc4', 'abc21', 'abc201')
Does this exist somewhere, or should I start coding? Thanks,
-chris
Hi all, i have searched Google and also searched Stack Overflow to no avail.
I am looking for a PHP / MySQL driven dynamic image slideshow. One similar to 'lightcyclers.com', i have information stored in the DB and i just want to display random or popular content etc.
I am also not interested in coding one myself as i am busy working on other features.
Any links or help would be much appreciated.
Hey all,
I currently use iLog Elixir calendar component, and I am not entirely happy. It is buggy, support sucks and I can't play around with the source.
Does anybody know of a good, well maintain flex library project which has a decent calendar / date chooser component?
Thanks,
Sri
Visual Studio has *.SLN files for 2008, and 2010.
In explorer, the icon associated with the file is based on the version somehow. I was always under the impression that the associated icon just looked at the extension, but obviously there is more going on.
I'm asking on stack overflow as a developer - for my application, but if you feel this belongs on another forum, I'm happy to move the discussion elsewhere.
Thank you!
Hi there,
I'm using Visual Studio 2005 and have a DataTable with two columns and some rows that I want to output to the console. I hoped there would be something like:
DataTable results = MyMethod.GetResults();
Console.WriteLine (results.ToString());
What's the best way (i.e. least amount of coding from me) to convert a simple DataTable to a string?
Thanks,
Mark.
Are you an iPhone developer using tools other than Objective-C for your coding (i.e. Phonegap, Unity3d, Monotouch, Corona or Titanium, etc?)
Have you heard of or read section 3.3.1?
If you are concerned vote on the petition at [solicitation removed - see history]
Join the facebook group 'Article 3.3.1' and have your say: [solicitation removed - see history]
And most importantly contact apple through their web portal and ask for clarification
I have CCNet setup to talk to our SVN repository, which has it's ACLs setup using Active Directory groups. This is working fine, except I'm not happy with having the user name and password of the AD user stored in plain text on the CCNet instance.
Is there a way to either encrypt the AD username/password, or get the CCNet service (I've tried running the service as the user and removing the the username/password section of the CCNet/SVN config) to use a domain account outside of the standard config?
Hi,
I have two dropdowns in my form. The first one Queries for a set of data and displays them. Based on the value selected in the first dropdown i have to query the database, using that selected value as a parameter and populate the second dropdown. In short, based on the first dropdown, second one has to be populated dynamically. Am coding in JSP. Please do help on this!
Thanks,
Geetha
I have two hyperlinks on a page. I'm happy with the css on 'link1' (white text / red rollover) however I want to have a different styling for 'link2'.
I've created a seperate css for this section and have managed to colour it green but I can't get rid of the red rollover effect?
Does anyone know how to override the red rollover effect just on 'link2'?
http://www.signport.co.uk/test/testsize3.html
Thanks!
While coding I created a class that extended ArrayList< and implemented Iterator<.
Obviously Netbeans reported an error, because ArrayList itself implements Iterator.
What rule of Java Specification prevents this?
I've been trying to to consume SOAP requests (.NET web services) and have found some pretty good tools that I wanted to share:
1) http://grabalife.com/2009/10/19/using-net-web-services-and-dataset-objects-in-your-iphone-app/
Really easy clean way to perform all the call needed for consuming the services.
2) http://code.google.com/p/mac-soapclient/
SOAP Client uses WSDL files you provide to dynamically create a graphical user interface for any given SOAP-based web service
Hopefully that will help someone as much as me!!!
Happycoding !
Hi,
I am having trouble getting indentation to work in Vim. I am coding in C++.
I use vim.nox on ubuntu 9.10
I have filetype plugin indent on
I also tried set cident , set autoindent, set smartindent etc.
Automatic indentation does not seem to work.
This is more of a data structure question rather than a coding question.
If I am fetching a data stream, i.e, I keep receiving float numbers once at a time, how should I keep track of the top K frequent numbers? Here my memory is 4G and I prefer to have less communication with hard drive unless necessary.
I think heap is good for updating the max and min.
How should I design the data structure? Thanks
Though it's on the edge of programming questions, I think this is still relevant here, as only those of us actually doing the coding for a site would be considering this.
I've been reading more about keyword placement, and it seems to me like a good place to do keyword placement would be in the class and id names chosen for the elements they are representing. I'm not talking about any kind of black-hat keyword stuffing thing but real legitimate use of descriptive keywords for elements.
Is this something that is actively done for SEO?
I am in the process of designing a 3D Map panorama viewer using papervision3d for the 3D library. I am coding entirely in ActionScript3 using FlexBuilder.I want to put esri:map in papervision3d.have no idea how to do this. Thanks for any help.
Are there any APIs or libraries that make it easy to generate a calendar for a certain month/year? I need to have some sort of admin interface for a "event planner" part of a CMS for a local youth group and I'm at a loss as to how to generate a decent calendar.
Note: I only need something to generate the calendar HTML, not manage events. I'll be coding that part.