text
stringlengths
8
267k
meta
dict
Q: DataGridView Binding with Frozen Columns on UI Submission I have a form with a datagridview on it that I need to populate when the User completes a search. I don't bind the data to the grid until the search is performed because the binding source is dependent on which search they perform. I have the following code...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i install python-lzo-1.08? I need to install python-lzo-1.08. When i try to do it from gz-file, i getting error: NameError: name 'CURL_DIR' is not defined OS: win7 I can't anywhere find windows installer (google taking only gz or broken links to msi/exe). Maybe anybody have this file? please, share! ( sergiy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Checkboxes binding - what is better solution? I have more than 20 checkboxes in my wpf form. I need store IsChecked values from all of them in some object. I know two ways. 1) bind all checkboxes to corresponding properties in object using dependency property like here 2) handle Clicked event of all of them Which so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to properly share code between applications in a django project I have several applications in my django project. I would like to re-use some of the functions across all of my apps. I created a new app, and added a custom functions.py to it. Trying the following: from myNewApp import * from myNewApp import funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Synchronizing to an object to be instantiated Are there any synchronizing/reference issues with this code? (Assume that myStrings is already instantiated.) MySynch.java: public class MySynch { public static String[] myStrings = new String[10]; public static void updateStrings() { synchronized (m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I use dependency injection for external dependencies? I think I almost got this. Say I want my app to send SMSs. But Im not sure yet if I should go with Twilio or SomeOtherSMSService. In fact, I dont really care yet. So I have something as simple as this so I could keep developing my app. public interface ISM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to format the value in a edit field in cakephp The price is a float value, and I want to display it like 1.000,00 instead of 1000.00 I know I can use an afterfind callback to change the value, but I will need the original value to do some math. Is there any callback, like symfony data transformes in cakephp or d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: excel vba - transform an sql Has anyone had any luck with a vba macro that would convert this input: update my_table set time = sysdate, randfield1 = 'FAKE', randfield5 = 'ME', the_field8 = 'test' where my_key = '84' ; into this output? select count(*) from my_table where (randfield1 <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: polynomial time complexity There's this code from here ub4 additive(char *key, ub4 len, ub4 prime) { ub4 hash, i; for (hash=len, i=0; i<len; ++i) hash += key[i]; return (hash % prime); } They say this takes 5n+3 instructions. How did they calculate it? How should i calculate it? A: To make this calculat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I pause SlidesJS on click? I am using SlidesJS for a slideshow and I was wondering if there is a way to pause and play the slideshow on click of a button? A: I recommend grabbing the most current version from github looks like in this new version its as simple as calling stop() and play() He has an example here...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tabcontrol, vb.net, tab button mouse over style I have a vb.net windows forms project with a tabcontrol. Anyone know how to change the style of the tabpage title or "button" when you hover over it with the pointer ? I guess you can change the colours with: TabControl1.SelectedTab.BackColor = Color.Black But not sur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring interceptor/filter I need to write an interceptor/filter in my spring-jersey application, which will check every request for session and on success it will pass a code to respective controller. Passing this code is imp, because based on the code controller will decide further action. Q: 1) Is this possible to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open browser tab in php I have a client(JavaScript) server(PHP) application using AJAX. On the AJAX request my PHP script returns some info to the client AND needs to open a separate browser tab as a separate process, asynchronously. How can I do that (exec, shell_exec, passthru ... don't work)? A: You cannot contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Geronimo StAX can't locate Woodstox implementation Using ant, I am trying to invoke a self-defined task, in which I am trying to call a web services using Axis2. I am providing all the jars by Class-Path manifest header in the parent jar. Both geronimo-stax-api_1.0_spec-1.0.1.jar and wstx-asl-3.2.4.jar are defined o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: resolve Merge conflict with subversive How to resolve a merge conflict when merging a branch back to trunk with subversive. (e.g a File have different changes at the same position) i did the folowing: * *selected merge at a project (team merge) *selected branch url *execute merge ==> conflicts are now shown in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange behavior of html I don't know why but when i have html i this order: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <div id="header" style="width: 1020px; height: 50px; vertical-align: sub;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: node specific google analytics tags in Drupal I need to put this kind of tags (floodlight/doubleclick - Google Analytics) in some nodes in my Drupal site -each code snippet/GA tag is specific and different-. How can I put this specific tags in specific nodes? -near the tag if possible?- blocks? or there's a module...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alfresco SSO with Cookie I want to integrate Alfresco with my current login system (which is an LDAP server). I can successfully integrate LDAP authentication in, however, I want to use an external login page and have Alfresco read a cookie to log the user in (the cookie will contain the username and a key which can...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Git Merge Conflict (UU): How do I resolve conflict without adding file to next commit? How do I resolve a UU (merge conflict) without adding that file to the next commit. For example, I just cherry picked a commit to another branch and there were merge issues. I solved the merge issue and want UU readme.txt changed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to get text position in PDF using PHP, TCPDF & FPDI? I have an issue: I need to upload some PDF template with data and then change it. For example, in PDF file is string: NAME: I need get position of this string and insert some text (username etc.) after it. Is it possible ? Update The PDF isn't encrypted. Tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Borders not shown in Firefox with border-collapse on table, position: relative on tbody, or background-color on cell Consider the following HTML: <html> <head> <style> TABLE.data TD.priceCell { background-color: #EEE; text-align: center; color: #000; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: The 2010 Loebner Prize winner bot: Suzette What are some of the techniques that a machine could use to be able to carry a good conversation/pass the Turing Test? I know this has to do with Natural Language Understanding and Processing, but I need more details. I'm particularly interested in the chatbot Suzette who w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Content Provider and Content Observer Example? I am new to Android development and playing with content providers and content observers. However I am having trouble finding examples online. I have been playing and reading about this but have become stuck. Here is what I am trying to do: I have created a small cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why are the ActionView::Helpers::UrlHelper not available in the assets pipeline? In ajax heavy applications having a javascript/coffeescript file that is aware of the routes in a rails application seems common and reasonable. Yet it is not easy access the url_for helper in your assets. I commonly see people inline a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Application vanishes when trying to invoke an OLEDB provider with VB6 Form I have to use an OLEDB provider (for Sungard Investran) from my crystal reports in Winforms Application. Using .Net 4, Crystal Reports for VS2010. The OLEDB Provider has a Parameters Dialog, which I believe is developed in VB6. When I call th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does this JSP scriptlet fail with a NullPointerException? I can print out pageModel.foo using EL: ${pageModel.foo} But this scriptlet fails at the line where I check the length() of foo: java.lang.String foo = (java.lang.String)pageContext.getAttribute("pageModel.foo"); if(foo.length()>10){ foo = foo.substr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to calculate recent row average value using MDX? My data example: id value_a 1 1.0 2 2.0 3 3.0 4 4.0 which I want is id / value_a / recent_n_avg 1 1.0 0.33 2 2.0 1.00 3 3.0 2.00 4 4.0 3.00 recent_n_avg is average for recent n rows( n=3 in example). How to use MDX to so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: templates function specialization, c++ I am practicing function specialization, and I was trying to create a little storage object with a specialized print function. Here's my code: #ifndef STORAGE_HPP_ #define STORAGE_HPP_ #include <iostream> using namespace std; template <typename T, int size> class Storage { /...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Authenticating and authorizing users on MVC and WCF Knowing so little about WCF, ASP.Net and Authentication/Authorization that I'm having a hard time explaining what is bothering me. I'm using ASP.Net MVC 3 app as a front end for a system I'm developing. This web site talks to a WCF web service and gets all it's inf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SDL - about character movement I want to ask about character movement in SDL from lazyfoo.com, There is a tutorial which explains about movements and from what I read, I conclude that these are the steps to object movements * *Events detected *set new coordinates based on events *make the screen white (SDL_Fill...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any way to ask permission programmatically? Is there any way to ask permission programmatically in android ? I don't want to add all permission to AndroidManifest.xml. So is there any dialog that asks for permission at runtime? A: Not until now, but yes. According to Google's new permission model introduce...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How to setHighlightedTextColor @ NSAttributedString I have a custom UITableViewCell which uses a NSAttributedString. I want it to change color when the cell is selected. How can I make the NSAttributedString have the same behavior as a UILabel with highlightedTextColor set? I have tried to change the color at the fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can you tell if a suggestion was selected from JQuery UI Autocomplete I have a text box that is wired to JQuery UI Autocomplete. As the user types in the box my search runs via an ajax call and returns suggestions. It seems that three things can happen: * *The autocomplete suggests options and the user select...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Insert blank row between groups of rows and sorted by ID in sql I have a table which has the following columns and values ID TYPE NAME 1 MAJOR RAM 2 MAJOR SHYAM 3 MAJOR BHOLE 4 MAJOR NATHA 5 MINOR JOHN 6 MINOR SMITH My requirement is to right a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQLite: Current date plus one day in where clause I need to get 3 queries on an 'appointment' table. * *where appointment.start_date is today, *where appointment.start_date = today+1 day, and *where appointment.start_date is > today+1 day. I've got 1. down fine. var resultSet = conn.execute('SELECT * FROM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: glVertexAttribPointer on built-in vertex attributes like gl_Vertex, gl_Normal I have to send vertex attributes using glVertexAttribPointer to shaders expecting them as built-in (gl_Vertex, gl_Color, etc.). The glVertexAttribPointer function needs to specify the index (or location) of each built-in attribute. I can d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to convert and write Large Images without causing an OOM Error? I have images stored in a database in the form of ImageIcons that I would like to serve to our web page, however for large images I am getting out of memory exceptions. Here is how I currently do it, [Edit] I expanded my ImageUtilities to provide a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to filter lines without Sobel filter in OpenCV I'm trying to detect lines just with linear filters. My first try was rotate a kernel like this but wouldn't work: kernel = zeros((13,13)) kernel60 = zeros((13,13)) kernel[4] = [0,0,0,0,-1,-1,-1,-1,-1,0,0,0,0] #kernel[5] = [0,0,0,0,0] kernel[6] = [0,0,0,0,2,2,2,2,2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set cookie to the WebBrowser control only I have a webbrowser control with flash video player inside. I want to set a cookie to the webbrowser control so I can play forbidden videos (that need this cookie). I don't want to set the cookie globally and affect IE's cookies. I tried with webBrowser.Document.Cooki...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: GitHub - Private vs Public Collaborators New to GitHub and a bit confused by private vs public collaborators. If I do a Micro account with one private collaborator but have 5 total team members wanting to contribute, how would the remaining four apply? I see it has unlimited public collaborators. So what is the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cake: habtm relationship with not-default key on other model I have 2 models that need to be linked by a habtm relationship, having this table-structure: CATEGORIES: id | name | .. ----------------------- 1 | test | .. POSTS: id | name | other_id | .. --------------------------------- 1 | te...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to search for words containg certain letters in a txt file with Python? Look at the code below. This finds the letter 'b' containing in the text file and prints all the words containing the letter 'b' right? x = open("text file", "r") for line in x: if "b" and in line: print line searchfile.close() Now her...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python - single vs multiline REGEX Considering the following text pattern, #goals: the process report timestamp, eg. 2011-09-21 15:45:00 and the first two stats in succ. statistics line, eg: 1438 1439 input_text = ''' # Process_Name ( 23387) Report at 2011-09-21 15:45:00.001 Type: Periodic #\n some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Fetch data from a website after login, client side I would like to import data that the user had entered into his profile on a website that I do not control. I don't want the user to hand me his login credentials to grab the data from the server-side (connecting directly to aforementioned website). I would rather pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access one object from another form in C#? Let's say I have "Form1" and "Form2", both are forms. In Form1 there are the Main Class and the Main method. In Form1 I create an object like: public myobject ob1 = new myobject(); But then, in Form2, I have this code: private void bdCancelar_Click(object sender, E...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Set path of the radiobutton in jsp form I am using spring aplication 2.5. I have a list of the radio buttons displayed using list of the objects on the jsp. I want to set the path of the radiobuttons to its respective objects in the list. <form:form commandName = "artifact" name="formradioquest"> <c:forEach var...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: grep: one pattern works but not the other I have a teb-delimited file that has gene names in one column and expression values for these genes in the other. I want to delete certain genes from this file using grep. So, this: "42261" "SNHG7" "20.2678" "42262" "SNHG8" "25.3981" "42263" "SNHG9" "0.488534" "42264" "SNIP1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I enable reverse debugging on a multi-threaded program? I'm trying to use the reverse debugging features of gdb 7.3.1 on a multi-threaded project (using libevent), but I get the following error: (gdb) reverse-step Target multi-thread does not support this command. From this question, I thought perhaps that i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Extjs 4.0 MVC - how to close a view from within the controller? I have a simple example here with a modal window that is a 'view'. I want to have a button within the window that does a window close, so the lazy user doesn't need to click the 'X' in top right. My problem is I don't know how to reference the view fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: php sort() on array produces wrong result I want to sort an array that looks like this (to numerical order instead of 1, 10, 11): Array ( [0] => 1.jpg [1] => 10.jpg [2] => 11.jpg [3] => 111.jpg [4] => 12.jpg [5] => 12a.jpg [6] => 13.jpg [7] => 14.jpg [8] => 15.jpg [9] => 16.jpg [10] => 2.jpg [11] => 3.jpg [12] => 4....
{ "language": "en", "url": "https://stackoverflow.com/questions/7517243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Weird Error "Call to a member function move() on a non-object" In Symfony2 I'm adding a file upload function to my form in Symfony2. I've followed the documentation here, but I keep getting the following error: Fatal error: Call to a member function move() on a non-object The thing is, the line of code it refers t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java Play Framework Global Variables I am currently "Playing" With the Java Play Framework and would like to know a simple solution to having an online status on the main.html page (this page will be consistent throughout the site e.g. navigation bar, header and footer). At the top of this page I would like an onlin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Universal Programming IDE I'm searching for a good IDE that supports multiply languages and compiling of them, syntax highlighting, uploading of microcontroller projects etc. The problem is; I currently have 8 different IDE:s, each for a different language (Programmer's Notepad (PHP, HTML), Qt Creator (C++ with Qt l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Clean NSLog - No timestamp and program name I almost finishing a clean NSLog with this code: #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, __VA_ARGS__] UTF8String]); This work fine if I do this: NSLog(@"Show %@ message", @"this"); But, will fail if I user it NSLog(@"One argument"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to efficiently cache mysql query in php for this table I have a Posts table containing the fields title, contents, rating, no_of_comments, author_id. When a user downvotes the post, the rating field is decremented and vice-versa. Also i am caching the display query, which shows the recent posts, and it's relate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: LINQPad and unhandled exceptions I'm trying to crash LINQPad4 using the following C# statement: new Thread(() => new Thread(() => { throw new Exception(); }).Start()).Start(); An unhandled exception dialog is shown, but the process doesn't die. I suppose IsTerminating = true like in all UnhandledThreadExceptions......
{ "language": "en", "url": "https://stackoverflow.com/questions/7517256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to inject different subclasses as ManagedProperty JSF 2? I'm new to JSF and I'm wondering if it's possible to inject different subclasses of a base class as a MangedProperty, depending on different situations? For instance, I have this managed bean: @ManagedBean @SessionScoped public class Claim implements Seria...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Question about optimization in C++ I've read that the C++ standard allows optimization to a point where it can actually hinder with expected functionality. When I say this, I'm talking about return value optimization, where you might actually have some logic in the copy constructor, yet the compiler optimizes the ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: .NET Remoting on Mono: Uri already in use Running: * *Ubuntu 10.04, 32-bit *Mono 2.6.7 I have an application developed in VS 2008 that uses .NET remoting (with a custom RemotingUDPChannel class). We are trying to run this on linux (building in MonoDevelop) now, but I am receiving the following error. Code caus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Struct initialization problem in C I seem to be having a problem setting the values of an array inside a structure with a meaningless error spat out of the compiler: expected primary-expression before '{' token I understand that a structure must "exist" to accept values, and it exists as a pointer to one. I would...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# Preventing clicks on a form without using Enabled=false I have a form that requires a long operation (expansion of a treeview node searches the network for additional items to create more tree nodes) - so I plan on using a BackgroundWorker for this task. During the long operation I want the cursor to be the wait...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HornetQ reports Invalid STOMP frame in JBoss 7 with stomp-websocket client? The following test client code (using https://github.com/jmesnil/stomp-websocket) yields an exception in JBoss 7.0.1: var client = Stomp.client("ws://192.168.0.4:61614/stomp"); client.connect("guest", "guest", function() { client.send("/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I programmatically get the Keyboard Repeat settings in KDE? I have a custom Motif Widget and I'd like to tie its behavior to the Keyboard Repeat settings. How do I programmatically get the current KDE Control Center Keyboard Repeat settings of Delay and Rate? What API exists to query and set these values? Al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp Net MVC 3 - Moving through Actions and Views, SessionState How can I keep some values between different Views in MVC 3? I tried using TempData and HiddenField to keep these values but in our hosting this tecnique seems to have short life so exceptions are coming out furthermore if user uses Back button every sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I initialize normal array member variable in initializer list? I would like to do the following: class MyClass { public: MyClass() : arr({1,2,3,4,5,6,7,8}) {} private: uint32_t arr[8]; }; but it doesn't work (compiler: expected primary expression before '}' token.). I've looked at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Changing webservice reference dynamically I've got a webservice written in VS2008, and I'm trying to consume it with an exe written in VS2010. I need to be able to reference the service URL dynamically from within the application. In the past I was able to change the URL Behavior for the service from Static to Dy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Issue with node cluster (nodejs) i went through this code (sample of node-cluster), its working fine without errors, but no response from http server. as per logs it was created workers and those are running var cluster = require('cluster') , http = require('http'); var server = http.createServer(function(req, r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPad: UIModalPresentationFormSheet fails on landscape mode We've the next problem in our iPad version. I've a NavigationController inside a UITabBar. I want to show a Form with a look&feel similar than the e-Mail form. I use the same code to show a model centered: // View to be displayed in the modal AdhocViewContro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get each menu item from a list view by position? Let's say a list has 4 items, how can I get a view from each menu item of a list by position? A: Unfortunately the items that are in the ListView are generally only those that are visible. You should iterate on the ListAdapter instead. For example, in some o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why doesn't the script work this way? Following is a statement that should run according to me when the HTML page loads. document.getElementById("name_field").value = "JavaScript"; But this does nothing.If i try to do the same thing the different way : window.onload = init; function init() { document.getElementById...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server To MySQL conversion script error surrounding UUID()? ALTER TABLE aspnet_Paths ALTER PathId SET DEFAULT UUID(); I've ran a converter program on "generate" scripts from a SQL Server database. I seem to be having uuid in the above statement highlighted in work benches query window with the statement "Error ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between JBPM and BPEL/ESB what is difference between JBPM and BPEL(and ESB)? Would you please explain them? RGDS A: I am not much familiar with JBPM. But it seems to be a Business work flow which can work with java services or basically java based process. Not only with web services. BPEL is a standard t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Actionscript 3 writing a XML element inside a another with code I'm having a bit of problems with simple XML coding. I'm using a simple flash application to write a XML containing customer data (simple stuff, like phone number, name, email, etc). I understand how to write XML manually, but my issue comes when I want...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I initialize a SparseVector in Eigen How can I initialize a SparseVector in Eigen ? The following code: #define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET #include <Eigen/Sparse> using namespace Eigen; SparseVector<float> vec(3); main() { vec(0)=1.0; } gives me the following error error: call of a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: IIS Web request to different service based on incoming IP address? Can IIS be configured to direct a web request to different page based on the incoming connection's IP address? I have devices connect to an .aspx page by going to a URL that looks like: http://myhost/myservice/mypage.aspx Depending on the inbound IP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Easiest way to enable Google authentication for GWT application? (non-GAE-hosted) What is the easiest way to enable existent GWT application authenticate users using Google account? I tried googling (lol) it but have found no solutions that could work out of the box. Is there a library to solve this problem in like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Node.js url.parse result back to string I am trying to do some simple pagination. To that end, I'm trying to parse the current URL, then produce links to the same query, but with incremented and decremented page parameters. I've tried doing the following, but it produces the same link, without the new page parameter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Getting credit_balance I've got a whitelisted app for credits on FB and I'm trying to get the balance for a user but I keep getting error 13. That credits_balance is not part of the user table. The docs say to re-authenticate the user after being whitelisted and I believe I've done. However, is their "authenticatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to develop a program that install SQL Express and add a database in it I would need to create a program that only install SQL Express and install a database at the same time (either from a bak or mdf, whichever is prefered) At the end of the creation, this program would generate a text file. I found on the web h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hot to get and set cookie in an API call from Blackberry app? Can anybody please, help me out in get/set cookie in http get request from a blackberry application ? I was able to get the cookie by iterating through the response header. I don't know whether this is the best practice to retrieve the cookie. Please advi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fullscreen Web App for Android I want to run my Web App, which i programmed with HTML5, in fullscreen mode on Android. (hide the status bar, and the adress/navigation bar) for iOS you only write: <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="viewport" content="width=device-width, initial-sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: implementing convenience constructors for automatic reference counting Without automatic reference counting you often write code like this, when adding a new class: assuming the classname is "Foo" + (id) foo { return [[[self alloc] init] autorelease]; } - (id) init { self = [super init]; // do some init...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Load mod_h264_streaming.dll in Windows Apache2 Hi I am trying to stream video from static html5 pages serve by Windows Apache2. According to Apache guide on http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Apache-Version2 this only for Linux, so I get the mod_h264_streaming.dll from http://h264.code-shop.com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: translating from javascript to jquery i'm trying to translate code from javascript to jquery and i need a little help so , i have this code: $('input[type=file]#upload_input_general_uploader').change(function(e){ var browserName=navigator.appName; if (browserName=="Microsoft Internet Explorer"){ var ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Library of Custom Controls in Winforms I wanted a TextBox with just digits as entry. So i wrote following code in the KeyPress events of the textbox if(!char.IsDigit(e.KeyChar)) { e.handled = true; } and it worked great. But I generally need them in many places of my application so then i wrote a partial class ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python 2.5 time.time() as decimal Is it possible to receive the output of time.time() in Python 2.5 as a Decimal? If not (and it has to be a float), then is it possible to guarantee that inaccuracy will always be more than (rather than less than) the original value. In other words: >>> repr(0.1) '0.10000000000000001...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Column ' ' in where clause is ambiguous Error in mysql SELECT tbl_user.userid, tbl_user.firstname, tbl_user.lastname, tbl_user.email, tbl_user.created, tbl_user.createdby, tbl_organisation.organisationname FROM tbl_user INNER JOIN tbl_organisation ON tbl_us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eclipse/Java equivalent to Microsoft ASP.NET Model View Control Framework Does anyone know if there is any equivalent to Microsoft's ASP.NET Model View Control Framework with Visual Studio/C# but for Eclipse with Java? Or put it another way one could build a website in C# using MS Visual Studio with ASP.NET MVC, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Adding pages to the side navigation in Sharepoint I'm currently creating a site using Sharepoint, I notice when I add a page into the root it automatically adds them onto the top navigation, but I'd like to have a side navigation too (with sub pages) Unfortunately this is quite different to any project I've worked ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Best practices for managing memory in a PHP script? Memory management is not something that most PHP developers ever need to think about. I'm running into an issue where my command line script is running out of memory. It performs multiple iterations over a large array of objects, making multiple database requests p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: "Place Order" button on Magento onepage checkout isn't responding. (Inline JS not executing.) Currently trying to get onepage checkout working properly on an installation of Magento 1.6.0.0. Each step works fine until the final review order box, the Place Order button gives the error review not defined, when trying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Problem with JSR286 rendering portlet and WebSphere Portal7 Another question for all WP7 lovers! We have the following problem: we have creates a portal page with a JSR286 local rendering portlet that show a lotus wcm content. When the portal render the JSR portlet, it show the following exception "Error 500: java.l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generating activation key from serial number I have devices with unique serial number (string incremetation) ex : AS1002 and AS1003. I need to figure out an algorithm to produce a unique activation key for each serial number. What would be the best approach for this ? Thanks ! (This has to be done offline) A: You h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: get absolute path to apache webcontents folder from a java class file Need to get absolute path in java class file, inside a dynamic web application... * *Actually i need to get path of apache webapps folder... where the webapps are deployed *e.g. /apache-root/webapps/my-deployed-app/WebContent/images/imagetos...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: WCF - Streaming file upload over http I am trying to build a WCF service that will allow my WPF desktop clients to upload files to a server. I adapted a code sample from The Code Project (WCF Streaming: Upload/Download Files Over HTTP) and I've looked at several SO posts as well, but can't seem to get this working. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What PHP chunk of code is FASTER? We all know that xHTML/CSS and JS minification and compression benefits large traffic sites. Take a look at the following code: include("template.funcs.php"); include("country-redirect.php"); if(($country=='PL')||($country=='POL')) { header('Location: index_pol.php'); exit()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it ok to store plugin DLLs in a /Plugin folder instead of /Bin? I have a pretty straightforward question. Is it ok to store plugin DLLs in a /Plugin folder instead of /Bin? I'm experimenting with plugin design in the context of ASP.NET WebForms (and MVC) and I am wondering if there could be an issue with storing...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Duplicate Hierarchical Data to the same table - Oracle How to duplicate hierarchical data to insert them at the same table, generating new Ids but keeping parent-child relationship A: Re-insert the data but add the same large number to every ID. Update: If I understand your problem correctly, you want to copy data...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Drupal render() forcing other divs closed? I'm new to Drupal theming and am attempting to create a custom theme template for a specific content type I have. I am attempting the following: <div<?php print $content_attributes; ?>> <?php print render($content['field_property_media']); ?> <div class="field-la...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Public accessors vs public properties of a class Possible Duplicate: What is the difference between a field and a property in C# Can someone explain the diffrence if any between these two properties? public string City { get; set; } public string City; A: The first one is an actual property. The second one i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }