text stringlengths 8 267k | meta dict |
|---|---|
Q: Recommended sizes for Media Queries, to cover tablets phones laptops and desktops What are the best Media Query sizes to use to be sure you've targeted tablets, phones, laptops and desktops as best you can?
For example: The iPhone and Droid have a screen size of 320X480, therefore it would be good to make sure the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery mobile navigation obscuring "click" events to HTML image map I am using jQuery mobile for navigation, including back buttons, so the following is set:
$.mobile.page.prototype.options.addBackBtn = true;
In order to use jQuery mobile navigation to get to pages linked from an HTML image map, I was using the fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Assigning negative value to char Why does the following code print "?" ?
Also how can -1 be assigned to an unsigned char?
char test;
unsigned char testu; //isn't it supposed to hold values in range 0 - 255?
test = -1;
testu = -1;
cout<<"TEST CHAR = "<<test<<endl;
cout<<"TESTU CHAR = "<<testu<<endl;
A: When you as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: popviewcontroller is not calling viewWillappear I'm using the following code to display the previous view when a user is clicking on a button
[self.navigationController popViewControllerAnimated:YES];
In the previous view, I overwrite viewWillAppear to initialized few things. However, it seems like viewWillAppea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to query previous rows of a table in a select statement if the table is resorted by a non-primary key I have a table named Clients with three columns - RowID, ClientNumber, and ClientNote where RowID is the primary key. Each ClientNumber has multiple ClientNotes so that the data looks like this:
RowId ClientN... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sencha Touch Passcode Is there a control in Sencha Touch to show a passcode field like shown in picture below?
A: No theres no native component who does exactly this. But you can build it by yourself: its a form with 4 input fields and a dozen buttons. See documentation for more details: http://docs.sencha.com/tou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to remove the dots in eclipse projects? I am working on android projects using Eclipse IDE. Since two days my files are opening with all dots and symbols. Can you please tell us what is the reason for that? How to remove those symbols?
Thank you,
A: From the Window menu Prefrences + Editors + Text Editors + Un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NSNotification Scrolling - User vs Programmatic I have a program with an NSTextView (actually, a custom subclass) into which a lot of lines of data are likely to be programmatically inserted. (It reads a stream of serial data from a USB port.) I have a checkbox for enabling/disabling autoscrolling. I want to allow t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: cmd's character set C:\Users\Kolink>php -r "echo 'é';"
Ú
C:\Users\Kolink>echo é
é
As you can see, a program outputting an é results in a Ú, but using the echo command gives the desired character.
And, can I configure PHP (maybe some command at the start of the script) to output the correct character?
A: CMD.exe w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Does twilio-csharp work in Mono? Hello I've recently been messing around with Twilio and their official twilio-csharp library. I'm using it on mono 2.10.5(x86-64) on Linux and I'm having problems getting a basic example working.
My code:
var twilio = new TwilioRestClient("[accountsid]", "[authkey]");
var msg = twili... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: std::enable_if specialisation failing I've been messing around with enable_if, and I seem to have stumbled upon some inconsistent behaviour. This is in VS2010. I've reduced it to the following sample.
#include <type_traits>
using namespace std;
// enable_if in initial template definition
template <class T, class E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to pass 2 variables to Flash? First off, I'm using Flash CS5.5, AS3.
I'm trying to pass variables representing name and email address to a swf file. The swf takes a picture with the users webcam and sends the image to save.php for further processing. Currently I have text fields for the user to enter name and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PyGTK - webkit.WebView not working with Ubuntu 11.04 here is code snippets:
import gtk, webkit, os
w = gtk.Window()
w.set_title("Example Editor")
w.connect("destroy", gtk.main_quit)
w.resize(500, 500)
editor = webkit.WebView()
editor.load_html_string("<p>This is a <b>test</b>", "file:///")
editor.set_editable(True... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing application using ActivityInstrumentationcase2 when I am testing my application using ActivityInstrumentationcase2 on my emulator it is working fine, but when i run it on the device it is showing
java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
but I have giv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to implement a secured login/logout in Codeigniter? I am making a secured login for the system I am creating with CI since there should be an admin control of the system.
My approach was that I made a file on the application/core directory named MY_System.php where I got this line of code:
class MY_System extend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deploy JAX-WS web services on Tomcat i have jaxws hello world webservice.i want to deploy it to tomcat(as war file).any one please suggest me the best way to do so(explain elaborately). hello world jaxws in here
http://www.mkyong.com/webservices/jax-ws/jax-ws-hello-world-example-document-style/
and there is tutoria... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Downloading multiple files simultaneously in Android applications I'm writing an application for Android which let users browse a list of files and download them.
For every download, I created a thread and I download the file with an HttpURLConnection instance (by reading from the connection in a while loop).
This m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Retrieve the Current User name in sharepoint using webservices I have designed a infopath form ,in that form load option I need to retrieve the current USERNAME. Who logged in the site must retrieve using WebServices only.
So I did that using UserProfileServices.asmx service and GetProfileByName Method.
But I'm gett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java - Date format with Turkish or other months I want to format dates with month names with localized label in different languages including Turkish,
how do I set formatted labels for months
A: Use the SimpleDateFormat constructor taking a Locale.
SimpleDateFormat sdf = new SimpleDateFormat("dd MMMM yyyy", new Lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: I can't get Cucumber to work in Windows 7 I'm going through the Rails 3 in Action eBook and they've put a lot of emphasis on testing but I can't seem to get Cucumber to work for some reason.
I keep getting a Rake aborted! Stack level too deep error when I use to rake cucumber:ok command.
Anyone know what might be c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get the extension of an url I need to get the extension of the URL, for example(.xhtml) using jQuery?
A: jQuery doesn't come into play here.
If you can guarantee your URL ends with an extension...
var path = window.location.pathname,
ext = path.substr(path.lastIndexOf('.') + 1);
...or...
var ext = windo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to check that ads are being played, before the real video plays? I am working on a site, which airs ads before the real video plays.
The business requirement is that the ads should play before the video plays.
I am Using watir for testing. can you help me in this regard.
Thanks.
A: You may want to investigate ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Moving source files to a new project.. how to keep alive the SVN history of older committed versions in new project I am moving source files from a web app project in netbeans to a new maven web app project in netbeans. Since my project was under the subversion repositories I need to merge my new created project wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android java how to make a edit text transparent but the text still visible? How can i make a EditText box invisiable but the text still visiable
<EditText android:layout_height="wrap_content" android:visibility="invisible" android:text="TestttttttttttttttttTTTTTTTTTTTTTTTTTTTTTTTT" android:layout_width="wrap_conten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C++ strange behaviour Please check this code..
class ex
{
int i;
public:
ex(int ii = 0):i(ii){}
~ex(){cout<<"dest"<<endl;}
void show()
{
cout<<"show fun called"<<endl;
}
};
int main(int argc , char *argv[])
{
ex *ob = NULL;
ob->show();
return 0;
}
what hap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set time range in a day using UIDatePickerView I am using UIDatePickerView, just like we can set the date range using "maximumDate" and "minimumDate", is there any way to set time range in a day like from 9.00 am to 6.00 pm ?
A: Not really. minimumDate and maximumDate can include a time of day (NSDate is mor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564701",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: compile error on android In file included from
/home/imagetech/Android/android-ndk-r3/build/platforms/android-5/arch-arm/usr/include/stdio.h:55,
from test_cl.cpp:21:
/home/imagetech/Android/android-ndk-r3/build/platforms/android-5/arch-arm/usr/include/sys/types.h:88:
error: conflicting declaration 'typedef unsig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: c++ visual studio 2010 exe in resource get Rebased? Has anyone noticed that if you import an exe as resource it gets rebased and also seems that its PE header gets rebuilt?
There are times that this is irritating. Does anybody knows how to disable the rebasing!?
steps to reproduce in c++:
1) compile a hello world an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to check if one graphic is overlapping another? I've looked on Google and still couldn't find anything. I had an idea for a simple Snake type game or like a 'Coin Collection' game using 2D graphics, but if a coin is a graphic and the moving character is a graphic, how do I check if the character goes over the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rotation of a line based on fixed point in flex4
As in the figure i have three lines out of which line1 and line2 are fixed.
line3 is derived from line1 based on some angle say 70.I try to rotate the line3 but it deviate from the point x1 and x2.
I try the code like this
<s:Line xFrom="200" xTo="600" yFrom="310" yT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there something that starts a cron in java? I have some java written to do a very very simple operation. It needs to happen once every three hours and is not connected to any user action, it's just something that revolves every three hours.
For this reason, I'm having trouble troubleshooting. The operation isn't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Devise Sign in Sign Out link Error I followed the wiki to create the links but get this error: Granted I am fairly new to Rails and Devise
uninitialized constant ApplicationController::UserSession
Extracted source (around line #1):
1: <% if user_signed_in? %>
2: <li>
3: <%= link_to('Logout', destro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace string in between occurrences I have a string I want to display inside the uiwebview that may look like this:
"blah blah blah [IMG]you.png[/IMG] blah blah [IMG]me.png[/IMG]"
I want it replaced like this:
"blah blah blah <img src=\"you.png\"> blah blah <img src=\"me.png\">"
I can already get the string betw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: css progress bar I have a question in regards to a progress bar. I've read pretty much all the posts here but it appears I can't make any of them work in my scenario.
I have the following which shows numbers such as 50/500 where 50 is the actual number and 500 is the max.
$SQL = "SELECT * FROM db_ships WHERE ship_id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting User Details from MGTwitterEngine I am developing an application which has a Twitter login. I have integrated MGTwitterEngine for that, and everything is working fine.
My problem is that when the user logs in, I need some details -- whatever info is returned by MGTwitterEngine for that logged-in user.
When I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drupal 7 webform submission to remote MSSQL server When users fill up a form on my Drupal 7 site, I need that information to go into a remote MS SQL server db. It's essentially a reservation system, so they fill up details like date/time and name, and when they click submit, these fields need to be pushed into a rem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: problem of callback from C++ to JS I'm a newer to NPAPI. I come across one problem.
in my plugin, I need to return some data from C++ to JavaScript, yes,that's callback. but the callback thread and the main thread are separate threads. So I use NPN_PluginThreadAsyncCall, but the problem can not be solved also. When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing Arrow and Tab keys to Delphi Form in a DLL When a Delphi Form is declared and instantiated inside a DLL and the DLL loaded by the host application, Arrow and Tab keys are not passed across the Host/DLL boundary. This means that TEdit boxes and TMemo controls that may be used on the form will not respond to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Has anyone faced this error -- Out of memory (Needed 48984 bytes)? Has anyone faced this error: Out of memory (Needed 48984 bytes) before?
Here are the details:
I have a DLL file that contains some mathematical algorithms implemented. These algorithms need around 10k values for their calculation. So we have stored 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP file_get_contents changing file name I need to get a file from the server and I'm doing it like this:
file_get_contents($path.$fileName);
It works well with most of the files, until I started experiencing some issues in particular cases like the following:
Where the $path is a string like this: "/path/to/app/an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Will an image or document be cached when it is viewed through UIWebView in iOS? Typically when we load a image or document through a browser, the image gets cached in a temp folder. Is this the same case for Mobile safari and other browsers in MObile?
And if that is the case, if the phone is rooted, will user be ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get all elements with a given property? I'd like to get all <input /> elements with the placeholder property set, how could I do this without jquery? it should support IE6+, and other popular browsers.
A: Assuming all the fields have an ID
DEMO
var fieldsWithPlaceholder = [];
var inputs = document.getElement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VBA/javascript. script to automate browser actions First of all. I'm a dummy in programming.
I was trying to use JavaScript and VBA in Excel to automate some IE actions to go to some page and download Excel files from that page, as I need to do this everyday.
*
*The excel file to be downloaded does not have a lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check whether the wifi is connected to specific SSID I read this solution : How to check network connection enable or disable in WIFI and 3G(data plan) in mobile? .BUT, it just check whether wifi network is connected or not. How to check whether the wifi is connected to the specific SSID or not?
A: The co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: bar scanner for MonoTouch? I've been looking into making an iOS app which uses the camera to take a photograph of a barcode (such as code 39) and reading them in properly.
Was just looking at a few libraries, not sure if any work as I'd like but they're all using objective-c for iOS.
Thought maybe I should ask if th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When to return a pointer, pass a pointer as a parameter or not use them at all? I am currently experimenting with C, and I am having a really hard time understanding how to use pointers in functions. I understand what is happening when I initialize a pointer then dereferencing it, however, I get a little confused wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Email relaying with php | craigslist's anonymous email generator I wanted to create (or at least learn/know how it is done) application(or configuration?) that does similar to what craigslist does when people choose to hide their email with the "anonymous" option when making posts. I suspect that it is done with wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fadein Hover with fadeout to orginal state or onclick stay in hover state Hello I'm new to jQuery and Javascript!!
What I have to do is:
website with jquery and thumbnails.
When the page is loaded all the thumbnails have to be on 60% of opacity. As soon as you go with your mouse over a thumb it needs to fade to 100... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Use maven's "version" property in java and nsis code we require the software version number of a maven project both in the java code and in the NSIS installer script. Following the DRY principle, the version number should be stored in the maven pom only. What is the best way to get this version number in the Java co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add Welcome before username In moss 2007 the welcome control used to appear like "Welcome Username". But in sharepoint 2010 only user name appears in ribbon. How can I add "Welcome" before username in sharepoint 2010 welcome control.
A: You could try the reverse of what Wictor did in Having fun with the Shar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NIB in bundle is missing with name MainWindow-iPad I have a Tab bar application having 6 tabs. When I debug and runthe app, it crashes by giving following message in console :
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/priyac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Accessing a Javascript's Variables: Problem involving Javascript, JQuery, and PHP/MySQL & Scope I'm learning how to build a WordPress Google Map plugin. I've got a map with a form. The user makes selections on the form, data will be pulled from a MySQL database, and then markers will be added to the map.
I've got ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to check condition in first class on the string of second class? I want to check the conditon in my first class on the base of second class string.i mean i have a string mystr in second class which contain the value like "sarab".Now i want to use condition in first class that if mystr="anything..".But i am not a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I turn this into a module? In my Rails 3.1 app. Ive got a few controller's calling this block of code:
twitter_entertainment_users = Rails.cache.fetch('twitter_entertainment_users', :expires_in => 24.hours) do
begin
Timeout.timeout(10.seconds) do
Twitter.suggestions('entertainment')
puts "#{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problems using literals and codeblocks with c# to interact with powershell 2.0 If I try to run a Powershell Command through c# I get the following error:
"The term 'select' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: model association for a e-store app I'm developing an e-store app using ruby on rails and I'm a bit confused about the model associations. It would help me if someone could give me an idea about the tables and their associations. Here are the details:
Parent tables:
=>Categories,
occasions,
Hot Deals
Under Categorie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: linking php pages I have a php page that generates a pdf using mpdf (php to pdf).. So when the users goes to this page the pdf is generated.. I have decided that rather then output the pdf to the browser I will email it to them.. That is all fine and works great.. So at the end of the pdf generating code I put the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to install D.eval() library in flex 4.5 How to install D. eval() library in flex 4.5??
Any help appreciated
A: Close Flex, copy the swc into the libs folder, open flex import the package.
import r1.deval.D;
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7564789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Analytics and Google Map on Android I am displaying maps in my Android Application. Nowhere in my application I have explicitly invoked www.google-analytics.com, yet I see lots of request going to this website.This is causing my application to be very slow. Also many times I get errors like Unresolved host ww... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564791",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert IEnumerable to string[] i have an entity called Product
class Product
{
public Id { get; set; }
public Name { get; set; }
}
and i have a list of all products:
IEnumerable<Product> products = _productRepository.GetAll()
i want to get an array of strings from this list of products this array will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Using Sessions in an ASP.NET 4.0 Log-In Control I'm currently developing a website using Visual Studio 2010. As you all might know, creating a new website here automatically adds an Account folder which contains webpages like Login.aspx, etc. I am implementing this Login.aspx which contains the ASP.NET Login control... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Path helpers in a loop I have a Foo that :has_many Bars. GET Foo#index shows all of the Bars. View looks like this:
<% @foos.each do |foo| %>
<% foo.bars.each do |bar| %>
<%= link_to 'Download', download_bar_path %>
<%= link_to 'New', new_bar_path( :foo => foo.id ) %>
<% end %>
<% end %>
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Segmentation Fault when compiling in Red hat but working fine with ubuntu Here is a code that i am executing. its giving the desired output on ubuntu with NASM 2.08 but gives a segmentation fault when compiled with Red Hat 7.3 running NASM 0.98.22
Can someone help me by telling how i can make sure it runs fine on re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you suggest a regular expression to capture this text? Please suggest a regular expression to capture this from the input text below:
Match 0:"Modifications made by ... on2011/07/13 06:17:32 from database
keyword: zzzz--> mmmmmm
total_effort: --> 0.00
tmp__effort: --> 0
resolver"
Match 1:"Modifications made by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tab script/code what's a good tab script/code that will work in just about all browsers and wont conflict with jquery scripts. i was think about something like this
http://nontroppo.org/test/tab1.html
its pure css no jscript coding at all. one of that tabs will have an actually image gallery script on it another wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to check network connectivity in android with out using activity How to check network connectivity in android with out using activity, check it from business object package.
public class DataProviderFactory {
public IDataProvider getDataProvider()
{
//check for the internet connection, if exist
bool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Alternative way to build HTML data for an asynchronous request So there's typically 2 ways I'll return data for an AJAX request. Either as a data set or a ready-to-append DOM element.
1: Data set
echo json_encode(array(
'status'=>200,
'meta' => 'associated info',
'id'=> 123,
'data' => "<div>some stuf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Background gradient ends and doesn't continue I have a div under my body element. It has that background CSS:
-moz-linear-gradient(center top , #000000 0%, #30FF40 400px) repeat scroll 0 0 transparent
Inside of my div there is a datatable (a jqGrid table). I think after my page loads that grid table gets a space on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert html code in Android sqlite database I need a little help with an sqlite issue that I have.I'm trying to save json data which i get from the server and I get an exception trying to insert html code into the sqlite database.Here is the code I am usig for it and the exception :
CODE:
public boolean executeInser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to bypass Access-Control-Allow-Origin? I'm doing a ajax call to my own server on a platform which they set prevent these ajax calls (but I need it to fetch the data from my server to display retrieved data from my server's database).
My ajax script is working , it can send the data over to my server's php script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "234"
} |
Q: how do I write a `is_a_last_of_b(a, b)` to check whether `a` is the last child of `b` a = $('div:first');
b = $('div');
b may contain multiple DOM elements.
But a only contains 1 element.
How do I know if a is the last element of b?
I tried a == $('div:last'),but it's wrong after my test.
And if a is an element of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Concept of git tracking and git staging When you modify a file in your working directory, git tells you to use "git add" to stage.
When you add a new file to your working directory, git tells you to use "git add" to start tracking.
I am a bit confused about these 2 concepts because i assumed tracking a file for chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: ListView vs Nested Layout [Pros/Cons] I'm working on an android application and I have run into a decision that I can't decide on one way or another. I was hoping someone could shed some light on the common practices and any theory to back them.
Here's the issue:
I want to have a list of items with images and text l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JScrollPane not resizing when added to JPanel I cant get the scrollPane to resize correctly when added to the scrollPanel. I want the scrollPane to scale to the size of the scrollPanel. Any tips?
public class MTabbedPane_HomePanel extends JPanel {
private JPanel scrollPanel;
private JScrollPane scrollPane;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to draw outline in selected tableviewcell in iphone I want to outline Uitableview's selected cell
can anyone tell me how to do this ?
searched but nothing worked till now :(
should I do anything in rowdidselect method?
A: Try setting the allowsSelectionDuringEditing property on the UITableView to YES - the defa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to filter nsdictionary? I want to search data from nsdictionary based on different criteria.Say I have 4 keys and user can search based on any number of keys ex:4,3 etc..Ex:I have dictionary containing keys(First Name,Last Name,Address,Phone Number).Now user can search based on any key say First Name and Last Na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Three tables join in SQL I am newbie in SQL. I want to join three tables in SQL. Below is my query, please check and correct me where I am wrong -
Tables:
*
*CARD: ID,Code,Name,CC
*PGM: ID,Code
*PGMeCode: ID,Code,CC
Query:
Select *
FROM CARD
INNER JOIN PGMeCode PGMeCode.Code = CARD.Code AND PGMeCode.CC = CARD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android number format for germany is there a public algorithm that formats German phone numbers (mobile and landlines)? I saw there is a method to format phone numbers PhoneNumberUtils.getFormatTypeForLocale(Locale locale) but this is only for NANP countries, see here.
A: Maybe libphonenumber can do what you want?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Public event of base class in derived class I have a base-class (let it be SomeBaseClass) containing a public event (SomeEvent) and I have a derived-class in which I want to raise this event but I can't(!!) VS 2010 says me (in derived-class in line: base.SomeEvent != null) "The event 'SomeBaseClass.SomeEvent' can o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: windows service development c# I'm devloping one application which manages our custom made windows service. I'm using ServiceController object to get all services, but after that how I will differentiate which is our custom service and which is system service?
I am using following code:
ListViewItem datalist; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: creating jar file for application which in turn contains external jar file Hie all ,
I want to create an jar file for a java application, and i am able create the jar file for it properly.i followed the below link to create the jar file .enter link description here
But the problem what i am facing is that in my ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Address of a class member function I have a class called CSum which contains a static method who's identifier is:
static double fileProc(string myFile);
In my main function I would simply call it by
CSum::fileproc("foo.txt")
However, I will like to invoke pthreads on two separate files. Therefore I need to obt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing a dictionary as a function parameter and calling the function in Python In the following code, how do I pass the dictionary to func2. How should func2 be called?
def func2(a,**c):
if len(c) > 0:
print len(c)
print c
u={'a':1,'b':2}
func2(1,u)
A: Just as it accepts them:
func2(1,**u)
A: This won't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ping against IE - request timed out Where to look what could be a cause that "ping IP_address" returns "Request timed out", but opening "http://IP_address" in the Internet Explorer loads site correctly?
And in real impication: .NET making WebRequest to that IP works correctly on my machine, but does not work on clie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Write to different files using hadoop streaming I'm currently processing about 300 GB of log files on a 10 servers hadoop cluster. My data is being saved in folders named YYMMDD so each day can be accessed quickly.
My problem is that I just found out today that the timestamps I have in my log files are in DST (GMT -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In great need of help on finishing python program The "Component" argument for addCompnent() method is an instance of the component class. In short, Component has 2 arguments; "Component(self,name,methodCount)" As you see in my code, I added each Component to a list. What I need to do in validCount() is return the n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Slideshow using jquery I have a slideshow created by jQuery which slides from left to right by default. There is a next button which on click should slide the images from left to right and while clicking the previous button the images should slide from right to left.
Currently I have a code like :
jQuery('.slider'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Xml / Newtonsoft Json Object Seralization in wp7 Mango By using Newtonsoft json serializer and xml Serrializer how can i serialize and deserialize objects. Pls send me the method to acheve the same.
A: Your question is not 100% clear, you might want to elaborate.
You can deserialize an object to/from JSON using Js... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python equivalent to C strtod I am working on converting parts of a C++ program to Python, but I have some trouble replacing the C function strtod.
The strings I'm working on consists of simple mathmatical-ish equations, such as "KM/1000.0". The problem is that the both constants and numbers are mixed and I'm theref... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: how to make edit field accept number up to two decimal value in blackberry I want to accept a number in edit Field up to two decimal value(for example 123.34).I am using
new EditField(EditField.FILTER_REAL_NUMERIC);
and
new EditField(EditField.FILTER_INTEGER);
How can i do this
thank you
A: Extend NumericTextFilte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert double to fraction as string in C# I want to display double value as fraction in C#, how can I do this ?
Thanks
A: Try this Fraction class for C#.
/*
* Author: Syed Mehroz Alam
* Email: smehrozalam@yahoo.com
* URL: Programming Home "http://www.geocities.com/smehrozalam/"
* Date: 6/15/2004
* Time: 10:5... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Spring MVC 3.0 Model Attribute Inheritance I'm not sure if this is possible in Spring MVC 3.0, but I'm trying to create an annotated Controller that extends another Controller and whose model attributes depend on a model attribute set by the parent. For example:
@Controller
public abstract class ParentModel {
@... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to map relations in large data set "real-life" scenario For performance related tests, I'm trying to create a large amount of data (250k,500k,1mill records) and insert it into a DB, while emulating a "real-life" scenario.
I was wondering if there were studies/anyone knows how to best emulate a real-life scenario... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Scaling SQL Server on Amazon Web Services I currently have a web application that I would like to scale out using Amazon Web Services.
My web application specs:
C# ASP.NET SQL Server
I have a file storage for my users and have a SQL Server database for all my data. I want to scale on Amazon Web Services, using S3. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564918",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Android Geolocation unable to get your location error in simulator I tried following code for finding out location of user in titanium android
application.Ti.App.GeoApp = {};
Ti.Geolocation.preferredProvider = Titanium.Geolocation.PROVIDER_GPS;
Ti.Geolocation.purpose = "testing";
Titanium.Geolocation.accuracy = Tit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Schema name vs. table name - how to avoid conflicts? I've to solve a problem using Oracle database.
In Oracle database there are two schemas: XXX and YYY
The schema XXX contains a table named YYY (the same name as the second schema).
The schema YYY contains some sequences (let's say sequence ZZZ) and log tables, whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: @media queries : getting an error in W3C CSS Validation Service I tried to fix the width of wrapper div using @media queries according to different screen size
where i wrote these lines of code
@media screen and (min-width:768px) and (max-width:1023px) {
#wrapper {
width:625px;
padding-left: 50px;
margin:0 aut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Remove all .axd files from a webpage in ASP.NET 4.0 I have added Ajax ToolKit in my website, but due to heavy load on the page we want to remove the Ajax Tool Kit.
To remove I deleted the file from the bin folder, Removed the control tab from Tools.
Now when I run the website, I see certain Webresource.axd? and Sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Printing an array in java built using long[] I have tried to print my array using a few different methods and seem to have screwed it all up. I used to get something back out of it and now I can only get zero's back out. If anybody knew a way to print the array, easily, that would be great. Using Array.toString does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: c++: Getting a segfault when initialising a queue of pointers I am trying to implement the BFS algorithm described in CLRS. And have the following:
#include <iostream>
#include <list>
#include <queue>
#include <string>
#include <sstream>
using namespace std;
struct Node{
char colour;
int numNbr;
Node* pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7564942",
"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.