text stringlengths 8 267k | meta dict |
|---|---|
Q: Problem casting to an interface in flex I am using interfaces for module communication like in adobe flex documentation. When I have a ModuleLoader in mxml, everything works great.
<mx:TabNavigator id="testNav"
height="100%"
width="100%">
<s:ModuleLoader id="firstTab"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How (if) is it possible to retrieve via YouTube API Video of a specific size(big one)? Is it possible to retrieve and specify size of YouTube video?
Normally API gives me videos in small resolution 360p.
But I need way bigger 1080p would be my weapon of choice.
Do you know if it's possible to get this size?
Thanks f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What jar/dex file provides the real implementation of the Android.jar I ran into some interesting problem after compiling the Android SDK source. I
tried to disassemble the resulting android.jar, but found that most
methods contained in that jar file are just a stub that does nothing
more than throwing a runtime exc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MVC3 Optional Model Property I have a dropdownlist which I would like to be optional, however, the ModelState.IsValid check is trying to validate the property. Is there a way to tell it the property is optional?
Here is my code:
<h2>New Version</h2>
@using (Html.BeginForm()) {
<div>Version Number: @Html.TextBox... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Object Tags and Asp I have a master page that gets all its images from a table on a database, and I am trying to incorporate flash, for banners, but I can't quite seem to figure it out.
Right now there is a:
<asp:image id="headerimg" runat="server">
and that generates the appropriate img tag needed to show an image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to reference a page with parameters Wicket I need to send Wicket links (through mail, for example) which references instances in the system.
For example, the mail could contain:
From: ...@...
To: ...@...
Subject: Order Pending
... txt...
Click here to go: http://I.dont.care.the.style.of.the.linkPage.OrderDetailP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516705",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Warning Received memory warning. Level=2 iPhone my application crashes showing
Received memory warning. Level=2.
Complete warning is
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).
Plea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: OpenCV: compute Rotation Matrix for stereoRectify I want to compute the rotation and translation matrices to use for stereoRectify in open CV. The rectified images look twisted and totally incorrect (Like completely twisted cone at the center of the image going both directions)
I have the rotation and translation ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL JOIN help. Outputting table.rowName * 3 based on a Linking table I have a linking table with all the ID's of the tables linked.
My JOIN isn't working, though :
$strSql="SELECT clients.clientName,
projects.projectName,
projectTemplates.projectTempName
FROM projectTempList
J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Set find member vs. using find on list Since the items in a Standard Library set container are sorted, will using the find member on the set, in general, perform faster than using the find algorithm on the same items in a sorted list?
Since the list is linear and the set is often implemented using a sorted tree, it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Parse img from RSS description tag with SAX Looking around i have found many tutorials about rss and img parsing from the inside of the description tag. My problem is that the app i m developing is homework for my college and i can only use SAX and not jSON as in the most examples. My RSS is working fine,but i cant ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: renaming my files from .htm to .php screws up the character encoding..? I was given the job to work in the SEO of a website that is entirely html and javascript. First thing I see, they have hardcoded the headers and the footers(which I want to edit) on every page.
I decided that I want to change all the .htm files ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In App Purchase How to avoid the purchasing of items which I already bought through INApp billing from android market.. That is the purchase should be avoided second time
Thanks,
Raj
A: There are 2 types for items:
Managed and unmanaged.
If you choose Managed you can't charge twice for the same item.
Read here for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting the HTML source from a WPF-WebBrowser-Control using IPersistStreamInit I am trying to get the HTML source of a webpage that has been loaded into a WPF WebBrowser control. The only way to do this seems to be casting the instance of WebBrowser.Document to IPersistStreamInit (which I will have to define myself,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I decode html coded characters in an NSString? I am writing an app with both english and french support. The app requests information from a server and the server response uses JSON. I am using the JSONKit library to parse the response but the strings its parsing from the french responses look like this:
Mem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Solution Configuration but not Platform in VS2010 Toolbar I'm running VS2010 premium. One of my teammates has both the solution configuration drop-down (Debug, Release) AND the platform (Win32, x64) combo-boxes in his toolbar. I don't.
For a reference, I'm hoping to see:
Instead, I only see the first combo-box. Wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "62"
} |
Q: In C# how do I reference the port number configured in app.exe.config? In our server, we configure the port in app.config as follows:
<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="tcp" port="1234" />
</channels>
</application>
</syste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: set UITableView image I am trying to load locally stored images in a background thread and set them as UITableViewCell images. I keep getting an exception and don't really know how to approach it.
Here is my code:
- (void)loadImageInBackground:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: After pausing the gstreamer pipeline and make changes nothing was applied when get back to playing state? The code below is to stream mpeg4 video (using v4l2src element of the following capabilities: width=640, height=480, frame rate=30/1) over a network using a updsink element and the capabilities values should cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to authorise user from the forum's main page? I'm trying to implement a simple blog, which contains topics
models/Topic.cs
public class Topic
{
public int ID {get; set;}
[StringLength(50)]
[RequiredAttribute(ErrorMessage = "*")]
public string Title {get; set;}
[StringLength(1024)]
[Requ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: replacing a custom tag's value with a string in php I want to read a html file and replace what ever is inside mytag.
so in html file we have something like this :
<div>
<h3><mytag>_THIS_DAY</mytag></h3>
<div>
[LOGIN]
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Mysql get things after certain date So, I have a database table holding tickets. One of the fields is "availableUntil".
when I make the database call to get tickets, I want to be able to exclude those tickets who's date has already been passed relative to the current date.
Anyone know of a way to do this?
A: SELECT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Delphi 32 to Delphi XE2 (64 bit) conversion I'm looking at migrating a Delphi 2007 business applications to 64 Bit using Delphi XE2.
I wanted to know if there are any guidelines which will help to developers or companies, who are considering migration of there Delphi applications to 64 bit with Delphi XE2.
Any help... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: awk between 2 timestamps New to awk
I am trying to print only the lines from a logfile with the first field between these 2 values:
awk '{print $0($1 > 1300000000) && ($1 < 1305000000)}' Log2.log
and...its not right.
A: awk '1300000000 < $1 && $1 < 1305000000' Log2.log
Style :)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7516781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Authentication fails silently in Symfony2 I'm having trouble getting authentication to work but it only appears to happen in very specific circumstances. Authentication is done via a third party API so I've written my own user provider class and inside that class is some code that syncs data between the API and Symf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: http post request not sending parameters in Blackberry 5.0 I've been working on a BlackBerry post request, and the request is getting sent, but the parameters don't seem to be. Here is my code:
HttpConnection httpConnection = (HttpConnection) Connector.open(url);
httpConnection.setRequestMethod(HttpC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Open mail in Outlook, through URL. Using Exchange Webservice I'm trying to get a intranet page to open an mailitem in the Outlook client.
We are using Exchange Webservices(EWS), and communicating with an Exchange 2007 server.
What we have done so far, is to be able to read top 5 mailitems from an inbox, and displayi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP Array special value Solution
Possible Duplicate:
PHP compare HTML characters array Solution
I got a value stored in $arrNew[4], I want to
check if the value currently stored in $arrNew[4] is equal to another value.
The problem is, the value in arrNew[4] isn't there most of the times, so i
want it as a strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: memcache alongwith PHPCassa I am using PHPCassa to get values out of my cassandra instance where my result array looks something like :
Array
(
[1576_AF_ACTS_A300_2011-09-12] => 150
[1576_AF_ACTS_A300_2011-09-13] => 1565
[1576_AF_ACTS_A300_2011-09-14] => 1515
[1576_AF_ACTS_A300_2011-09-15] => 1519
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516795",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails App incremental ticket number for different accounts I have a multi-tenant Rails app that creates support tickets. The tickets are supposed to have incremetal ticket numbers. I can't use the ID column, because since the app will be used by different accounts, they will find odd ticket numbers.
For example, if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL & PHP Get Num of Records for Each Type I have a MySQL database table which holds 6 types of records I need to get the total number of records for each of the types and then create a variable for each one of the results so for example
wt = 3
spv = 33
shw = 78
and so on..
I have written this code
$tquery = "SELE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JavaScript Bookmarklet to open new Window and transmit params of origin Page I have a perfectly working bookmarklet to grab the Document-Title and the URL of the current Website and place it into the URL of the new loaded Page (Code below) … now I wonder how to let this domain.com/bookmarklet?… open in a new small w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Debugging with multiple library versions in intellij We have a large maven project and not all of the projects specify the same version of various libraries, largely because these libraries haven't changed in some time. This causes problems with debugging because IntelliJ frequently selects the older version when it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Perlin noise for motion? I'm successfully using Perlin noise to generate terrain, clouds and a few other nifty things. However, I'm now trying to animate a group of flying insects (specifically fireflies), and it was suggested to me to use Perlin noise for this, as well. However, I'm not really sure how to go about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I round up a figure in Java? Hello I am new to android.
I want to calculate amount in my application. If amount is 35.60 I want to display 36.00 .& if amount is 35.4 I want to display 35.00. How can i do this? Please help me.
A: You just need to use the Math.round() method: Math.round(35.6) returns 36 and M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to reroute a Jersey JSP template response to an InputStream? All,
I am using Java/Jersey 1.9 to create a web service that generates XML. I'm generating XML using a JSP template (explicitly via the Viewable class). Is there any way to reroute the JSP results to a local InputStream for further process... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return identity value from an insert in a generalized way in C# I'd like to be able to get the identity value back after calling an insert statement. I can do this now and it works fine with SQL server by adding SET @RETURN_VALUE = SCOPE_IDENTITY() and using an out parameter.
The problem is that this would only work... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ScaleToFit Layout Quandry I'm try learn to more about the Android layout system; this is a learning experience for me. I'm currently trying to create a layout which basically amounts to two linear layouts: A fill_parent vertical, with an inner fill_width horizontal, so that I have an ImageView banner [in the outer],... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: javascript or jquery fileSize I was looking all over the web how i can get the file size on the client side
so i found a few examples
the first example was
$(this)[0].files[0].fileSize
but unfortunately it does not working in ie
so i found this example
function getSize(){
var myFSO = new ActiveXObject("Scripting.F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Number representation by Excel I'm building a VBA program on Excel 2007 inputing long string of numbers (UPC). Now, the program usually works fine, but sometimes the number string seems to be converted to scientific notation and I want to avoid this, since I then VLook them up.
So, I'd like to treat a textbox input ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send GPS positions to my phone (with eclipse) to test a GPS application without exit from home? I need to send GPS positions to my phone (with eclipse) to test a GPS application without exit from home?
thanks
A: the ddms can do that with the emulator, i THINK it will work with a real phone
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7516850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to call a method in its onSubmit event? I try to implement file uploader script from this Github project and I need to set some additional params from the form before submitting the upload.
According to the documentation it's being set like that:
uploader.setParams({
anotherParam: 'value'
});
How can I set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: html form value before and value after I wondered if this was possible:
It looks like this:
<tr>
<td>
Full Name:
</td>
<td>
<input type='text' class="inputbox" name='fullname' value='<?php echo $fullname; ?>'>
</td>
</tr>
But I wanted to get rid of the <td>Full Name</td> and instead of that in the in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Sharing an object throughout an app I am currently developing an application for the iPhone. The appdelegate shows a splash-screen while I'm caching data (e.g. NSDictionary) for use in a certain view. What is the best way to call this data from the view I need it in? I don't think passing it along as a variable fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I validate whether a URL location exists or not? We're hosting SSIS reports on our servers and we are storing their paths in a sql server table. From .Net, I want to be able to make sure the path entered is correct.
This should return "true" because there's a report there, for example:
http://server/Repor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Rounding % Labels on bar chart in ggplot2 q1 <- qplot(factor(Q1), data=survey, geom="histogram", fill=factor(Q1), ylim=c(0,300))
options(digits=2)
q1 + geom_bar(colour="black") +
stat_bin(aes(label=..count..), vjust=-2, geom="text", position="identity") +
stat_bin(geom="text", aes(label=paste(..count../sum(..coun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Trying to use curl to do a GET, value being sent is allows null I'm trying to use curl to do a simple GET with one parameter called redirect_uri. The php file that gets called prints out a empty string for $_GET["redirect_uri"] it shows red= and it seems like nothing is being sent.
code to do the get
//Get code from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to tell if object is in an NSAutoreleasePool I would like to know how many times an object has been autoreleased. I've used objective c long enough that it's generally straight forward to know whether an object has been autoreleased or not, however I constantly see questions dealing with memory and retain count... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516864",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: file processing (for file with more than one fields) and problems associated with it here is a code i wrote to create the symtab of a sic/xe .asm file....
#include<iostream>
#include<fstream>
#include<iomanip>
#include"aviasm.h"
using namespace std;
void aviasm::crsymtab()
{
ofstream outs("symtab.txt",ios::o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jibx-maven-plugin 1.2.3 schema-codegen goal value ignored I am trying to use jibx-maven plugin 1.2.3 for generating Java Source Code from a Schema file.
Following is the plugin config in my pom.xml
<build>
<plugins>
<!--
To use the JiBX Maven Plugin in your project you have to add it
to the p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: smarty - how to use variables in code? This is part of my smarty code:
{if $cat=="3_0" or $cat=="3_15" or $cat=="3_16" or $cat=="3_17"}
How can I setup my code to use variable for characters (numbers) 15, 16, 17...? For example I would like have short code like that:
{if $cat=="3_0" or $cat=="3_"+ any two character... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: textarea that was using plain text with option of markdown or textile filter now needs images My clients can enter text into textarea and have the option to use the markdown or textile filters for each textarea.
With some models (articles, newsletter, etc) they can upload images to associate with the model, which a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android Map View v/s Web View? I am confused between webview and mapview, which is better?? in terms of flexibility, overlays, usage, load-speed, zoom levels etc etc
A: MapView is the native built-in class for doing Map related stuff. WebView is a native element for the browser. It has a javascript to Java bridge, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between Apache rules to block libwww-perl I want to know the difference between these rules and which is most effective to block libwww-perl with the file .htaccess
SetEnvIfNoCase User-Agent "libwww-perl" bad_bot
Order Deny,Allow
Deny from env=bad_bot
or
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
Rewr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Remove particular content (›) from last a tag in a div I have a list with breadcrumbs that is generated like this:
<div class="breadcrumps"><a href="#">Link1</a>›<a href="#">Link2</a>›<a href="#">Link3</a>›</div>
How can I remove the '›' after the last a tag? Currently I have this code which doesn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Label for File input in firefox When I add a label the a form input, I can normally click the label and it will refer me to the appropriate input (see below).
<label for="input">Label</label><input type="text" id="input"/>
However, when I try to accomplish the same with a file input, the click on the label gets ign... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Check if app available on Android Market Given an Android application's id/package name, how can I check programatically if the application is available on the Android Market?
For example:
com.rovio.angrybirds is available, where as com.random.app.ibuilt is not
I am planning on having this check be performed either ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: bash: Inverse (ie. NOT) shell wildcard expansion? Is there a way of handling invers bash v4 shell expansion, ie. treat all files NOT like a wildcard? I need to rm all files that are not of the format 'Folder-???' in this case and was wondering if there is a shorter (ie. built-in) way then doing a
for file in *
do
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Storing in String
Possible Duplicate:
What's the most elegant way to concatenate a list of values with delimiter in Java?
I have 3 different words listed in property file in 3 different lines.
QWERT
POLICE
MATTER
I want to read that property file and store those 3 words in String, not in aarylist separated by wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to have a menu across top with links left aligned and right aligned this may seem simple. I have a menu across the top of the page currently right aligned.
I want one link to be to the left of the page. How do it?
<div id="toptop">
<ul id="bottomnavlistl">
<li class="a">
<a href="@Url.Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flash - prompt user to remember camera and mic settings I request my user from mic and camera setting on my website with Flash, but the remember checkbox does not show, so every time my user logs in he's requested once again for permissions, how can I make the checkbox show to avoid this?
A: Call Security.showSett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: LINQ - SQL Display data in html table I would like to perform a select statement using a DataContext from the code behind page and then display the results in an HTML table.
Best ways to do this?
A: The best way to do this as always depends. One of the fastest and easiest way would be to directly bind the data to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516902",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I check if an element is in overflow area? i have a div with a with of 300px.
this DIV contains different Icons and if there are too many Icons then they are not visible due to overflow:hidden
How may i programatically check if an icon is visible or is in overflow area?
A: I couldn't find anything exactly l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are lambdas constructors for delegate types? I've discovered that Rhino Mocks' AssertWasCalled fails when I use lambdas as parameters to the method being asserted.
TEST :
_mockDoer.AssertWasCalled(x => x.Print(y => Console.WriteLine("hi")));
CODE INSIDE SYSTEM UNDER TEST :
_doer.Print(y => Console.WriteLine("hi")));... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Count number of occurrences of a specific regex on multiple files I am trying to write up a bash script to count the number of times a specific pattern matches on a list of files.
I've googled for solutions but I've only found solutions for single files.
I know I can use egrep -o PATTERN file, but how do I generaliz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: why this java regex is not working as I want? These are two type of string I can get in input:
String mex1 = "/ABCD/YY YYYYY SPA QWE XXXXX XXXXX SPA - 02342990153*XXXXX XXXX SPA ABCD LEGALI";
String mex2 = "/ABCD/YY YYYYY SPA QWE XXXXX XXXXX SPA - 02342990153*XXXXX XXXX SPA ABCD LEGALI/ORDERS/9865432342990160";
Whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Installshield : How to preserve files after uninstallation I am using installshield 11 to create Basic MSI Project. My requirment is, when i unstall the project, i want to preserve certain files.( I don't want these Certain files to be removed when unstallation takes place ). Morover, these files are not a part of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Temp record Insertion technique I am using sql server 2008. I have to insert records in temporary table using multiple select statements like below.
Insert into #temp
Select a From TableA
Insert into #temp
Select a From TableB
Insert into #temp
Select a From TableC
Insert into #temp
Select a From TableD
OR
Inser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a Table with a column of type BLOB in a DBAdapter I have a global DBAdapter and also for each Table one. In my global DB-Adapter I added the type "BLOB" to the column. But i don't get what i have to change in my DBAdapter for the specific Table. What I need to change there that it also works with the B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reporting Software for .net application I have done lots of research and have had a look at crystal report, windward reports and Telerik, but they are not what I am looking for. I need reporting software that will integrate with a .net web application that runs on several servers but doesn't require an additional ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to read Mifare classic Nfc tag? Could anyone explain the procedure of reading the NFC tag. I have gone through this link. http://mifareclassicdetectiononandroid.blogspot.com/2011/04/reading-mifare-classic-1k-from-android.html And Nfc Demo link also. There are two different procedures to read the tag. Do i need... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: EF4 How to create query with dynamic select and where statement I am trying to create a some kind of dynamic loader for my models where I can specify which properties I need, the main purpose of it is to create a REST API which provides dynamic information as JSON for individual models.
The API would be accessed by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: parsing using DOM Element Suppose I have some html and I want to parse something from it.
In my html I know A, and want to know what is in C .
I start getting all td elements, but what to do next ?
I need to check something like " if this td has A as value then check what is written in third td after this. But how c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How should I Encode my Twitter Key? I have my consumer and secret key. I know I have to encode the secret key when it is included in my app. What is the best way to go around doing this?
A: The first solution could be to use obfuscation (search for ProGuard for Android, there are a lot of resources about it) and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there Any way to imitate Lion's Launchpad? I have been struggling to imitate Launchpad.
At the beginning I thought about making NSWindow bgcolor transparent:
//make NSWindow's bgcolor transparent
[window setOpaque:NO];
[window setBackgroundColor:[NSColor clearColor]];
But now I realized it's way more ideal to
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: php: looping thru results from mysql query to increment counter (associative array) I'm retrieving data from a MySQL db and creating reports from it. I need to get counts when certain conditions are met, and since db queries are rather expensive (and I will have a lot of traffic), I'm looping thru the results from a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you use the net functions effectively in Go? For example, having basic packet protocol, like:
[packetType int][packetId int][data []byte]
And making a client and server doing simple things with it (egx, chatting.)
A: Here's a client and server with sloppy panic error-handling. They have some limitations:
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Javascript: How can I remove appended child row (tr)? I am using JS to append array data to a table.
I am trying to add a button that removes the appended data, and puts its own data in instead. I can get the data to be added, but I cant get the data removed.
I have tried these with no luck -
.children().last().r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In Swing, how to apply KeyListener on no specific component Generally we apply the Key Listener on specific components like text field, password fields, etc. But I would like to generalize this listener behavior to be applicable to all.
A: Swing was designed to be used with Key Bindings which might do what you want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Can't fetch data with Ruby and Basecamp API My code:
require 'rubygems'
require 'basecamp'
basecamp = Basecamp.establish_connection!('example.basecamphq.com', 'example', '123456', true)
projects = Basecamp::Project.find(:all)
projects.inspect
It gives:
/Users/kir/.rvm/gems/ruby-1.8.7-p352@project/gems/activeresourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Perl period vs comma operator Why does
print "$str is " , ispalindrome($str) ? "" : " not" , " a palindrome\n"
print "madam is a palindrome", but
print "$str is " . ispalindrome($str) ? "" : " not" . " a palindrome\n"
prints ""?
A: The conditional operator (? :) has higher precedence than the comma, but lower th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Retrieving irq number of a NIC I need to retrieve an interrupt number of interface by its' name as appears in ifconfig.
Is there some standard API to do it?
A: The interrupt number lives in sysfs. Look for the file /sys/class/net/[ethname]/device/irq. For example:
more /sys/class/net/*/device/irq
::::::::::::::
/s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: dot notation and accessing instance variable So I was reading some other thread about using dot notation to access an instance variable and a definition was the following:
By self.myVariable you are accessing the instance variable myVariable
and by myVariable you are accessing the local variable. They're not
th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I access flash messages in zend framework, in IE? I'm using this in my layout file
$flash_messages = Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger')->getMessages();
It works correctly in all browsers, except IE. The array is empty in IE. I confirmed that the messages are being set cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I get a ratio from a selection in sql? I will revise the question with an appropriate name once I'm certain how to communicate what I want.
I have a table called batch_log where people start and stop the work on a batch. Each entry looks like this:
"id";"batch_id";"userid";"start_time";"end_time";"time_elapsed"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Calling SLNode find() method I am working on an assignment for school where a SinglyLinkedList class is provided and we are supposed to create a program that makes calls to this class to add, delete, find, and display items in a list. I have implemented the add, delete and display methods just fine, but I can't figu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7516998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change CSS value when page has loaded on all EXCEPT first instance I have the following piece of code do change the value of a division once the page has loaded but I was wondering if it would be possible to amend it to change the value of all of the divisions with that class with the exception of the first one.
jQu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android - connecting to Wifi without security regulations (no WEP/WPA/WPA2) I tried to establish a connection to an unsecured Access point, but it always creates a new profile with WPA2.
ap_ssid = "\"AP_SSID\"";
wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sonar - how to create sub projects with sonnar-runner I have a Java project which consists of a couple of modules. I am using Sonar to statically analyse my code. Currently I am using sonar-runner to analyse each of the modules, and they appear as different Projects in the main page of Sonar. I would like to see the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to access Assembly Information in Asp.Net How do you access the Assembly Information in Asp.Net (Title, Description, Company, etc.)?
Do you have to use reflection?
A: You're just talking about web.config?
<configuration>
<system.web>
<compilation>
<assemblies>
<add assembly="<AssemblyName>, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Check if parameter is NULL within WHERE clause I´m having trouble with a Stored Procedure that takes about forever to execute. It is quite large and I can understand that I´ll take some time but this one continues for almost 20 minutes.
After some debugging and researching I noticed that replacing this part of the W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there a more efficient way to get this flat data into a dictionary? I have the following code:
public class Alert
{
public string Alias { get; set; }
public int ServiceHours { get; set; }
public int TotalHoursDone { get; set; }
public int UserId { get; set; }
public int VehicleId { get; set; }... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How Come when I sampling profile a program and it actually runs faster than not profiling? I use DotTrace 4.5 performance
time in release mode:
2400000000
Basic: 00:00:08.8051103
2400000000
Five: 00:00:09.1561338
2400000000
Overload: 00:00:16.3740938
2400000000
IListtoFive: 00:00:15.5841445
time when profil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Finding the least-used permutation I need to distribute a set of data evenly over time based on historical data such that each digit appears an equal (or close to equal) number of times in each position over time. The problem is, given a list of orderings used in the past, that look like this (but could have any num... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Check whether a directory exists or not using JavaScript How to check whether a directory or folder exists or not using javascript or jquery?
A: You can't. If Javascript had access to the file system (either client or server), it would be a security hole.
A: Do you mean Javascript running in the browser and check... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to optimize this sql delete statement I have 3 tables, the first one, table1, has as primary key the id column, the second table (table2) has a column table1_id that refer as foreign key to the table1.id, the third table (table3) has, as table2, a column table1_id that refer as foreign key to table1.id.
I have t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Graphing data, website views what platform to use I have been tasked with producing a analytic tool for some of the data which we get in about the activities the company i work for has with its clients.
Last week i made a mock up view of one possible graph using some PHP and the Flot Jquery graphing tool. Unfortuna... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the Prof. method to layout the install file in Linux user@ubuntu:~/Downloads$ tree mongodb-linux-i686-2.0.0
mongodb-linux-i686-2.0.0
|-- bin
| |-- bsondump
| |-- mongo
| |-- mongod
| |-- mongodump
| |-- mongoexport
| |-- mongofiles
| |-- mongoimport
| |-- mongorestore
| |-- mongos
| |-- m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding, removing and updating tags for comments in web page I'm building a commenting feature for a web page where all comments can have any number of tags (not HTML tags, but tags like here in SO, duplicates not allowed) and those tags can be updated by anybody.
Let's say some comment contains tags [tag1, tag2, tag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adding Index on every foreign key - Pros and Cons? We have an SQL Server 2008 R2 database that is attached to our web application. Data is added each day, but MANY reports are run against it. As such the data is being read much more often than it is being written to.
The reports are running slow, and adding the 'sug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7517060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.