text stringlengths 8 267k | meta dict |
|---|---|
Q: Underlying Type of System.Data.Entity.DynamicProxies.Xyz_123 A link query returns a object of type: System.Data.Entity.DynamicProxies.Person_D82ABAE4682B2BBAB103FDB8673CE2...
I need the full type name of the underlying type - here Person object
(MyDomainModel.Person)
How can i get this?
Thanks
A: Use static method... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ListBox and ajax in ASP.NET mvc3 i have two Listboxes in mvc3
the first one have all products and the other is empty
i want to select some products from the first Listbox to the empty list box using Ajax
and when the user click the save button insert the selected items (in the second Listbox)
th database
i used this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TinyMce using ASP.NET MVC 3 With Razor View Engine - loads but does not display I have a simple form using the TinyMce jQuery plugin. When I load the page, TinyMce is supposed to replace my textarea with his editor, but this does not happen. Looking at the html generated, my textarea is there (visibility set to hidd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Magento Category Flat Data will not reindex error 'There was a problem with reindexing process.' I have recently moved a magento installation of version 1.5.0.1 to a live server however no products are showing on the front end. After inspecting the indexes i see that the Category Flat Data index is needs re-indexing... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Vertical scroll bar has wrong size after device rotation I have a function where I make a UIScrollView and one more function for resizing UIView if InterfaceOrientation did change, but after rotating my vertical scroll bar has 1/3 the size of the width of my ScrollView.
wrapper.frame = CGRectMake(0,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Configuring different physical DBs for same datasource in two JBoss applications I want to deploy the same Java EE enterprise application twice (under two different names)in a JBoss 6.0 server instance.
Both of these applications use the same logical datasource as configured in the server.
No problem so far.
Yet, I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strange behavior of default constructor in a class inherited from POD struct This question relates to this one.
As I mentioned in previous question I've decided to inherit my class from Win structure BITMAP to provide some extended functionality.
I've noticed interest detail in compiled program behavior. First I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: usage function doesn't work with getopt I have a problem with a usage function in Python. This is a part of my main function:
def main(argv):
try:
opts, args = getopt.getopt(argv, 'hi:o:tbpms:', ['help', 'input=', 'output='])
if not opts:
print 'No options supplied'
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: EJB 3 Static reference or Runtime lookup? I am calling an EJB from a POJO making a JNDI lookup.I want to know what is a better way to make the lookup and what are the implications of each way? I have 2 options
*
*In the static block of POJO ,make a static reference to an EJB and use this static reference in all o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Offline Access in PHP SDK w/ a valid accesstoken i asked a last time about offline access in PHP, and i was told that as long as i have a valid accessToken from a user, and if i have offline_access permission i can interact with the user WHILE he is logged out of facebook.
but to be honest i have NO idea why its fa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to convert Jackson to JDBC Recordset for SQL Server CRUD updates? I'm sucessfully sending JSON from the client using jQuery to the server which has Guice bindings to Jackson using bind:
bind(MessageBodyReader.class).to(JacksonJsonProvider.class);
bind(MessageBodyWriter.class).to(JacksonJsonP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wix Conditional WebApplicationExtension I'm trying to install an MVC website with my Wix installer. It should work for IIS 6 and IIS 7. If the target has IIS 6, I want to use
<iis:WebApplicationExtension
CheckPath="no"
Executable="[NETFRAMEWORK40INSTALLROOTDIR]aspnet_isapi.dll"
Verbs="GET,HEAD,POST"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android - Delay in closing activity with VideoView I have an Activity with a VideoView -- that loads a video from the web. However, when the user clicks the back button before the video has fully loaded, the screen goes black and several seconds pass before it returns to the previous activity. Is there a way to forc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Mp3 Play from Stream on C# I have music urls. Urls like http://site.com/audio.mp3 . I want play this file online, like youtube. Do you know a class or code can do this ?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7556672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What happens to the exectuting threads (other than Main thread) of an App when the user presses the "Home" button As far as I know the main thread or UI thread will be paused the moment user presses "Home" button as it comes under Activity Life cycle. But what happens to the other exectuting threads of an App when t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check the app version that was originally installed by the user in iOS I have an iOS app which originally had a version 1.0. I then released updated version 2.0.
Is it somehow possible in 3.0 update to check when a user originally installed the app in 1.0, or 2.0, or in 3.0?
I don't want to use preferences b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is checkbox in knockoutJs written to only when checked? I'm using a special extended version of Ko which uses a commit()/peek() type functions on a dependant observable so that I only save the data onto the form if it is committed to the database (on Ok) and reverted on cancel.
Problem I'm having is that when I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: AlarmManager battery and cpu usage My question refers to the usage of Alarm Manager with partial wake lock.
does canceling a repeating task and resetting it cost more cpu/memory/battery than the task assigned to the alarm manager? the task is to send a message to the server if no other messages have been sent in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does Slideshare.net site works in iPad Safari? I am right now exploring on opening Office documents in Mobile browsers but ensuring users do not have access to the file.
I saw that with out even downloading the pps files in to iPad, Slideshare is able to show presentation.
Example: Check this out:
http://www.sli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to run standard algorithms on vector in an elegant way? I know if I have a vector<int> I can run algorithms on it like so:
int max = *max_element(myints.begin(), myints.end());
But what if I have a vector<MyStruct> where one of the fields within the struct is an int. Is there a nice elegant way to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: actionscript 3 How to access 'this' in inline function I am trying to do something like:
String.prototype.print=function(){trace(??????)}
I can't for the life of me figure out a way to get at the string! Yes I know there are other ways to approach this etc. but...
A: Not sure what the problem is, using this works ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: asp.net code within aspx file between quotation marks doesn't work This is something simple I guess, but I'm stuck with this and can't work further.
I have the following code:
<asp:CheckBox ID="cbxLevel_s" runat="server" Text='<%=this.rs.get("workshop")%>' />
the method between Text= returns a string.
But what I ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: problem with linkify in android app I have a phone number in a text view (thats the only thing I have there). I am using :
Linkify.addLinks(textView, Linkify.ALL);
However, the phone number is not being recognized by linkify. The number is of the format:
(123) 456-7890. I have also tried 1234567890 and 123.456.78... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Capybara/selenium: wait for element to become hidden I need to wait for loading bar (div#loading) to disappear (become display: none) in a cucumber step. I'd expect the following to do the trick
find('#loading').should_not be_visible
But it doesn't seem to be waiting. Any ideas how to achieve that?
A: You will wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Troubleshoot Windows Binary When there is a GUI program not behaving as I expect it to in Linux I run it from the terminal so that I can see what errors are happening in the background, this helps in configuring the system and figuring out dependencies when the problem is not from the program but rather the system. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get number of values that only appear once in a column Firstly, if it is relevant, I'm using MySQL, though I assume a solution would work across DB products. My problem is thus:
I have a simple table with a single column. There are no constraints on the column. Within this column there is some simple data, e.g.
a
a
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Default label value for org.eclipse.swt.widgets.Text control; prevent databinding from persisting value Hy,
suppose a org.eclipse.swt.widgets.Text control connected via databinding to the model Person. The Text represents the surname of the person.
Now, everytime the model is changed, the value is updated, this is o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XSLT moving items inside other tag at the same level I have this problem for xslt:
This is the input file:
<root>
<header/>
<item/>
… other n-1 <item/>
<header/>
<item/>
… other m-1 <item/>
</root>
so header and item are at the same level (/root).
it must be converted in something like:
<root2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you start a background task in iOS? What I am trying to do is to let application run in the background when a user takes a specific action (pushes a button).
On blackberry, there is a method called application.requestbackgtound();
Is there something similar in iOS?
A: If your app has requested background act... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Azure Access Control with ASP.NET Membership I have an existing production application that uses vanilla ASP.Net Membership for authentication.
However, I'd like to provide other means of authentication as well as the current ASP.net membership system, such as Facebook.
The Windows Azure Access Control Ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Empty list of generic arguments Section 15.3 of the spec mentions the sequence < > with intervening whitespace is an allowed form. It indicates an empty list of generic arguments, which allows for the following oddity.
type A() = class end
let a = new A< >()
Why is this allowed? Since generic types can be instantia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does this MSDN CompareExchange sample not need a volatile read? I was looking for a thread-safe counter implementation using Interlocked that supported incrementing by arbitrary values, and found this sample straight from the Interlocked.CompareExchange documentation (slightly changed for simplicity):
private in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Make a div visible from an outside php I'm working on a log in session, and I want to display errors on the same page, for example - "Invalid Password" or "User does not exist".
Heres my code:
<?php
session_start();
mysql_connect('mysql.database.com','user','database')or die ('Connection Failed: '.mysql_error());
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Table spacing issue with IE9 please see http://www.cookandheat.com
I have an issue with the spacing of the 4 small images on the right.
All ok in Firefox,Chrome but spreading out with IE9..
CSS looks like this:
.fixedtable{
width: 90px;
overflow: hidden;
text-align: right;
vertical-align: top;
}
Thanks for any a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Displaying Spring MVC validation errors in Freemarker templates I'm trying to display a list of global validation errors in my freemarker template if a controller returns binding errors. I can display errors that are associated with a field, but I want to detect when an error has occurred within a specific bean and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android GPS Location Update Method does not work in OnCreate of Map activity I am facing a problem with the LocationManager class:
I want to update my current location in onCreate() of a class extended from MapActivity:
LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
MyLocationList... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP ftp_connect() fail Very simple problem but one which I am unable to solve. Why would I get a ftp_connect() fail?
$conn = ftp_connect("www.server.com");
Have tried SSL connect. Intrestingly I had no problem with this ftp_connect() on this server until recently when I started getting error messages. Not too sure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android getting best location I want the exact location of user. So I created two listeners as:
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, mGPSListener);
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, mNetworkListener);
I am listening for location upda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Apache Axis 1: WSDL2Java - overwrite generated sources? When running org.apache.axis.wsdl.WSDL2Java (Axis 1) against a recently changed wsdl, there is a failure because some sources already exist. Is there a way to force overwrite of existing classes? I don't see anything at http://axis.apache.org/axis/java/referenc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ctypes double array encodes wrong (1.35689368162e-312-->0.047098) I have a function that accepts a double array as first parameter
cb_type = CFUNCTYPE(c_void_p, c_double * 2, c_int, c_int)
def mycb(cube, ndim, nparams):
print "cube before", [v for v in cube]
for i in range(ndim):
cube[i] = cube[i] * ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to package chrome browser in a branded exe/dmg installer? I'm looking to create an exe (and maybe dmg) installer that simply opens an invisible browser window and navigates to a webpage. Preferably using Google Chrome's rendering/javascript engine. The idea is that I have a web app that I need to disguise as a w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: "Website: Not a valid URL format" when creating an application of twitter I'd like to create an application that can integrate with Twitter.
So I went to the website: https://dev.twitter.com/apps/new to create an application.
But the WebSite: field always failed. It said that "Website: Not a valid URL format".
I tri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to get value from a repeater in server side on button click <asp:Repeater ID="rptList" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td width="15%"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Group by the array value I'm using this code:
$permissions = array("canview", "canpostthreads", "canpostreplies", "canpostpolls", "all");
foreach($permissions as $permission) {
for ($i = 1; $i <= 5; $i++) {
$mode = $_POST['permission'][$i][$permission];
if($mode == 1)
echo "{$permission} = {$i}:::";... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails sprocket Error compiling CSS assest - CHOWN issue I've been breaking my head over this for over 2 days now, and can't seem to figure out where the problem is. This is mostly a problem related to my setup, but if anyone could help me find a solution to this problem, then I'll be his slave for eternity..!
I'm ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What does this perl line from a "bleached" file do? I have some perl files which have been "bleached" (don't know if it was from ACME::Bleach, or something similar). Not being very fluent in perl, I'd like to understand what the one-liner that starts the file does to decode the whitespace that follows:
$_=<<'';y;\r\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Faster Django Pagination App We use django-paging, which is a bit old. One of the big issues is that the app performs a count on the queryset returned by each view, which is slow and doesn't provide us any value in our case.
I see that django-pagination has more downloads/repo-watchers. I've also used the Django D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Show Different "Code/Words" Based on URL Referer I'm trying to have my website not show certain code if they come from certain URL's.
For example, Wikipedia don't like links to sites that have popups on them. So I need to not show the code for that referer.
I found the following code but it doesn't seem to work when... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with secondary delegate I have two UITableView, each one has a different delegate in the same UIViewController.
I'm trying to call control in another delegate, but it failed.
Brief:
mainViewController contains UITableView (with UITableViewDelegate and UITableViewDataSource) + UIImageView.
secondaryTable cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Double "Pipes" in title At my job today, I was made aware of a little error in our pages' titles. Our site is built using .jsp pages and for the titles of our product pages we use
In our admin (where we can set up the titles for each of the products), we would normally add in * anyone ever run into this issue befor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get rid of the decimal digits on the x axis I want to create a simple plot.
year=c(2005,2006,2007)
dat=c(1,2,3)
plot(year,dat)
How can I only show the axis as the year without decimal digits?
Thanks
A: Specify year as a date, using as.Date. Here is one way, using seq.Date:
year=seq(as.Date("2005/01/01"), b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connecting Redhat to SQL Server 2008 for Ruby on Rails I'm trying to connect Redhat Linux to a Microsoft SQL Server 2008. I already had trouble setting it up on windows (my test machine) but now I need to deploy it on the Linux machine where it will be in production.
So I've installed unixODBC and FreeTDS (with a lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Extended Selection in WPF Listbox we need to customise the Extended Selection in WPF ListBox.
What I need to do is be able to Drag and Select Multiple items(Similar to selecting in excel)
Extended selection in Listbox works fine but for that I have to hold the Shiftkey and drag.
Is there a way I can do the multiple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Group javascript xml output by letters or other attributes I have an xml document that looks something like this
<?xml version="1.0" encoding="UTF-8"?>
<mapPoints>
<annotation cat="A" title="123" type="pointer"/>
<annotation cat="A" title="333" type="pointer"/>
<annotation cat="B" title="555" type="pointer"/>
</map... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why bind a socket to an address? Before 'listen'ing on a socket I must first bind it to an address. Why? It seems to me that I shouldn't have to pick and should just listen to that port on all addresses. Even if I bind to 127.0.0.1 though, it seems I can still connect to that socket from a remote machine. What d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: A confusion in APUE2(about symbolic link in UNIX) The original text is below.It is in Section 4.22
The program in Figure 4.24 changes to a specific directory and then calls getcwd to print the working directory. If we run the program, we get
$ ./a.out
cwd = /var/spool/uucppublic
$ ls -l /usr/spool
lrwxrwxrwx 1 roo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Embedding YouTube Playlist using SWFObject.embedSWF() I'm trying to use YouTube's JavaScript API to embed a playlist to my Facebook app.
I tried using the standard code as shown by Google here to embed a simple video and it worked.
The code is:
function loadPlayer() {
// The video to load
var vid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adobe AIR history.back() doesnt work when calling from html javascript I'm working on air app (html/ajax/javascript). I need to make a navigation feature, like a browser back and forward button in a page with iframe, all pages are on same domain.
I have the following scenario:
Adobe AIR (version 2.7.1) app that load... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to connect an iphone app to a mysql database? I want the way with the fastest execution time. I'm not feeling comfortable of using web service because i need to create separate php pages and retrieve data as xml. If you think its good to use web service please tell me why. I want to code my data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: how to manage the ajax response in Dojo Ok, this may be a dumb question, but I can't find a way to solve my problem. I have this function:
function getActivityObj(sysId, date) {
var activityObj = dojo.xhrGet({
url: 'calendar/display-subactivities',
content: {'sysId': sysId, 'date': date},
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Round to sensible location in rails I'd like to round my floats to get rid of all trailing zeros after the decimal place in rails, inside a model method.
So, 30.0 becomes 30 but 10.5 stays 10.5.
I know about number_with_precision and it works if I do
include ActionView::Helpers::NumberHelper
in my model. Is thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I hide the row separators in a UITableView without hiding the group borders? I have a grouped UITableView, and I want to hide the lines between the rows. When I set the separatorColor to clearColor, the lines disappear; but so does the border around the groups. Is there a way for me to hide the lines betwe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: java draw polyline from an arraylist of points Is it possible to draw a polyline by passing the method an array list of Point values? something like this:
ArrayList<Point> projectilePoints=new ArrayList<Point>();
Projectile p = new Projectile(11, 17, 73, 37);
for (int i = 0; i < 11; i++) {
Point po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: upgrade blackberry database In my application, I have a database that gets written out to the sdcard. We have had to make a lot of big changes to the database, so when the user upgrades the application, is there a way to delete and reinstall the database, but only on upgrade?
A: The best way to do this is to have a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I serialize an javascript array into html attribute and fetch it back with jquery? var arr=[...];
var html = '<input attr="' + serialize(arr) + '">';
I can't simply join(' ') the arr as there may be white space or other special characters.
How do I do it properly?
A: You probably want .data, using which yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Unpivoting Data in SSIS I am attempting to normalize data using SSIS in the following format:
SerialNumber Date R01 R02 R03 R04
-------------------------------------------
1 9/25/2011 9 6 1 2
1 9/26/2011 4 1 3 5
2 9/25/2011 7 3 2 1
2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use StrongNameKeyPair with a password protected keyfile (pfx)? I am trying to programatically sign an assembly using a password protected keyfile (pfx). However when I try to use the StrongNameKeyPair I get the following exception.
Unable to obtain public key for StrongNameKeyPair.
at System.Reflection.Str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: No module named resource (installing Flask-Mail) A little new to python and the wonderful world of Flask.
I'm trying to install Flask-Mail (http://packages.python.org/flask-mail/) and coming up against a bit of a wall.
Using a virutalenv (on WINDOWS7) I can't get the flask-mail to install, each time I recieve 'No m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Set Jackson Timezone for Date deserialization I'm using Jackson (via Spring MVC Annotations) to deserialize a field into a java.util.Date from JSON. The POST looks like - {"enrollDate":"2011-09-28T00:00:00.000Z"}, but when the Object is created by Spring & Jackson it sets the date as "2011-09-27 20:00:00".
How can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "58"
} |
Q: MSPaint-like app writing. How to do BitBlt right? I'm writing now simple mspaint-like program in C++ using windows.h (GDI). For my program I need only pen tool. So, I need to store somewhere main window's picture (for ex. in memory HDC and HBITMAP) to draw it after in WM_PAINT message.
*
*When I first have to sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: change width of image on toggle I need to change the width of an image with in a toggled div. The problem is that I have multiple toggles on the page and that all the image width's change when I click on the toggle link and not just the on one within the div that I want
$('.toggle').click(function() {
$(this).prev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: import a dbf file in oracle I have snapshots of two oracle database tablespaces in amazon ec2.
Currently we are able to start a database against one of the tablespaces. Is there any way to import the second tablespace into the oracle with a separate user.
We tried creating a new tablespace pointing at the same dbf f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Open File in Directory from Webpage I am working on a file management application which parses excel files from the business and uploads the latest data to the database. Is it possible to link back to that file from the webpage so that when they open it to make changes they can save it without having to look up the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQLite: Optimize Count In my app I need to display search results. It fetches the first 250 results, but also needs to display the total number of results.
This slows everything down, because I can't just stop fetching results after the first 250 rows, I need to loop through them all (millions) just to count them.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Spring MVC 3 SimpleFormController In Spring 2.5; there is SimpleFormController having method
@Override
protected Object formBackingObject(HttpServletRequest request) throws Exception {
//logic for command object
}
What is its alternative in Spring mvc 3. I want to load command object in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Excel Interop Control Panel UI Elements Don't appear I created a document level addin to programatically create excel charts. I would like the user to be able to save the file as a different name , reopen the excel file at a later time and be able to manipulate the data using the UI controls I created in the contro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Own function (round for NSString) in NSPredicate I got problem with NSPredicate.
I got predicate:
NSPredicate* pr = [NSPredicate predicateWithFormat:@"FUNCTION('12.12345','round',3) = 12.123"];
and defined extension for NSString:
-(double) round:(NSNumber*) precision;
When I call manually:
NSLog(@"%f",[s round:3])... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to mix or append mp3 or wave files one after the other and save the resulting file onto the SD card in android? I have some mp3 files in my /res/raw folder. What I am doing is that, whenever a user clicks on a button a respective sound is played and after he is finished with pressing all the buttons, I want to c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Play Framework - Pagination using JPA It seems to be the following syntax didn't work. Do we have any alternate query for this?
JPA.em().createQuery(queryStr).getResultList().from(startAt).fetch(offset);
As we know, from() and fetch() will work only on JPAQueryobject and the above code will produce List instead of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem about double dispatch with fixed class
I have 3 classes: **Parent**, **Child1**, and **Child2**. Both Child1 & Child 2 extend Parent and they **cannot** be modified.
There is a class Action defined as follows:
public class Action {
public static void perform(Parent p) {
if (p instanceof Child1)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Jquery help adding ajax function to input field I am trying to add the same ajax call that gets triggered when a checkbox is changed to a input field.
Here is the function that I also want to add when the value of the input field is changed:
$('#left input:checkbox').change(function() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OpenCV - only working with g++. Not gcc or nvcc I have installed OpenCV.
I have been able to compile some code but sometimes it does not work. The example below does not work.
#include <iostream>
#include "opencv2/opencv.hpp"
#include "opencv2/gpu/gpu.hpp"
int main (int argc, char* argv[])
{
try
{
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ListPicker not working with MVVM Light I am building a simple windown phone 7 Page. I'm doing MVVM (using MVVM light) and binding a List<Category> type property to ListPicker. This property is defined in a view model named AddExpenseViewModel like below
public class AddExpenseViewModel:ViewModelBase
{
public Li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Linux wildcard not behaving correctly I will be running a list of processes that will have the following naming conventions:
a_feed
b_feed
c_feed
...
I have written a bash shell script that will allow me to filter out the processes with these naming patterns. Please look at the one line in my shell script below:
ps... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does ||= mean? I have a protected method in my application contoller
def current_user
@current_user ||= User.find_by_id(session[:user_id])
end
I was wondering what ||= means?
I've been trying to search and find out, but to no avail.
A: ||= is a ruby idiom. It means if @current_user is nil (or false) then t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is this "overlay" in a MinGW g++ executable? I have this C++ file:
#include <iostream>
int main(int argc, char *argv[]) {
std::cout << "Hello world!\n";
return 0;
}
After compiling with g++ I get a 913KiB big executable. I was astonished, because I thought g++ would be smart enough to not include any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calling a C/assembly function from OCaml more directly than with caml_c_call OCaml allows C functions to be called from OCaml programs, as long as the programmer follows the instructions in the "Interfacing C with OCaml" chapter of the manual.
When following these instructions, a call to a C function is translated b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: android - number formatting based on locale being a newbie to android I have some code combined as below in the aim of displaying a specific number 12345.66 differently according to the custom locale. However it just crashed my test application and I couldn't figure out why...Appreciate some help here. Thanks a lot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Return numbers from String input, Java I am kind of stumped here and have been trying to figure this out for some time. This is homework, although I want to learn to code regardless. Here I have to convert the string input by the user to uppercase letters, then those uppercase letters to numbers using the phone keyp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: emulator-arm.exe (Not Responding) Windows 7 x86 Currently I am using the following programs for Android development:
*
*JRE 6.27
*Eclipse Classic Indigo 3.71
*Android SDK revision 12
*Windows 7 Enterprise x86
*Dell Optiplex 780
*Processor Intel Q8400 2.66 GHz
*RAM 4 GB
AVD Settings
*
*Android 2.3.3: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is this plugin framework IoC/DI? I am working on a way for my ASP.NET C# application to allow plugins without recompiling the host application when new plugins are installed.
Here's my plugin loader class (based on tutorials found online.)
public class PluginLoader
{
public static IList<IPlugin> Load(string fold... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create a numeric navigation How do I create a menu which automatecaly names the involved page into a numeric navigation?
This would be my page tree:
News
|--- Newsarticle tom (contains 9 content elements)
|--- Skeet's stuff (contains 9 content elements)
|--- Jessicas 5 articles (contains 4 content elements)
In the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why doesn't my schemas update in my map? I have a map in Biztalk which has a source-schema and a target-schema and I right-click each one and point to the reference, but schemas does not update, even when I have added some fields for them and built them. Maybe I should place them in the GAC also or something?
A: D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NSCopying, copyWithZone and NSDictionary Firstly I would like confirmation that I have understood NSCopying correctly ...
In order to use a simple NSObject subclass as a key in an NSDictionary I must have it implement the NSCopying protocol. In the copied instance's copyWithZone method I must alloc/init a new instan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: pygame.MOUSEBUTTONDOWN pygame.VIDEORESIZE ERROR? I posted a similar question a few days ago but i have refined the problem:
when i have both MOUSEBUTTONDOWN and VIDEORESIZE in the same event loop it doent work... when i click the mouse down it also prints the statement which should only get printed when the MOUSEBUT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery: why doesn't jQuery.inArray() work?
As shown in the image, I just do inArray on an array, looking for a node. and $previously_selected_node and the item at index 37 in $shapes are the same object.... so... why isn't it working?
EDIT:
I found another way to search after one of the aswerers postedd his answer:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Merge 2 xcode projects I have 2 xcode projects and i want to merge them into 1. But i stucked at the Delegates as both project has their own delegates.
First project has a Splitview (Master/Detail) view and the second project is a carousel.
I want to replace the detail view with the carousel project. I already linke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Casting string encoding to UTF-8 I am building my own PHP framework, and I want on each request to convert each get and post variable to utf8 (I don't use other encodings anywhere in my current project) to prevent my projects from "Invalid Encoding Attack" or binary atack. I found utf8_encode in php.net, but it says... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create Round Telephone screen in Android? I am new to Android and I want to create a Round Telephone dialing screen?
so how to create a screen? Which component need to use LinearLayout/FrameLayout/RelativeLayout, and how to set images for all resolution?
A: If I were you I would look into creating your own c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: CAKeyframeAnimation and audio sync I am using CAKeyframeAnimation to perform few animations in my app. I would like to play an audio file (sometimes during and sometimes after) along with the animations. How can I achieve this? Is there a AnimationDidStopSelector for CAKeyframeAnimation or is there another approach ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7556955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.