text stringlengths 8 267k | meta dict |
|---|---|
Q: Adding Columns in SQL SELECT I have the following SQL sp and I would like to add a column 'NetSales' which is simply 'GrossSales' - 'Credits'. Is there a way to do this in the same SELECT statement?
SELECT p.PerceptionistID, p.BaseCommission, p.BonusCommission, h.WeekOf, h.WorkHours, h.PTOHours, h.HolidayHours,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I do set a variable in Windows command line to an IP? Is there an easy way to grab the IP address from my service provider and put it into a variable via command prompt? Something like the following:
SET hostIP = nslookup \address
ECHO %hostIP%
Or
SET hostIP = ipconfig \address
ECHO %hostIP%
A: for /f "ski... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Move list box items from one listbox to another listbox? I am trying to move listbox items between two listboxes.Before that i created two arrraylists for each listbox.so before moving the listbox item i am trying to add the items to the arraylist. here is the code
foreach (string st in listbox1.Items)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error 422 when load testing Rails 3.1 application with JMeter I have a Rails 3.1 application that I am trying to use JMeter to load test.
Our site is targeted around collecting information so users sign-up and then walk through a question and answer workflow and after answering a few questions, they are rewarded wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I programmatically force changes to a file to propagate to all NFS clients? I have a CMS built in PHP which stores the list of pages, page navigation structure, and the content of pages in files on disk. This application is hosted on a cluster of Apache/php-fpm servers which are behind a haproxy server. These se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: how to change the text color using jquery or javascript I have a two items(rows) in the list box
I love to work with jquery
i love to work with javascript
I have textbox and button when I enter love in the text box when I click button i need to loopthrow this list box to find the text love and change that love text ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android ActionBar and Cursor public class TaskDetailTabHome extends Activity implements ActionBar.TabListener{
String taskid, empid, ac;
private DbAdapter_Assignment assignment;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.lay... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP:Labels not updating on button Click I know this is probably something so simple that I am just not able to see it. I have an aspx form that has a usercontrol in an updata panel. The user control is a people picker the searches on users from a corporate database.
What I want to see happen is:
*
*The user ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Destruct Unmanaged object From .NET code I've wrote a C++ library that is exposed to my VB.NET application through a C++/CLI wrapper.
I'm worried about objects that I'm shuttling up to the VB.NET application through the wrapper. To use the classes in the library I've written wrappers for them and the wrapper classe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bing maps and monotouch I'm wondering if there's any SDK/control to use bing maps with monotouch? or probably any solutions on how to use iOS bing SDK with monotouch
A: Chris Hardy has created MonoTouch bindings for Bing maps. Check it out here.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7575159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to dynamically populate data from url to expandable listview categories in android? hiii,
I am working on a project where i am calling a url and fetching data as json . Now , this json object will be parsed.
Now i am getting a json tag like status= active or status = notActive.
Based on this response , i have t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use NSColor? Where does it belong? How to reference it? I want to use the keyboardFocusIndicatorColor inside my code but not sure where NSColor is. The documentation says AppKit.framework but when I try to link a library AppKit.framework does not exist.
NSColor *transBG = [[NSColor keyboardFocusIndicatorColo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android Sqlite get last insert row id
Possible Duplicate:
Get generated id after insert
I want to get the last inserted row id in my android application using this code :
String query = "SELECT * from SQLITE_SEQUENCE";
int createdUserId = Integer.parseInt(dbHelper.executeSQLQuery(query).toString());
but the prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to add a timestamp to OutputDebugString()? I am writing a C++ application, and I want to add a timestamp to OutputDebugString(). I already know that if I watch the application using DebugView, it automatically show timestamps. But for a particular reason I want to add TimeStamps to any string I pass to OutputDeb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling ( triggering ) a link after the submit How could I call (trigger) a link after the form submits ? I'd like the function to call a link so that the new jQuery div is called on its own after the button submits an upload. The infoUp() function doesn't work..
HTML:
<a href="#" id="profile">Profile</a>
<form nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Zend_Validate_Regex - allow only letters, numbers, and characters -_ So, I have a text field that can contain only letters, numbers, hyphens, dots and underscores. I would like to validate it using Zend_Validate_Regex but this pattern does not work. Why?
/[a-z][A-Z][0-9]-_./
Here is my text element:
$titleSlug = ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's exactly behind / inside iPhone memory management? This question is NOT about retain/release things in iphone memory management. I understand the routine quite well and there is no memory leak things in my app.
I pop up the question shown in the title, when I use Activity Instruments to monitor the overall mem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Android - search based on property of AutoCompleteTextView suggestion, or value of AutoCompleteTextView I have a MyObj class with a name and an id. I have an AutoCompleteTextView that is currently letting you type MyObj names and it auto-completes them for you. There's a button next to the AutoCompleteTextView tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Identity Foundation System.Xml.XmlException: Unexpected end of file We have a custom STS along our website both running in Windows Azure. The STS is ASP.NET 4.0 and the site is MVC3. In the past few days I've started seeing quite a few of the following exceptions showing up in our diagnostics logs:
System... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: undefined method `to_key' for -- NOT USING MONGO I found a gazillion answers for my issue if I was using Mongo, but none of the ones I see work out here since I am not using mongo.
Basically I have a report_controller.rb that has a very simple method defined:
def donations_by_season
@donations = Donation
end
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Transfer app ids from one account to another Is it possible to transfer app ids owned by one FB account to another?
A: Yes this works perfectly.
*
*Go to your FB app -> goto Roles, assign a Facebook friend as an administrator.
*Ask him to accept the request and become an admin. (He has to add his acco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to create my own preference screen? Please have a look on the image:
There is an item rounded with red color on the right pane. This is a PreferenceScreen item. I need to show another my own view after clicking on this item. See next screen please:
A: You can make really minimal subclasses of the neccessary ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Optional parameter with setParameterList in HQL I have a query with optional parameter
"SELECT ClinicId,Name from Clinic where :ClinicIds is NULL OR ClinicId IN :ClinicIds"
List<int> ClinicIds = null;
I'm passing the parameter as following
q.SetParameterList("ClinicIds", ClinicIds);
Because ClinicId is an optiona... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: simple SUM in T-sql This should be really simple. I am using SSMS 2008, trying to get a sum of just one column. Problem is that I currently group on this one column and also use a HAVING statement. How do I get sum of total # of records > 1? This is my T-SQL logic currently:
select count(*) as consumer_count fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create/Read/Update & Delete views are not being generated I have a Race class and RaceController class. The Create/Read/Update & Delete views are not being generated when i run the app even thougn i have "def scaffold = true" in the controller class. How can I generate the Create/Read/Update & Delete files
class Ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Namespace Prefixes with IXmlSerializable Bit confused on the proper decorators to use, or whatever design might be necessary. When serializing a class which is implementing IXmlSerializable is there a way to include the namespace and its prefix in the XmlRoot element?
Class definition for example.
using System;
usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Error while installing RVM on ubuntu 11.04. Seems to be git clone's error When I try to install RVM the following error shows up:
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Cloning into rvm...
fatal: The remote end hung up unexpectedly
Cloning into rvm...
error: RPC failed; result=56, HTTP code =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How best to implement a login system in VB.NET using LINQ to compare information with an Access table? I have been requested to implement a login form into a friend's Visual Basic .NET application. He specifically requested that I should do this using LINQ to compare the input to a table in an Access database. I don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I sort a column that contains two divs with jQuery Tablesorter? I'm using jQuery Tablesorter to sort a table. One of my columns looks like this:
<td>
<div>
<span class="green">Yes</span> <a href="##">(unverify)</a>
</div>
<div class="hidden">
<span class="red">No<>/a> <a href="##">... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: bugzilla | perl module installation nightmare: no cc, is gcc OK? I am trying to install Bugzilla. I don't recall it being so difficult. We have a ubuntu server on the cloud, and at first I attempted to install through the rackspace UI. This didn't work, so I ssh'ed in and actually downloaded the tarball to do it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Remote call ASP.Net Web Service from jQuery Ajax I have the following problem, there is one ASP. NET Web Service project (*. asmx), with several function and is the second project, also ASP .NET, which should call a service using jQuery Ajax (no service reference).
Web Service project:
[WebService(Namespace = "http:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Removing default.aspx from the url in ASP.NET 2005 I have a app that is setup on IIS 6.0. We are having trouble with Search Engine optimization with the default.aspx page.
For Example when I type www.xxxxxx.com/default.aspx it should redirect to www.xxxxxx.com.
Can anyone please help me with this problem?
A: publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting random contact numbers in Android I'm trying to use the following code to grab a random mobile phone number from the contacts:
ContentResolver cr = getContentResolver();
Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, "DISPLAY_NAME = '" + "NAME" + "'", null, null);
cursor.mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Variables not expanded in Maven plugin In my maven plugin I have the following:
<dependencySets>
<dependencySet>
<scope>runtime</scope>
<outputDirectory>/dir/${project.parent.artifactId}-${project.version}/${project.artifactId}/lib</outputDirectory>
</dependencySet>
</dependencySets>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Resize panel to fit contained elements in windows forms I am creating a collapsible panel element, which would essentially be a panel element with a button element and a panel element below the button. Clicking the button causes the neighboring panel to have Visible = false. I would like to resize the containing p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: SISS Variables - I have created user defined SSIS variables at the package level.
Example: Here are the varibales
v1 = 10
v2 = 20
v3
The result should be V3 = V1 +V2 Where should i give this expression in the control flow and will i get the result
Please help
Thanks
A: Am I missing something or is there a reason a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Google Analytics Data Feed API Error 414 URI Too Large When using the google analytics data API with the python gdata library, we are assembling a GET request per the instructions in the documentation here: http://code.google.com/apis/analytics/docs/gdata/gdataReferenceDataFeed.html
We are running into problems howe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SWT needs to much lines of code I wondering why swt is so inconvenient to use. We as programmers have to produce tons of unnecessary source code. Here an example.
Label label = new Label(parent, SWT.NONE);
label.setText("labelname");
The minimum would be like this:
createLabel(parent, "labelname");
I build up ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extract data from log file in specified range of time I want to extract information from a log file using a shell script (bash) based on time range. A line in the log file looks like this:
172.16.0.3 - - [31/Mar/2002:19:30:41 +0200] "GET / HTTP/1.1" 200 123 "" "Mozilla/5.0 (compatible; Konqueror/2.2.2-2; Linux)"
i ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Absolutely bizarre appendTo problem in IE 8 The following code works great in almost everything (variable names changed):
this.$something.appendTo($container);
But in IE8, it was just... not doing the append. No error. No warning. Not a whimper. Through sheer luck, we found something that worked for no discernable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: find url in html code I want tu find url in html code with PHP or JS
e.g i have this text
<description>
<![CDATA[<p>
<img" src="http://2010.pcnews.am/images/stories/2011/internet/chinese-computer-user-smoke.jpg" border="0" align="left" "/>
Երեկ Պեկինի ինտերնետ-սրճարաններից մեկում մահացել է 33-ամյա մի չինացի, ով 2... | {
"language": "hy",
"url": "https://stackoverflow.com/questions/7575274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ant xslt task output to stdout Using the <xslt> task in ant, how do I get the output to generate to stdout?
My XSLT is generating multiple files through xsl:result-document and the normal output is just status information that I'd like to show up with normal Ant output. Ant seems to force me to supply a destdir= or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: check output from CalledProcessError I am using subprocess.check_output from pythons subprocess module to execute a ping command. Here is how I am doing it:
output = subprocess.check_output(["ping","-c 2 -W 2","1.1.1.1")
It is raising a CalledProcessError and says the output is one of the arguments of the function.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Numeric text box with MVVM Pattern I have seen implementations of numeric TextBox with code behind in WPF. How do we do this in MVVM pattern?
A: In WPF if you bind the TextBox to a Decimal or a Int Property it will accept only that int or decimal otherwise it will show a red border that it does not have proper val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Dynamic background image change possible? Hey lets say i got two links on my page and i have some sub links(show up when main link clicked). Those two links have different background image.
*link1
-link1underlinkone
-link1underlinktwo
*link2
-link2underlinkone
-link2underlinktwo
-link2underlinkthree
I can easily ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Running heroku rake db:migrate from a Jenkins build fails In my Jenkins build, the last step is to push to heroku and run a db migration. The git push works fine, and the app gets deployed, but I'm having trouble running a db migration. Below is the console output from Jenkins.
+ heroku run rake db:migrate --app mya... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Where is the JobScape preference file located? Is there a configuration file for JobScape where I can specify which jobs to load on startup, the refresh interval etc?
A: Apparently JobScape that comes with AutoSys 4.5 has no user preference file. You can not specify default values for job specific parameters that y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Static library debug symbols In VS2010 there is an option to generate debug info for exes/dlls under linker but no such option under librarian for libs. Is the debug info embedded in the static library?
There is an option in the C/C++ properties for Program Database File Name for libs, exes, and dlls. By default it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Changing stylesheet causes qlabel to move I have a few labels in a horizontal layout, and I want to enable/disable a border around the labels at certain times. I can do this using stylesheets, but the problem is that every time I enable/disable a border this way, the label shifts left or right in the layout by a fe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Practical: deployment of application with .sql files I am developing an application that will make heavy use of .sql files. While I am just at the beginning of development, I want to make sure I am going in the right direction to avoid re-coding later. Much like java source code is not meant for the end user to be s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySql table with not sequential id Is there a way to create a table in MySql that it has an automatic ID field, but the ID is not sequential. For example, a random or pseudo random ID.
I have found solutions that suggest generating an ID and try to insert it until an unused ID is found (generating an sequential fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to analyze Rails's page performance in my rails app on product for one of our pages I see this:
Started GET "/bobbb1" for 127.0.0.1 at 2011-09-27 13:31:47 -0700
Processing by PagessController#show as HTML
....lots of queries
Rendered modules/_edit.html.erb (5.6ms)
Rendered modules/_show.html.erb (9.6ms)
Rende... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I fill a new array with split pieces from an existing one? (Java) I'm trying to split paragraphs of information from an array into a new one which is broken into individual words. I know that I need to use the String[] split(String regex), but I can't get this to output right.
What am I doing wrong?
(assume t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: in-app A|B Testing for Mobile Is there a good solution for A|B Testing in mobile apps like online? I know with iOS it's against the TOS to have different user experiences with identical actions, but what about Android? And what about firms like Apsalar which claim to offer A|B Testing in their analytics for apps? Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Basic indentation settings in Xcode The default settings in Xcode 3.2.6 do some automatic indentation: typing if (something) and pressing return (when the cursor is to the right of the closing paren) automatically indents the cursor by one tab. How can I turn this feature off?
I tried turning off "syntax-aware inde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP explode text to multidimensional array I wanna explode this text to three dimensional array:
Q 11 21 21 ( 40 44 23 ! 24 ! ! Q ! 32 22 48 18 23 49 ! ! ! ! 24 23 Q ! 19 23 06 49 29 15 22 ! ! ! Q ! 20 ( 23 23 ( 40 ! ! ! ! Q ! 21 06 ! 22 22 22 02 ! ! !
Q ! ( 40 05 33 ! 05 ! ! ! ! Q ! 49 49 05 20 20 49 ! ! ! Q ! ! ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Windows equivalent to sync() I do most of my programming on embedded processors, or on linux. When i need to sync data to my persistant store, i usually use the sync(2) system call. Is there an equivelent for Windows?
A: http://msdn.microsoft.com/en-us/library/aa364439(VS.85).aspx
http://www.codeproject.com/KB/syst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Objective-c simple memory question If I have a variable in my view controler
viewcontroller.m
@interface MemoryTestViewController : UIViewController
{
NSMutableArray *array;
}
@end
in my implementation
- (void)viewDidLoad
{
[super viewDidLoad];
NSMutableArray *aux = [[NSMutableArray alloc] initWithCap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Caml Query to fetch the items where the Lookup Column value is not null I have a list of employees in sharepoint. One of the columns in the Employee list is a lookup Column called Organization.
I am trying to write a CAML query to fetch all the employees where the Organization value is not empty. But, I receive all ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: python precautions to economize on size of text file of purely numerical characters I am tabulating a lot of output from some network analysis, listing an edge per line, which results in dozens of gigabytes, stretching the limits of my resources (understatement). As I only deal with numerical values, it occurred to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how do I convert textbox value to string? I know this is simple but i am lost as to how to approach it. Iam a new newbie. Please have it on me as i am new here.
I have a textbox field called ClientsBalance.
This balance can is usually in money order with a set amount. The client is also allowed to pay by Debit Cards... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem sending data in hybi-10 WebSockets server I'm trying to implement the new hybi-10 protocol in a python server and for now I succeeded in the handshake and receiving data from the client (JavaScript) but now I'm having problems with sending the data to the client.
I'm using a bit of a code from websockify (e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Disk space for downloaded files in ios app My app downloads files. How much space I can use for downloaded files? App size is 3-4 mbytes. I save files to documents folder.
A: There is no capacity limit except the available storage (except for the fact that the app may see a bit less storage then what is actually av... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: INotifyPropertyChanged in subclass I want to bind a TextBox in the window to a property contained within a class that is a variable of the viewmodel and ensure that INotifyPropertyChanged's PropertyChanged event propagates from the class to the parent.
Let me illustrate with an example:
(Window's DataContext is set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Java class with unicode code range specifications Is there a class where the code ranges of unicode is defined as an enumeration or as constants? It's a very simple class where the code range specification (can be found anywhere like this for example: http://www.ssec.wisc.edu/~tomw/java/unicode.html) is put into a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Release object after return? Say I have an object initialized right before a method's return statement...
MyObj* myObj = [[MyObj alloc] initWithOpt1:opt1 withOpt2:opt2];
return myObj;
Is it possible to release it after the return statement? Doing so before defeats the purpose of init'ing it to begin with, right? Ot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Proper Way To Use Git/GitHub - PHP System with Dev/Testing/Production servers I apologize if this is obvious or easy, I have looked at a good number of git/github tutorials and read other articles, but I want to make sure what I'm doing is right.
I want to incorporate VC (for obvious reasons) into my development tea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Red underline that I cant figure out how to fix I'm brand new to iPhone programming. I've tried some tutorials and such and now I'm trying to do a simple project to get my feet wet. And of course I have having issues getting it to do what I want. I started it by using a Navigation project. I didn't want the UITableV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: combining unrelated git repositories retaining history/branches we're having 3 separate git repositories (each with some branches) which we'd like to combine into one keeping full history and the ability to access the branches, like so:
so this is what we have. 3 repos:
/A/.git
/B/.git
/C/.git
and we'd like to have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Open a word document and save it to another folder with vbscript I have working code that opens up a word document programmatically using vbscript, makes a change, then saves that same document and closes that same document.
Is it possible to do the same thing, but save the document to another folder and close out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Multiple insert data to sqlite I try to insert multiple data to sqlite in android but I can't.
I want to create and insert like the code bolow, please help me.
here is my bad code,
package com.pepakbahasajawa.database;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get the address value of a function in assembly In gcc assembly code listed below, I want to store the address of function foo to var, how do i do it? Thanks.
.text
.globl foo
foo:
/* do something */
.data
.globl var
var:
.long /* the address of foo */
A: Have you tried this?
.long foo
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7575378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to paint a WPF-Shape mathematically? I want to paint an WPF-Element like a colorwheel, you know from the HSV color space.
i dont know how to do this, i havnt found a possibility based on the standard brushes (SolidColorBrush, GradientBrush, etc)
How is a (mathematical) painting possible on wpf-shapes?
A: when y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL Server rows with latest date I have a table :
EventLog (
EventID (INT),
UserID (VARCHAR(50),
Event (NTEXT),
EventDate(DateTime),
DocuvmentID(INT)
)
I need to write a query to get the latest event, datetime for a bunch of userId which will be
WHERE UserID IN ( 'john','tom'...etc)
How can I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTML Multiple Heads
NOTE: I am in no way advocating multiple heads within a page
I'm using Apache Tiles and I have a few tiles that include their own heads. The result of the Tiles renders into an HTML page with multiple heads.
My questions:
*
*How is the resulting page handled in IE and Chrome? [It renders an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Xna ModelBones - How to move them away from eachother? Hello I know that one can get absolute transforms of bones in a model.. But how to move them away (like inflating) ? I think to do so, I need to move them forward to their local positions but what I have is the absolute transfoms by
Model.CopyAbsoluteBoneTransfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What Is the Issue Suddently the Database Stopped Sending Emails Out After It is Upgraded from Oracle 10g to 11g R1? Hi Oracle Database Gurus,
What is the issue suddently the Database stopped sending Emails out after it is upgraded from Oracle 10g to 11g R1? I double check the email demon on the server it is working ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which of the following code blocks are more logical? Imagine a condintion should be true for a method to do its stuff. Which block represents the best approach (performance related and readability), or if not what is your suggestion?!
private void method()
{
if(!condition)
{
MessageBox.Show("ERROR!");
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone - Objective C - UIScrollView inside UITableView rendering funny I'm currently working on an iPhone app that's doing some strange things with a UIScrollView inside a UITableView. This is my first foray into iPhone dev, so I'm sure it's something silly I'm missing.
In each UITableViewCell I am putting in a bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: set up an action with a tab bar item - iphone I don't no if this is possible, but this there a way to treat a tab bar item click like a regular button click(action)? Here's the reason: I have a tab bar in my application, and for most of the tab bar items, I don't change the screen upon a touch, but I do change the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Windows Phone 7 swimming tiles effect I wonder how to achieve effect of swiming tiles (like in windows phone 7, when you start arrange start menu tiles - other ones swim softly and randomly).
Someone have any ideas?
A: Check out the HubTile implementation in the Windows Phone toolkit, full open source is up at http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XCode Update - iOS Link Error I just converted my project up from Xcode 3 to 4 and updated to the latest SDK. The project runs fine when I open it in XCode 3, but there are errors when I run in XCode 4.
I am getting the following link error:
Undefined symbols for architecture armv7:
"_objc_memmove_collectable",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting own EF 4.1 Code First classes to work with .NET Membership I am working on a simple web application that is built with EF 4.1 Code First and MVC3. My Domain Model sits in a project outside the MVC3 project.
I have gotten to the stage where my web application is more or less complete. However right now, my ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RabbitMQ + Node.JS Connection issue, frame size too large? I have been playing around with RabbitMQ with apache + php and wanted to see how it compared to Node.JS in performance.
Using the latest node.js (0.4.12) and amqp module (npm install amqp), i get a unknown exception connecting which it seems like it is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: BDD and ASP.NET MVC - Finding the Highway About half a year ago, I started digging into unit testing. I made my way into TDD (or what I thought it was) and now I want to develop a MVC Application behavior-driven.
The concept of acceptance testing (real end-to-end) is new to me, because my last project didn't run in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: does the existence of an asterisk in a select exclude other columns? This question is all about laziness... I'd like to do something like this:
select some_func(some_col), * from my_table
So that I don't have to do this:
select some_func(some_col), col_1, col_2... col_ad_infinitum from my_table
Is there any way to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Thread.interrupt() and java.io.InterruptedIOException I'm running Java 1.5 on Solaris 10.
My program is a standalone java program, using java concurrency package and log4j-1.2.12.jar to log certain information. primary logic is as below
ExecutorService executor = new AppThreadPoolExecutor(10, 10, 0L, TimeUnit.MILLI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Change column name by looking up I know that I can change a data.frame column name by:
colnames(df)[3] <- "newname"
But there might be cases where the column I want to change is not in the 3rd position. Is there a way to look up the column by name and change it? Like this...
colnames(df)[,"oldname"] <- "newname"
B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Reading a date string with a different time zone in javascript I have a datestring, pulled from an external source, that looks like this:
9/25/2011 4:38:40 PM
That source in the the PDT timezone.
I'd like to create a UTC date out of that information, using date.js. I'm using this code to parse it at present:
var da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP replace ereg(i)(_replace) globally I have 150+ PHP files I need to change (updating ereg to preg_match). I tired to update them manually but it takes for ever and I want to make sure all my replace will work the first time. What can I do to do this kind of operation?
Here's some example of my ereg(i)
if(eregi("^... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Navigation and URL rewriting in AJAX heavy page I have an ecommerce site, that isn't up to par for what we need. It was originally developed using one main page that contains user controls for item search and catagories navigation... I have a search ascx and a catagories.aspx, that talk to a restuls.ascx through def... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++: Should I initialize pointer members that are assigned to in the constructor body to NULL? Suppose I have:
// MyClass.h
class MyClass
{
public:
MyClass();
private:
Something *something_;
}
// MyClass.cpp
MyClass::MyClass()
{
something_ = new Something();
}
Should I initialize something_ to NULL ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Foreign Keys auto increment does not work in sqlite .NET provider I insert multiple data into a sqlite table and get always the same ID back. But the field Id is configured as PK + autoinc Id.
I use this as connection string:
public static void SetConnectionString(string dataDataAccessPath)
{
_co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ajax to ActionResult, getting Model I have an action (Index) that return a View with a concrete model.
Inside that view (Is a calendar) I have two buttons to change months.
When I click one of those I call back Index action to that will return the same view with a modified model.
$("#right").live("click", function (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send Method's name for elements I'm making method to make button easily. but I don't know how to send method's name.. which is a button have to be called when user press this button. Is there any way to send this name?
I want to know "???????????????????"part on my source below..
this source is part of "Suppo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Readonly text box not allowing menuitem shortcut I have a text box which is read only. I also have a tool strip menu item which has a short cut of Ctrl + R. When the focus is in the textbox the toolstrip menuitem shortcut no longer works.
I can intersect the key down event and check if the key was Ctrl + R, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Assigning issue with numpy structured arrays I was trying this simple line of assigning codes to a structured array in numpy, I am not quiet sure, but something wrong happens when I assign a matrix to a sub_array in a structured array I created as follows:
new_type = np.dtype('a3,(2,2)u2')
x = np.zeros(5,dtype=new_t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to display JLabel text for 1 second? I am wanting my error messages to display in a JLabel temporarily, then set the text back to "". But instead it looks like it just skips over setting the message. I've stepped through the code and found it's setting the text, but it isn't displaying for some reason. I've even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Minimum element in empty array If you have a function int getMin(int a[], int n) then what would you say is the cleanest solution to deal with the empty array case?
A: Assuming you're looking for the minimum value in the array how about:
if (!n)
throw YourPreferredException();
Or:
#include <limits>
//...
if (!n)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: restrict file upload selection to specific types Anyway to restrict the selection of file types via the <input type="file" /> element?
For instance, if I wanted only images types to be uploaded, I would restrict the possible selections to (image/jpg,image/gif,image/png), and the selection dialog would grey out files... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7575482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.