If two clients do Activation.GetObject, using the Singleton approach, and the same address, are they going to get the same instance of the class? Or will each client get a different instance?
This is a similar question to one posted earlier, but slightly different. I'm interested in what your favorite Open Source app is. I don't care if it's well coded or if it isn't active anymore, I just am interesteed in apps that work and do something useful. The internet is a big place, so with a few suggestions some of us may find a new favorite app.
After using Git from the command line for a while, I am ready for the convenience a GUI plugin (for Eclipse) can offer.
However, I prefer a Git plugin similar to to MS Visual Studio's Git Source Control Provider which is only a wrapper around the already installed msysgit. I really don't want two different Git implementations accessing the same repository.
EGit sounds perfect - if it can use the already installed msysgit in my PC.
But can it?
I've got a dropdown box with some items in it that are more popular than others, and I'd like those to have a different background colour (say, Color.AliceBlue) when the combobox is expanded. I see BackColor but is there a way to apply background colour to just a single item?
I am very bad at regular expressions, but I have a regular expression that is working okay, except for one issue:
/\/(.*?).php/
I only need this regular expression to find things like:
/this-a-valid-page.php {some words here} /anotherpage.php { some words here} http://www.google.com
but do not find URLs the problem i am having is that it find this parts of full URLS i want it to avoid these all together. http://www.google.com/page.php because i have another function that does something different than the filename reg exp.
Is anyone out there working with SOAP on Ruby 1.9? Rackspace has email addresses for $2/month and an api to programmatically create/destroy accounts which looks like the best I've found.
Fusemail has $2 addresses too but you need a minimum of 80 to get access to the api.
So, I either need to find a solution to working with Rackspace or a different email host.
Hi,
How do we do safe JSON parsing with GWT? It looks like the json parser GWT offers uses eval() - is there a different option which uses the native implementations when available?
Thanks
I have a fo:table defined with border="1px solid black". Some rows in the table have cell background-color="green". At different zoom levels, the border is not continuous- on some colored rows, it disappears from the right sometimes. At another zoom level they appear fine.
Any idea what's going wrong?
Thanks
Luanne
Hello all,
I'm doing some small projects which involve having different syntaxis for something, however sometimes these syntaxis are so easy that using a parser generator might be overkill.
Now, when should I use a own-made parser, and when should I use a parser generator?
Thanks,
William van Doorn
Is it good to add line-height in body{line-height:1.5} or it would be better if i add separately for tag by tag like p{ line height:1em} etc.
Edit:
body {line-height:in em} create problem with if we put image with float inside
Edit: 24 April 2010:
If i have to add different line heights to elements
like
p { 1.4}
h1 {1.6}
h2 { 1.2}
ul li { 1.1}
then shouldn't i use line height in body { 1.4}
if body { 1.4} and h1 {1.6} then what would be line height for h1?
I am a bit confused as to why a synchronous call is different to an asynchronous call, as there is never an "immediate" response, it still takes some nano or milliseconds?
How to determine whether asp.net (mvc2) application is running under IIS (7) or VS internal web-server?
Clarification why I need this: I'm composing different dependency graph for IoC-container (ninject) that depends on the workaround (develop - when local VS, and production - when IIS)
Or may be another great solution so I can simply differ 3 workarounds: local (VS), test server (IIS) or production server (IIS). How in this case to differ the server? By PC name?
TFS Build 2010 is completely different from 2008. There is no "" task - I'm looking for a 2010 equivalent "activity". Is there a way to perform a basic command line execution in TFS Build 2010?
Hi,
What is a design pattern I can use for generating "context-sensitive" right click menus ? I have in mind a "Windows Explorer"-like application where a user can right click on a folder and get a list of menu items but right click on a drive and get a totally different list.
What design pattern should I use ? Would the factory design pattern be appropiate for handling such a menu ?
Regards,
Seb
By security I mean that encoded string is indistinguishable from random noise and is different on every encryption of the same text so it is impossible to make a guess on encryption algorithm used or do any dictionary attack on the encoded text.
Second: output string length does not correspond to the input string length in easy way, so it is not possible of make guessing on that account.
Third: it is possible to verify that the provided password is incorrect so the decoding function could return false instead of supposedly decoded random string.
The definition can be seen here.
The candidate answer may be tcp and dst port 80,but can tcp and dst port 80 guarantee it's HTTP traffic and includes all HTTP traffic?
It seems not,because some site can be visited by specifying a different port other than 80 this way:
http://domain.name:8080
So my question is: what's the exact BPF for HTTP?
I use CALayers and I`ve override this delegate
-(void)drawLayer:(CALayer*)layer inContext:(CGContextRef)context
{
//draw some rectangle depends on some custom parameters
}
Then I want to add to this layer another rectangle. And when I call
[layer setNeedsDisplay]
I expect to see 2 different rectangles in layer but I see only last added rectangle.
So please advice me how can I do what I want.
Thank you in advance.
Is there any way to send a key press to a DirectX application using Windows API without activating its window?
I know there is a solution for simple applications, but DirectX handles this quite different...
The solution is preferred in C++, and libraries are OK.
Thanks!
Hi, I want to use email for signing in, and to allow users to have similar names. One way to do this is to rename login/username field to something different. However, I want to do it just by setting up authlogic. I tried the following
acts_as_authentic do |c|
c.login_field :email
c.validate_login_field false
c.validate_email_field true
end
but it still complains that the login already exists. What must be done to avoid username validation without renaming the field?
What url encoding a web browser uses while submitting data to server?
with my application i use HttpUtility.UrlEncode(string data)
but do not get result as i get with web browser.
My application submit some text data to forum.
When i am submitting data with web browser (Google Chrome) the exact text i can see submitted to server but when i am submitting using my application it showing some character different.
So is this necessary to submit any data to server must be url encoded?
I'm working on my first WPF project and would like to use one of the themes that I see in the Silverlight Tool Kit.
All the help I've found is for Expression 2 and they show a different version of the Asset Tab. Can someone advise me how to do this. It looks like it should be simple, but I'm not seeing it.
We are using VB.NET and ASPx for our project. we would like to separate the aspx pages and put them on the IIS server (web server) on one m/c and the business logic and DAL layer on another IIS server (application server) on a different m/c .The database is on another m/c. Is such a configuration possible ? If so how can it be implemented?
Hi Folk,
Here is a sample java program.
I wonder why the two approaches reslut different stories. Is it a bug or kind of bitter java feature?
And I run the sample upon java 1.5
package test;
public class TestOut{
public static void main(String[] args){
new TestIn();//it works
Class.forName("test.TestOut$TestIn").newInstance();// throw IllegalAccessException
}
private static class TestIn{}
}
I want to get the name of a certain tag (to tell whether it is a div/input/span/p/so on)
I found that there are 3 different attributes that give me the tag name:
tagName, nodeName, and localName
My question is: Which one is the most supported in all browsers? And/or is there a method to get the tag name in Prototype (I looked but couldn't find one)?
Good Day!
i am working on page which has
Javascript Menus (dont know how made, i think they are in compressed form)
Jquery
Sexy Alerts
now my problem is that when i want to add any type of jquery calender, it wont work :(, i have tried different possibilities found here, but yet invain. Can somebody guide me.
OR
some body give me suggestion to use a calender that is compatible with any other framework.
help is appreciated.
Thanks