text stringlengths 8 267k | meta dict |
|---|---|
Q: Insert Unique Records, Update Duplicate I have two tables, TABLESource is where will i get the records to be inserted in TABLEDest,
now TABLESource can contain duplicate fields:
id code name
2 09 abc
3 10 uu
2 09 def
3 10 rr
2 09 gh
and i have to insert first all the unique records in the TABLEDe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it well-defined/legal to placement-new multiple times at the same address? (Note: this question was motivated by trying to come up with preprocessor hackery to generate a no-op allocation to answer this other question:
Macro that accept new object
...so bear that in mind!)
Here's a contrived class:
class foo {
pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What is the easy way to set all empty string textbox ("") to null value in Csharp winform? Suppose I don't want to use
if (string.IsNullOrEmpty(textbox1.Text))
{
textbox1.Text = null;
}
for every textbox controls in form, is there a easier way to do it ?
A: Simple way is Loop through every control, se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Need confirmation for contact form to show in same place, not a separate page? For example, if they didn't enter an email address, then this opens in a new window, but I need it in the same window. Current code:
// Error message displays if email is missing
if (!$from){$errorMes3="ERROR: You didn't enter your email ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any downloader library like Android Asynchronous Http Client [Java] I have found Android Asynchronous Http Client library from google: http://loopj.com/android-async-http/
This is awesome lib for Android. But it's not have download function. Is there any lib which support async download function.
A: You ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Permission denied in tmp I just deployed a Rails 3 app with Ruby 1.9.2. I have been getting several errors.
*
*application.css wasn't compiled. so I set pre compilation in production.rb to false;
*Then I got: cannot generate tempfile, so I did rake tmp:clear;
*And now I get ActionView::Template::Error (Permissi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Issue re-deploying updated default parameters in SSRS report I have an SSRS (SQL Server 2008 R2) report with several parameters. I'm having an issue where one of the parameters is not consistently choosing its default value when the report is first loaded.
Specifically, it works fine in BIDS but works intermittentl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Using $_POST in While PHP Question I'm trying get some information via $_POST in PHP, basically at the moment i'm using this:
$item_name1 = $_POST['item_name1'];
$item_name2 = $_POST['item_name2'];
$item_name3 = $_POST['item_name3'];
$item_name4 = $_POST['item_name4'];
I want to insert each of the item names in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does media queries work for all smart phones I am trying to develop a mobile application, which should run on all smartphones, tablets and some feature phones. I have used CSS3 media queries before and tested in Android and iOS, where it works like a charm. But what about Nokia and Bada OS, does this work ?
A: You ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: adding elements to including file via XInclude Can I somehow add elements to included file using XPointer or XPath or anything else?
Main file
<doc xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="field.xml" />
</doc>
field.xml
<field>
<title>address</title>
<type>string</type>
</field>
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get information about events from Google calendar on Java, Android? I need get information about events from calendar of my Android device, but I don't know how to do it. Give me an example please or give me a advice.
A: You should use oAuth : http://code.google.com/intl/fr-FR/apis/accounts/docs/OAuth2ForDe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert multiple photos into a Tumblr post and turn it into an image slideshow I'm trying to have it so I can add x amount of photos to a Tumblr post and then turn it into a custom image slideshow using jQuery cycle. Is there any way to add x amount of photos to a post and have it spit the images out in a consistent ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why are predicate and class distinct in rdf? In RDF, a class is distinguished from a predicate or attribute. What is the benefit of doing this versus just having one thing, a class, that can appear as subject, predicate or object in any triple?
Edit: for example:
1 book has chapters
2 book1 is book
3 chapter1 is cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to solve this problem with calendar alarm? I am trying to make alarm ring when the time of calendar event is reached. I use to set AlertDialog when the alarm time is reached. But event when the application is closed, i need to notify the user through Alert Dialog. I have started the intent to the AlarmReceiver w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Merging two dataset I have one "big" TOracleDataSet which I can't change 'cause it's using in many different parts of huge project. I want to add just one record to this dataset for using in another grid. The solve way I see it is create another one oracle data set which will combine wanted record and another ones f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pyQt signals/slots with QtDesigner I'm trying to write a program that will interact with QGraphicsView. I want to gather mouse and keyboard events when the happen in the QGraphicsView. For example, if the user clicks on the QGraphicsView widget I will get the mouse position, something like that. I can hard code it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I redirect everything to a single controller? I have three specific routes:
routes.MapRoute(
"Home Page",
"",
new { controller = "Home", action = "Index" }
);
routes.MapRoute(
"Admin Section",
"AdminSection/{action}/{id}",
new { controller = "AdminSe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Big Omega Notation. Am I doing this right? If I have some algorithm that runs at best n time and at worst n^2 time, is it fair to say that the algorithm is Big Omega (n)?
Does this mean that the algorithm will run at least n (time)?
I am just not sure if I have the right idea here.
Thanks.
A: For Big Oh, you will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Manipulate the form field values before rendering in django admin I have to actually reset the values of the fields of a model Form, every time the form is rendered. So, lets say everytime a user fills the form, I store the values to a different table and next time when the form is rendered the values are reset to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Threading: Pause Main Thread until Sub Thread is closed. My problem is simple. I have an application, in which I create and call a sub thread. My sub thread launches a notepad, where a user inputs some values and then closes it. My application then takes the information from the notepad for additional processing.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ternary Search Tree in C, Pointer to a Pointer to a struct problem I'm trying to build a ternary search tree for a school project. As far as I can tell, my code looks okay.
But, the leaf nodes of the original root function are not being initialized when I use malloc.
So every string comparison beyond the first one ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need to read the previous node's child values to format the current node's value using xsl? I need to use the formats tag while displaying the contents of rowdata, in the rowdata tags.
the xml is follows: "temp.xml"
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="Temp.xsl"?>
<ALL_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is their any way out to make the cylinder guage fusion chart horizontally aligned? I am using the cylinder gauge fusion chart shown in this example link http://www.fusioncharts.com/widgets/Gallery/Cylinder1.html , can we make this cylinder look horizontal by any means, the xml attributes are specified in the followi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I can't get this simple regex to work correctly I'm doing this in Javascript
Here's my string: 09.22.2011-23.21-west-day
Here's what I'd like to pull out of it: 23.21
Here's my expression: /-[0-9]*\.[0-9]*/
I get -23.21 so I'd have to run a a replace method after this to remove the "-". Is there a way to leave out t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ListView android:empty in code When creating a custom ListView in XML, you can add the android:id/empty tag to the ID to make that view show when the ListView is empty; as mentioned in this Android documentation. I'm just wondering, does anyone know how to do the equivalent dynamically in code?
UPDATE This is what I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do Groovy Scripts interact with propertyMissing? I writing a DSL that executes as a Script; it has various classes for various bits of syntax. e.g., for the "foo" keyword that takes a closure, I have a FooSyntax class and evaluate the closure "with" an instance of that syntax. This works fine, e.g.
bar = thing {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: MySQL - Index to speed up queries with aggregate functions As I understand, an index on a typical database table will provide a more efficient row look up. Does a similar construct exist for making queries with aggregate functions more efficient?
As an example, let's say I have a table like below with a large numbe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# List hides properties?
Possible Duplicate:
How does List<T> make IsReadOnly private when IsReadOnly is an interface member?
Okay, this is driving me nuts. List<T> implements IList<T>. However,
IList<int> list = new List<int>();
bool b = list.IsReadOnly;
bool c = ((List<int>)list).IsReadOnly; // Error
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Magento category dropdown menu - sub menu to be in 2 columns I using Magento Community Edition v1.5.
By default all sub categories appear one after the other (1 column) under main category on mouse over e.g Main category is Apparel, Sub category will display Shirts, Pants etc in 1 column.
I would like to display su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Grails Multi-tenant & Spring Security Core plugins I am using Grails multi-tenant plugin with single-tenant mode. I have used spring security core plugin for authentication. I have used domain name resolver. User table is not common in default database. Every tenant db has it's own user tables. It works fine except ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mongoose / mongodb date save castError I am getting this error when just getting a document from the database and then immediately saving it. It is accepted on the initial insert though, and looks like the date fields are empty even though they are required.
{ stack: [Getter/Setter],
message: 'Cast to date fail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best way to log Core Data NSManagedObject IDs on creation? I've dealt with a couple errors recently in which I will get an exception that mentions a managed object by URI. The URI is somewhat helpful. It looks kind of like x-coredata://blahblahblahblahblah/EntityName/p22. At least I can tell what type of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Check string for substring with "Wild Character" Is it possible to check a string for a substring plus a wild character?
I am checking a url for a substring and I know there is the substring function but I am wondering if you can use the * character? Below is my function so far.
function press_getUrl(){
$valid = t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Check next string in the list Trying to figure out how to check the next string vs. the current string in a loop (pseudo code):
string currentName = string.Empty;
for(int i=0; i < SomeList.Count; i++)
{
currentName = SomeList[i].Name;
//do some other logic here
if(string.Compare(SomeList[i].Name, Some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DB2: How to print few columns with conversion along with all other columns without having to write all the names of the columns? I have a table having 10 columns, with id, f_name, l_name ..... low_range, high_range, ...
I want to write a query which will print all my table, but just this low_range and high_range to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Axis2 : How AxisServlet is invoking the skelton part? I am developing webservices using Apache Axis2 (1.5) version .
I have developed a war file for webservice client .
And Deployed my Webservice in (.aar) format into axis2.war services directory.
This is working fine , but i could not understand the flow how my s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OutOfMemoryError : When receiving XML response of 2.3 MB Following is simple method that connects to web service and receives the XML response from server which is about 2.3MB and I'm getting OutOfMemoryError (I've referred this) but not being able to find my way, stuck badly
public synchronized String getUpdates(b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why Ruby array[array.length, count] returns []?
Possible Duplicate:
Is there some kind of unseen Array termination in Ruby?
Array slicing in Ruby: looking for explanation for illogical behaviour (taken from Rubykoans.com)
a = %w[a b c]
a[3, 1] # => []
a[4, 1] # => nil
Could anyone explain why a[3, 1] retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Button keeps force closing on me? My imageview thing keeps closing on me.
XML code: this is my code that places the button
<Button
android:id="@+id/sound"
android:src="@drawable/test"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
Java code: where I have the the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to retrieve the particular X th position of node using xpath? This is my Xml Document.
<w:document>
<w:body>
<w:p>para1</w:p>
<w:p>para2</w:p>
<w:p>para3</w:p>
<w:p>para4</w:p>
<w:p>para5</w:p>
<w:p>para6</w:p>
<w:p>para7</w:p>
<w:p>para8</w:p>
<w:p>para9</w:p>
<w:p>para10</w:p>
</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detecting when FLVPlayback source is bad or not found I'm totally at a loss as to how to detect if my instance of FLVPlayback component has been handed a source that either doesn't exist or it can't play for one reason or another.
I've attached handlers to every event I can think of... specifically...
videoP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I escape HTML entities in XML so that they are displayed literally on a web page? I have an XML descriptor file containing attribute specifications such as:
<attribute
name="abc"
description="xyz e.g. <br> with a new line">
...
</attribute>
These XML descriptors are parsed by a groovy script to produc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: joomla 1.7 - how to create rss feed for my content? is it possible to create the feed for joomla website? what is the way??
the joomla doc page dont hv the related page yet
http://docs.joomla.org/How_to_create_component_feeds
what i mean is creating the rss using the contents of my joomla webiste but not displaying ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Programmatically alignment? I've attached one image. In that image one checkbox and spinner are in undefined position. I'm using Absolute layout but also, i can't fix that to wherever. So, i need to set those by programmatically. Is this possible? Anyone help me. Thanks in Advance.
A: Praveen It would be helpful if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Questions regarding C3P0 Pooled Data Source I tried to use Pooled Data source to log information regarding database connection pool i.e, Max pool size, current no. of connections in use, busy connection etc. I am using C3P0Registry to get pooled data source.
PooledDataSource dataSource =null;
try{
C3P0R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Lazy loading reference implementation Being impressed by Guava's computing map feature, I'm searching for a sort of "computing reference" - a lazy loading reference implementation that parallel's Guava's ease of use, by which I mean it handles all locking, loading, and exception handling under the hood, only exposin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: sha1 Hash Not working? C# I am just messing around with simple hashing because I am new to the idea, and I have the following:
public string Password {get;set;}
public static string Hash(string password)
{
return FormsAuthentication.HashPasswordForStoringInConfigFile(password, "sha1");
}
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get animated zooming and pan with openlayers? Like website:http://www.tomtom.com/livetraffic/
When I try pan or zoom on the above site, feels very good similar to Google map, it's very smoothly for this user experience.
my question is how I can implement this effect with openlayers respectively for pan and zo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Prolog: In a list, finding the element after a given element I recently began programming in Prolog and am currently trying to create rules that find the element after a given element in a list. For example, I want find(2,X,[1,2,3,4]). to result in 3.
My attempt so far:
find(X,Y,[X,Y|Tail]):-
!.
find(X,Y,[_|Tail]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What's stored queries in Lotus Notes? Using Design Synopsis, I found 'Stored Queries' element type but I can not find any ways to view, edit or delete these 'stored queries'. What's it? How to take control of this type of design element?
A: Stored Queries are saved view searches. You can see this in action by openi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UIBarButtonItem referencing the custom view to later editing I hope this is a simple question, I have a UIBarButtonItem which I initialized using a UILabel as a custom view, the button is living inside toolbar.
What I want to do is being able to change the text from the label that is inside the UIBarButtonItem, here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where to save project related text files? For testing and debugging purposes, I just hard-coded the file paths for the text files that would be used by my application, e.g.
const string CONFIG_FILE_PATH = @"C:\myconfigfile.txt";
But I don't think it's a good idea to leave it as it is in the Beta/Release version.
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I find out how many objects are in a list basically what the title says. I want to be able to find out how many objects a list contains. Maybe my Google-fu is failing me or my terminology is wrong.
A: len(s)
Return the length (the number of items) of an object. The argument may be a sequence (string, tuple ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trouble loading project references during build within wpf user control library As an example of a build time assembly load issue, consider the following class library code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: cakePHP - project was working on localhost but not on website I have some project in cakePHP which was working on localhost but when I deployed it on internet its not working ... I feel theere is some issue with .htaccess..
Please help. Thanks in advance
content of my htaccess
<IfModule mod_rewrite.c>
RewriteEng... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Split a column value into two columns in a SELECT? I have a string value in a varchar column. It is a string that has two parts. Splitting it before it hits the database is not an option.
The column's values look like this:
one_column:
'part1 part2'
'part1 part2'
So what I want is a a result set that looks like:
co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: issue with threading and facebook single sign on I am using Facebook iOS SDK to do the single sign on. Now when the app first launch I have a modal view controller showing the login page with 2 buttons, login with twitter and Facebook. When I press on login the Facebook dialog box shows up.. and it says that I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524447",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Naming constants which are part of a formula For my C++ class, the instructor said he will give a score of zero to any program submitted with magic numbers. He said, even for formulas such as calculating the area of a circle (where it is common knowledge that 3.14159 is the value of Pi, we should either use a const ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the rationale for small stack even when memory is available? Recently, I was asked in an interview, why would you have a smaller stack when the available memory has no limit? Why would you have it in 1KB range even when you might have 4GB physical memory? Is this a standard design practice?
A: The other an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SMPP BIND ERROR: 0x0000000D in EasySMPP I am implementing the SMPP client using EasySMPP for .NET
The application is compiling fine but there was no successful outcome and I am getting this weird error
SMPP BIND ERROR: 0x0000000D
What can be done for this, please help.
A: The error code of 0x0000000D is unfortunat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does TFS 2010 support Optimistic locking? Does anyone know that whether TFS 2010 support optimistic locking or only pessimistic locking?
A: Yes, TFS 2010 supports optimistic locking. Files are not exclusively locked; multiple users can have the same file checked out simultaneously. Conflicts are resolved through ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Moving ASP.NET 1.1 site to IIS 7 I am trying to move an asp.net 1.1 site that is currently hosted on a dying server with IIS 6 to a new server with IIS 7. I've setup everything with IIS to get the asp.net 1.1 app pool and classic mode and all that good stuff. When I access the site though, I keep getting
Parser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Struts2 Spring Hibernate Jar file conflict I am developing a sample application in Struts2+Spring+Hibernate ..
When i add jar for struts2 , Spring and Hibernate in my lib folder.. Its not running. Its because of jar files conflict..
Is there anyway to select correct jar files for these technologies ???? If i upgrad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python binary tree serializing problem I have a binary tree class as below:
class BTree:
def __init__(self, data, left=None, right=None):
self.data = data
self.left = left
self.right = right
def __unicode__(self):
return "%s" % self.data
and I have another tree serializing m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Adding Navigator Support for a custom programming Language in Netbeans API I'v added support for a custom programming Language as described in Netbeans (using ver 7.0) I want to add Navigator Support for that too but i can't find a gud place/ gud example to start with [link]]1
But i want it to display in such a way... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to handle home button event on Android Actually, in my app, I want to call a function when the user clicks the home button. Can anyone suggest to me how that can be done?
A: Okay, this was supposed to be a hard question. But here is a way to crack it.
Override the below method in your Activity,
@Override
publi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does "let () = " mean in Ocaml? There are codes like
let () = print_string "something" in
fn
in some OCaml codes.
What does this mean? Is there special meaning on "()"? or Is it same meaning as
print_string "something";
fn
A: Jeffrey's answer is absolutely correct, but one more point:
if you write
fx "somet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Variables in Classes I stumbled across a very wired error in php:
class A {
public $var = "test";
public function __construct() {
$this->var = "test2";
$b = new B;
$b->method();
}
}
class B extends A {
public function method() {
$c = new C;
$c->method();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create Java Map of fixed-length array values? I have a program which needs to store a couple of simple int values and associate each with a String key. Currently I initialize this member like so:
private Map<String, int[]> imageSizes = new HashMap<String, int[]>();
and then append to it with something like i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: random string in python I am trying to make a script that will generate a random string of text when i run it.
I have got far but im having a problem with formatting.
Here is the code im using
import random
alphabet = 'abcdefghijklmnopqrstuvwxyz'
min = 5
max = 15
name = random.sample(alphabet,random.randint(mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: tabactivity - content of all tabs gets overlapped at first I was testing TabActivity with a list in each tab.
While running the app, the contents of the tabs gets overlapped like this.
After i click on the tabs the overlapping gets cleared.
Here is my code :
testtabs.xml layout :
<?xml version="1.0" enco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP: Difference between -> and ::
Possible Duplicate:
In PHP, whats the difference between :: and ->?
In PHP, what is the main difference of while calling a function() inside a class with arrow -> and Scope Resolution Operator :: ?
For more clearance, the difference between:
$name = $foo->getName();
$name = $foo:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Android Layout decision and its implication on performance I have two layouts one is main and other is listview used when user clicks some button. Which is better in perfomance, to use two separate activity for both layouts or have to implement both in same activity.
2.And my main activity extends Activity but to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524512",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to implement synchronization with timers in C# I have a scenario where my C# class has two methods say DoThis() and DoThat() that are called independent of each other, in any order, by an external caller. The two methods need to be synchronized in the following way:
*
*After a call to DoThis(), wait at least ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL NOT IN needs double layers? I'm writing code to hit a tree structure which is persisted in a MySQL database, each node storing the ID of its parent or NULL if it's the root of the tree. In the course of querying it to try to get all leaf nodes, I noticed something odd.
Namely, this query produces no results:
SEL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change Master Page Content without loading page multiple times I have Master and Content Page.The Layout is like Header and Footer are in Master page and rest contents are in content/child page.
Now I want to change the header and footer of master page dynamically.To do this,I have coded Page_load event of master pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I switch between existing activities? I am designing an app which is a kind of articles reader & manager and articles available in different languages.
So when user reads a particular article in Russian there is a button to display the same article in English and vice versa.
To do that I start new activity.
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: samsung galaxy ace and trying to pair my mobile with MOb-58 printer I have written Bluetooth program in android it working fine. But when I am trying to run my apk in samsung galaxy ace and trying to pair my mobile with MOb-58 printer it will ask 4 to 5 times the same password for pairing.
A: The problem may be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: has_many :through usage, simple, beginner question I am writing a simple accounting system for managing costs. The structure is like this:
Invoice - can have many products
Product - can have many costs, also can act_as_tree
LineItem -
Product
LineItem
LineItem
Product
Line... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Routes syntax in rails 3 from rails 2 to 3 I want to change the following route syntax so that it's compatible with Rails 3.0
map.namespace(:admin, :path_prefix => 'refinery') do |admin|
admin.resources :dashboard
admin.disable_upgrade_message 'disable_upgrade_message', :controller => 'dashboard', :action => 'di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting the state of JToggleButton Say I have a
JToggleButton but = new JToggleButton("OK") ;
Now I need the state of but when it is clicked. I mean I need to know if it's clicked or not.
A: You can also use the itemListener's itemStateChanged method like follow:
JToggleButton jtb = new JToggleButton("Press Me");... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How to write a number on a TShape Component? I have a TShape Component. I need to load it dynamically and I need to place a number on that TShape. If anyone knows the way - please suggest it to me.
Thanks Rakesh
A: You can use the Canvas property of the TShape component to draw the number, to access this protected ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JqueryUI with ContentFlow coverflow javascript. Variable Error in Firefox but works in Safari I am using ContentFLow, a javascript coverflow for images, here and I am integrating jQueryUI for Themes and icons/buttons. I am specifically integrating a Play/Pause button for a slideshow and I have it working in Safari ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying scrollable widget in Android We are using Ajax call to fetch a list of strings and display using a widget on JSP page developed for android web application.
We are facing the issue as strings are displayed limited to the widget’s size and not scrollable in the android emulator. However, the same code work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: convert a string in to time format in c suppose I have a string "2011-08-21 21:48:45 +1200",and another one with the same format,
I want to compare these 2 strings to find out which one is the early one or later one,
is there a easy way to convert a string to time format rather than compare them by characters?
Tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: getAsyncKeyState not recognizing key input So I decided that I wanted to write a little keylogger tonight, just to learn about getAsyncKeyState. I'm trying to get my log to write to a file but the file's contents either show up blank or throw a random memory address at me (0x28fef0 before). I've heard that getAsyn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best way to embed a user's tweets and mentions into a website? I need to embed a specific user's recent tweets onto the home page of a website. The website is built in ASP.NET.
I've looked at the Twitter REST API and have tried using the user_timeline. It works but does not include mentions for the user.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: adobe air webcam problem I have been developing a simple desktop app using adobe air, html and javascript to save data to sqlite (not as, no flash builder, no flex). Is there a way that i can capture an image from my webcam and save it using these technologies ? If not what else can be done to achieve the result? Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to release the system libraries allocations in iphone(Frame work related) i m facing big problem with system libraries allocations.
i didn't get any leaks from my application still so much allocations.i attached various screen shoots. in my application using custom picker which get all images from assert library... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Now able to get Id property for flex components I am not able to get the Id property for flex components in my flex application(swf file) using Test Object Inspector in Rft Tool.
How can i get them?
A: You can't. Flex mxml component ids are only used as a hash within the containing parent. They're only used for r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# get excel data in exponential format Excel had controlled over the formatting as explained under here
In my sample data (alphanumeric) in excel: -
P000213590-A
312700133751-- > display as 3.127E+11
In my sample code: -
DataTable dt = new DataTable("PartUpload");
DataColumn column;
column = new DataColumn();... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use underscore.js reduce method? anyone got any examples on how to use the reduce method in underscore.
A: They have it... http://underscorejs.org/#reduce
Right there - at the official Underscore.js site.
A: Here are two javascript examples, quite similar to underscore.
These find the mathematical mean and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery: How to calculate the maximal attribute value of all matched elements? Consider the following HTML:
<div class="a" x="6"></div>
<div class="a" x="9"></div>
<div class="a" x="2"></div>
...
<div class="a" x="8"></div>
How would you find the maximal x value of all .a elements ?
Assume that all x values are posi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I get the information from a meta tag with JavaScript? The information I need is in a meta tag. How can I access the "content" data of the meta tag when property="video"?
HTML:
<meta property="video" content="http://video.com/video33353.mp4" />
A: document.querySelector('meta[property="video"]').content
th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "225"
} |
Q: Is it possible to inject JavaScript that reads 'strings'? I've heard of 'injecting' JavaScript, but I'm not fully sure on what it does, or how you do it. But I'm wondering if you can inject it into a site in order to read the 'strings' or 'forms'?
For example: Say there's a site that has a field for entering a name.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: android: reuse a RelativeLayout in XML by inflating it at run time? Edition of question
It is already in a separate xml (tablet_shortterm_column.xml) see above.
Anyway, it seems logcat complains that rlo_shortterm_col already has a parent, so it won't allow an another ptr_rlo_rght_middle.addView(rlo_shortterm_col ).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does the C language have support for multi-threading? Since C Language does not provide any object oriented concepts, I wonder whether it also does not have support for multi-threading? I searched on the web - can anyone give me answer regarding this?
A: C is un-doubtfully have multi-threading support. Check out pt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Building zxing's cpp/lib Fails under Fedora14 even when Following instructions Exactly That is, following the instructions in zxing/cpp/README, which say 'To build the library only:
- Run "scons lib" in this folder (cpp)'
Well, that is exactly what I did. But I get:
scons lib
scons: Reading SConscript files ...
sco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to export data with Excel? From my client, I am exporting a set of details to an Excel sheet. In these details, I have a field which is of Date type. Initially, the number format for this date field was "dd-mmm-yyyy".
Now, I changed it to "Date" (just to see if it works). After exporting these details to Exce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: User authentication management with user token and session management in java web application i am using devise and authlogic in rails that provide all user management functionality with email sending , session management ,token generation
is there any ready api available in java that provides all user login mana... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524602",
"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.