I want to make an input where you write a domain, click a button, and then know if a domain is ocupied or unregistered.
Is any API out there that can help me?
Lets say i have the strings abc_ and abc2_. Now, normally when sorting i C# abc2_ would come after abc_, leaving the result:
abc_
abc2_
I am using this to sort, if it matters:
var element = from c in elements
orderby c.elementName ascending
select c;
How can i change this? I want abc_ to come last. Reversing is not an option…
I've created a program in C# which creates users and adds them to groups, everything is working fine. But I also want to create a "home folder", which is on another server, and the share will be like this: 81file01/users/username. And of course set the rights of the folder to the newly created AD-user. Now we're using a vb-script to do this, and…
I want to know how to open and manipulate a simple image file in Ruby language.
I don't need to do any advanced stuff, just things like open(), get_pixel() and put_pixel() and I don't wanna use any gem for doing that, but just to know the barehands-ruby way.
I'm a Ruby on Rails developer and want to use Git for my next project, but I'm not pretty sure how to begin learning this.
I have too much basic questions like "Can I run my app from the repository?", or "Can I make a rollback in the live site?"
Any help will be apreciated.
I just started to learn latex and now I'm trying to create a table. This is my code:
\begin{table}
\caption{Top Scorers}
\begin{tabular}{ l l }
\hline
\bf Goals & \bf Players\\
\hline
4 & First Last, First Last, First Last, First Last\\
3 & First Last\\
2 & First Last\\
1 & First Last, First Last,…
I'm really new to the WPF in the .Net Framework (get that out of the way). I'm writing an application where the interface is very customizable by simply loading .xaml (at the moment a Page element) files into a frame and then mapping the controls via names as needed. The idea is to have a community of people who are interested in making skins,…
I have a ul filled with links in my layout/application.html.erb and want the current location link be marked with class="active".
Now I'm using:
<%= link_to 'About Us', { :controller => 'aboutus' }, :class => "menu#{' active' if params[:controller] == 'aboutus'}" %>
But it looks pretty nasty to me.
Anyone has a better idea?
The ec2-describe-instances command is not very helpful in distinguishing the instances.
Are there command line tools that give a better overview?
Perhaps somewhat like http://github.com/newbamboo/manec2 but with support for different regions etc.
I have a DepencencyProperty (a boolean) that works fine on an Ellipse, but not on an ArcSegment.
Am I doing something that is not possible?
Here's part of the xaml. Both the TemplateBindings of Origin and LargeArc do not work in the geometry. But the LargeArc DependencyProperty does work in the Ellipse, so my DependencyProperty seems to be set…
I have the following code.
I need B class to have a min priority queue of AToTime objects.
AToTime have operator, and yet i receive error telling me than there is no operator matching the operands...
#include <queue>
#include <functional>
using namespace std;
class B{
//public functions
public:
B();
virtual ~B();
…
I want to use the same style in many listviews. And in my style i have defined the gridview columns also.
But when i try to run, it throws an exception:
View can't be shared by more than one
ListView.
How can i solve this?
I'd like to put the yuicompressor jar file in a single folder so that I can call
java -jar yuicompressor-2.4.2.jar ...
from anywhere on my system, with cygwin. For bash files I use I simply put them in a common folder, and added the folder's path to my windows user's PATH environment variable and the bash commands were found in cygwin.
…
I've been given a short amount of time (~80 hours to start with) to replace an existing Access database with a full-blown SQL + Web system, and I'm enumerating my options. I would like to use ASP.NET MVC, but I'm unsure of how to use it effectively with my short timetable.
For the database backend I'll be using Linq to SQL as it's a…
I have a 10-node DB2 9.5 database, with raw data on each machine (ie
node1:/scratch/data/dataset.1
node2:/scratch/data/dataset.2
...
node10:/scratch/data/dataset.10
There is no shared NFS mount - none of my machines could handle all of the datasets combined.
each line of a dataset file is a long string of text, column delimited.…
I'm working on an XmlEditor (similar to XmlNotepad, but using WPF) in which I want to implement personalized menus. I.e. only show the most popular MenuItems on first open, and show all MenuItems when the user explicitly asks for it, either by clicking on the double arrow at the bottom or waiting for a certain amount of time.
…
I have a custom control, a groupbox, which reacts on key events on a assigned key.
It is possible to remove this groupbox, as well as adding more dynamically.
Havnt been any trouble in VS 2008 so far.
Two days ago i installed VS 2010. And i started to get multiple event fireing, and removing a groupbox did not remove the…
At the moment, we've got an unmaintanable ball of code which offers an interface to a third party application. The third party application has a COM assembly which MUST be used to create new entries. This process involves two steps: generate a new object (basically an ID), and update that object with new field values.…
I use an ajax "ping" for keeping track of the online users, and for alerting them about notifications if any. However, this constant request are being logged in my production.log file, and that's not funny, since I want to keep track of the app performance and that just obfuscate my log file.
What should I to do?
I'm currently working on a project where we are using Wordpress 3.0 RC. The idea is to create custom post types with meta boxes to make the system easier to use for the client. Some of these posts need to have multiple files attached to them, and by attached I do not mean inserted to post but rather we'd like to keep…
I've writtten a shell extension (guided by The Complete Idiot's Guide to Writing Shell Extensions) which worked as it should until I upgraded to Windows 7(32bit).
Now, the function DragQueryFile
UINT uNumFiles = DragQueryFile(hDrop,0xFFFFFFFF,NULL,0);
returns the right number of selected files until the number…