text stringlengths 8 267k | meta dict |
|---|---|
Q: Adding a property to a silverlight 4 control to add functionality I am curious how I can add a property to add functionality to a control. Currently I am just extending controls, but I was curious if it is possible to add a property to add functionality to a control. Like for example the ToolTipService. You can add ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get index from a list where the key changes, groupby I have a list that looks like this:
myList = [1, 1, 1, 1, 2, 2, 2, 3, 3, 3]
What I want to do is record the index where the items in the list changes value. So for my list above it would be 3, 6.
I know that using groupby like this:
[len(list(group)) for key, gro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting Manufacturer and Modal # from XP Home with Java or the Command Line How can I get the Manufacturer and the Modal Number of an XP Home computer? I asked a similar question 3 months ago here. The answers were very helpful, but Windows XP Home Premium Edition does not have wmic or systeminfo. I looked in the re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Retrieving a list of Grails composite id properties? How can I retrieve a list of Grails composite id properties?
I have tried the following but the id property is returning a Long:
Domain
class Domain implements Serializable {
String field1
String field2
static mapping = {
id composite: ['field... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: export to excel from sharepoint - complex There is some code/werbparts on our site that display a lot of data in a grid on our site. In addition, they have another page with a few charts.
I need a way to create functionality to export this to excel so the user can click a button and save everything.
The chart will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tab menu overlaps I made a CSS menu but the individual tabs, or rather a row of tabs, seems to be overlapping each other. I used white-space: pre-wrap with a width on the tab menu itself:
html > body > div#header > div#header-bottom-left > ul.tabmenu {
position: absolute;
top: 75px;
left: 700px;
width: 620px !impor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to leverage Custom Styles & Markup Styles in the SharePoint 2010 CEWP (100% JavaScript Solution) In short, with a RichHtmlField we can customize which Styles & Markup Styles appear in the drop down lists on the Ribbon. Using an OOTB Content Editor Web Part we cannot.
After interrogating / contrasting the RichHt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hibernate composite key id generator I have my entities as below.
My data model enforces below and I cannot change referential itegrity.
So I am stuck with a composite key.
I want to autogenerate/use some generator for orderId
Yes I have read below.
http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Do I have to free memory from every initialized string? // loads a file into memory
void load_file()
{
char *data = "This is so data";
printf("function: %s\n", data);
}
Will the above code leak memory? Do I have call free(data)? Why or why not?
A: It cannot leak because you did not dynamically allocate it. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where to put resources (css/images) in CodeIgniter? I am doing some testing with CI and have it running in a folder. http://www.example.com/sub-folder/ for instance
My directory structure is like this (where / is sub-folder/):
/
|-/system
|-/application
I have eclipse as my IDE with 2 projects, 1 for system, 1 for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I use php to check another server's speed? Using PHP, I would like to download 50mb of a 1gb movie file to check if the upload speed of server hosting the movie goes to at least 100kB/s in that exact moment.
Is that possible?
A: Use curl_setopt with the CURLOPT_RANGE option.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7615790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Facebook OpenGraph - issues with Activity Plugin I've been able to post activities to my personal wall and timeline, but I don't seem to be able to get the Activity Plugin to go no matter how I call it. I get a success when I call it, and have also been getting a success code from the command line CURL calls.
<scri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ReportLab Two-Column TOC? I have a PDF I am generating using ReportLab. I am using the standard TableOfContents flowable, but am trying to split it up into two columns, so it will all fit on the first page. the content will only ever be on one level, so I am not worried about odd-looking indentations.
Right now I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to merge few 3D JSON objects in JS [or jQuery] I have to merge 2 (up to 6) JSON objects.
I got this code: http://jsfiddle.net/5Uz27/
But with this code, I can only merge the first level of the objects, so the deeper levels are usually overwritten. Check the output.
How can I fix that?
A: jQuery.extend(true, ori... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Custom filtering of parameters in rails 3 using config.filter_parameters I'm working on upgrading from Rails 2.3.11 to 3.0.10, and am having trouble converting what is in the ApplicationController's filter_parameter_logging. I want to filter both certain parameters, and also filter them if they appear in the value o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: renamed heroku app from website, now it's not found After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get App not found. Does anybody know of a way to remedy this?
A: From the Heroku docs...
If you rename from the website ... [your app]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "169"
} |
Q: Programmatically added UIImageView won't show up I've been trying for an hour and nothing I do can seem to make this show the image:
UIImageView*logo=[[UIImageView alloc] initWithImage:[UIImage imageNamed: @"logo.png"]];
logo.frame=pos; // a CGRect I previously created
self.taskbarlogo=logo;
[logo release];
[self.po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Devexpress C# XtraGrid Single Cell Edit Issues I'm about to pull my hair out for something that is probably very simple.
This is using the XtraGrid.
Let's assume I have two columns and x number of rows, contained in one column is just a checkbox that I set with the columnedit property and the other is a value. I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cocoa NSNotificationCenter communication between apps failed I need to communicate between two different console apps, Observer and Client.
In the Observer app I added this code:
[[NSNotificationCenter defaultCenter] postNotificationName:@"MyNotification" object:self];
In the Client app I added this code:
[[NSNotif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can someone point me to exact details on javax.net.debug? I'd like to get exact details on the SSL debug output generated using javax.net.debug. I have looked, but nearly everything just goes through a sample file.
Sorry in advance if this is easier to find then I expected.
A: What do you mean by the exact detail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: plot if col A has substring I need to do this in gnuplot:
plot 1:4 where col 2=="P1", col 3=="3", col 1 has substring "blur1"
Heres a dataset:
col_1 col_2 col_3 col_4
gcc.blur1.O0 P1 3 10.5
icc.blur1.O2 P2 5 9.8
gcc.blur2.O3 P2 3 8.9
Thank... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Set "expires" header for a whole directory So let's say:
- .htaccess
* assets
|> images
|> logo.png
|> css
|> style.css
|> home.css
How can i set the expires header for the whole assets folder and its contents?
I know that i can set it by type like:
ExpiresByType text/javascript "modification plus 2 hour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remove internal "__type" tags in ASP.NET Restful WCF I'm developing a RESTful WCF, and am currently having trouble getting nice, clean JSON-serialized return values.
A little while back, I got rid of "Key" and "Value" tags around each of my keys and values (caused by serializing a Dictionary<string, object> object) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting Intellisense inside <% %> tags For some reason, Intellisense has stopped working inside code blocks (<% %>) in Visual Studio 2010 in both aspx and ascx files. This was working, but I obviously flipped some setting unknowingly.
Anyone run into this before? It's pretty annoying.
A: Intellisense within inline ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using MVVM to Solve Combobox Interaction I'm new to WPF and I haven't used MVVM yet but I think I'm in a situation where it might help.
In my program I've got several comboboxes that all have the same comboboxitems and when the user makes a selection in one of the comboboxes the selected comboboxitem gets disabled ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Advance slideshow manually with jquery please be easy - first post!
Looking to modify the following script:
http://jonraasch.com/blog/a-simple-jquery-slideshow
Love it's simplicity, trying to find a way to add an advance function
Preferably on the img or div - on click or from a link.
Any suggestions?
Appreciate the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Asynchronous Callback functions: Iphone Versus Android On Callback
On Iphone
File A:
@protocol servicedelegate
-(void)taskCompleted:(NSDcitionary*) dict;
@end
-(void) performtask
callback=@"taskCompleted:";
[(id)delegate performSelector:NSSelectorFromString(callback) withObject:data];
File B:
-(void) taskcompleted... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: BizTalk: Finding the document specification failed Good afternoon all,
I've got an issue with a BizTalk orchestration that's really odd.
The first receive shape of my orchestration fails with the following message:
There was a failure executing the receive pipeline:
"Microsoft.BizTalk.DefaultPipelines.XMLReceive, M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using a HorizontalScrollView with ImageView's over Gallery LazyLoad? Okay I have an idea and I want to know what you all think.
So for my project I have an gallery. I want to load images into the gallery using Lazyloading But lazyloading doesnt seem to work to well with Gallery. It seems it works better with just ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I am having a z-index issue I have a slogan that should float above an image if the screen width is set to very wide. I've adjusted the z-index in countless ways, but can't figure out exactly how to it.
The site is here: http://www.i-exercisebikereviews.com/?62/exercise-bike-reviews-schwinn
the CSS is here: http://... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JPA: @JoinTable - Both columns are Primary Keys.. How do I stop that? This is my annotation I use to generate my Join Table.
@OneToMany(cascade = CascadeType.ALL)
@JoinTable(name = "service_operations",
joinColumns = { @JoinColumn(name = "serviceId") },
inverseJoinColumns = { @JoinColumn(name = "o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Picking the right data structure I'm trying to teach myself java. I'm trying to write a program that takes a string with no spaces and separates it into words.
My plan of attack was to partition the dictionary based on word length, then walk through the string finding possible variations.
I ran into a problem with m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS children Selector Lets say I have the following HTML
<div id="div1">
....
<span class="innercontents">...</span>
....
</div>
Can I select just the child of the parent ID?
Could I do something like
#div1 span
{
...
}
Thanks for any help.
Sorry for any confusion. I should have been more clear. In the above exam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Archiving Xcode Project for Submission When trying to archive an Xcode project for submission when setting Archive Build configuration to release, even when Reveal Archive in Organizer is checked, the Archive does not get created in the Organizer. I get the message, build succeeded though. Anybody knows what could b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: replacing escape character with double qoutes in c# I have the following string in a variable called,
s:
[{\"roleIndex\":0,\"roleID\":\"c1_r0_23\",\"roleName\":\"Chief Executive\"},
{\"roleIndex\":1,\"roleID\":\"c1_r1_154\",\"roleName\":\"Chief Operator\"}]
and I'm trying to replace \" with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Tomcat usurping 404 not found error, returns 500 instead ObHumor: Apparently my "not found" page cannot be found. :-)
I have a Wicket app that has a custom 404 Not Found page. Used to work fine when we ran under Glassfish, and it continues to work fine when I use Jetty and Start.java.
But when running under Tomcat 7... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do not remove characters from path name C# I have a Windows Form Application that takes a command line argument as well. You can run the program by itself it has a GUI but when you run it in CLI it seems like C# removes some characters from my argument that I feed it.
This is how it works:
RemoveHTML.exe http://ill... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regex-ing text in a textfield to be safe for URLs being loaded You can demo this searching for the tag
Black & White
at http://syndex.me
The logo of the site is a search field. If I search for "USA" it ajax loads all posts tagged "USA". However it does not work for "Black & White".
How can one check the value of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to extract an Apache FOP created PDF in C#? I have a problem in my c# project.
I want to extract Apache FOP generated PDF files programatically without any 3rd party application.
I tried to use many libary like PDFBox, IKVM, PDF2Text, ITextSharp, PDFSharp to extract PDF files, but failed.
When i extract a FOP ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to scale UDP read throughput? Setup: Two linux (CentOS 6) servers connected back-to-back over a dedicated GigE link. Each server with 24 cores and 32GB RAM
Client: Simulator shooting UDP packets as fast as it could in one thread. Each packet size is 256 bytes. I see that the maximum throughput is ~200,000 packet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Aggregate R sum I'm writting my first
program in R and as a newbie I'm having some troubles, hope you can help me.
I've got a data frame like this:
> v1<-c(1,1,2,3,3,3,4)
> v2<-c(13,5,15,1,2,7,4)
> v3<-c(0,3,6,13,8,23,5)
> v4<-c(26,25,11,2,8,1,0)
> datos<-data.frame(v1,v2,v3,v4)
> names(datos)<-c("Position","a1","a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ClearCase: Is it a bug or a feature? When I run the following code intereactively from bash it works fine.
cleartool setview $myview
cleartool lsbl
But when I put them in a script and try to run the script, it never returns from the first cleartool command.
It seems in the interactive case the first cleartool comma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When sending one email, the log shows the email twice? Though it's sending only once? in my app, DJ fires off a an email but for some reason I see the email in the log file twice though it is sent only once? I confirmed in the logs that DJ runs only once and user_mailer runs only once. So why do I see the email twic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there anyway to add a loading message to rich:dataTable? Has anyone found a way of display a loading message while rich:dataTable loads?
I've found that if the load operations backing DataModel takes along time it results in the request taking along time. Is the an effective way of display a message to the user ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Remove Comma From End Of String Advanced I have read plenty of ways of removing the comma at the end of a string when doing basic queries but none of the basic stuff seems to be working with this particular script. Hopefully I'm just over thinking this. My script goes through the database and places the cities under... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling a method using the string/variable of the method name inRuby
Possible Duplicate:
How to turn a string into a method call?
Currently I have a code that is doing something like this
def execute
case @command
when "sing"
sing()
when "ping"
user_defined_ping()
when "--help|-h|help"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parsing date and checking how recent it is in Bash I'm working on a Bash script (using Cygwin) that uses cURL to scrape a web page and check a certain date value. My cURL and grep calls result in the following line:
<span style="float:right">Last Update: 9/30/2011 3:16:31 AM</span><p>
What I need to do with the date... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I check if a hex color in an NSString is light or dark in Objective C? I have found answers to this question that explain how to convert an NSString hex into a UIColor (I have done this) and others explaining how to convert RGB to HSB, and others explaining how to determine lightness and darkness of RGB, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Link calling a jQuery function doesn't seem to be working I am a jQuery newb so this is probably rudimentary.
I have a test page here: http://www.problemio.com where I am trying to make links to vote up or down.
Here is how the links look like:
<a class="link_button" id="vote_up">Vote Up</a>
<a class="link_button" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why are operators so much slower than method calls? (structs are slower only on older JITs) Intro: I write high-performance code in C#. Yes, I know C++ would give me better optimization, but I still choose to use C#. I do not wish to debate that choice. Rather, I'd like to hear from those who, like me, are tryi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: DataInputStream stuck on readFully I have a BluetoothSocket that I am reading data from, using a separate Thread process from the GUI. I wrap the InputStream in DataInputStream so I can do use a a readFully(..) to wait for a specified amount of data. I can run this code for about an hour and then the program lock... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can CacheBuilder replace MapMaker in my case? I need to obtain the result of the slow method slowResult() for instances of the class Something. Caching alone doesn't help as the instances hardly ever repeat. Fortunately, I know that the result depends actually only on some easily obtained Attributes of Something, so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP: Easy way to start PayPal checkout? I have completely functional cart solution. All I want is the code where I actually pass the name of the products, the total, the return address and my paypal address so that it can direct me to a shopping cart. Can anyone steer me in the right direction?
PayPal has a million ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: qt menu item does not show I'm writing a window manager and I'm stuck with a problem on Qt4 menu bar elements.
When I first click on the menu item, it shows correctly, then I close it and try to open it again but it does not show anymore. If I try to open another menu item, it works for the first time and then that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XmlSearch does not recognize xPath I have an xml document like so
<cfxml variable="mydoc">
<?xml version="1.0" encoding="UTF-8"?>
<Feed xmlns="http://www.example.com/xs/PRR/SyndicationFeed/4.9" name="Test">
<Product id="test1" removed="false">
<Source>Widget</Source>
<External... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: isql wait for end of query on iphone i'm using isql sdk to make Microsoft Sql 2008 query through iphone, everything works fine but I always need to click two button to get the answer of my query. I press the button 'submit' then i can press the button 'next page' and the result will show on the next page but if i pu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make .gitignore ignore compiled files with no extension?
Possible Duplicate:
gitignore without binary files
Edit: Dupe of gitignore without binary files
When you compile, say, a Haskell file, (test.hs), using ghc --make test.hs, the result is test.hi and test. I only want to add and commit the source test... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Footer on a multi horizontal-div website I wasn't really sure how to put divs beside each other. I found a solution here, however, instead of subsequent text going below (where it should) the text now aligns to the right. This wouldn't normally be a problem because all of the content is inside the main container, ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mouse side buttons in python? I am trying to use my mouse as remote on my laptop and I would like to use side buttons in them. I am coding in python as I have already succeeded doing it with autohotkey. But autohotkey uses too much resources.
The mouse is Razer Orochi.. It has 7 buttons and a scrollwheel.
I would l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does mozillas firefox countless versions make GWT development impossible? There was no GWT plugin for firefox 6 and likely there won't be a release for firefox 7, because firefox 8 is already in beta. How can I develop a GWT app, when mozilla releases one firefox version after another? How can I ensure browser compa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there better explaination of the WCF RIA Services Library Project structure? When you create WCF RIA Services Library Project then two projects appears.
*
*RIAServicesLibrary1
*RIAServicesLibrary1.Web
It's clear for me what for we need RIAServicesLibrary1.Web project to keep stuff like
LinqToEntitiesDomain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Core data save an object with a relationship to an existing object in the database I am trying to save a new Object to my context, that will have a foreign key reference (relationship many-to-many) to an object already in the database.
How can I set the relationship of this new Object to save it to the database?. I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Webpage does not resize with browser window resize A website I am developing for a client is having an odd issue. When the page is loaded, the page fills the whole browser window, but if the window is re-sized, the page stays its original dimensions with scroll-bars appearing, kind of like an overflow: hidden. I'm n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using entity framework with Stored procedures and unnamed columns I am trying here to work with entity framework with unnamed columns within a stored procedure.
Say for instance the following SP :
CREATE PROCEDURE [dbo].[GetUsers]
AS
BEGIN
SELECT
Username,
Firstname + ' ' + Lastname
FROM
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the JavaScript equivalent of MySQL's %LIKE% clause? In MySQL I use the like clause:
LIKE %some keyword%
to perform searches on database records. What can I use to similarly do a search in a JavaScript? So if a user enters something like
ger
it will show
german shepard
Can't use:
str.search('ger');
sinc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: UIAlert visual slow-down when UINavigationController popping I have a UIAlert appear just before the UINavigationController pops a view controller off the stack. This causes a very visible slow-down; the current view darkens, pauses, slides to the new view, and then at last the UIAlert appears.
The slow-down is ent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7615998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Searching by each word rather than complete string using MYSQL PHP My search allows users to search games in my database. The only problem is that if a user types multiple terms within the search, it will only get hits if those multiple words are right next to each other.
Example:
searched term = Call Duty Modern
re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Forcing x axis to align with y axis in Mathematica Plot In Mathematica, when I plot things sometimes I don't always get the x-axis to line up with the exact bottom of the plot. Is there any way I can force it to do this all the time?
Here's an example of what I'm talking about: http://i.imgur.com/3lcWd.png
I want th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: JQuery autoSuggest Plugin usage with asp.net mvc I've been trying to use this plugin -> http://code.drewwilson.com/entry/autosuggest-jquery-plugin (broken link, see github), but i've been having some problems.
Here's what my view looks like.
<span>
<label for="registrars">Registrar</label>
<input id="registr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: any way to make a progress bar that when the value is 0, it's 100%? I'm working on a debt tracking app, and have need for a progress bar that as the current debt goes down, the progress goes up. The only way I can think to do this would be to fudge the numbers around so that the progress bar MAX is set to 0, and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Phone - Styles.xaml + Mango Conversion I had an application build with the Windows Phone 7.0 SDK. I now need to update that application to the Windows Phone 7.1 SDK. When I migrated the application, the background of all of my pages were changed to black. However, they were all White (as intended) when I use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Coldfusion Component Pointers I'm having an issue with a Coldfusion component that I'm building. Well, I'm not really sure if it's a problem or how things are supposed work, but it seems strange. First, I set up arguments for the init function of my component and invoke the component. But if I change one of the argu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android App Architecture: how to share behavior between all screens Hi fellow Android coders,
that's a problem I struggle with every time when I make a new app. Imagine you have sub classes of Activity, ListActivity and MapActivity in your app. Now I want that every screen has the same options menu showing up when t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MVC3 Content->Site.css Where can I find some templates Are there any templates to replace site.css without having to change to HTML markup of the default _layout in MVC 3?
A: There's the MvcContrib Template Gallery with a growing list of templates you can apply to your default mvc applications
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7616041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there example of scala abstract type usage which is impossible to achieve with generics? There are two possible way to express abstraction over types.
abstract class Buffer {
type T
val element: T
}
rather that generics, e.g.
abstract class Buffer[T] {
val element: T
}
I understand benefits in usability o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616042",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Permissions mode for child apps in current 3.x facebook-phpsdk I have been reading the facebook dev documentation as well as previous iterations of the php sdk. the old sdks had a 'permissions' mode for child apps [begin_permissions_mode(), end_permissions_mode()], but i see no references for a similar mode in the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Query results showing rows as columns I have a form that dynamically creates checkboxes. The user signs in and selects 0 to all the checkboxes. The checkbox array is generated from the table 'options'. The form submit records into 2 tables 'survey' (one record of person data) and 'selections' (the survey key and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP - Simple IF ... ELSE IF... producing unexpected results, educate me? I am having trouble with a simple peice of php code.
I am working with 2 product pricing tiers. These are based on whether a user has logged in, or not.
If a user is not logged in, and the first price is empty; then the price is price1. If not,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: WCF and XmlSerialization and XmlWriterSettings I have a REStful WCF web service (using a substantially modified WCF Rest Starter Kit) and the data contracts are simple POCOs marked with [Serializable] and [XmlType] (with members tagged with [XmlElement] or [XmlAttribute] where appropriate).
Somewhere inside WCF an i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ Strong Random Number Generator - necessary? My newest project is the development of a text based RPG and now I need a random number generator, a good one to compute in different situations whether some action can be performed without problems or not. Everyone of us knows, that the basic functions std::srand and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get the left and right arrow keys to work with jQuery? How do I get the left and right arrow keys to work in this situation using jQuery?
$(document).ready(function()
{
$('#container').click(function()
{
var totalWidth = 0;
var sizeWidth = $('#insertData1').outerWidth();
$('#... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: class appears to be missing from the org.eclipse.OSGI jar? I received a new program which I am trying to run. It uses OSGI and is returning a clasnotfoundexception when it tries to access org.eclipse.osgi.framework.internal.core.OSGi. I'm trying to figure out where this class should be located.
The package came ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to do this check without two if statements in PHP? i have this if statement
if(file_exists( $_SERVER{'DOCUMENT_ROOT'}.$writabledir.$name) && filemtime($_SERVER{'DOCUMENT_ROOT'}.$writabledir.$name) < $olddate) {
if the file is there all is well but if the file is not there I get this error
Warning:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: datePicker crashes after multiple selections Im having a heck of a time. I have a datePicker setting start and end dates, like the apple calendar. I am crashing with no messages whenever I click the datePicker multiple times. I'm guessing Im leaking memory but cannot find it. please help... ecause I need to access t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Migrate from Hibernate Validator Legacy (3.x) to Hibernate Validator 4.x Our application was built using Hibernate Validator 3.1.0 (now called Hibernate Validator Legacy).
I'd like to migrate it to use Hibernate Validator 4.x (4.2.0).
I can't seem to find any documentation on the approach to migrating an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Testing jquery dialog with capybara-webkit I want to test an interaction where the user clicks a link and a jquery dialog (http://jqueryui.com/demos/dialog/) pops up.
I would like to test:
*
*That the dialog shows up
*That text in the dialog box is correct
*That the user can exit by clicking the 'x'
I tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to render new.js.coffee.erb in app/views? Using Rails 3.1 jquery_ujs, I have a link with :remote => true, and the controller new action responds with js and render new.js.erb which contains:
$('#post-form').html('<%= escape_javascript(render(:partial => "form")) %>');
It renders the _form.html.erb partial. This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do I use max() in sql I have a table that looks like this:
col1 col2 col3
------ ----- -----
A 1 trout
A 2 trout
B 1 bass
C 1 carp
C 2 tuna
D 1 salmon
I really only want to select the rows with the max value for col2.
The query I want to generate would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passing parameters to the constructor to an object (Actionscript 3) I am working on a side-scrolling platformer game. Because of this, I have a class that acts as a floor. I also have a class representing enemies.
I am having problems with passing a parameter to a custom class' constructor. The class (SkullDemon.as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing url inside string How would I go about matching the
following string format ( everything after the equal sign to the end of the .html
http%3A%2F%2Fwww.mydomains.com.com%2FSA100.html
inside the string below:
http://www.tticker.com/me0439-119?url=http%3A%2F%2Fwww.mydomains.com.com%2FSA100.html%3Fc%2acn%2CSA4... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jquery click event handler for items within a div How do you add a jquery click event handler for a bunch of links within a div? For example:
<div class="test">
<a href="test1.html">link 1</a>
<a href="test2.html">link 2</a>
<a href="test3.html">link 3</a>
</div>
I'd like to add a click event handler for each of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android screen resolutions and density. Packages of images I have a problem in my android app:
I have 4 packages of images (for 320x240, 800x480, 854x480 and 1024x600 resolutions).
I want to have one layout which should look good for any resolution or density (of my 4 packages). Now if I set Padding Left 120 dip for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tutorials.exe windows services I create new project "Tutorials.exe"; when I run on cmd the path:
C:\temp>installutil turorials.exe
...I get the error:
'installutil' is not recognized as an internal and external command,operable program or batch file.
I tried another way:
C:\Windows\Microsoft.NET\Framework\v4.0.303... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Auto-arrange UML diagrams in visual studio 2010 I'm creating UML diagrams (use case and class diagrams) in Visual Studio 2010 for a new project. Instead of using drag and drop to place all the model elements in a visually pleasing way, I would like to automatically arrange the diagrams, to save time. Is that possibl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: MySQL / Searching Two Tables I have two tables, 'photos' and 'videos'. Together they are almost identical, except one column, 'photoID' in 'photos' and 'videoID' in 'videos'.
When a user makes a search, I would like the video results to be mixed with the photo results, obviously from the same recordset.
How is it po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get SFML cross-platform typedefs in SWIG I'm writing an C++ game and I'm connecting it with Lua. The tool I chose for this task was SWIG, since I want to make my game available to be written in python or some other language. I'm also using SFML 1.6 as the API for multimedia access. This game is also intended to be c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: mocking web service I would like to mock a web service call to test my code.
The following is a code snippet of which I want to mock.
I would like to test callWebService() method. I want a way to create my own HttpResponse when callRestClientService(criteria) is called. I tried using JMock and EasyMock but unable t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cancel infinite loop execution in jsfiddle When you get an infinite loop in jsfiddle in Chrome, your only choice (that I know of) is to close the tab. Of course, this means you lose all your work in the current window! Is there an easy way to stop an infinitely executing script?
*
*I have the developer tools op... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: objective-c: double pointers to property not allowed? I want to create a method like this:
- (void) checkAndUpdateStringProperty: (NSString **) property{
if (...)
*property = @"whatever";
}
I want to use this to pass in a property for the same class:
- (void) somewhereElse{
....
[self checkA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to find foreign key dependencies of a specific row? If I have a table, TableA:
Id
1
2
3
...
And two other tables:
TableB:
Id, TableAId
1 1
2 1
TableC:
Id, TableAId
1, 1
2, 2
Where TableAId is a FK relationship with TableA.Id.
How do I determine that TableA, Id 1, has three rows pointing to it? And that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7616149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.