text stringlengths 8 267k | meta dict |
|---|---|
Q: java - is that possible to develop GPS software on PC i want to make an application for tablet PC / notebook i want to make software to acquire a location(longitude and latitude)for PC.
is that possible for me to develop GPS for PC with java programming language???
if yes, what software i need to download to develop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Try two download links without user interaction in Javascript or HTML5 My problem is as follows:
I serve a webpage to clients that contains two different download links to the same file. I want the client(!) to test both without manually clicking both links (I still present them both as a fail safe). Can this be don... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Random questions to display a download link The basic idea is to have several questions, but only 1 showing randomly on page load. Then whatever answer to that question, will display a download.
The questions load randomly, but when I put in the answer the download doesn't display. I thought I had all my code correc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JavaMail: Socket read timeout I'm using JavaMail and I want it to work through proxy for every threads (I have multithreading application). I'm using SMTPTransport.connect(Socket socket) for this.
Here is socket initialization:
socket = new Socket();
socket.setSoTimeout(10000);
socket.connect(new InetSocketAddress(s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simulate Atom based pc environment I need to run & test an application on Atom cpu based tablet PC. I tried remote debugging ability of VS2010 but it only handles exceptions.
My multi-threaded application's behaviors are totally different on that tablet PC. Is there any way to simulate Atom cpu -low speed, single co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Server aborts on trying to login using Openid using Omniauth, Rails 3 I am using omniauth for my Rails 3 / Ruby 1.9 app and it is working well for Twitter and Facebook. However, I am trying to add Google OpenId and I am facing an issue.
I have the following code in initializers/omniauth.rbfor Google OpenId:
Rails.ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A hyperlink on Crystal Reports should open another report and pick Session value I am using Visual Studio 2005 Professional Edition [ASP.NET with C#].
I have a Crystal Report with a column is shown as a hyperlink. On clicking any hyperlinked value of any row, another report should open but I have three issues to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PDO connect error on xampp for windows I'm new to PDO and am trying to use it on xampp for windows. I keep getting an error relating to the host and have tried changing 'localhost' to everything possible such as ip address and sockets but i believe i'm not doing it right. I've also tried changing the variable for pd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do i use regex in javascript to find three periods inside of a string? Ok, this is probably a simple regex but i am not familiar with them. I have a bunch of strings like this: '11.9.2.1 Fusion' or '11.9.1 Fusion' etc... All of them have ' Fusion' at the end of them. I am trying to find only the ones with thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: appcelerator titanium - edit button in tabgroup doesn't go away Using Titanium mobile sdk 1.7.2, I created a tabgroup with 11 tabs. The problem is when I open any of the tabs inside the 'more' tab, if the child window has a right navbar button, some times the 'edit' button of the 'more' tab doesn't go away..
my code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I connect to a sql database through sql developer? So, I have a .sql file that I have downloaded and was wondering how I connect to it via sql developer which I have also downloaded. Do I need to create a connection with hostname and port etc? can I just connect to a file manually/directly or something?
Also,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: What would be a viable design alternative to nesting an interface inside a concrete class? When I read about nesting an interface inside of a class, the intention appears to be to encapsulate the abstract behavior of the interface through composition. However, to me it makes more sense to create the interface outsid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UML Tool to reverse engineer object diagrams from java source? I have been playing around with a few various UML tools- Enterprise Architect, Visual Paradigm; in the end I found Intellij IDEA good enough for producing quick UML class diagrams.
However, I found creating UML object diagrams quite fiddly in EA and VP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Where to declare ViewControllers for a custom tab view? I'm trying to figure out how to use a custom tab view I found called JMTabView by Jason Morrissey on GitHub. (I tried asking him directly but got no response.)
I know how to programmatically create a UITabBarController and assign view controllers. What I can't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing Google Stock XML I've spent a silly amount of time trying to figure this out, but at this point it's driving me insane. I'm trying to parse the XML for Google's unofficial stock api like this: http://www.google.com/ig/api?stock=GOOG
I've never dealt with XML that uses only attributes, so I don't know if that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Calculate percentage of total columns based on total column in SSRS Matrix Looking to add a column in my SSRS Matrix which will give me the percentage from the total column in that row.
I'm using the following expression, but keep getting 100% for my percentages (I'm assuming this is because the total is evaluated l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Best way to transfer mixed unicode and single byte characters over boost::asio We're trying to use winapi widestring functions to retrieve registry information. We then need to transfer that information across the network.
LPWSTR PerfData = (LPWSTR) malloc(8192);
RegQueryValueEx(hSubKey, TEXT("DisplayName"), NULL, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: perforce on sourceforge Has anyone set up a perforce server on sourceforge.net? Is this even possible? Any tips appreciated! I'd like to investigate it and possibly move from Subversion.
A: You might look into http://info.perforce.com/FreeTrial_Cloud_Offer.html
A: No.
SourceForge isn't a free-for-all where you can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How long will a non-clearing notification stay? If my app fires a notification and marks it as non-clearing (i.e. tapping it does not remove it), what will result in the notification being removed?
Would I be right in assuming that if the app is shut down by the memory manager that this will cause the notification w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jstl el function error on websphere I am using a similar conditional check using JSTL in a jspx file
<jsp:root version="2.0"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<c:choose>
<c:when test="${fn:s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557713",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to access workitem link and attachment history I am working with TFS API and trying to create the history tab exactly same as what we see in TFS explorer.
So far I am able to figure our the changes to Fields via WorkItem > Revisions > Fields
I am not able to create the proper history for Links and Attachment cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to create a rounded image border? is it possible to do rounded CSS borders once the user has uploaded the image?
I want the css to make a rounded border like the image below:
I know you can do it with CSS3 but I am using aspdotnetstorefront and it forces IE7 mode.
So any css needs to work with IE7.. :(
A: Yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it a BAD idea to have a static connection and transaction for a Unit Test Fixture? I plan to create static private variables for SqlConnection and SqlTransaction which I plan to create in [ClassInitialize()] signed method and then dispose in [ClassCleanup] signed methods.
What I want to achieve is to share the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VS 2010 RDLC -Desginer We have a VS2008 solution with a project that had RDLC files. We generate them dynamically in code, and don't need the viewer.
However, when we converted to VS2010, when I open the .rdlc i don't get the designer, it just opens as XML. Even if I create a new rdlc from scratch in 2010, it opens ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Comet-style Long-Poll in AIR using URLStream I'm attempting to connect to an existing Comet-style long-poll service using an AIR app. The service expects a client to make a GET request with a Connection: Keep-Alive header. This request will remain open for long periods of time so that the server can push data throug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to align this button to the right of the screen? I've tried adding style: float: right to the button but it isn't working.
myapp.cards.home.add({
xtype: 'button',
id: 'previmagebutton',
// text: 'p',
iconCls: 'arrow_left',
iconMask: true,
style: 'float: right... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Submit form with Enter - Cannot select previously entered value with arrow keys + Enter I'm using a simple javascript to submit a form when the Enter key is pressed:
$("input").keypress(function (e) {
if (e.which == 13) {
$(this).closest("form").submit();
return false;
}
});
Now there is a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JPQL query: selecting a single Boolean which is the AND of two of object's fields Suppose that I have a JPA-annotated class called MyData with a primary identifier field (BigDecimal type called "primaryID"), and two Boolean fields called "fieldA" and "fieldB". What I want to do is create a JPA query that will selec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apply multiple Filtering to WPF datagrid using C# I have a datagrid which is boud to a database table. I could filter the datagrid using an ICollectionView using the code below:
lstOrdsRlsd = new ObservableCollection<OrdsRlsd>(GV.dbContext.OrdsRlsds);
view = CollectionViewSource.GetDefaultVi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to get database information to a program (windows and mac) I'm using delphi at the moment and have a program that connects to another program (a server) which has the mysql database on it and sends the data back to the client. I have a web server that has the server program and the database but my question ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Facebook App not working tihe facebook.php SDK Not sure why this isn't working, and was hoping someone might be able to point me in the right direction.
I have a facebook tab app that should display different content depending on whether a user "likes us or not."
require_once('src/facebook.php');
$app_id = "142214XX... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557769",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Analyzing text within a word document - How I can get it to ignore bookmarks? I have a VSTO add-in that is able to match against specific codes in the body of a document. The codes themselves are just strings that I syntactically match for validation.
My parsing using StoryRange works fine, but of course, I get the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cygwin Gcc - Access I'm currently on Windows Vista Basic.
I have recently started on Eclipse, and for that I was required to install cygwin.
After that I made an edit in the PATH environment variable in "My Computer>Properties>Advanced Settings". In order to check the functionality, I started cmd-prompt and types
C:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Zend_valdiate_alpha combined with special characters Zend_valdiate_alpha combined with special characters
Need to combine An alphanumeric character or underscore with string .
for example : need to add control for City name with
not necessary with zend_alpha it can be another way
any suggestions ??
A: I have exac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Qt4 child thread edit Gui on mainthread I have a tablewidget which needs to be appended with data from a child thread.
I get this error It is not safe to use pixmaps outside the GUI thread. In c# I used a Disptacher to tell the mainThread to append data in a gui object.
I assume there is some how something close to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557790",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best approach for inserting data into Excel (2007 and 2010) using C# My current scenario is that I have 20 Excel files that need to be populated by running multiple scripts. Currently this is a manual process. I am about to start a small project that should automate most if not all of the work.
Tools:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: django with nginx + uwsgi I am trying django on nginx + uwsgi.
It works very well (faster than apache mod_wsgi), but if I have more than 100 concurrent connexion ( ie : tested with ab -n 100000 -c 150 http://localhost:8081/ ),
I have some broken pipe on uwsgi logs :
nginx.conf :
user myuser;
worker_processes 8;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Is it possible to show an alertDialog is still showing when starting a child activity? Is it possible to show an alertDialog that is still showing when starting a child activity?
I am asynchronously fetching results from a server. The request is sent from activtiy A which then shows a progressDialog. When the first ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to locate Anonymous Types in source code files using Visual Studio During the process of obfuscating a .NET assembly (using Dotfuscator), I have found myself tweaking how things are renamed. This often involves looking at the assembly in ILDASM and tracing a Type back to the source code file that it is defined i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: NSKeyedUnarchiver - how to prevent a crash I guess this is very obvious, but I have a question about loading data. If have a file called library.dat which stores all kind of information about objects in the app. It's set up all nicely (in terms of the initWithCoder and encodeWithCoder methods etc.), but I was just w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can I use jquery to blank textarea fields or ajax like input boxes? I always use this snippet in my work:
<input type="text" onblur="if (this.value=='') { this.value='your email'; }" onfocus="if (this.value == 'your email') { this.value=''; }" value="your email" />
Basically it will show a text box with "your emai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UIAlertView, how to place a lot of buttons inside it? In UIAlertView, how can I place a lot of buttons inside it?
I've got an alert view and want to place ten buttons inside of it, but when in place, then they don't fit in the screen?
Moreover, how should I make the buttons look a little bit different, and how can I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any way to get a direct pointer to a Java array via JNI? I need to get a pointer containing the direct memory address of a Java array, via JNI, without invoking some sort of copying (ie direct access).
GetArrayElements returns a pointer to a copied array - I need to be able to modify an int[] on the Java la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Timer working in Console Application I'm trying to get a timer working in my c++ application.
I can define my timer:
#define IDT_TIMER WM_USER + 200
UINT Timeval;
UINT TimerID = 1;
UINT TimerMS = 20;
Start Stop Timer methods:
UINT NAHDPbx::StartTimer (UINT TimerID)
{
UINT TimerVal;
TimerVa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does it matter if this is used in a C++ setter? Suppose I have a c++ class with a private variable, x. For it's setter, is there any difference using this? Is there the potential for unwanted / unexpected behavior is I don't use this?
Setter:
void setX(double input)
{
x = input;
}
Setter using this:
void setX(d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Mysql: joining tables for translation records I have 2 tables with this configuration:
table language('id', 'language_name', 'iso_code')
table translation('id', 'language_id', 'translated_text')
In the first table I have records:
---------------------------------
| id | language_name | iso_code |
------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prevent duplicate user from being added to database I want to prevent the same user from being added to the database automatically. I want to check this against the FacebookID field/column set in my database. How would I do this? Below is the code:
using System;
using System.Collections.Generic;
using System.Linq;
u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-8"
} |
Q: Changing default route after a user is logged in How do I change the default route after a user is logged in? I'm using the CodeIgniter framework.
A: Rather than changing the default route, you could simply have your controller act differently if they are logged in. Something like:
class Welcome extends CI_Controll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you get the ouput from an EXEC statement into a variable (calling procedure on mysql linked server)? I am able to call a procedure on a linked server (MySQL) from Sql2k5. The procedure returns a single row, single column:
declare @Statement nvarchar(200)
set @Statement = 'call database.procedure(''some string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Serialize xml different elements to several properties in c# I have next xml:
<table-display-fields>
<field name="NAME/>
<field name="DESCRIPTION" />
</table-display-fields>
I deserealize that with next code:
[XmlArray("table-display-fields")]
[XmlArrayItem("field")]
public TableDisplayField[] TableDisplayField... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557832",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Facebook mobile web OAuth issue I'm seeing a problem requesting permissions with Facebook connect on iPhones. Everything had been working fine and then it just started out of nowhere. I can't seem to sort it out, so I posted it here to see if anyone's experiencing the same issues? I'm trying to log users into a mobi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Split with line with perl
Possible Duplicate:
Split line with perl
I have a line:
regizor: Betty Thomas Distribuţia: Sandra Bullock (Gwen Cummings) Viggo Mortensen (Eddie Boone) Dominic West (Jasper) rendező: David Mamet, Robert Elswit szereplő(k): Chiwetel Ejiofor (Mike Terry) Alice Braga (Sondra Terry) Emily Mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Is it possible to setup a generic stream/view for building releases from any baseline? Is there a way to set up a single stream/view that can be used to build releases from any existing baseline (new and old) on any stream of a ClearCase UCM project?
A: What I usually use is a base ClearCase dynamic view, in order... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TemplateField HeaderText ASP I want HeaderText to be displayed only when Edit Mode is active
<asp:TemplateField>
<EditItemTemplate>
<asp:FileUpload ID="fileUploadControl" runat="server" />
</EditItemTemplate>
</asp:TemplateField>
I don't have Insert Template And I want header text to be dis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: set auto increment initial value for mysql table I'm trying to create a table in my sql using PHP but I'm not sure how to set an initial value for the auto increment field.
This is what i have so far:
function create_table($db_host,$db_user,$db_pswrd,$db_name){
$connect = mysql_connect($db_host,$db_user,$db_pswrd) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Get the value of an AttachedProperty of a UI item not (yet) displayed I'm trying to do the following using MVVM, Binding and AttachedProperty
*
*Create a ViewObj (System.Windows.Controls.Control derived class)
*
*The ViewObj has 1 AttachedProperty named "Order" (OrderProperty) declared in a class named View.
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Coverting json array to js objects I have a json string like this
[ {
"name":"sourabh",
"userid":"soruabhbajaj",
"id":"11",
"has_profile_image":"0" },
{
"name":"sourabh",
"userid":"sourabhbajaj",
"id":"12",
"has_profile_image":"0"
}]
Now, I want to convert this json array to the string like this so that I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-8"
} |
Q: How to clear the static content cache of JRun How can I clear the cache used by JRun for static content?
We use LCDS (that runs on JRun), and serve some SWF files with it.
When replacing SWFs with newer versions, we would like the new versions of the SWFs to be served, without restarting JRun/LCDS. this is because w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails form_for with associations defined and multipart set to true not working So I have one form working just fine:
<%= form_for([@document, @comment]) do |f| %>
And then I have another form where I need to include a Carrierwave upload that is like this:
<%= form_for([@document, @comment]), :html => { :multipart =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: document.head, document.body to attach scripts I have often used, and seen recommended, dom-access structures like this for adding content to pages dynamically:
loader = document.createElement('script');
loader.src = "myurl.js";
document.getElementsByTagName('head')[0].appendChild(loader);
Now, by chance, I find th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Detecting if you are one kilometre from point of interest I have an interesting question. I have a latitude value of 51.445376 and a longitude value of -0.190624 (as an example, say this was recieved by an androids location listener). This particular location (and it's values) is a point of interest and it is stored... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: VB.NET open source ORM (Like Doctrine for PHP) What is the most doctrine-like ORM for VB.NET? With good documentation.
What are the most popular object relational mappers (ORMs) for VB.NET which is like Doctrine (PHP) and have a good extensive documentation?
NHibernate seems to be the main one.
A: look at Luna, an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Migrate commits from another branch, without common parent I've got a repository which was created simply by checking out upstream version at some point. I know the exact commit it came from.
Is there an easy way to merge the remaining commits now? How can I do "merge everything after xyz" disregarding missing commo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cant insert data into second database connection See the code below, there are two databases connections.
First it get the data from first connection and then insert into second database connection but it will not insert - I can an error saying Unknown column 'fullname' in 'field list'
When I tried SQL query manuall... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SocketException when creating new InternetExplorerDriver with Selenium 2.7.0 I'm trying to create a new instance of the Selenium InternetExplorerDriver to run a simple test and I'm receiving the following exception message:
SocketException occurred
No connection could be made because the target machine actively refu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how can i get the same effect comes by "ctrl + k" in stackoverflow question, in my html code? see by writting some code here we select that code & press ctrl + K and that code now prints in something different format.
printf("this is code");
see now i copy uper sentences code & paste it below in ctrl+ k mode
printf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: rtl issue on ie I am in development of hebrew website (with rtl direction of course). My page is working fine on firefox and chrome also safari. But i have no luck, my page is disorder when opening that on ie.
It is very helpful if any of you can give me suggestion or any other information to help me out from this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XmlSerializer with Specified pattern not working We're trying to consume a web service (Soap) and have generated an adapter for the schema using SvcUtil.exe. We have a field
recurrenceCount
which should not be provided unless it has a value and so we have added a property
recurrenceCountSpecified
as according... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Discover mobile devices using wifi I'm doing some work for my theses in networking, and have stumbled into a little problem. One of the first steps in the work I must do consists on having a computer working as an AP (I am using hostapd for this) and with it, detect all the devices in the room which currently have w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Right click on a menu item and show options I have menu ServerList, I am adding the menuItems dynamically using C# code. It reads the servers list from file and populate the menu items. I have added the right click options for each server. Edit & Delete.
All this is working fine. the problem is how do I read actual... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to bind CheckBoxFor I have a collection of "permissions". Each permission would have three properties: Id, Name, and HasPermission. So as an example, consider the following object:
public class AccessPerm
{
int PermId {get;set;}
string PermName {get;set}
bool HasPerm {get;set;}
}
public class UserProfile
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Overriding default template for specific nodes in a databound (XML/XPath) TreeView TL;DR up front: I would like to use a "default" HierarchicalDataTemplate for all but a specific few nodes in a WPF TreeView. These nodes come from an XMLDocument and are not fully known until runtime. Is there a way to do this?
At run... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio add in to provide solution statistics Years ago I used to have a visual studio plug in (2003 era) which produced a nice little report showing number of lines per code by solution, then project then class, etc.
I've been looking for something similar ever since with no joy. Can anyone recommend one?
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Fluent Automapper issue with tag creation POST EDITED - see edit below
I have a query about the FLuent Automapping which is used as part of the SHarp Architecture. Running one of the tests cases will generate a schema which I can use to create tables in my DB.
I'm developing a site with Posts, and Tags associated w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails 3 Active Admin add preset value to new record I have tried to do it from the controller and from the active admin override controller and I can't make it work.
A user creates a website.
current_user has an id attribute
website has an user_id attribute
So when I create a new website I want to add the current_us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Eclipse svn code changes notification plugin I was wondering - is there a plugin for eclipse that will notify all the contributors to a certain svn project that someone has commited in trunk with some message containing the names of the changed classes and can afterwards show a diff between the changed/unchanged ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting relative Tex-Master file in Latex I use Aquamacs and TeX Live 2009 to edit my LaTeX files. As my publications tend to get quite big, I want to structure the source folder containing all my LaTeX files. Like e.g.
*
*[bib]
*[images]
*[chapters]
*
*chapter1.tex
*chapter2.tex
*main.tex
One can define... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: I want to strip off everything but numbers, $, comma(,) I want to strip off everything but numbers, $, comma(,).
this only strip letters
string Cadena;
Cadena = tbpatronpos6.Text;
Cadena = Regex.Replace(Cadena, "([^0-9]|\\$|,)", "");
tbpatronpos6.Text = Cadena;
Why doesn't my regex ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Network Simulation Cradle with Linux Stack 2.6.35 I am struggling to integrate the network stack of Linux Kernel 2.6.35 with the Network Simulation Cradle (http://www.wand.net.nz/~stj2/nsc/).
Has anyone done it before ? If yes please reply.
I am getting an error saying : fatal error: when writing output to : Broken ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error Writing to Memory of Particular Data Member Okay, I have a struct, TextBlock, that simulates moving blocks of text around the screen. Here's the header:
struct TextBlock
{
RECT textArea;
RECT rectArea;
double whatBlock;
double x;
double y;
double angle;
double speed;
double widt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to prevent the extra view displaying an access code when using Google OAuth 2.0 I followed http://googlemac.blogspot.com/2011/05/ios-and-mac-sign-in-controllers.html to allow users to use Google to login to an iPhone app. After I tap "Allow access" button I get an extra screen that says, "Please copy this code, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: My tab menus exit the page width So I'm editting the CSS and the tab menu has a whitespace: nowrap property, which means it doesn't overlap but it ends up exiting the page. Setting the width of the tab menu itself does nothing even with !important and hierarchy CSS.
Looks like this
http://i.imgur.com/yxblJ.jpg
When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Module import Error Python I just installed lxml for parsing xml file in python. I am using TextMate as an IDE. Problem is that when I try to import lxml (from lxml import entree) then I get
ImportError:'No module named lxml'
But when I use Terminal then everything is fine
Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WCF Authentication with Credentials in Message's Body I am developing a webservice which must conform to a WSDL specification required by a given application, and in which every SOAP request carries a username and password in clear, plain text (I know that's a pretty bad idea, but that was not my design choice). Now... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Strategy for implementing multiple view controllers My application is for studying. It will have three screens, one for studying (reading), one for reviewing, and one which acts as the main menu (for managing documents and selecting study or review). The main menu will be the first screen when the app is loaded.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Massive performance degradation rendering menus with submenus Whenever I render a menu item, for each of the menu item I found from the database, I use it to check its sub-menus.
My Controller rendering the menu item and recursive function to detect its sub-menus are as follows
public function renderAction()
{
$... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to disable pruning with GWT compiler How do I disable pruning in the GWT compiler?
(I'm trying to use the GWT compiler to create a Javascript version of a some game logic written in Java)
Maybe pruning is not the issue? I'm testing with the following Java class and none of the fields or the string "test123" are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Explorer Panel in Java does anyone know a free windows explorer type of project written in java?
Basically i just want to implement a simple windows explorer but dont want to start from scratch with all the drag and drops, icon arrangements and so on.
Thanks
A: See File Browser GUI.
A: You can explore common nav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is Safari on iPad more efficient at rendering CSS gradients or images? I'm looking to use CSS gradients for an element of my web app that is drawn repetitively, as it would allow me more flexibility in dynamically changing its appearance. However, my question is whether gradients are more expensive for the browser t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: a strange use of typedef I have never see a grammar in c++ like this before:
typedef int (callback)(int);
what really does this really mean?I just find that if I create a statement
callback a;
It's effect is very very similar to a forward function declaration.
below is the code I had written
#include<cstdio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: WCF 3.5 UserNameAuthentication is not working? What I'm trying to do is to secure my service. To do this I'm using UserNameAuthentication. I did the binding and everything but some reason when I start the service I don't get the Validation prompt! Validate method is not triggered!
Here is my webConfig
I don't know ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to resize / rezoom webpage in ipad I have a website that uses jquery mobile for it's mobile version. I have a problem when I am changing it from portrait to landscape it zooms in correctly, but when I flip to portrait, it stays same zoom level and is wider then the view which breaks user experience.
I use regul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: grails - testing delete() I just wonder why one method to test delete() works as expected, but another does not?
In the following test case:
def cFound = new Client( ... ).save()
def cFoundId = cFound.id
cFound.delete()
assertEquals 0, Client.count()
... assertEquals 0, Client.count() passes, but .... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel VBA to insert line until text is matched I've got an Excel file that should have the text 'UNK' as the first 3 letters of cell A10 (I don't care what comes after the UNK). If it does NOT match this text, I need to insert a blank line at the top of the Excel file. For some reason my code is not evaluating corre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ method name as template parameter How do I make the method name (here some_method) a template parameter?
template<typename T>
void sv_set_helper(T& d, bpn::array const& v) {
to_sv(v, d.some_method());
}
A: There is no such thing as a 'template identifier parameter', so you can't pass names as parameters. You... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: What torch.exe compares in wixpdb files for files without version I am creating patches for my installation using "purely wix" method.
When I check created msp file against base msi file using Orca some of the changed files are not selected for patching. For example I have a txt file in which all 0 are replaced wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What changes do i need to make to a canvas application to support the Oct 1 deadline I have a canvas app presently using Koala 1.1.0 and the Javascript SDK. I a have been using the OAuth authentication for months now but when I try and use "ouath:true" in my javascript to display the friend picker I am getting this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7557996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parsing text with python and mapping to dictionary words I am trying to build a dictionary with frequent terms for my website. So basically I will retrieve a paragraph from my database and this paragraph most likely will contain terms which appear in the aforementioned dictionary. What I am looking for is a nice way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7558000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: sin_port returned in getaddrinfo wrong I am writing a server-client program and in the server I use getaddrinfo and getsockname on the server to get info about the local IP addr and locally bound port number .
Using this info, I start my client program and use the getaddrinfo and then just print out the returned val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7558001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does a C compiler compile to generic assembly? I'm in a Computer Organization class, and we're programming stuff in assembly. However, since this is a class, I'm not getting a broader sense of anything, or any real-world use. We're using Altera's Nios II Assembly language. The professor hasn't told us anything about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7558012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.