text stringlengths 8 267k | meta dict |
|---|---|
Q: PostgreSQL: How to optimize this query I am developing a small application in C++ and using PostgreSQL as back-end database. Along with other tables in my database in have a "projects" table. Based on each primary key of this table a new table is dynamically added in my Database.
Example:
Suppose the projects table ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get altitude in Android I use the Location class to get altitude, but it always returns 0.
Please tell me how to get altitude?
Location.getAltitude();
A: Initially I used location.getAltitude() and it always retuned 0.0 . Then I came across https://groups.google.com/forum/#!topic/android-beginners/KNeLh905i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get every 100th "Like" for Facebook page We would like to reward every 100th Like of a Facebook page. I've seen other pages doing this, but all of them seem to be operating manually.
Is it possible to get this information using the current Facebook APIs? The fan count could probably be polled using a cronjob, but if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to block free shipping method in frontend only in magento I am in a tensed situation. I am behind this for more than 1 day. Is there anyway to block showing free shipping method in checkout page, but showing it on admin panel page.
For eg: i purchased a product paying shipping charges for shipping method. But it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what is wrong with this jquery drop down I have trying to create this jquery dropdown, but it doesn't work, Does anybody know If I am missing something in jquery or CSS
<style type="text/css">
body{padding:0px;margin:0px;}
ul li{list-style-type:none;}
#cssdropdown{padding:0px;margin:0px;}
a{text-decoration:none;pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: find all method invocations How can I using eclipse Java search find all calls of methods that are declared in specific class?
I tried p1.p2.p3.MyClass.* but this search string finds equals, getClass calls which is not necessary. I only need to find methods that are declared explicitly in p1.p2.p3.MyClass.
A: If yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error in connecting with Php app in Android Here is my code to send the data from android app to php app which is running in my localhost. It is showing "Connection to http:// localhost refused" . Please help me
public void postData() throws JSONException
{
// Create a new HttpClient and Post Header
HttpCli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do i align a view in RelativeLayout to top-right corner Im trying to figure out how to align a view in relative layout to its top right corner.
Currently it is aligned in top left corner.
A simple problem, yet I dont know how to do it.
Here is the code:
RelativeLayout.LayoutParams gpsViewLayoutParams = n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Open access database (mdb) in sharing (among multiple users) I have an access database (mdb) and I want to open create an "automatic system" that a third party user (I would say a stupid-user) could run a macro automatically. So I created a batch file and I run the command:
INOPENSPACE.mdb /nostartup /x MyMacro
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Identifying the entity in sentiment analysis using Lingpipe I have implemented sentiment analysis using the sentiment analysis module of Lingpipe. I know that they use a Dynamic LR model for this. It just tells me if the test string is a positive sentiment or negative sentiment. What ideas could I use to determine t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Django and tests in docfiles I'm having a small problem with my test suite with Django.
I'm working on a Python package that can run in both Django and Plone (http://pypi.python.org/pypi/jquery.pyproxy).
All the tests are written as doctests, either in the Python code or in separate docfiles (for example the README... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Image download - image cannot open I tried to create some code so that a user can download an image in opencart without right clicking and using Save as... but after I created this code and download the image, trying to open the image says the image was damage.
<form action="download.php" method="post" >
<input type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Image Compression Algorithm - Breaking an Image Into Squares By Color I'm trying to develop a mobile application, and I'm wondering the easiest way to convert an image into a text file, and then be able to recreate it later in memory said text. The image(s) in question will contain no more than 16 or so colors, so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I create elements with trigger invoke method in SilverLight? This question is a continuation of the pregoing one.( How can I combine some UserControls in SilverLight?)
I have 3 view models with different colour properties.
How can I create elements of User Control with trigger invoke method after pressing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Binding interface via ToMethod to a method with a parameter I think what I'm looking for is something very simple, yet I am unable to find any examples.
I'd like to use Ninject to create an object by having Ninject call a factory method with a parameter specified and not injected during the actual request to instant... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Background worker update progress freezes datagridview I am trying to write an application to get a list a users in various AD groups and display them in a datagrid on a form.
When a button on my form is clicked it fires a background worker which calls a method to get the user list for an AD group.
The background wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android AsyncTask onPostExecute method EDIT: If I do not use the progress at all, just showing the dialog, then everything works without any problems. But if i add progress, then dialog doesn't close(method onPostExecute() is not fired).
onPostExecute method is not executed. Where do I have a mistake? (Same result ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does robots.txt apply to files/directories only, or URLs too? I can use robots.txt to stop a folder of images/html files getting indexed. But what about dynamic pages, e.g. preventing indexing of certain WordPress pages?
A: The robots.txt syntax doesn't care about whether a page is dynamic or not: All that matters ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to validate user input a number and the number greater than 0 I'm trying to validate user input that user must enter number and it must be greater than 0, the validation of only numbers I got it working; however, I can't seem to incorporate the validation of greater than 0
float income;
cout << "How much did you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: facebook comments words expanding I created an app and installed it on a page. In this app, I installed the comments plugin specifying the data-href parameters as follows:
http://www.facebook.com/{my_page_username}?sk=app_{my_app_id}
It seems that facebook enabled the grammar filter by default and is erroneously exp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to register interop .net asssembly per user Without Administrator Privileges using InstallShield I am working on a task not to prompt a normal user a popup(UAC) for approval to install windows Addin application while registering a .net assembly during installation using instalshield. On windows xp, its working f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google feed api integration with iPhone/Objective C I am building an RSS Reader. Some of the existing ones out there (for example, Pulse News for iPhone/iPad) have a search box where you can search for some term (example - "sports") and it will return a list of feeds that match your search criteria. So in this examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: asp.net mvc 3 double level authentication suppose i have a forms authentication in my application. once authenticated, it can access certain folders / controllers in my website
auth level 1 -> profile,history,change password
but, certain users can access another part of site if they pass level 2 . this type of users... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Issues with JFrame and JPanel Separation? I cant tell If I'm just not getting what these 2 things are but from what I gathered, the JFrame is just a big open box, So what I am trying to do is have that big box that opens will be say Red, then after that I'm making a JPanel which I assume is something that sits on to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Designing Animation using jQuery - Need Samples I need to design small (and simple-looking) animations which would suit a board game.
For example, I need to coins which appear when points are won. The coins glide in a certain way towards the score-board.
Are there sample implementations for simple animations or som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Simple deterministic primality testing for small numbers I am aware that there are a number of primality testing algorithms used in practice (Sieve of Eratosthenes, Fermat's test, Miller-Rabin, AKS, etc). However, they are either slow (e.g. sieve), probabalistic (Fermat and Miller-Rabin), or relatively difficult to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: I'm using Facebook PHP-sdk v3.1.1 ... Do I still need to set cookie to "true"? I just upgraded my php-sdk to the latest version (v3.1.1) .. Do I still need to set cookie to true like I used to do when using php-sdk v2.0 ? or should I just remove this line?
$facebook = new Facebook(array(
'appId' => 'MyappId',
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Switching to use a background image from no background image via a multi-part post to the Twitter API with Ruby and OAuth I would like to change my profile background from no background image to a background image that I upload via the Twitter API using Ruby. I have no problems uploading new background images when m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Nginx rewrite omitting port I've got a an nginx setup that's proxying all requests to a rails app. I would like to have a some kind of "maintenance-mode", so that if I use a different nginx-config, all incoming requests should return a local maintenance.html page.
Here's what I've come up with:
server {
list... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: writing java testng test cases I am beginning with Java and testng test cases.
I need to write a class, which reads data from a file and makes an in-memory data structure and uses this data structure for further processing. I would like to test, if this DS is being populated correctly. This would call for dumping th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: converting image name extension from .PNG to .png in Python I have large set of images with .PNG extension (say image00.PNG). I want to convert it into .png (lower case). I got a script from internet, but am unable to process.
Here's the script:
files = os.listdir(cur_dir)
for filename in files:
file_ext = os.pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Extending System.String for custom EditTemplate (Ajax) implementation This is the following.
Normally, when i have a city, i'm using some javascript to autocomplete the cities as the user type.
Now i want it to make it automaticly, using the edittemplate. So i would change :
Public String City{get;set;}
to
Public... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: for-loop & ArrayList This is a simple exercise from Chapter 2 of the Sun Certified Java Associate Study Guide that i'm having trouble with. When I try to compile the class below, I get the following error message:
"error: type ArrayList does not take parameters
ArrayList hookSizesList = new ArrayList<>;"
import jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Excel 2003 protected worksheet, not allowing Excel 2000 users to use autofilter I have created a spreadsheet for work and am trying to protect the sheet so that nobody except myself can edit the document. I have set it up so that I can edit the full range of the document. In the protection setting I have ticked the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Learning Haskell with a view to learning Scala I've read a few questions such as Scala vs Haskell discussing the merits of both languages or which to learn, but I already know that I'd like to learn Scala. I was a Java programmer at uni and now mainly use PHP.
I want to learn Scala as it looks like an improvement o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: How to create named autoresetevent in C#? I need to synchronize two applications by using a named event. But neither AutoResetEvent nor ManualResetEvent contains constructor with a name for event (only initial state). I can open existing named event through static method OpenExisting in AutoResetEvent or ManualReset... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Checksum of a loop device file exactly reproducible? how can I mount and unmount a file as loop device and have exactly the same MD5 checksum afterwards? (Linux)
Here's the workflow:
*
*I take a fresh copy of a fixed template file which contains a prepared
ext2 root file system.
*The file is mounted with mount -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to port an iOS game to WP7 Does exist any tool or procedure to easily port a iOS game (made with cocos2d for example) to Windows Phone 7 (XNA)?
Thanks!
A: You can use Cocos2D-XNA which is a good port of the cocos2d-x project to XNA and C#. You can find the source for Cocos2D-XNA at https://github.com/Cocos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Making a Composite Component in JSF2 I have a problem with my composite component in JSF2. I implement a list using ui and li. But if I use my component nothing happens. My list-tag is not replaced in code generated by facelet. So whats wrong with this.
The composite component is stored under /resources/util/list.xh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I add addresses to a person from the add person form? I have a (rails 3/jquery) application where a user comes across a new person form. In the form, one of the things he can do is to add addresses as he is constructing the person. I want the addresses to be added, and displayed (either through Ajax, or on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I want a button on my website that will execute a python script I am currently making a website using django. Now I want to execute a python script from my template/view with a button on the website. It should be possible but to be honest I don't know how.
An example would be best.
Thanks for any help at all.
A: If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Cocos2d App is Freezing I'm creating a game app using cocos2d Chipmunk. The app is working normally but after 30 to 40 seconds the app becomes unresponsive(app freezes) without any error log.
Can any tell me why this is happening and how to overcome this problem.
Please tell me the code also.
Thanks in advance..
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing an async method call Below is a simplified setup of my application. It has a class Foobar which calls on a facade method for fetching data. The facade then calls on a web service to actually get the data and then manipulates the data a bit and then returns it to Foobar.
Now because the web service might take... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Reason for not requiring numbers in a username I've come across a system that requires you to include a number in your username. I feel this is pointless, as the username should be easy to remember, and not be subject to requirements that may be applied to passwords.
However I can't find a good write up of the reaso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594362",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Resolve generic types with IXamlTypeResolver I'd written a new TypeExtension class that replace the default System.Windows.Markup.TypeExtension to handle generic types. It allows the Xaml to work with generic types in many different ways, like :
<DataTemplate DataType="{ck:Type [here a generic type name]}">
This is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I do a MSBuild Condition testing if an ItemGroup contains an item? This should be simple, but I can't find how to do this (or maybe it's not possible).
In MSBuild I have an ItemGroup that is a list of files.
I want to execute a task only if a particular file is in that ItemGroup
Something like:
<Copy Conditio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: listview and round corner doesn't work What I want:
I'am using a Listview and I want to use this view with round corners.
Situation:
A listview without round corners :-( .
I use different examples to define a customShape
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I add an image column to a table in wicket framework? I want to add a column containing images in each cell of a table in wicket framework. I make the table in a java class and have a createColumns() method as the following:
private List<IColumn> createColumns() {
List<IColumn> columns = new ArrayList<IC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: sort Gridview doesn't work I have asp.net page contain gridview as following
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
OnPageIndexChanging="gridView_PageIndexChanging"
OnSorting="TaskGridView_Sorting"
AllowSorting="True" AutoGenerat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use HTC opensenseSDK? I downloaded and test HTC opensense SDK . But I can't test any sample application . The main.xml file in the layout show like this
The following classes could not be found:
*
*com.htc.painting.engine.HTCPaintingView (Fix Build Path, Edit XML,
Create Class)
*com.htc.painting.p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to preload my nav bar's graphics I created and coded my own css navigation bar (inspired by apple, if that helps you visualize), that means i have dynamic buttons with 4 states that i manage with a css stylesheet. I only have two graphics, one with the button states, and another with the stylized "text".
Howeve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to write Unobtrusive Ajax calls in jquery with rails I am currently in rails 3.1. I wanna achieve ajax call in jquery with out the use of form_for method.
My current page is localhost:3000/posts/show/2 and I have a button in the page and it does not belong under any form. On click of that button, I have to send ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Storing a boolean value on the server WordPress has this thing that examines whether it has been set up (installed) on the server and if it's not, it takes the visitor to a "install" page. I need to have something like that in a system I'm building.
I need to store a boolean value on the server.
What would be the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why a STUN Server Needs Two Different Public IP addresses I have took a look to STUN Server settings in openfire, and this statement from there:
"In order to act as a STUN server, two different public IP addresses on the same machine are required, as well as two different port numbers for each IP."
I have researche... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Android LogCat displaying messages multiple times instead of once I'm working on a project which is connecting to web server and gets data stream from it. For testing purposes I'm showing all the data in LogCat so I can be sure that everything is right.
I'm testing my application in 2 devices:
*
*HTC EVO 3D
*HTC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HQL CASE statement usage I'm using HQL and have this query
<query name="rule.myRule.query.by.name">
<![CDATA[
FROM rule.myRule as cr
WHERE cr.name LIKE :name
AND cr.type = 'myType'
CASE
WHEN COUNT(cr.childRules) > 0
THEN
cr.childRules LIKE :name
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to hide literals in code What are the main existing approaches to hide the value of literals in code, so that they are not easily traced with just an hexdumper or a decompiler?
For example, instead of coding this:
static final int MY_VALUE = 100;
We could have:
static final int MY_VALUE = myFunction1();... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C program through mysql pull I have this code to find the mean and standard deviation of some input values. But it's a static program. I want to pull this through a MySQL database and use it. Can you help me out?
int main[]
[
/* 2-dimensional array is used to store the height,lenght and the width attributes of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to replace word/words with url/urls using jQuery? I want to replace specific words (laptop, asus, acer) with links (test.com/l12, test.com/13, test.com/14) using jQuery.
I found this function
<script type="text/javascript">
(function($) {
var thePage = $("body");
thePage.text(thePage.html().r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Media Object in C# WebBrowser control with Custom DirectShow Filter in Windows 7 I have a Windows Media Object in a C# WebBrowser control. We've got what are basically .AVI files, and the files have been given a custom header. In order to play these we have a custom DirectShow filter.
The videos can be playe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to send to a jsp page from a rest call I've written a rest interface (with jersey), a browser will be calling this rest interface. I would like show some html/jsp to the user as a response to this rest call...
Is this possible? How do I do it?
A: Yes, that is possible. This post as well as this one gives a hint... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: use validateRequired through composite component I'm trying to forward "f:validateRequired" validator through a composite component without using required attribute.
How to get its value inside of my component ?
<aa:myComponent id="specificNotice" value="#{edit.specificNotice}">
<f:validateRequired for="spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ajax push system In my own system, I have a PHP page which displays all the goods I have sold through my online webshops, from the latest transaction to the first.
I would like this page to automatically update, whenever people buy something from me.
I could make AJAX call every 5 seconds to check the orders in my d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: parse youtube input links and get youtube ID using jquery ? I know lots of people asked this sort of question alot but unfortunetly I couldn't sort out my problem .
I have this code in my textarea editor to input a youtube link :
{name:'youtube', key:'Y', replaceWith:'[youtube][![Youtube video Url]!][/youtube]'},
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: I want to display buttons at the bottom of the screen and the buttons are inside linearLayout4,can someone pls tell me in this, am frustated now Problem with last linear layout containing buttons,I want to display my last linear layout i.e. of id-linearlayout4 at the bottom of the screen,so that my buttons should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android service not found (contact change detection) I am trying to get my Android app to respond to changes in the local address book and sync with it on a need basis.
I understand that in order to do that, I need to create a service to run in the background. I did.
But it isn't working... when my app runs and I tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bind to parent DataContext within DataTemplate I'm trying to bind MenuItem's Command to command contained in UserControl.DataContext. I've found couple of similar question, but solution according to them is failing to me:
<UserControl ...>
<UserControl.Resources>
<DataTemplate x:Key="TileItemStye">
<Grid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Session getting cleared with Authorize attribute? I am trying to customize my Authorize attribute so that it redirects the user to appropriate page if he is not authorized.
This is my code till now:
public class CustomAuthorizationAttribute : AuthorizeAttribute
{
public string ErrorMessage { get; set; }... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHPExcel modify existing .xlsx file with multiple worksheet
require_once '../Classes/PHPExcel/IOFactory.php';
/** PHPExcel */require_once '../Classes/PHPExcel.php';
$excel2 = PHPExcel_IOFactory::createReader('Excel2007');
$excel2 = $excel2->load('dentkey.xlsx');
$excel2->setLoadAllSheets();
$excel2->setActiveShe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Alfresco web service authentication I'm trying to connect to a remote Alfresco webservice using this java instrunction:
WebServiceFactory.setEndpointAddress(configFile.getProperty("WebServiceFactory"));
AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub) new Authentic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why doesn't my likebox doesn't show any faces? I have a likebox generated with this code:
<fb:like-box href="http://www.facebook.com/pages/Browser-Games/260061187354628" width="250" show_faces="true" stream="false" header="true"></fb:like-box>
The SDK is loaded like this:
FB.init({appId: '111929132246901', status:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DB client shows only date without time component..how can I convert? I am saving date with time into DB and using SQL Developer which by default shows just date. I know its matter of client config but I have seen query in Oracle that returned time component of date when one was present. Something like convert (HH:MM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594460",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Looking for .net logger that would save output as html page Is there any .net logger that would log events and write logs to html page or maybe any logger that stores logs to database or to file and then generates html page from it?
A: I am not aware of any complete solution as you ask for; log parsing can be very... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: to add a last row in listview i have a custom listview i want to add one lat row to it which will calculate total of all the list when i scroll the last row gets added again and again
if(position==searchResult.size() && searchResult.size()!=1)
{
holder.checkImg.setVisibility(ImageView.GONE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Group-wise Maximum of a Certain Column I've got the table:
SELECT * FROM shop;
+---------+--------+------
| article | dealer | price
+---------+--------+------
| 0001 | A | 3.45
| 0001 | B | 3.99
| 0002 | A | 10.99
| 0003 | B | 1.45
| 0003 | C | 1.69
| 0003 | D | ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594465",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Does a decision on what services to use and in which order consitute logic in an MVC controller method? I am near the end of a new ASP.NET MVC application I have been developing, and I have realised that I am not 100% on what should be goning on in my controller methods.
Is it better for an action method to decide w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lion Resume when Closing Docs without Quitting App I'm dipping my feet into Cocoa for the first time.
Here's a simple question. OS X Lion supports Resuming of window state when an app is terminated and relaunched. Okay, good and fine.
But for document-based apps, can the same Resume feature also manage saving of win... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Webdriver : how to set IE in virtual environment? I am setting up the Virtual Environment for my grid-based Webdriver tests. And sure enough, there are problems with IE driver.
First of all, Internet Options → Security should have the same Protected Mode setting. It's an easy fix if you have an access to the browser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replacement for Prototype.js Class system We have a set of classes created that depend on Prototype's Class implementation (and some Object.extend).
The problem is prototype is creating trouble when integrating with the rest of our applications (even with "noconflict" adapters and the such).
Does anybody know of a c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Does the message contract provide interoperability across different languages? I am reading about WCF services. I am new to the WCF services. I read that WCF provides interoperability. I want to know in which context it provides the interoperability. Is it providing the interoperability in the context of consuming t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to give an asp button a specific shortcut Q:
Is there some way to capture (specific key(keyboard stroke)) ,when the user clicks it as he clicks the specific button i want.
I want to do that , because i have a grid view with an insert button in the gridview footer (to create a new row),and for facilitation, inste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How using usemap in div background url i missed you
can you help me? i have such style
.lorry{
background: url(../img/lorry.png);background-repeat:no-repeat;
_background: none;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/lorry.png');
height: 143px;
width: 385px;
float... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Issue with ViewPager in application I know we can flip pages horizontally using ViewPager.But is there any function which i can override which can catch the action when i will flip pages left and right.I mean any function which will be called when i will flip left and any function which will be called when i will fl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I change the circle picture of a radio button in both cases checked and unchecked? I want to customize the radio buttons so instead of being like this "empty circle in case unchecked and green on in case checked"
I want to make the picture in case it's unchecked like this
and in case it's checked like this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I reorder the tab order of two elements in the middle of the page? I have a dynamic web page, and I need to reorder the tab order of two elements some place in the content. I really don't want to set the tab index for every preceding element to achieve this. Is it possible to assign a tab index to an element... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: TinyMce wiht AtD spell check not work correctly in Chrome, please guide? In my asp.net site I have TinyMce editor and for spell checking I have included AtD (after the deadline) spellcheck plugin in it.
In Chrome there is a problem this AtD spell check plug in has damaged TinyMce controls functionality. I can not us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Could not load file or assembly 'System.Windows.Controls' in silverlight 5 using prism4 I'm creating an application silverlight 5 using prism 4 and when I'm running the bootstrapper using UnityBootstrapper then I have the next error:
Could not load file or assembly 'System.Windows.Controls, Version=2.0.5.0, Culture=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: CRM 2011 Workflow Condition Issue I have created a simple workflow in CRM 2011 which checks a field value in one entity and creates a new record in a different entity. Sometimes however, the creation doesn't occur, it just seems that the condition is not met when it should be.
Consider an entity called "Car" which h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: XmlReader and InvalidCharacter I am using SqlCommand.ExecuteXmlReader() to Execute an SqlCommand with FOR XML AUTO, ELEMENTS
Now, there is a column which contains for xml invalid characters (like 0x1F). When I read now the result of the XmlReader with
using (var xmlReader = command.ExecuteXmlReader()) {
xmlReader.R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594494",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WEbResponse throws 500 Internal server error I have many times successfully implemented reading data from web pages using technique like this:
WebRequest req = (WebRequest)WebRequest.Create(path);
WebResponse resp = (WebResponse)req.GetResponse(); etc.
.........
However, this time the WebResponse throws an inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: get a list of listItem.fieldValues Client object model Sharepoint 2010 I'm building a Sharepoint 2010 export tool for back up reasons (a bit like the filemanager from Metavis).
When downloading a file to local disk I need to back up the metadata associated with the document. Which I will store in a csv-file. My firs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to close the current form in a SplitContainer? I have a user control in my SplitContainer's right panel. A form opens below the user control. Now if i click a button in the user control, that current form should close and a new form should open. How to do this?
A: You can implement below logic in your app easil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get video resolution on Mac via .NET I can get informations about video-files like resolution by using the Shell32.dll under windows.
Is there some way to do this (in C# - running under the mono framework) that will work on Mac?
A: Use MonoMac and look at MonoMac.AppKit.NSScreen. It should have all the properties y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Refresh only a specified spot in asp.net website (Updated code) not working I want to do page load every 5 sec so I have this in my head content
<meta http-equiv="refresh" content="5" />
Because of this the whole page refreshes. I just want to refresh the gridview and the graph that I have in the page. How can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Modulo operator with negative values Why do such operations:
std::cout << (-7 % 3) << std::endl;
std::cout << (7 % -3) << std::endl;
give different results?
-1
1
A: a % b
in c++ default:
(-7 / 3) => -2
-2 * 3 => -6
so a % b => -1
(7 / -3) => -2
-2 * -3 => 6
so a % b => 1
in python:
-7 % 3 => 2
7 % -3 => -2
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "194"
} |
Q: Mocking HttpContext to retrieve item form contexts item dictionary We use MVC3, for our unit tests we use RhinoMocks in our unit tests.
When the a request starts we check the domain from which it came and match that to a customer.
This customer is stored in the HttpContext.Items.
Most controllers need this info to d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Gstreamer video to opengl texture I'm trying to render AV frames grabbed and converted from a MPEG4 video using Gstreamer to an Android (2.2)-opengl texture. I've pretty much exhausted google and not found an answer.
Basically, I am using Gstreamer uridecodebin to decode the frame, and then convert the frame to RGB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: IIS 7 Session timeout frequently I prepared my website in visual studio 2008 with ajax control kit and working well in the local machine.
My website is hosted on Windows 2008 R23 Server with II7
But it is frequently loosing its session with in 30 secs.
Please provide me a solution to increase my session timeout.
my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to obtain the exact dpi value of android device? we can use DisplayMetrics.densityDpi to obtain a approximate dpi value of the device,but i eager to know how to obtain the exact dpi value?
A: I think you can accesss this through the class DisplayMetrics and the field densityDpi.
A: Use DisplayMatrics.xdpi and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Internet Explorer 6 Mobile Scrollbar Rendering Problems I have a web application running on internet explorer 6 mobile, and I've noticed that the rendering of scroll bars is inconsistent. For example, if you take a regular html select (with lots of entries) and expand it, the scroll bar renders in a slim, black-colo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7594530",
"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.