text
stringlengths
8
267k
meta
dict
Q: Jquery, after cloning and changing id of a div, cannot access the element through that id After I clone my (div) container and change the id, I cannot seem to get at it using the id-selector, am I doing something wrong? I know the clone is correct, I know the id changed good, but I can no longer use the default Jque...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Selecting every Nth row per user in Postgres I was using this SQL statement: SELECT "dateId", "userId", "Salary" FROM ( SELECT *, (row_number() OVER (ORDER BY "userId", "dateId"))%2 AS rn FROM user_table ) sa WHERE sa.rn=1 AND "userId" = 789 AND "Salary" > 0; But every time the table g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Searching for certain triples in a list Let’s assume we have a list of elements of the type {x,y,z} for x, y and z integers. And, if needed x < y < z. We also assume that the list contains at least 3 such triples. Can Mathematica easily solve the following problem? To detect at least one triple of the type {a,b,.}, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Flash, ActionScript 3.0 Tiles map I want to build a Flash game using tiles (32x32) For a few years ago I used http://www.tonypa.pri.ee/tbw/start.html but I'm quite sure that is pretty outdated these days. I want to have scrolling as well (a big map). Could someone provide me with some links that I can start off with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to modify sql Data Source parameters on event? here is my scenario: Iv linked a parameter of my sqlds to a dropDownList (dropDownList.selectedValue), but i want it so that when the selected item is "" (an item with no text is added on pageload, to let the user select a null value, sort of), i want the sqlds to p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Instapaper API & Javascript XAuth I've spent most of today try to implement Instapaper's XAuth API. I haven't even been able to get an oauth token, yet. Any ideas what I'm doing wrong? I'm using node.js and the oauth module. It's my understanding that I need to pass the username, password, amd mode as extra paramete...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Wait for threads to complete before continuing When the user launches my Android App, I fire up 2 threads to do some processing in the background. thread_1 does some calculations on the client, and thread_2 fetches some data from the server. That all works fine. None of the threads modify the UI. I have two follow u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Function Pointer - Automatic Dereferencing Possible Duplicate: How does dereferencing of a function pointer happen? void myprint(char* x) { printf("%s\n", x); } int main() { char* s = "hello"; void (*test)(char*); void (*test2)(char*); test = myprint; test2 = &myprint; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Probability computation and algorithm for subsequences Here is a game where cards 1-50 are distributed to two players each having 10 cards which are in random order. Aim is to sort all the cards and whoever does it first is the winner. Every time a person can pick up the card from the deck and he has to replace an e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Remote service does not Bind / asInterface returns "null" I created a Remote Service after the example in this book and try to bind it with in this activity: public class TuCanMobileActivity extends Activity { /** Called when the activity is first created. */ //private HTTPSbrowser mBrowserService; private HTTPBrow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Identifying Files in Plone BlobStorage Files in var/blobstorage can be listed and sorted by their sizes via Unix commands. This way shows big files on top list. How can I identify these files belongs to which IDs/paths in a Plone site? A: There is no 'supported' way to do this. You could probably write a script to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Where do you whitelist your domain on Facebook for video embeds? Do you still need to get your domain whitelisted by Facebook to allow embedding of your own Flash videos into feeds? If so, where do you go to do so? The old page was: http://www.facebook.com/help/contact.php?show_form=video_embed_whitelist This, howev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How are URI's handled in a REST api? I'm creating a hobby iOS app, and I'm a bit confused about how to create a REST backend for it. I've read the resources available on the internet and I understand the theories behind REST. However, I'm confused about how the URI's get handled. For instance, is there a file hand...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: While loop keeps repeating I setup a while loop where i want to choose r or h, i dont want to use forloops but i want to use a switch why is it when i enter r or h it keeps repeating a million times the cout for that case? I cant get it to just say it once.. while (chooseMove == 'r' or 'h') { switch (chooseMove)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: NullPointerException when trying to add object to BlockingQueue? I found a similar question about a PriorityQueue, the error with that one was that it wasn't initialized correctly. I might have the same problem, but i can't figure out how to initialize it correctly! As of now i just do: BlockingQueue myQueue =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Making an Android App (Java) 'Wait' Until Something Finishes I have this app that originally has you take a picture, shows you a progress bar, and uploads it to a website. What I want to add is something so that before the progress bar shows, an Intent starts an activity that loads a layout with a dropdown menu that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharing SQL Server Between Multiple System I have three computer in a office and I have installed my C#-2005 Project on all three computers. But Problem is that Boss wants Sql-server-2000 on One PC out of three and other would share the same. I don’t know how to share Sql-server-2000 between three PC?. How to do?. C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic video playback speed on iOS? Does anyone know how to play a video on an iOS device, then change the playback speed smoothly to a faster or slower framerate?
{ "language": "en", "url": "https://stackoverflow.com/questions/7518849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: EWS: How to upload attachment first before sending an email? I use Exchange Web Service API to do sending email. It is very easy to add attachments by just writing message.Attachments.AddFileAttachment(attachmentname); The problem is attaching process happens in sending process. I found that yahoo, gmail and hotmai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript and 'this' inside immediately executed functions I have been reading up on the intricacies of 'this' in JavaScript. Given this code: $(document).ready(function() { console.dir(this); (function foo() { console.dir(this); })(); }); In Chrome, the console shows the first 'this' as an 'HT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: slightly complex linq for C# I asked a question before on retrieving the count of data server side and was provided a solution on the site. The suggestion was to use linq which worked perfectly however since i'm relatively new to it I need a little in depth help. Using John's solution: class Guy { public int age...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to findByAll with a Domain hasMany member? I have: static hasMany = [ services:String, tags:String ] I need to search the database for services. This is the JSON for services "services":["tid.2","tid.3"] If services was a String (service) and not a hasMany String then tbis works def inUse = ServiceTem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript value lost across scope This has been driving me mad for weeks.I have a variable data that I would like accessed at different parts of my program. Like such, var data = []; SomeNamespace.module.method(function(){ data.push(['some data']); }); // data is undefined here But, it seems to be lost, possi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: disable scrolling when selecting text in richTextBox (C#) I have a rich text box that contains (a lot of) text. I've added a search option for it, and when the user presses the search button, the program marks all the matches in yellow (by performing selectionBackColor on each selection) and then selects the first m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add indexes in mongoDB project with Morphia framework i'm working on a gwt project, that uses mongoDB as database, and morphia framework to work with mongodb. I already finished the basic dao of my classes and now i want to insert indexes in my classes to speedup the mongo searches. I looked the morphia docum...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you extend the Java Exception class with a custom exception that takes a String parameter? So I see you can extend the Exception class like so: public FooException(Exception e) { this.initCause(e); } But what if you want to pass not an exception to FooException's constructor - but a String: public FooExc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Utf8ToString and older Delphi versions I want to use some units in both older and newer versions of Delphi. Since a recent Delphi version, Utf8Decode throws a deprecated warning which advises to switch to Utf8ToString. Problem is older versions of Delphi don't declare this function, so which {$IFDEF}label should I u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dynamic Strings and Xml I'm new to Android (and surely I'm not an expert Java developer), so I'm sorry for the dumb question I would like to "capture" the id of a textView and to set its text value dynamically, here is how I'm trying to do this: public class AndStringTestActivity extends Activity { /** Called when t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android: Growing backstack problem, how to conserve memory? our app is designed using fragments and fragment transactions in a way where the user can keep going forward and "grow" our backstack indefinately. Now, besides the "dont design the app that way" answer, what options do I have to conserve memory. Eventual...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SendMessage() doesn't work in one project I tried to use this Watermark it does work correctly on my test project, but it doesn't work in our main project. How can I debug this? I checked lastwin32error it returns a 0 which I guess is good. EDIT: It does work in the designer but when I run the project it doesn't. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL query for SQL Server I have 3 tables students, class and grades. I need to make a query that will count how many specific grades are for specific class. And also calculate average grade for specific class where grade 1 is not included (grades are 1,2,3,4,5). Columns for the query should look like this: Class | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: select data from last 2 rows sql Im using an odbc-jdbc bridge in my project and I need select 2 pieces of data from the database and save the data to 2 variables on the java side of my application. Here is an example of my table. SITE_ID ------- DEV_ID ------- SCHEDULE_TIME ------- VALUE_ENUM ------- IDX -----------...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generic Type XAML 2009 I have a litte problems with these class public class MyClass : MyGenericClass<String, Int32> { } // XAML Class public class MyGenericClass<T, U> : MyGenericClassBase<T, U> where U : class where T : class { public MyGenericClass() { InitializeComponent(); } } pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NSOutlineView outlineViewSelectionDidChange my NSOutlineView outlineViewSelectionDidChange method will not be called. I set set the NSOutlineViews delegate to the class where the other methods such as - (BOOL)outlineView:(NSOutlineView *)outlineView isItemExpandable:(id)item exist. But outlineViewSelectionDidChange...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to stop renamed .inc to .asp includes files to be browseable from the internet So, I have a ASP classic website. I had many includes files that were mostly static html, but still some script code. When they have a .inc extension Visual studio 2010 shows them as plain text. They do not show any syntax highligh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ios ASIFormDataRequest reporting invalid file from PHP upload Somebody please... #$%^ please take a look at this. days walking through the debugger, using setData with a jpeg representation. set file using ios4 asset library, trying a new PHP script, deleting the asiHTTPrequest files and making damn sure I have the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JQuery Multiple Group Sort I need to sort a table of users alphabetically based upon a value in a td element. I can do basic sort fine but I have 3 tbodies per user and I need them all to stick together rather then just a single one of those tbodies being sorted. This is an example of my table: <tbody1> <tr><td>The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Anyone tried using MySQL DataController to setup a Federated table with MSSQL Server? I found this: http://en.wikipedia.org/wiki/MySQL_DataController which lead me to this: https://launchpad.net/datacontroller It looks like a plug in to let you created federated tables in MySQL to connect to MSSQL Server, but the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SSRS 2008: How to create parameter based on another parameter I know others have asked similar questions, but I have tried their solutions and it still is not working for me. I have one parameter called "Region" which uses the "region" dataset and another report parameter called "Office" which uses the "office" data...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: setting scalar value on collection using introspection I am doing something like the answer on: Set object property using reflection Dynamically setting the value of a object property. I have a function wrapping this sort of functionality and it works great. However, I want to make it so that it looks at the prope...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Applet and JSF Integration - example Is there a tutorial or a simple applet example with JSF? How do I perform a request to a Managed Bean from an applet? A: Don't use a JSF managed bean. It is not suitable for this job. Use a servlet or a webservice. To exchange data, use the session scope with an unique autogener...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: delete the from the textarea? I am trying to do a line break after the message "Original message", I have tried with this but It keeps showing me the ---Original message---<br /> message <textarea id="txtMessage" rows="10" cols="50"><?php echo nl2br(str_replace('<br/>', " ","---Original message---\n".$array['mess...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: want to use Xcode 4 for everything, how to add folder in project navigator? I'd like to move my web dev editing to Xcode 4 (currently using textmate). I have a couple of simple questions that are clearly a lack of experience on my end. * *In Xcode's Project Navigator, how do I add a folder to the shown director...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Regular Expression in Splunk I need regular expression which will provide me error msg in following format: [2011-09-21 17:53:24:446 GMT][75DABF9052639D387C4E2F8EF7DC516C.http-8080-18] [com.abc.resolver.rest.CommComponent] ERROR Cannot get payload while processing error message [2011-09-21 17:53:24:446 GMT][75DABF9...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Share a paragraph (or part of a text) on facebook I just saw a new feature for sharing a part of text on facebook. c.f. http://www.metrolyrics.com/someone-like-you-lyrics-adele.html This should be done by javascript and probably with aid of jQuery. Is there a developed plugin for this purpose? What is the pathway to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I compare two generic types in C++? I need to determine whether an element is the same as the one I'm passing by reference. In the function Belongs I need to compare equality between d is and an element of a stored in a dynamic list: struct Nodo{ Dominio dominio; Rando rango; Nodo* next; }; typedef Nodo* ptr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Virtualizing Stack Panel Returning Null Selected Item I was using a stack panel to display listbox items, but when I decided to change it to a virtualizing one the selected item was null sometimes. Here is part of the DataTemplate I was using to invoke the selected item command: <i:Interaction.Triggers> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to fire Java method using bash Suppose I launch a Java application: java -cp whatever.jar com.example.Start Process launches ok and keeps running with PID 1314. Now I would like the system to fire a method by users request. How can I use bash to signal the running PID and have it fire a method? A: My thought is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL QUERY - Time comparison (SQLite) I would like to ask if someone would be able to help with sql query. I have table with times in format: HH:MM:SS. I want to write a query that returns me the closest time (to the future) to the current time. For example: Table contains 3 rows: 12:00:00, 12:01:00, 12:02:00. If: 1)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery hero slider logic, not(:first) isn't working for me I have the following function: $('#btn-homeheroleft').click( function() { if ( $('#homehero-btns a.on:not(:first)')) { $('#homehero-btns a.on').prev('a').trigger('click'); } else { //$('#homehero-btns a.on').prev('a').trigger('cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery: how to get position of mouse relative to the top/left corner of an element taking into account scrollbars I'm doing some work with the canvas element and need to track the mouse around highlighting parts of it. I would like to be able get the position relative to the elements top left, 0 , 0. I have this - u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery Loupe Tool with Image Protextion I work for a company that wants to use a loupe tool on larger images on our website, but also wants to incorporate some image protection (realizing that no amount of work will stop someone from snagging the image). I came across two really great opensource scripts that do thes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using bundler, how do you unpack a gem installed via a git repository? How can I unpack a gem specified in bundler by a :git => url? My Gemfile has gem 'my_gem', :git => 'git@github.com:xxxxx/xxxxx.git' $ bundle correctly reports the gem as available, and my code works. $ bundle which my_gem even tells me where my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Applet and JSF Integration - example Can we implement javascript into applet/swing?If yes how? please give some basic/small example. A: You can't "implement" it as in manipulating its components, you can however use JavaScript to dynamically change the <param> tags of the <applet> element, and define the applet to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I test performance of my .NET application and optimize it? I have been developing an application that runs on a client computer and extracts data from a central SQL Server server. Before the application was quite fast and running good. As a little data grew in size up to some thousands of records now the prog...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ActiveMQ, why not use BytesMessage with properties? using ActiveMQ I want to serialize my objects with protocol buffers (*). Then I have an byte array. Now I read that ByteMessage should not be used with properties: http://activemq.apache.org/nms/msdoc/1.5.0/vs2005/html/T_Apache_NMS_IBytesMessage.htm (They have the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get correctly content and avoid breaking html tags using strip_tags with substr? In my page I have some post previews from RSS feeds. Every post preview shows about 300 characters. When a user clicks on expanding button, then the #post-preview is replaced with the #post. The #post shows the rest of the post. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle Trigger Subquery problem CREATE OR REPLACE TRIGGER "DISC_CLIENT" BEFORE INSERT ON "PURCHASE" FOR EACH ROW DECLARE checkclient PURCHASE.CLIENTNO%TYPE; BEGIN SELECT Clientno INTO checkclient FROM PURCHASE GROUP BY ClientNo HAVING SUM(Amount)=(SELECT MAX(SUM(Amount)) FROM PURCHASE GROUP BY Clientno); IF :new.Cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to rewrite SQL query that has subquery with joins I have a SQL query that has a subquery that has joins. I would like to rewrite the query without the subquery so that I can create a view. MySQL does not allow SELECT statements where the FROM is a subquery. Is this possible? I've tried removing the outer sele...
{ "language": "en", "url": "https://stackoverflow.com/questions/7518997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# how can I run cygwin scp and put in password using Process and StandardInputWriter? With this code I see the login window prompting for a password but I can't seem to write the password to the shell window. Process scp = new Process(); scp.StartInfo.FileName = @"c:\cygwin\bin\scp"; scp.Sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mvc3 Problem passing data from View to Controller I am using mvcContrib to generate a grid to allow users to filter data by keying in search data. There are several partial views that are rendered in my Index View: Here is the partial view that handles the searching: @model CRMNPS.Models.PagedViewModel<CRMNPS.Model...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: reading text file lines into asp.net contentplaceholder I am new to ASP.Net and am trying to set up some content pages to work with my master page. I currently have the following text hardcoded into an asp:contentplaceholder and it works just fine. I want to read lines in from a text file to produce those headlines ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: self.view.backgroundColor = [UIColor greenColor]; does not work in pushed view I want to draw something in drawRect of pushed view. Also, I want to change back ground color of view. I can change background color by self.view.backgroundColor = [UIColor greenColor]; in viewDidLoad, if view is main view. I used that in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MATLAB Parallel Computing Toolbox - Parallelization vs GPU? I'm working with someone who has some MATLAB code that they want to be sped up. They are currently trying to convert all of this code into CUDA to get it to run on a CPU. I think it would be faster to use MATLAB's parallel computing toolbox to speed this up...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Issue displaying pdf on android using html tag I am trying to display a PDF to a web page using the html [object] tag. This works fine on all the web browsers on PC's as well as iPhone/iPad. But when I load the same page on an Android it asks me if I want to download the file which is the backup when the PDF isn'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does f(int) in base class inherited in derived derived class D which have f(double)? Possible Duplicate: Why does an overridden function in the derived class hide other overloads of the base class? Does f(int) in base class inherited in derived derived class D? if yes then why overloading is not working here. and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: iOS: How to obtain ZipKit without using Mercurial? I installed Mercurial, but true to its name it is failing to run when I try to download ZipKit. I get this message: abort: couldn't find mercurial libraries in .... /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip /System/Library/Frame...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling another script file in MATLAB I am having a problem with calling another script from within a script. I run a script "a.m" and it uses a function detailed in another script "b.m", and within "b.m" there is an if clause which is supposed to rerun "a.m" given a certain condition is fulfilled. However, when tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make this simple 301 redirect in .htaccess? I've looked to some already asked questions, but wasn't able to solve it. How do I make a simple 301 redirect FROM: www.mydomain.cz/something/somethingelse/ TO www.mydomain.cz/sometext I've came up with this, but it didn't work and I don't really know the differen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how does this game load its modules? This game uses ig.module('impact.font').requires('impact.image') for impact/font.js but when i see source code via Google Developer Tools i dont see <script> for impact/font.js (in http://playbiolab.com page) Why? how do they load them? A: All the code is in biolab.js. The 'mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Real-time keyboard input to console (in Windows)? I have a doubly-linked list class, where I want to add characters to the list as the user types them, or removes the last node in the list each time the user presses backspace, whilst displaying the results in console in real-time. What functions would I use to inter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: close pop-up window using shdocvw? I used to close pop-up windows in VBA using the following code: Dim k As New shdocvw.ShellWindows ' close menu window Dim c As WebBrowser For Each c In k If c.LocationURL = "http://specificsite.com/x.html" Then c.Quit() Next You can see I have to check if the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to dynamically use TG_TABLE_NAME in PostgreSQL 8.2? I am trying to write a trigger function in PostgreSQL 8.2 that will dynamically use TG_TABLE_NAME to generate and execute a SQL statement. I can find all kinds of examples for later versions of PostgreSQL, but I am stuck on 8.2 because of some requirements. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to leave TODOs for yourself as part of Xcode4? The one thing i like about Eclipse is that it lets one leave annotations like //TODO:, which IDE highlights and draws your attention to. Is there anything like this available for Xcode? Ultimately, i'd like to mark things as to be completed without fear of forgettin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can you determine if a radio button was set checked=true by 3rd party JavaScript? Setting a radio button to checked=true programatically doesn't fire a change event. How can I know if a radio button was checked by a script? See this example: http://jsfiddle.net/wykEx/7/ In Firebug, no change events are logged to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WSDL generated in WCF consumed by Delphi client I have a WCF (.net 3.5) service that implements security through ws-security. I have generated a WSDL file for consumption by a client created in Delhi v7.0. I have been having a number of issues with the SOAP message that is received from the Delhi client: 1) The SOA...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can you Interupt a function from a GUI callback without adding an interupt-check to the function? (MATLAB) So, I've a GUI that basically allows the user to iteratively process data. Thus, there is a start/stop button and a display that shows the current state of the data. When you click the start button, the cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Separating body I have hundreds of divs, each of which have their own style properties in it. Just a few minutes ago, I discovered that I have to change a lot of things just to change some background of the page. I want the background of the body, starting from 0px to 200px, to have a black background, the backgroun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Joda - remove seconds, milliseconds from PeriodFormat.getDefault().print()? I have a method like this: public static String getFormattedDateDifference(DateTime startDate, DateTime endDate) { Period p = new Period(startDate, endDate); return PeriodFormat.getDefault().print(p); } I'd like to chop...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I display a lot of app icons on a desktop in a UI friendly way? Imagine I have 100 icons, 200 icons... It is kind of the same problem Apple addressed with the dock How can I best display them and are there any existing tools/libraries for doing so?
{ "language": "en", "url": "https://stackoverflow.com/questions/7519059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple NSURLConnection Problem This is my code: - (void)saveData:(NSString *)url withName:(NSString *)name{ NSString *URLString=[NSString stringWithFormat:@"http://www.google.com/reader/atom/%@?n=%d&xt=user/-/state/com.google/read", url, 50 ]; NSLog(@"------>In attesa di %@",URLString); NSURL *re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add bindings after calling ko.applyBindings In KnockoutJS, is there any way to add bindings after calling ko.applyBindings? A: Turns out the answer to my question is the same as this one: Can you call ko.applyBindings to bind a partial view? ko.applyBindings accepts a second parameter, limiting the scope of binding...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Cropping a QRegion for setMask I am setMask()'ing a QRegion I've a Big QRect of that I am making a Circle //config->rectangle = QRect(0,0 275x275) QRegion circleRegion(config->rectangle, QRegion::Ellipse) and now I've a small widgetRect QRect(43,0 93x110) that area I need to crop from the previous region and use f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Write an Intent to an NFC tag? Is it possible to write an intent object to an NFC tag? For example, if I could write the following intent to an NFC tag: String phoneNumber = "5555555555"; Uri uri = Uri.parse("sms:" + phoneNumber); Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.putExtra("address", phoneN...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Web Development - Entirely "scalable" website without flash, possible? I'm an aspirant web developer, and I've been wondering if it's possible to make fully "scalable" websites without using flash. Maybe a JQuery plugin that scales every object inside the body according to the body itself, so if its width is 100% of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error trying to convert char to number I have an information, which I assume to be char type, since I have the following (dbms_output.put_line is a function like "print" and the returned value is after --> ): dbms_output.put_line( table_record.column_1 ); --> 0.6 dbms_output.put_line( UPPER(table_record.column_1) );...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Vim's NERDTree, is there a way to open a file/dir using the space key or tab key? Currently the only way to open the file or directory currently underneath your cursor is to type o. Is there a way to also map this to space or tab? A: let NERDTreeMapActivateNode='<space>' should work fine. For more information ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Image auto width in CSS for all browsers? I have my img tag defined with some CSS as: img { width: auto !important; height: auto !important; max-width: 100%; } It works just fine in some of the Mobile Browsers I have tried, as well as Google Chrome on a desktop. However, it does not seem to work in IE or Fire...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to convert binary to hexadecimal string in C/glib? Is there a common way or good public domain code for converting binary (i.e. byte array or memory block) to hexadecimal string? I have a several applications that handle encryption keys and checksums and I need to use this function a lot. I written my own "quick...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: file reference with slash If I am referenceing a file (lets say an image file for it to display on a webpage) which is a few folders above, I can write "folder1/folder2/file.jpg". What does it mean if the reference starts with a slash like "/folder1/folder2/file.jpg"? A: Leading slash means that the reference is st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Overriding global htpasswd password protection I am testing a Drupal site on a development server that runs bunch of other development sites. All of the sites are password protected globally by htpasswd. However, I need to not have password protection on my testing site because I am testing another authentication me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: debug TcpClient and TcpListener on the same machine New to network programming here. I have a two piece application. I am trying to debug it locally. Service listens for connections on new IPEndPoint(IPAddress.Any, 3000). Calling tcpClient.Connect(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 3000)) throws No connec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to change selectedNode in a treeView during AfterLabelEdit I'm having an issue with the selected node in a treeview. Here is are two scenario. (# 2 is causing my problem) 1 - If I select the node "level", press F2, change the label and press enter. The selectedNode inside the AfterLabelEdit will change. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pass array from c++ library to a C# program I'm making a dll in c++ and I want to pass an array to a c# program. I already managed to do this with single variables and structures. Is it possible to pass an array too? I'm asking because I know arrays are designed in a different way in those two languages and I have n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Monitoring webapp deployed in Glassfish From a webapp deployed in a Glassfish app server, I have to find some metrics to allow monitoring. Inside the webapp, is there others tools/libraries which allow me to gather such metrics ? I know I can connect to JMX/AMX, but is there others solutions ? A: JavaMelody can mon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change focus list of textboxes WPF I have a listbox where the Items are Textboxes. I need to set a key to change the focus to the next textbox and begin the editing of its content. I have cheated a solution sending Key strokes to achieve what I want, for example: ((TextBox)listBox1.Items[0]).KeyDown += (obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mod_mono on windows I am trying mod_mono on apache 2.2.x running on a win7 box – followed the steps described here. The module loads Ok, but I can't run my ASP.net application (404). Does anybody have any suggestions or an example configuration that works? Thanks. A: My working config: <VirtualHost *:80> Server...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Regular Expression Commas and Columns I have an issue while parsing my Solr Queries that I pass on the querystring: The values I end up having to work with look like this: ed_deliveryMethod:Face to Face,ed_location:Alexandria,VA,ed_delivery:Onsite I need a regex that would parse a key value pair: * *ed_delive...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JSON says it's null? My server side code: returns an array: return array('success'=>true, 'client_id' => $_GET['id']); which is then echo'd echo htmlspecialchars(json_encode($result), ENT_NOQUOTES); JSON looks like this when outputting; {"success":true,"client_id":"db7A8"} But when I run onComplete: function(id,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert url encoded string into python unicode string I have strings encoded in the following form: La+Cit%C3%A9+De+la+West that I stored in a SQLite VARCHAR field in python. These are apparently UTF-8 encoded binary strings converted to urlencoded strings. The question is how to convert it back to a unicode string...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }