text stringlengths 8 267k | meta dict |
|---|---|
Q: ID of newly created entity not getting written into view I have an action that basically does this:
public ViewResult Save(Foo postedFoo)
{
Foo foo;
if (postedFoo.Id == 0) //New foo; need to save for first time
{
foo = new Foo();
}
else //Already exists, need to load and update
{
foo =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What Makes a Binary Stream Special? std::fstream has the option to consider streams as binary, rather than textual. What's the difference?
As far as I know, it all depends on how the file is opened in other programs. If I write A to a binary stream, it'll just get converted to 01000001 (65, A's ASCII code) - the e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IE doesn't receive data via jQuery.post i`ve faced some strange problem. jQuery.post fails silently only in IE, other browsers get information.
jQuery.post(
'index.php',
{
'option' : 'com_expautos',
'controller': 'admanager',
//'dataType' : 'text',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the outcome of: var myvar1 = myvar2 = myvar3? I have seen in some nodejs scripts variables/objects being used like this:
var myvar1 = myvar2 = myvar3;
Why is this used and what does it mean?
A: It will evaluate to:
var myvar1 = myvar2 = myvar3;
var myvar1 = myvar3; // 'myvar2' has been set to 'myv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ajax CalendarExtender, How to get the date after i click on a button? I want to add add an Ajax CalendarExtender to my page. And then after selecting a date and clicking on a button I get the selected Day in a label.
I have a text box which is the target of the CalendarExtender
<asp:TextBox ID="DateText" runat="ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSF: NUMBER_OF_VIEWS_IN_SESSION and the back button I've got a memory problem in my application because of AJAX4JSF high memory consumption. So we have decided to set the NUMBER_OF_VIEWS_IN_SESSION to 1 and compromise the back button functionality.
However, after adding the following to the web.xml file, the back bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strings with formatting in SQL to Silverlight App need help I am moving all strings in my Silverlight app to the db, but am having some trouble keeping the formatting. Really the only issue is for paragraph sized strings, which in the app used to keep the paragraph sized right and spacing between paragraphs. Unfort... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PowerShell - List all SQL instances on my system? Is there a Powershell command to list all SQL instances on my system? (MS SQL 2008)
A: Import powershell sql server extensions:
Import-Module SqlServer
Then do these commands
Set-Location SQLSERVER:\SQL\localhost
Get-ChildItem
A: I found that (for me at least) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Using nHibernate in a windows service I want to use nHibernate in a windows service. If the systems boots, it might start my service before the database. In that case, configuration of nHibernate fails and the service crashes. So now I'm wondering how I can check if the database service has already been started. In ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Incrementing a foreach loop and only showing one child I'm creating a custom Google map that plots multiple markers.
View the link as it will make it easier to explain what is happening and what I want
If you click on each marker it shows company names that are grabbed from the child pages. At the moment it's showin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do we clear grid parameters in jqgrid? If I set the jqgrid parameters and then I again want to reset the parameters with new ones, without the old parameters being appended, how do I achieve that?
Lets say,for example:
Step 1: jQuery("#list").setGridParam({url:"testJsp.jsp",
mtype: "POST",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any webservice or Jquery plugin to get longitude and latitude Am trying to integrate goople map api with a jquery plugin- gMap.
It looks good and simple. It needs latitude and longitude to produce dynamic maps.
So am looking for any plugin or webservice which can give me the lat and long if i pass the addr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regular expression which accepts multiple email addresses seperated by comma in java In my project I give email address to send the mail in a text box. I can give either a single email address or a multiple email address separated by commas. Is there any regular expression for this situation. I used the following co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android crashes because of SharedPreferences I'm a beginner in Android, but I've done all the research I could on this problem and I just can't seem to find a way to solve it... The app worked fine until I decided to add the SharedPreferences in order to update some high scores. Now I can't seem to make it work, it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can show some item in my list when bind my list to a grid? I have a list that bound to a grid. My list items have properties like RunTimeState. The user can select each item in the grid and delete it. When an item is deleted its RunTimeState is set to Deleted. How can I get my grid to not show these deleted item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Traversing key/values of an NSDictionary, is enumerateKeysAndObjectsUsingBlock more efficient than looping keys and calling objectForkey:? I need to traverse all key/values pairs of a dictionary and do something with both fields. I am wondering what is more efficient, the traditional 'foreach key' approach or the bl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Using jQuery to send data from a multipart/form-data through ajax I've been working on this all day now, and I just can't get it working.
I have basically got a simple ajax request using the jQuery library and I want to send the data which I post through a mutlipart/form-data file input, however, I have tried everyt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iOS remove all Activity Indicators i have a Problem with my Activity Indicators. I have an Button which reload a Website and Display between a Activity Indicator. The Problem is if the User hits more than 1 Times on the Button it will rebuild a new Indicator and this Indicator freezes on the Screen all the Time.
Bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to manipulate user selected text using webdriver? Lets say i have the following snippet in my web page:
<p> This is some text </p>
I want WebDriver to select "some" in this text, as if the user selected it. How should i do this? I know how to get the <p>-element:
WebElement editable = getDriver().findElement(B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Confusion about data alignment suppose a struct defined like this:
struct S{
char a[3];
char b[3];
char c[3];
};
then what will be the output of printf("%d", sizeof(S)) ? On My compiler of Vc++ 2008 expression, the output is 9. And I got confused... I suppose the result be 12, but it is not. Shouldn't t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Matlab: add vector to matrix I have a 3XN matrix representing a list of 3D coordinates,something like
33 33 33 33 34 34 34 34 34 35 35
17 18 19 20 16 17 18 19 20 16 17
10 10 10 10 10 10 10 10 10 10 10
I want to shift all coor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: jQuery: animate text color i wanna dynamically change the link color within a hover event. I got the following code so far but it doesn´t work. Any suggestions why? In my oppinion it seems to be right...
$('.fadelink').hover(function(){
$(this).animate({
color: '#333'
}, 6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to get XElement value with spaces? I have following XElement:
<title>
<bold>Foo</bold>
<italic>Bar</italic>
</title>
When I get Value property it returns FooBar without space. How to fix it?
A: By definition, the Value of the <title> element is the concatenation of all text in this element. By default whit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: javascript time ticker I want to build a simple time ticker.
Basically I will have a global javascript variable injected from the server side that will represent in my business model a active task start time for an agent.
I want to show in a tag the digital time format between that global that date and now, but th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Window on top of other window I have two NSWindows ( independent windows,No Parent and Child relationship), One Window should always be on top of the other Window.When I minimize and again maximize the mainWindow,second window should be on top of it. I used the makeKeyAndOrderFront to keep the window on top of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio MVC Oddity? I've been stuck on the same DropDownList problem for days now while working on a MVC project in VS2010. The problem has become even more frustrating right now because when I copy all relevant code into a completely new, blank project, the second instance actually runs perfectly and produces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sed Extract version number from string (only version, without other numbers) I want to achieve the same as explained in sed: Extract version number from string, but taking into consideration only the first sequence of numbers or even safer, tell sed to keep only the sequence of numbers following the name of the comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In spring, how to pass objects from one bean to another bean? I have a row mapper class which implements RowMapper interface. I need to implement the mapRow method in that. The arguments of it are ResulSet and index. I would like to use this ResultSet object in another bean. How do i get it there ?
A: Set this obje... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does MySql Connector.Net work on my Windows box but not on Mono? I have installed Mono (version 2.10.2), mod_mono and have successfully tested it with both an index.html and an index.aspx echoing the date.
My problem is that I can't get MySQL to work with Mono;
I have downloaded the mysql-connector-net-6.4.3-noi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IE combo box usage, freezing on selection I'm using a combo box to select one of four school houses.
Once the selection has been made, I'm using jQuery to run a few functions.
One of the required functions utilises our VLE's own custom APIs. A limitation on the specific API I'm using means that we can only retrieve ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Searching for Number of Term Appearances in Mathematica I'm trying to search across a large array of textual files in Mathematica 8 (12k+). So far, I've been able to plot the sheer numbers of times that a word appears (i.e. the word "love" appears 5,000 times across those 12k files). However, I'm running into diffic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Problem with Default Document and IIS7.5/Windows 7 I'm having a problem with a component used in a Sitecore solution on our Windows 7 workstations that is driving me batty.
In short, the component in question adds <script> tags to the page that load supporting JavaScript files. The src attributes are set to somethin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pitch Shift with DirectSound How to do pitchshifting with DirectSound in C#? I didn't find anything useful in Google. SetFrequency isn't good for me, beacuse this changes also the speed of the sound. I don't want to create a wav file for each pitch, beacuse that would result in a very big software.
Thank You!
A: Ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Confused about the flow of MVC, PHP I have been trying to learn about MVC but i have a few questions about the flow of input to the controller and then to the model.
*
*Say a user goes to example.com and get to their home page. They then select the search.php link. How does the controller.php know that the user h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Jquery - apply method to all elements returned this is probably pretty straightforward but i'm struggling with it - I want to pause all videos I have running in a div container. At the moment, this is what I have:
// Doesn't work
$("#vid").find("video").get().pause();
// Works
$("#vid").find("video").get(0).pause();... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does cocoa limit the overall performance of a C/C++ openGL app? I'm looking to write a first OpenGL app on the Macintosh. Previously I've only done OpenGL programming in Windows. From what I've read, there are basically three choices:
Glut
Cocoa
Carbon
Glut is out of the question because I do not like the look of it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP memcache problem I am trying to set up memcache server on my localhost. Now before you jump on with me duplicates here is a list of them.
Duplicates:
*
*Memcache connects but doesn't respond to any command
*cannot store values into memcache
*Super strange PHP error
However none of them solves my problem or ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Facebook comment plugin for website and registered users I'm using Facebook registration for my website and I'm also using Facebook comments plugin on several pages on my website. I want to only allow registered users to comment. I don't want to simply hide the comments if they're not registered. I want them to see ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can get login status of facebook user through facebook application? I am developing a facebook application. In this application I want to get login status of my application users. If any user of my application leave my application without logout to my
application, then how can I track that user's Login status? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Default to PHP extension on web server Is there a way a .htaccess file can be written so that
http://www.mysite.com/about
loads about.php
and the same goes for any file?
I tried
RewriteEngine On
RewriteRule ^([0-9A-Za-z]+)$ $1.php
but it doesn't seem to work.
A: This is the most common rule (utilising mod_rewri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jqGrid filterToolbar passing _search:false on search I have been using jqGrid for a few months now, and I have made a handful of data grids with the filterToolbar option:
$('#grid_id').jqGrid('filterToolbar');
It has worked perfectly in the past (passing an array of POST variables to the php page defined in the url... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Read HTML File in iFrame and Converted to PDF Below is my HTML File code
<div>
<asp:Panel ID="pnlPDF" runat="Server">
<iframe type="application/pdf" src="up/waters 6form.pdf"
width="956" height="500"></iframe>
</asp:Panel>
</div>
In this HTML there is a Fill-able... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server: Can the same table exist in multiple schemas I thought that the schemas are namespace instances and hence the same table created under 2 different schemas are 2 different objects from the perspective of the database. One of my colleagues claim that schemas are nothing but a security container, hence we c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to make a PHP GET Request method like this "http://somesite.com/games/213123"? Hi guys I'm wondering how to make this kind of requests to the server I looked at many sites and they use this technique. For example gametrailers.com => http://www.gametrailers.com/video/level-six-diablo-iii/**721239**. I know that a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: move an existing frame to a new frame and create a new frame using old name i've used a frame in tcl named frame1 and others also.
Now i set a proc to destroy all these frames. what i want to do is to move these frames to a new variable and create new frames of same names.
my code looks like this:
proc DestroyAll {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Expandable List Android Black background while scrolling I'm struggling with the ExpandableList View in Android.
I'm using the code provided in the apis demo but I don't know how to solve my problem.
I got a white background on my view but when I'm scrolling the list it turns black..why?
I don't want this effect...... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP: literal \n rather than new line I have a php var which, when echoed, writes a JS function into the source of a page. The function loops through a CSV and so it has the following line within it:
$str="var lines = data.split('\n');";
At the present time, when echoed, I get this 'correct' JS written into the sour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Salseforce Apex classes support Apache axis Stub authentication We have converted a WSDL file of a Web serivice into the salesforce apex classes. The Web Service is receiving the authentication credentials in Apache axis Stub authentication username and password format.
Below is the sample Apache axis Stub authenti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Binding textbox to listbox twoway onewaytosource problems? I use the textName for the user to enter his name. Then typing, the textchanged event updates the listbox with the names that matchs with the input, then the user can click on an item (CompletedName in listbox), and when it happens I need the textbox updates... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Inline functions in debug build (Visual C++ 2008) The game engine I am working with is too slow in the debug build and is impossible to debug the game. One of the things I would like is for the compiler to inline small functions (especially in Vector/Matrix and container classes). This may or may not speed up the ga... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: erase from list using JSON reply, using jQuery I have this list of items, and I have a button at the bottom for deleting some of them according to their checkboxes.
I also got a response from a jQuery get() with the elements that represent the new list.
So, the rest need to be removed.
This is how my list is built :... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: asp.net to have console like window on the page I want to move my console application to asp.net website, where I show some action logs. What kind of control should I use for read-only actions logs? Let say on the button click I have a loop and I want to display actions from inside that loop. Should I use multiline ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot apply condition for looping through datarow I have apply looping in datarow and i need to check that if user role is admin, i need to apply some condition.
Now a user can have multiple roles say User Smith has 3 roles: Admin, Developer and Tester. Hence for smith the condition comes true. For Jane she has 4 r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running a javascript function when Facebook has finished loading I'm writing a facebook app that uses badgeville to award points to players. Sometimes points need to awarded when the page loads, however I also have some facebook social plugins on the page like a comment box and like button. It appears that because t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Transform a set of 2d images representing all dimensions of an object into a 3d model Given a set of 2d images that cover all dimensions of an object (e.g. a car and its roof/sides/front/read), how could I transform this into a 3d objdct?
Is there any libraries that could do this?
Thanks
A: These "2D images" are us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Not able to resolve a leak detected by leaks tool. Can i ignore it? I am not able to find a way to remove a leak detected by leaks tool.
Here is my problem...
I have a singleton object in my delegate which stores data on a global level. Now, I have a array of objects which i maintain here and add or modify it from c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server all Errors List? I am trying to capture a list of all SQL Server errors so my calling C# (.NET 4.0) can do different things based on what occurs.
I am trying to get all of the things in
http://technet.microsoft.com/en-us/library/cc645611.aspx
and all of the other related pages.
Obviously SQL Server has th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Get previous value of an entity I need to get previous value of an entity.
My requirement is like; I have some input fields in an edit page.
1 User can enter some values there and press save button at this time the user should be able to save it.
2 User can enter some values there and press Cancel button at this tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Php using str_replace for strange template string? Not sure if this is possible, but on my template I have this in the code:
Title Here<!--firstTitle-->
I am wondering if there is a way to use str_replace to output this:
<h2>Title Here</h2>
I can do one side, but not the other??
Thanks in advance!
A: No, not with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Core Data: Sorting results from an abstract entity based on entity type Is it possible to sort results from Core Data based on the entity type, but:
*
*without resorting to adding a fake attribute called something like entityType, and
*without adversely affecting performance by using KVO/KVC tricks such as intro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: link_to - make 2 object values become a link I need to make a link with the following: '@grp.id -- @grp.captain.name'
I tried the code below:
<%= link_to @grp.id--@grp.captain.name, :controller => :groups, :action => :edit_grp, :id => @grp.id %>
But am getting the following error message:
wrong number of arguments... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is 'object slice' needed in C++ ? Why it is allowed ? For more bugs? Why C++ standard allow object slice ?
Please don't explain c++ object slice concept to me as I knew that.
I am just wondering what's the intention behind this c++ feature(object slice) design ?
To get novice more bugs?
Wouldn't it be more typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: how to convert date and time to timeago format in jquery I am trying to display facebook newsfeed and displaying them on mobile web app. It is working fine but the problem is that it does not display time in timeago format(i.e. 2 days ago) on mobile web browser, on the other hand it does display properly on desktop.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SPListItem Save conflict while Update (1) var list1 = web.GetList("/lists/list1");
(2) var item1 = list1.GetItemById(10001);
(3) ...
take breakpoint here, open item with ID = 10001 for edit, change 'Title' fields and save it. Then run code follow:
(4)item1[SPBuiltInFieldId.Title] = "some text";
(5)item1.Update();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multiple AVPlayers with AVPlayerLayers disappears second time push viewcontroller I have a viewcontroller with four (4) AVPlayers (with AVPlayerLayers like APPLE example).
If I pop this viewcontroller and the push a new instance of the same type. I'm not able to play video in one or two AVPlayers. No errors and code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Problem: Tabbar Controller + Navigation Controller: Programmatically Hello guys,
I trying to make a app with tabbar controller and navigation controller.
But i get some problems... When i try to popViewController on my second view, the app crash.
Some one knows what's going on?
My Delegate:
// -- PranchetaAppDelega... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Padding on TableViewCell I want to add padding to my table view cells. Thought I could do something like this but that didnt work.
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell * cell = [tableView cellForRowAtIndexPath:indexPath];
return cell... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remote deploy the K2 package to K2 Server? I am working on a K2 project and use the TeamCity as Continuous Integration tool. I built a code to get the K2 project and create K2 deployment package, it is working fine. When I try to run the MSBuild to deploy the K2 deployment package to K2 server.
msbuild "Deplo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I hide the connect_widget_user_action class in like facebook button? I have a facebook like button in my web site in the home page.
The code for it is:
<div><iframe id="ifFacebook" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.MYSITE.com%2F&layout=standard&show_faces=false&... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516568",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: preg_match_all question about number I have this line:
preg_match_all("/<data_[0-9]>(.*?)<\/data_[0-9]>/",$xml_report,$xml);
and for some reason he takes me only the 10 first rows 0 until 9 but he didn't take the 10+ rows..
what I need to change the [0-9] ?
A: [0-9] selects only one occurrence of the numbers 0-9. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# unsafe context / pointer type of LPWStr suppose we have an unsafe context, because I want to have a pointer to a wchar_t parameter which is passed from a unmanaged C++ code. For example:
unsafe public(int* A, ???* B)
{
_myInt = A;
_myString = B;
}
Everything is fine with the int parameter, but what about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is Location.X equal to Top,Left in a ListBox? I am confused a little bit:
with a code like this: lets assume the list box is inside a panel and panel is inside a tableLayout and,etc...
Point myLocation = PointToClient(myListBox.Location);
so it returns a Point.X and Point.Y, but what are these X and Y ? are they ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: python -- trying to change the contents of a file i have a file named "hello.txt" which has the content "Hello,there!".
I want to remove the "," and "!" and then print the new content.
With the code i made ,the program runs without errors but ,it erases all the contents and leaves an empty file.
def myfunc(filename)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Coming from XNA, what is Corona's 'Update' mechanism (GameTime, gameTime)? I'm trying to get the hang of Corona SDK, I don't know much about the Lua language as I'm coming from a C# and XNA background. The question I have is I want to do some acceleration on an object when a touch arrow is touched on the screen.
In ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TSQL Sort Order Based On Order In The In Clasuse The scenario is first run an expensive sorted query and save the first 100,000 Primary Key (Int32) in a .NET List. Then retrieve detail 100 rows at a time from about a dozen tables. The format of of the detail query is:
select ... from DetailA where PK in (sort... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516589",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is Facebook Connect with the new JS SDK the way to go for an "App on Facebook"? Now that FBML is being deprecated, it seems to me that the new JS SDK and FB Connect will be sufficient to have an iframe app on FB. Is this understanding correct?
Previous answers to this question were based on FBML that still was suppo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Access SQL ignore warning about type conversion I want to insert some values from a table to another in a sql query.
But
My tables don't have the same format in the fields, for instance I ask to transfert a text to a numeric.
It asks me whether or not I want to change the fields type inside my destination table.
I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using shell script parameters with colons in awk I have a file which contains rows having this format:
2011/09/14 12:00:23.525 text
I wrote a shell script which searches for a given expression in text and sorts all the matching rows by day and time. At the end, I would like to discard the entries referring to an in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use COM interface without statically linking to library This may be a bit of a newbie question, but I just don't know! To use a function in a DLL that might not be present on the system I can use LoadLibrary and then GetProcAddress. But how can I do the same thing for a COM interface? I can include the header file f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Rails select_tag problem in show and index actions I have a select_tag to pick items from a list here's the code:
<%= select_tag "Drinks", options_for_select([ "Water", "Soda", "Beer" ], "Water") %>
After submiting "water" for exemple, it doesn't show up on the index and show views, on the "Drinks" section.
What am... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Map on Scalaz Validation failure import scalaz._
import Scalaz._
"abc".parseInt
This will return a Validation[NumberFormatException, Int].
Is there a way I can apply a function on the failure side (such as toString) to get a Validation[String, Int]?
A: There is a pair of methods <-: and :-> defined on MAB[M[_,_],... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Android Webview Image Render to Center rather than top-left corner The image render in webview starts from the top-left corner of my image which is larger than webview so its scrollable. I'd like to center the image rather than it rendering to top-left corner...is there any way to do this?
A: Instead of calling my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I disableDefaultUI in Google Maps API v2? I have a script that renders a Google maps and uses the API v2. I am trying to disable the Zoom functions/map type/etc but I can't seem to figure out where to instert disableDefaultUI
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot find -lsrc (gcc compilation failure) I am trying to build a C++ project in Netbeans and in the output console I am having the below compilation error that results from a missing file named -lsrc (marked with ###)
I am using Suse Linux (SLED 11) and does anyone know what package I should download in the packa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Merge git branch without moving branch pointer I'm looking for a solution to apply a feature branch to the development branch in git without actually moving the branch pointer. Essentially, I'd like to create a single commit off of the feature branch and make sure it's pointing at the originating branch somehow (men... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Knockout.js Templates Foreach - force complete re-render By default, KO "will only render the template for the new item and will insert it into the existing DOM".
Is there a way to disable this feature (as in, force KO to render all items anew)?
A: If you use jQuery.tmpl's native {{each koObservableArray()}} syntax... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: VB .Net Windows Service Console Messages I have a .Net Console application which displays thousands of lines on the console each minute. I want to convert it to a Windows Service, however I still need a way of viewing these messages. There are far too many messages to write them to the event log or even a standard... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: adjusting width of google plus 1 button I am trying to figure out how to modify the width of the Google plus 1 button...
In the documentation it says you can set a width.
Currently, when I examine the element using Firebug... it says the width is set to 90px, which I would like to set to 70px... is that possible?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Method and Constructor> both inherit from Member, both having a getExceptionTypes() method. How to avoid code duplication in this scenario? I have both these methods in my code base, which I'd like to merge in some way to avoid code duplication:
protected IJavaType[] getExceptionTypes(Method method) {
Class<?>[]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to separate the first string before @";" in an Array? I'd like to split a string in an array:
NSString *test = @"How are you;<random>[Good;Bad]";
NSArray *howareyou = [test componentsSeparatedByString:@";"]
But then it splits <random>[Good and Bad]...
I just want to split the How are you and <random>[Good;Bad]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can not enable "Continuously Updates Value" in NSTextView attributedString binding In Xcode 3 Interface Builder, when I check "Continuously Updates Value" in NSTextView attributedString binding, the checkbox is automatically unchecked.
Can "Continuously Updates Value" be enabled ? If so, what may cause this problem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to structure a table for fast search on a large number of columns I have a table with a large number of columns (~60), which will eventually have a large number of rows (~10 000), and I'm going to need to be able to search efficiently on several column values at once. I'm not sure whether the searches will be e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Confusion about C# Namespace Structure I am little confused about the structure of Namespace in C#
I'm new to C# and WPF
When i create a new project of WPF, by default these Namespaces are included at the top
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to design a db that has many 2 many relationship It's been a long time since I designed a database and just want to make sure that I am designing it properly.
I have an Entity which has a name and description.
This Entity can have many subEntities which are of type Entity.
So its like a recursive relationship. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Home automation in C#? I want to develop a small C# application to control various components of a central heating.
First, I would like to be able to retrieve values from a temperature sensor. I must not be the first C# developer looking to get this kind of stuff. I would then try to control thermostatic valves.
M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Alternatives to PL/SQL? Are there any other programming language/IDE combos that offer autocomplete and syntax validation for (Oracle) SQL queries? I'm looking for an alternative to PL/SQL. PL/SQL is mediocre at best but I haven't found anything that's even close to matching its productivity when writing Oracle data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: sequentially send stdout from subprocess.Popen via socket I know this has been anwered many times before, but I haven't find a working way to do this in my scenario... I hope you will help.
I want to output the data from stdout and/or stderr from a Popen call in real time, to a socket connection, not to stdout. So s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Hiding of anchor tags before the page load I have a list of permission URLs which are links to certain pages and this list comes from the database.
Now, there are jsp pages all across the application and they have certain links which display. These jsps are older jsps and the code is all there.
Right now, Based up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java: How to count the no. of lines in a file?
Possible Duplicate:
Number of lines in a file in Java
I need to count the number of lines of a txt file that is passed to java through a command line argument. I know how to read from a file but i am having trouble doing the rest. any help would be appreciated.
here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Listview DeleteButton onclick broken? I don't know if I'm just being stupid but I can't get bloody Javascript in my asp buttons onclick event :(
<asp:Button ID="DeleteButton" runat="server" CommandName="Delete" Text="Delete" onclick="Javascript:returnConf();" />
I've tried variations including things like:
<asp:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.