text stringlengths 8 267k | meta dict |
|---|---|
Q: jQuery Drag/Drop
* element styling I have a list that I want to be drag and droppable to another list with jQuery. The drag drop works fine but I'm running into a problem because I need to display two different bits of information from a database on the same "li" item, but with different styling.
I'd like to be abl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can sbt pull dependency artifacts from git? I've heard (and I know I've seen examples too, if only I can remember where) that sbt can obtain dependencies from a git repo.
I am looking to obtain the dependency harrah/up from github. The repository does not provide any artifact JAR files, only a source tree which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: Calculating cumulative sum for each row I am trying to calculate the cumulative sum for each row using the following code:
df <- data.frame(count=1:10)
for (loop in (1:nrow(df)))
{df[loop,"acc_sum"] <- sum(df[1:loop,"count"])}
But I don't like the explicit loop here, how can I modify it?
A: You want cumsum()
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Is it possible to add a "Combine" step to the Amazon Elastic MapReduce workflow? I am referring to the Combine step mentioned on the Hadoop wiki. I have been unable to find a reference to it in the AWS documentation, and I'd like to utilize this step.
A: The documentation for Combiner will be in the Apache documen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I set the taglib character set on Windows to use unicode? TagLib uses the CMake build system to create the Visual Studio 2010 solution and project files.
The only problem with the generated projects is that the Character Set is set to MBCS, when I'd like it to be Unicode.
Is there a way to set this option v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "Kill a process tree" on windows using Java I have a Java webstart process that is part of a windows batch script. I'm using the javaws command in a batch script in this case.
This match script ( start.bat) is invoked programatically using the "apache commons exec". Under some conditions the java process invoked by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Tipsy Jquery plugin won't load inside another Javascript? I'm working with a the JQuery tipsy plugin and I can get it to work fine on my normal php page but when I run data from XML thru another javascript it's not loading or working properly... I've tried every imaginable change/variable and I'm stuck.
All my jquer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does this Genetic Algorithm stagnate? Roger Alsing wrote an Evolutionary Algorithm for recreating the Mona Lisa using C#. His algorithm is simple:
*
*Generation a random population of size two.
*Replace the least-fit individual with a clone of the fittest.
*Mutate one of the individuals.
*Go to step 2
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Excel crashing on longer unicode string returned from xll addin The development of is with C/C++ on top of MS SDK.
The C++ piece of XLL is as follows:
__declspec(dllexport) LPWSTR WINAPI xlGetLang(LPSTR in_key) {
try {
static XLOPER12 lang;
static size_t buffer_size = 0;
static wchar_t * buffer = N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magento specific attribute per category I want to only display specific attribute to specific type of product. For example I have Shoes and a footID. footID will only be available in Shoes product page and not any other. In time I'll also have a few more similar attributes for example tennisID that only applies to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using FetchXML in CRM 2011 I am using FetchXML and I am grouping and using count for two of the entities but the rest of the entities I don't need grouped I just need the data to be pulled down. For example this is my code:
string groupby1 = @"
<fetch distinct='false' mapping='logical' aggregate='true'>
<entity n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to make a website with tabs that don't go to a new page. Suggestions? I'm in the process of writing a website and I want some tabs on the side of my website. I want the website to flow well, so I don't want a simple graphical link to a website, but rather an interactive tab system where you can click on what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript: Extract a date from a string? I have a string formatted as either
Today 3:28AM
Yesterday 3:28AM
08/22/2011 3:28AM
What I need to do is somehow extract into a variable the date portion of my string, ie. 'Today', 'Yesterday' or a date formatted as DD/MM/YYYY.
Is something like this possible at all with Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does throw crash my program but return doesn't? I am trying to catch exceptions for my form client not being able to establish a connection to a server with this in the Connect callback:
try
{
client.EndConnect(async);
}
catch (Exception e)
{
client.Close();
return;
}
This works fine but this behav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bluetooth vs. Wifi for iPhone data transfer I'm working on adding sharing support to my iPhone app. Right now, I'm using Bonjour to create plain TCP connections over a wifi network. This works great, except that it turns out that many wifi networks in the real world (for example, those at Starbucks and other chains)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: how to transform lat & lon in a given angle? I have lat & lon that need to plot into floor map image.
The problem is the floor map image's angle is not proportionate with the real world map. Anybody knows how to transform real lat & lon values in a given angle?
UPDATES1
I have previous posted question which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: About translate="label" attribute in Magento, how does it work? I see in a config.xml file. I know that <template> block and this is the block hold the email template, and translate attribute which is present will be translate in the locale folder. But I don't know what is it exactly, and how does it work?
translate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Which application layer should dispose DataContext (Silverlight WCF RIA) My silverlight application is design with 3 layers at server side
*
*Interface Layer - This layer contain only interface that bridge between silverlight client and RIA service. What I do in this layer is send ObjectContext (DataContext that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change order of google calendar events fetched via Zend_Gdata_Query? When using the Zend_Gdata_Query library to fetch google calendar events using the example below my results are in the opposite order that I need. Is there a simple variation on the
$query->setOrderby('starttime');
method that will achieve a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is IDataErrorInfo is firing multiple times? I am having an issue where IDataErrorInfo is getting fired multiple times.
Transaction Class
public class Transaction : INotifyPropertyChanged, INotifyPropertyChanging, IDataErrorInfo
{
private Double? _transAmount;
[Column(DbType = "decimal(19,4)")]
public Double? T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to color the background of the application in android I added a color folder, with this xml file:
<?xml version="1.0" encoding="utf-8"?>
<item
xmlns:android="http://schemas.android.com/apk/res/android">
<color name="orange">#FF9912</color>
</item>
But when I put as the value in the screen_display.xml ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I make the text edges in the images smooth? How can I make the text edges in the images smooth?
Here's the image:
A: If you're thinking of anti aliasing, you can typecast Graphics to Graphics2D then use g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);. You can do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Checkbox behaviour modification with javascript I have got this group of checkboxes that behave like radio buttons.
I need some help in letting the user allow to uncheck a checkbox too, so there can be no selection within the group.
<label><input type="checkbox" name="cb1" class="chb" /> CheckBox1</label>
<label><i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Installing ExtJS I am new to ExtJS. I tried installing it as per the steps given here.
But I am getting one error while running this command.
sencha create jsb -a http://localhost:8080/helloext/index.html -p app.jsb3
Error msg :
C:\Program Files\Apache Software
Foundation\Apache2.2\htdocs\helloext>sencha crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Searchable jQuery list view I'm looking for a searchable list view widget for jquery. Something like the inbox email list in the iPad mail app. Any suggestions?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7550463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: session with no cookies I ran into a situation that I brought onto myself by disabling cookies: session state wasn't working as expected. How do you check to see that the user has cookies enabled in an http module?
Thanks.
A: Set a cookie and then redirect them to a page inside the same site. If you don't get a coo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i see Timestamps in Unix files Files in UNIX filesystems have 3 types of timestamps: Access, Modify, and Change. In order to investigate this, I created a file and I want to look at timestamps . Anybody knows how can i look the different timestamps. Then, which commands timestamps.
A: Use stat command:
st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: socket programming with implement & interface I tried this tutorial with socket programming. BUT, it is unable to send message to server when doing socket programming with implement & interface. Do you think that i can do socket programming with implement & interface?? There is also no "hello" debug message.
priv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Reset the form data on unload I'm using this code:
if(isset($_POST['btitle'])) {
if(count($errors) > 0) {
foreach($errors as $error)
$errContent .= "<li>".$error;
echo notification(
$errContent,
FALSE,
"The following errors were encountered:"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using SQL to retrieve the most popular queries in a dataset I have a table of data with fields: search, search_location, num_searches. I want to put together a SELECT statement that will generate a list of the 100 most popular search_locations, determined by the SUM() of the num_searches field for all searches with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: put text to div with dropdown option I have the following code and its not working. I want to put the selected text to my selected-locations div. Any ideas? Thanks!
<select name='available_locations' class='select-location'>
<option value='Germany'>Germany</option>
<option value='Venice'>Venice</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use to_sentence with an AR collection I have User.all, which returns 3 results.
How can I make it so I can render each result to something like:
<a href="path_to_user_foo_here">Foo</a>, <a href="path_to_user_bar_here">Bar</a>, and <a href="path_to_user_foobar_here">Foobar</a>
Which when rendered in the brows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there any case for which returning a structure directly is good practice? IMO all code that returns structure directly can be modified to return pointer to structure.
When is returning a structure directly a good practice?
A: Modified how? Returning a pointer to a static instance of the structure within the func... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to compare encrypted password in sql I already got my password encrypted and store it in database but now I want to compare the encrypted value to the password that a user type upon loading a page. Consider this code:
string userName = txtusername.Text;
string password = txtpassword.Text;
Encryptor en = new Encr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Configure eclipse osgi log I am using eclipse osgi jar. How to redirect the log generated by osgi to a file?
Whenever I start the osgi framework, it generates a log like 1317008078357.log. How to redirect this log to a custom file. Do I need to use log4j as a osgi bundle? what will be the log4j.xml configuration ?
l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Override Android Back Button A little info as to why I am attempting to do this: I am using ActivityGroups to open an activity from a tabHost activity and have that new activity stay under the tabs. That part i've got. But when in that new activity, if I use the back button it takes me right out of the tabs activity... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I post a comment on a status programmatically? I've been reading up on the new documentation, and I've found out how to post a status as a user, and how to read a status and all it's comments, but I haven't found a way yet to post a comment. My goal is to have the backend of my application mirror exactly the int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Simple Nivo slider images not loading on IE I'm using this plugin: http://wordpress.org/extend/plugins/simple-nivo-slider/
and when viewed on firefox & chrome the images load but on ie only the navigational arrows and navigation bullets show.
here's the site
edit: solved it by adding width and height to #slider
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: That text area of nullness I have a strange problem and it's been frustrating me for the past few hours. I can't seem to find anything related; perhaps I'm not being specific enough, as I'm not sure how to word it correctly, or it's a strangely unique problem.
There's a form a user fills in to update their account i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to make alarm initiate even after restart device? How to make my calendar events alarm wake up even after restarting the mobile? (i.e) if the current time is 10am; i'm setting alarm for 10.05am and now(10am) if i restart my device, the alarm should ring on 10.05am. How to achieve it? I have already created alarm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Check if Tomcat and MySQL are already installed on machine How can I check using Java if Tomcat and MySQL are already installed on machine? If it is installed I have to disable those options in my installer.
A: If Tomcat is installed as a service on Windows, you can check the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I send an email with autoGenerateEditButton set to True? We would like an email sent out when an update is made.
How can I do this when autogenerateEditButton of gridview set to true?
Here is an example:
<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1"
AutoGenerateColumns="False... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Symfony2 app/console --env throws no envirorment name I'm working with symfony2 and while migrating from Beta2 version to the current one I messed up with some environment configuration.
My trouble here is when I run
php app/console --env
I get the following error
[InvalidArgumentException]
The file "MyWebRoute\sym... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Query without Temporary Table I have written a query which works great on my local SQL Server 2005. I uploaded the query to my hosting server and somehow they say that temporary table creation is disabled on their server.
My query looks like this
create table #tmp
(
srno int identity (1,1) ,
orderid int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to use sitemap_generator with paperclip upload to s3 in heroku I know sitemap_generator use CarrierWave to upload to s3. Can it support paperclip? If yes, Can anyone tell me how to upload sitemap files (generated by sitemap_generator in heroku) to s3 using paperclip?
Thanks.
A: I created a rake file to handle ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TSQL substitution of key words and code blocks I have blocks of TSQL that I want to create a MACRO for and then reuse in my SQL file. I want this to be a 'compile' time thing only.
Eg:
?set? COMMON = "Field1 int, Field2 char(1),";
?set? MAKEONE = "create table";
MAKEONE XXX (
COMMON
Field3 int
);
Please d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to redirect to application page after installing application to one's page or app? Now I want to automatic redirect to facebook application's index page after user installing the application to his/her facebook page.
My method is use the href tag as below:
<a href='http://www.facebook.com/add.php?api_key=".$APPI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error using for loop in C for ( int iIdx = 0; iIdx < argc; ++iIdx )
_tprintf( TEXT( "Arg %d: %s\n" ), iIdx, argv[ iIdx ] );
_tprintf( TEXT( "\n" ) );
Is this valid in C? Because I get an error when I try to compile it, if I remove the int from the initializer section of the for loop, it compiles fine...
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to import IBActions from other .h file? I have many view controllers on my iOS app and in most of them I need the exact same IBAction.
So instead of writing the same code in all view controllers, is it possible to create a separated .h file with the IBActions and then import on the viewcontroller.h?
I tried that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Heroku Crashes App on .sass File My rails app runs fine on my local Ubuntu machine, but when I push it to heroku and access the website, the app crashes with the following errors.
2011-09-26T03:45:52+00:00 heroku[web.1]: State changed from created to starting
2011-09-26T03:45:54+00:00 heroku[web.1]: Starting proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Request object in a validate method STRUTS Is it possible to set an attribute in a request or session scope in a HttpServletRequest object of a validate method in Struts.
Example:
@Override
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){
ActionErrors ae = new ActionErrors();
re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting role in SiteMapNode Sub Node These Site Map Node is in Web.Config
<siteMapNode title="Hotel Setup" roles="Administrator,Hotel Admin">
<siteMapNode url="~/Page/HotelSetup/RoomTypeManagement.aspx" title="Room Types" />
<siteMapNode url="~/Page/HotelSetup/AddOns/AddOnCategoryProperties.aspx" title="Add On C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Magento Check the ID of the client if he already bought the product I have a product that can only be purchased once only for each customer ..
If I put in the admin, only one item in the shopping cart, Elee can buy one at a time, and so buy more than one time.
How do I check if the "ID" of the customer has already b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why F# core library does not offer a generic sequence slicing function? Cutting sequence into batches of fixed length, making overlapping sliding data windows, getting each n-th item from a sequence - all these tasks can be solved using a single generic slicing function. For example, Clojure offers for such purposes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mercurial: Converting existing folders into sub-repos I have a Mercurial repository that looks like this:
SWClients/
SWCommon
SWB
SWNS
...where SWCommon is a a library common to the other two projects. Now, I want to convert SWCommon into a sub-repository of SWClients, so I followed the instructions here and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to read bz2 file as an array with PHP There is a function you may know gzfile which "Read entire gz-file into an array", how can you do the same with bz2? Thanks!
A: There's no built in function.
You could do something like this (add some sanity checks, etc):
function bzfile($filename){
$p = popen('bunzip2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trouble Building a Simpletest Suite From Working Unit Test Cases I've started using unit testing for my PHP programs, and figured Simpletest was as good a place to dive in as any other. I added the Simpletest files to my testing server, and ran the following tests on my custom PDO classes:
<?php
require_once('../si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to have a form submit a comma separated list via GET? Let's say I have a form that contains a whole bunch of check boxes with the same name, c. Each checkbox has an integer value assigned to it.
When the form is submitted, via GET, I'd like the url to look like www.url.com/?c=1,2,3,4,5
and not
www.url... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: my own long polling implementation compared to facebook and gmail For days I have been experimenting with long polling/comet implementation for my site. I got the basic idea of how it works, this is where i run some tests.
On the other hand, I have been observing(firebug) how gmail and facebook implement long polli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: When to choose nls() over loess()? If I have some (x,y) data, I can easily draw straight-line through it, e.g.
f=glm(y~x)
plot(x,y)
lines(x,f$fitted.values)
But for curvy data I want a curvy line. It seems loess() can be used:
f=loess(y~x)
plot(x,y)
lines(x,f$fitted)
This question has evolved as I've typed and res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to avoid data loss on server failure with MongoDB on a single machine? I have read that mongoDB don't write data to disk right away, it does this periodically.
Any thoughts on how to deal with this?
A: You can enable journaling with --journal.
Check out http://www.adathedev.co.uk/2011/03/mongodb-journaling-perf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550583",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Unable to display SQL database data on Visual basic form I am facing a problem displaying the records of my table on the visual basic form I have created.
This is my code :
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
myconnection = New SqlCon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Include a variable inside a NSString? This works fine, we all know that:
NSString *textoutput = @"Hello";
outLabel.text = textoutput;
However, what if you want to include a variable inside that NSString statement like the following:
NSString *textoutput =@"Hello" Variable;
In C++ I know when I cout something and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: CSS Background Image Not Showing in IE Please help,
The background image is not showing in IE, but everything is perfectly fine in safari.
I have checked with W3C CSS validation and html validation, everything is ok.
What is the problem?
http://www.applezone.com.hk/newrx/
body
{
/*background-color:#eee;*/
font-fami... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Objective-C &JSONKit POST issue I'm trying to post to a rails backend from Objective-C and JSONKit and am having difficulty getting my results published. I keep getting back a null recordset from my server.
[dictionary setValue:(@"bar") forKey:@"foo"];
NSString *JSON = [dictionary JSONString];
NSData *theData =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery - How to fix mouseover and mouseleave auto loop a lot of times? When I faster to mouseover and leave #go in a short time, it will auto loop a lot of times.
How to fix it??
$("#go").mouseover(function(){
$("#block").animate({ width: "900px" }, 300 );
});
$("#go").mouseleave(function(){ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Perform webview action from another listview activity I have a webview as the main activity and I want refresh the webview from the "Preference" (listview) that is from another activity. Is it possible to do that? I don't want to have the "refresh" button on the apps menu.
But the activity will crash after i pressed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Pre-fill input text box Does anyone know of a good small piece of code that will prefill my user and pass input box with the text username and password. I've seen so jscript that will do it but i'm looking for something that is a few lines a code.
similar to how the search text is in the search box up top on the rig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In simplest terms, what is a factory? What is a factory and why would I want to use one?
A:
What is a factory ?
Wikipedia explains in detail
Also see answer from legendary BalusC over here about many GoF patterns examples
In simple words Factory creates\initialize\allocate the objects that you can use in the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: NSURLRequest odd behaivor I'm having such an odd problem. I'm running iOS 4.3.2 on my device. Compiling in Xcode 4 but I am not using the iOS 5 beta SDK.
My app fetches a plist file from a server, the plist file is set of strings I use in my app.
I get the data via a request and connection like so
NSURLRequest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP For Loop Printing An Array This might seem like a really easy question but it has got me stumped lol. I am trying to print the rows received from the database. I want to store the rows inside an array and then print them using a for loop. I know that the query works however when I try to print the array elements... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to read and write a virtual hard disk when it is opened by another application How to read and write a "virtual hard disk" when it is opened by "another application"?
virtual hard disk - referring to hard disk that are created by a virtualization application (e.g. Virtual PC, Virtual Box, VMware Player)
another ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C program which adds two integers as fractions I am writing a C program which adds two nonzero integers which are given as fractions. The integers are input as n1 d1 n2 d2. There seems to be an error when certain negative numbers are input, such as in the following combination ( 1 2 -1 2). This should state that the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery/Javascript custom email validation not working I didn't want to us a plugin for simple email validations so i tried to create my own but it doesn't work. Its always returning false. Here is my code:
var regex = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i;
if(regex.test($("#email").val()))
{
//pass
}
What am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to understand findbugs multithreaded bugs http://findbugs.sourceforge.net/bugDescriptions.html#SP_SPIN_ON_FIELD is only a problem is the field is not volatile, right?
http://findbugs.sourceforge.net/bugDescriptions.html#MDM_WAIT_WITHOUT_TIMEOUT is confusing - what does it mean?
A:
http://findbugs.sourceforg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Converting numeric type vector into a vector of strings I'm trying to convert this:
> j[1:5]
NA06985 NA06991 NA06993 NA06994 NA07000
Into this:
c("NA06985","NA06991","NA06993", "NA06994", "NA07000")
I've tried using as.character but it gives me:
> as.character(j[1:5])
[1] "10" "10" "10" "10" "10"
Help please!
-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Which way has better accuracy to compute the matrix matrix vector product, A B u? I want to compute the vector,
s = A B u,
where s and u are N-dimensional complex vector, A is a N-by-M complex matrix, B is M-by-N complex matrix. Which of the following two ways has better accuracy (more significant digits) when the e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ERR_TOO_MANY_REDIRECTS error u Fact:
I am requesting root application on my browser http://localhost:8080/myapp and my browser throws this error: Error 310 (net::ERR_TOO_MANY_REDIRECTS): many redirects.
Environment:
I'm using Java 6, Glassfish 2.1, Struts2, Spring and Hibernate.
Check:
Then I look into web.xml and i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Android - onTabChanged not being invoked upon selecting a different tab Thanks for checking out my inquiry!
I have implemented a tab environment as illustrated below. It seems to work as I expected except that it never executes the onTabChanged method. I have found several posts about this type of situation but have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Should F# functions be placed in modules, classes, or another structure? I'm starting to code in F# and am calling functions from functions with functions as parameters - there are plenty of learning resources online. Now I am trying to put together the pieces into something more than just a collection of functions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to add a tooltip for horizontal LED fusion chart I am using the following horizontal LED fusion chart in application http://www.fusioncharts.com/widgets/Gallery/HLED4.html how can i add a tooltip to indicate the current value
A: The Horizontal LED gauge of the FusionWidgets pack does not support tool-tip, as of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DirectShow: webcam preview and image capture After looking at a very similar question and seeing almost identical code, I've decided to ask this question separately. I want to show a video preview of the webcam's video stream to the default window DirectShow uses, and I also want the ability to "take a picture" of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How does nerdinner show map? I want to show few countries marked with "pin" much like what the nerddinner has:
http://nerddinner.com/
How can I achieve this functionality? Any details?
A: For detail you can check out this article : Show Your Data on Google Map using C# and JavaScript
which provide little info about... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How call customview on action of button? I have create a demo project in which i have add button. On button action i am calling a custom view. On that custom view i have add a picker view, a toolbar and bar button. On action of button i am calling that custom view. I have used this code...
-(IBAction)Picker{
mpv_ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Representing an integer as the sum of four squares Given a positive integer m, find four integers a, b, c, d such that a^2 + b^2 + c^2 + d^2 = m in O(m^2 log m). Extra space can be used.
I can think of an O(m^3) solution, but I am confused about the O(m^2 logm) solution..
A: First hint:
What is the complexity of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: multiple string() results for an xpath? string()
works great on a certain webpage I am trying to extract text from.
http://www.bing.com/search?q=lemons&first=111&FORM=PERE
has similar structure. For bing, the xpath I have tried is
string(//h3/a)
which works great to get the search results, even with strong tags et... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: not getting response from url in android application I am developing an android application in which I have 5 items in a listview. I am not able to fetch my data in the listview,...I have tried all things,,,but nothing is dere in the listview
My url is
http://harpreetvir.web708.discountasp.net/PMevents/XmlRecord/Ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android: How safe is database packed with application I want to know how safe it is to pack the database with the application in android. Can the database be easily accessed by the users? As the database that I have will have data which I dont want to be hacked by users for misuse, what is the best way to protect th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Marking rows in NSTableView as dirty I subclassed NSTextFieldCell to do custom drawing and highlighting. I am essentially making a table with cells similar to the one found in Lion Mail, but my code is targeting Snow Leopard. The problem that I'm running into is this:
*
*user selects a cell (my cell draws a custo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Highlighted color keep on the table cell when I click back to the table in Objective-c I have a table view in my program, (1)when I click on a row, (2)it will be changed to a view, (3)If I click back button, it will go back to the table list.
My problem is when I go back to the table list and the highlighted color s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to merge multiple columns values into a single column? I have a source report which looks like
Name Q1 Q2 Q3 Q4
A 1 2 3 4
B 5 6 7 8
C 9 0 1 2
It has to be converted into the following format
Name Quarter Value
A Q1 1
A Q2 2
A Q3 3
A Q4 4
and so on...
I'm using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rename webstore products directory and redirect all its contents I want to rename our webstore products directory, and redirect all its contents, from /products/ to /Product/ using htaccess.
The problem is that we have several individual domain names (mysite.com, mysite.co.uk) accessing this directory so the resulta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pinch Zoom/Multitouch functionality on Android GridView I am looking for an optimized way of implementing Pinch Zoom feature on my GirdView containing images. Why optimized? Because playing with Bitmaps any day gifts me with Out of Memory exception. Till date I have implemented the handling of Multitouch on screen b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way of PHP with Oracle? I'm just new with Oracle. But i wanna test with PHP. Which way or method should i use is the best?
I've found following various ways by googling yet,
*
*The oci8 extension
*The oracle extension
*PEAR DB library
*ADOdb library
*Zend
*or otherelse?
Actually i don't know know abou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CakePHP - Custom Route Controller Is there anyway for me to create dynamic custom routes? The goal is to allow users to specify any URL they want to route to any controllers/view/ structure.
If user want to create something as below:
/a_quick_brown_fox => foxes/view/42
/jumps_over => actions/view/42
/lazy_do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Umbraco and Telerik MVC Is this possible to install and use Telerik Extension for ASP.NET MVC in Umbraco project? If "yes", what is a best way to do this.
I try to install but have some errors, eg:
'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for
'Telerik' and the best extension method overloa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the language of this deterministic finite automata? Given:
I have no idea what the accepted language is.
From looking at it you can get several end results:
1.) bb
2.) ab(a,b)
3.) bbab(a, b)
4.) bbaaa
A: I guess this question isn't relevant anymore :) and it's probably better to guide you through it then ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Scrolling problem with UITableView !I have a UITableviewController with a navigation bar as header. there are 4 sections in the table, Number of rows in the table are more than that can be fit in the iphone screen. while scrolling whole view is getting scrolled!!. I want the header to be stationary and only table to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to develop an application similar to producer consumer in java? I have to develop an application that is similar to the producer-consumer problem in java.
However I do not know a lot about java, and I have a couple of questions.
Both the producer and consumer that are different threads and they both need to acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to move browser's scrollbar to a class? This script loads 10 more posts from peoples.php in index.php every time the button is pressed (through the loadfeed function).
$("#loadmore").click(function() {
cap += 10;
loadfeed();
$(this).addClass("loading");
that = this
setTimeout(function() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7550718",
"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.