If I have two multiple threads accessing a HashMap, but guarantee that they'll never be accessing the same key at the same time, could that still lead to a race condition?
which database should I use, if my application is going to be in multiple languages (including Chinese, Japanese etc)? In other words, is MySQL better or worse than Postgres to handle unicode etc? (these are the only two databases my hosting company has)
Also, which language is better for handling unicode? PHP or Ruby/Rails?
I'm trying to build a sort of resource allocation form. I'd like to be able to print a table from a database, and then allow users to click on each cell that they would like to reserve. Also, being able to drag and select multiple cells. Then send all of this via $_POST to another php script.
Problem is, I have no idea where to start.
Any suggestions?
I have a rails controller file that is too large (~900 lines - api_controller). I'd like to just split it up like something like this:
api_controller.rb
api_controller_item_admin.rb
api_controller_web.rb
I don't want to split into multiple controllers. What would be the preferred way to do this? Could I just require the new parts at the end? like:
require './api_controller_item_admin'
require './api_controller_web'
I've never really used PowerShell before, and playing with it a bit, it looks like it uses cmd.exe's style of tab completion (fill in the first likely candidate, and then you can use tab to cycle through other alternatives). I'd much prefer the way e.g. bash works, where if there are multiple candidates, it shows a list of them.
Is there an easy way to turn this on, by any chance?
Hi All,
I've created a Resource Dictionary that I want to merge with multiple usercontrol xaml files. I want only one instance of this Resource Dictionary to be created. Any idea how to do this?
Note: Merge should happen through xaml only and not through code.
Thanks & Regards,
Vishal
I know about C++ pure virtual classes, but Java went one step further and created a first-class (no pun intended) concept for multiple-interface (not implementation) inheritance, the interface. It's now a staple of major statically-typed languages. Did Java invent the interface concept? Or did it appear in older languages also as a first-class concept?
I'm obviously brand new to these concepts. I just don't understand why you would limit access to properties or methods. It seems that you would just write the code according to intended results. Why would you create a private method instead of simply not calling that method? Is it for iterative object creation (if I'm stating that correctly), a multiple developer situation (don't mess up other people's work), or just so you don't mess up your own work accidentally?
Hey,Guys!
In rails , I met a question!
when i use the multiple select ,i don't know ,how can i get the all parameter values ,it likes
in javaEE,
String[] strs=request.getParameters("aaa");
so,who can tell me the method in rails to realize the function?
Thank you in advance!
Hi,
I am using multiprocessing module, and using pools to start multiple workers. But the file descriptors which are opened at the parent process are closed in the worker processes. I want them to be open..! Is there any way to pass file descriptors to be shared across parent and children?
Is there any way of creating a combo box (<select>) with a size of 1? All the examples I can find allow for multiple selects but with a number of options visible at any one time. If this cannot be accomplished with bog standard HTML is it possible in a JS library such as JQuery?
I like Qt Creator as an IDE, but the built-in compiler is slower than dirt.
Can I replace it, and if so, with what?
Developing on Windows but targeting multiple Mac as well.
Consider the following Generic class:
public class Custom<T> where T : string
{
}
This produces the following error:
'string' is not a valid constraint. A type used as a constraint must
be an interface, a non-sealed class or a type parameter.
Is there another way to constrain which types my generic class can use?
Also, can I constrain to multiple types?
E.G.
T can only be string, int or byte
Hi,
I have MOSS 2007 environment with multiple WFE servers. can any one know what is difference between "Office SharePoint Server Search" and "Windows SharePoint Services Search ".
Which service i have to start ? If i have to Start "Office SharePoint Server Search" then what is the meaning of giving "Windows SharePoint Services Search " in Central Administration.
---Keshaw
i am using this jquery ui combobox autocomplete control out of the box off the jquery ui website:
my issue is that i have multiple comboboxes on a page and i want them to have different widths for each one.
i can change the width for ALL of them by adding this css:
.ui-autocomplete-input
{
width:300px;
}
but i can't figure out a way to change the width on just one of them
I get multiple text files daily to update my database from my client side and i am not a DBA expert. Everyday i do update it manually. Is there any method using which i can ease my task. I think there is a way to automate it but exactly i don't know what to do.
I use the jquery plugin "uploadify" to upload multiple files to My App(GAE), and then save them with blobstore, but it failed. I debug the code into get_uploads, it seems field.type_options is empty and of course has 'blob-key'.
Q: where does the key 'blob-key' come from?
thank you!
I was hoping it was as easy as referencing my existing libraries to use them with WP7.
However, it complains about not able to load them because of .Net CF when I actually use them.
Do i need to recompile them to .NET CF or something?
I thought the big plus of WP7 was: leveraging your existing codebase...?
How can I leverage my existing codebase if I need to strip everything out of it and maintain multiple versions?
I'm completely new to programming and I'm trying to build an autorespoder to send a msg to a specific email address.
Using an if statement, I can check if there is an email from a certain address in the inbox and I can send an email, but if there are multiple emails from that address, how can I make a for loop to send an email for every email from that specific address.
I tried to do use this as a loop:
for M.search(None, 'From', address) in M.select():
but I get the error: "can't assign to function call" on that line
Hi, I have multiple labels on which I need to QLabel-setValidator(QValidator)
groups of them have the same validation rules. Can I reuse the same QIntValidator for all labels that have the same rules?
Hi guys, I have been doing some research on mobile websites, and thus far it seems to me that PHP is not supported by most handsets.
I am trying to create multiple form's that lead up to a auto email response, which would be fairly simple if I could use PHP.
Is there any other way of achieving this?
If I create a single instance of a Comparator, can that instance be used across multiple threads to sort collections using Collections.sort()? Or, do I need to create a new instance of the Comparator for each call to Collections.sort() to ensure thread safety?
Hi All,
I am using in UitableView database.My table view works successfully (add single item,add multiple item,delete all) only problem is there when i want to delete single item for this i using Uitableview edit option.
so how i add database method for deleting single item from database and also from table view.
Please help me.
I have programmed an emulator, but I have some doubts about how to organizate it properly, because, I see that it has some problems about classes connection (CPU <- Machine Board).
For example: I/O ports, interruptions, communication between two or more CPU, etc.
I need for the emulator to has the best performance and good understanding of the code.
PD: Sorry for my bad English.
EDITED:
Asking for multiple patterns.