As GUID generation is time-dependent, if System.Guid.NewGuid() is called multiple times at the exact same instant on different threads, could it return identical GUIDs?
Trying to replicate the docking controls in Visual Studio 2008. My application replays the RADAR environment for the FAA and I want the ability for dual monitor users to drag the control panels to the other monotor to leave the main canvas clear. This functionality is similar to the way the different panels in VS can be dragged outside of the main window.
Thanks,
Dave
I am creating a multilingual site that will need to support at minimum five different languages, including Korean and Chinese. The site language is ColdFusion, so Java is the native language. I want to make the site as easy as possible for the next programmer to update, and for third-party translators to use tools that will work easier for them than digging through a SQL database.
So far I have come across Resource Bundles, GNU's GetText, and TMX.
Which do you recommend and why?
I can't figure out a way to define a generic pattern rule for the following kind of production with make:
require xyzzy-en_US.ext2 from xyzzy.ext0 via xyzzy.ext1.
This works:
all: xyzzy-en_US.ext2
# to be compiled from xyzzy.ext0
%.ext1 : %.ext0
# produce xyzzy.ext1
%-en_US.ext2 : %.ext1
# produce xyzzy-en_US.ext2
But how to generalize the locale part of the second rule? Or do I need to generate rules for all different locales?
Neither of these work:
%-??_??.ext2 : %.ext1
# ...
%.ext2 : $(@,%-??_??.ext2,%.ext1)
# ...
I have a stupid question,
If I want to add round corner for an element in browsers which support some stuff of CSS3, I have to repeat style several time for each browser, because it is different ?
For ex :
-moz-border-radius: 12px; /* FF1+ */
-webkit-border-radius: 12px; /* Saf3+, Chrome */
border-radius: 12px; /* Opera 10.5, IE 9 */
It means, that I have to add 3 styles for this radius border, doesn't it ?
Currently in my tests I do something like this to test if an email is queued to be sent
assert_difference('ActionMailer::Base.deliveries.size', 1) do
get :create_from_spreedly, {:user_id => @logged_in_user.id}
end
but if i a controller action can send two different emails i.e. one to the user if sign up goes fine or a notification to admin if something went wrong - how can i test which one actually got sent. The code above would pass regardless.
Hi,
I need to find a service that will allow me to send and receive SMS on a server for a project. The project requires that a user will have up to 8 keyword options to send, and will receive a different response back based on the keyword that they enter. Does anyone know of services that I could look into that will allow this?
Thanks.
I am pretty new to eclipse. I notice that depending on the Perspective I am in, the new submenu lists different items in it. Is there a way to pick the items it lists (modifying the perspective) just using the eclipse interface? or am I needing to do a plugin of some sort to enable this.
I have a function in C++ that takes in an std::istream as the input:
class Foo {
Foo(std::istream &);
}
Using SWIG, I've bound it to Ruby, but Ruby's $stdin variable is fundamentally different from anything like the stream classes in C++, so I'm not sure how to either 1) expose the C++ class to Ruby in a way that I can use $stdin, or 2) convert $stdin into something the C++ class can understand.
Anyone have experience with binding iostreams in C++ to Ruby?
Thanks.
which format of png me should use Png-8 or png-24. which one is better for website. i am confused about these. what is main different between png-8 and png-24?
I have an iPhone project which references a framework as a subproject.
The framework has the following configurations:
Debug
Release
My app has the following configurations:
Debug
Release
Distribution-AdHoc
Distribution-AppStore
I would like the framework to be built with different configurations, depending on the app configuration:
Debug - Debug
Release - Release
Distribution-AdHoc - Release
Distribution-AppStore - Release
How can I achieve this?
Hey, I'm making a simple user friendly css editor using Prototype. Anyway, I was wondering whether I could get the background-position x/y values on their own?
I wish I could do something like this but sadly it doesn't work:
element.getStyle('background-position-x);
I guess this is because position comes in different forms like 'center' rather than just being generic.
I have only JTabbedPane inside JFrame. JTabbedPane sets its dimensions to biggest page width/height.
As pages has different size is it possible to force JTabbedPane to change its dimensions when selecting other page?
http://grab.by/3hIg
Top one is how it behave now and bottom one is how i want it to behave (i resized frame by hand)
Hi,
I have a user control...and the base page(s) which uses this user control has a dataset which will be used by the user control.
My dataset is dynamic...means..it can have different number of columns depending upon which page my usercontrol is implemented. Is there any control in wpf which i can use to bind this dataset (without knowing the column information) ...i mean similar to datagrid/gridview in 2.0 ?
If you are doing XNA Programming, you have an option in the context menu for your project similar to "Create Copy of Project For Windows" or "Create Copy of Project for XBox360".
I would like to add the same functionality to extend VS.NET to duplicate a current project but target a different platform for an effort I'm working on.
Is this possible?
If so how?
Hi,
I'm making a game where when a card is touched, it grows so that it is focused, and when you 'let go', it goes back to its original size and place. This seems pretty standard, however, when I add cards and move the hand around to accommodate different numbers of cards, touching the card makes it go to its original place, and not to the new place.
This has been stumping me for a while now
Any hints would be much appreciated.
Thanks !
Since the launch of .net 4.0 a new term that has got into lime light is parallel computing. Does parallel computing provide us some benefits or its just another concept or feature. Further is .net really going to utilize it in applications ?
Further is parallel computing different from parallel programming ?
Kindly throw some light on the issue in perspective of .net and some examples would be helpful.
Thanks...
I want to delete the generated files (".tmp" and ".bak") in the build directory when the source file (".xml)" is modified with Apache Ant. All files have the same name, but different extentions.
I'm not able to create the fileset to do this.
Please help me...
How can I emulate Expression.Default (new in .NET 4.0) in 3.5?
Do I need to manually check the expression type and use different code for reference and value types?
I have a requirement where I already have an existing SortedDictionary<string, int>. Now I am creating a different SortedDictionary and like to add this in the first one . How to do it?
Seems like a simple thing but I can't seem to find a way to do it.
I saw this but it doesn't seem to work:
NSDate *date = [NSDate dateWithNaturalLanguageString:@"07/17/07"];
It would be great to see a couple different methods.
Thanks,
Nick
I am using the EnableCdn=true in my ScriptManager so that WebResource.axd and ScriptResource.axd are overridden with static links to JS libraries at the MS CDN service as follows:
<asp:ScriptManager ID="ScriptManager1" runat="server" EnableCdn="true" />
How do I override the CDN URLs or service so that I can retrieve the scripts over HTTPS from the MS CDN service rather than HTTP to avoid the browser mixed mode message? or for that matter a different or my own CDN service entirely.
Hi there,
I'm using CodeIgniter to develop a new web app, and I'd like to create a mobile version that users get redirect to when they visit it from their phones.
The mobile version of the app should have a different flow, so swapping CSS/HTML files in the code is not an option for me since the mobile version and the web version will handle things differently in their Controllers and Views, while sharing the same Models.
Anyway how I could do this efficiently?
Your help is much appreciated. :)
Hi,
i have deployed two EARs on one server. i want to access one method in one java class in EAR to another java class in second EAR.
what are different ways to achieve this. which one is best way to do.
Thanks
An intelligent coworker friend of mine brought up a question to me that I was uncertain how to answer and I'd like to pose it to the world.
If a RESTful endpoint uses token-based authentication, aka a time-based token is required to access a resource and that token expires after a certain amount of time, would this violate the RESTful principle? In other words, if the same URL expires after a certain amount of time, so the resource returns a different response depending when it was requested, is that breaking REST?