text
stringlengths
8
267k
meta
dict
Q: Shouldn't this hashtable be read only? I have a class that has a getter function for a hashtable called _Parameters. private Hashtable _Parameters = new Hashtable(); public Hashtable Parameters { get { return _Parameters; } } _Parameters is not referenced anywhere else in code. Now, since there is no setter functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PhoneGap CRUD examples Im new to iPhone development and I find PhoneGap suitable for me for i am a web developer. I'm into practicing database using SQL. because of HTML5 support built into safari browser they support database natively into the browser. I wonder if theres a good example that is easy to follow of usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android when to close database dilemma I have a main activity which user a viewpager and a database adapter to serve up the views. Initially all the rows from the Db are pulled into the cursor (Async) Once this cursor is returned the user can add various search criteria from different activities which then runs al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get selected value from mono Gtk.ComboBox? How do I get the selected value (either the string, or an int reference) from a Gtk.ComboBox in mono? All I can find is stuff about using iterators. Why isn't there a function to simply fetch the value (or is there)? A: For (int) index you can use: comboBox.Active; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Handling program args with Groovy Eclipse plugin v2 I am wondering how to handle program arguments when you are running Groovy within Eclipse. It isn't as straight forward as it is from the command line and I am having trouble figure it out. Im using Eclipse 3.5. My run configuration has these arguments all on o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to iterate XML data using XSL without hardcoding element names? We're transforming this xml data into pipe-delimited format using XSL... <?xml version="1.0" encoding="ISO-8859-1" ?> <LIBRARY> <BOOK> <TITLE>Professional JINI</TITLE> <AUTHOR>Sing Li</AUTHOR> <PUBLISHER>Wrox Publicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cycling values in a hidden field on image click I hope someone can help me. I am new to jquery. I want to show pictures of my students on a page so I can take the presence easily. I made that using a MySQL DB with php. That's the easy part. Next, i managed to make a jquery script so when I click each image the borde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check for the immediate following sibling of parents in xpath I am now using xpath to test a node's parent node's immediate following sibling(uncle or ant) node. My xml looks like <MyParent> <A> <B> <C> </MyParent> <Uncle> .. </Uncle> Now I am in the template match for child node B, and I want to test i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: page is not processed if content is in a while loop <?php include("global-settings.php"); session_start(); mysql_connect($dbhost, $dbuser, $dbpass)or die("Could Not Connect: " . mysql_error()); mysql_select_db($dbname) or die(mysql_error()); $email = mysql_real_escape_string(strip_tags($_POST['email'])); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make a function only possible to be called by certain subclasses in c++? I have a class base with a private array (I cannot make it protected). I have getters and setters set for objects in the array. base has a subclass sub1 and sub1 has a subclass sub2. Is there a way to make sub1 only able to access som...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drop down menu hover does not cover whole text Screenshot1: Screenshot 2: If you look at the screenshot1, you can see when you hover over web design it doesn't completely change the background color. However it does in case you hover over text 'Search Engine' in Screenshot 2. Here is the markup: Html: <div id="n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check existence of rows for last n days I want to perform a check "is there an entry for each of the last 100 days in a table" where the table has something like a reference date column and was thinking about joining with a subquery that returns sysdate - 0, sysdate - 1, ... sysdate - 100. Updates (for clarification...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Vaadin + Eclipse Visual Editor NOT reloading/updating Composite components I created a Vaadin Project, then wanted to create a Custom composite and display that as my main window (so i could take advantage of the Visual UI editor). Working with Tomcat Apache Server and the Visual Editor has been a pain! Nothing upda...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to extract the digit part from the string I have a column that has a string in it as follow Data black83736 white87 white893 pink82928 pink1 black27 ... ... I want to just get the digits out of that column. Edit I would prefer mysql solution A: Try this mysql Solution : (updated) SELECT replace(reverse(FORMAT(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is the SVN Book Inconsistent about "Switching a Working Copy"? The SVN Book chapter on "Switching a Working Copy" seems to say both that performing a switch 1) makes your working copy identical to the branch switched to (as if one had done a fresh checkout) and 2) preserves edits to your working copy (so that you co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writing HTML in email Newbie Is there any sample application/tutorial that demonstrates how to write HTML code using [mailComposer setMessageBody:nil isHTML:_________]; I simply want to write some HTML code here, how do i code it ? A: Just write your HTML code as NSString and set it to the composer body. Then set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to add a new html tag with Jsoup? I'm having some trouble adding a new tag to my Document. For example I have: Document doc = Jsoup.parse(htmlString); Element table = doc.select("table").first(); Now If I want to add a <LINK>tag with attributes (href,type,rel) to my table element, and then return the total...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Implement Interface Wizard - how to find the "type library" of an interface? I want to implement (e.g) the IPersistFile interface via the "Implement Interface" Wizard in Visual Studio (2010), but I have to choose from the "Available type libraries" the one that has that interface. The MS documentation only says it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7600985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stop Recording and Context My problem is follow: when the call ends I get an error. I think there somthing with Context. My problem as in this case Sound Recorder Widget doesnt stop recording Please help me! public class Call extends BroadcastReceiver { public void onReceive(Context context, Intent inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python equivalent to Bash $() I search the Python equivalent for the following Bash code: VAR=$(echo $VAR) Pseudo Python code could be: var = print var Can you help? :-) Regards Edit: I search a way to do this: for dhIP in open('dh-ips.txt', 'r'): gi = GeoIP.new(GeoIP.GEOIP_MEMORY_CACHE) print gi.country_c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Saving the DeviceToken for Later Use in Apple Push Notification Services In my iPhone app I am getting the device token from Apple which I am assigning a public property inside the Delegate file as shown below: - (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to return tree within same level efficiently I have a tree with nodes that implement this interface Interface Node { public boolean hasChildren() {}; } How can I return a List of List with same treeLevel ? for example if I have a tree like                  1       2                   ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How would you pass HTTP Headers using a standard anchor tag? According to the HTML4 reference there's no attribute to pass on HTTP headers using the anchor tag. I would like to offer a link requesting for a specific file type using the Accept header. The only way I can see is simply let it be, and pass a GET paramet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: how to increase speed of my application? My applications requirement is to contact the webservice, get the xml, parse it and display it using a listfield. I am calling all this classes xmlhandler, objectmodel, displaying it using a lisfield from a class that extends mainscreen which is making my application slow. Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I map a table and a view of the same table in Hibernate without breaking my automated tests? Say I have a table like so: CREATE TABLE big_table (UUID varchar(32) not null, ... ); I have a query on the table that I can't express as an HQL or Criteria query. I am trying to set up the query as view in Oracle, lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Multiple Databases Within CodeIgniter DISCLAIMER: I'm new to web development SCENARIO: I'm building a web application that uses ion_auth to manage all of the user/administrator information (uses MySQL database), and each user has their own database (MySQL as well) for core application purposes. I've autoloaded...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Sql query result if no records found what will be the output of the below given query, if no matching records are found select avg(salary) from employee where dept='sales' Will it return 0 or null ? A: Have a look at this. It returns NULL A: Easy test in SQL Server: DECLARE @T TABLE (id int) INSERT INTO @T SELEC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Main differences between JSF 1.2 and 2.0 I am in need of getting up to speed with JSF 2.0. I have found a nice and practical tutorial at JSF tutorial. This tutorial covers creating JSF applications using JSPs (JSF 1.2). At our place we are using JSF 2.0 and building with Facelets. When studying a tutorial using JSPs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Ruby: How to pass options to test::unit in 1.9.3 I want to run a test file: # xxx.rb require 'test/unit'; class XTest < Test::Unit::TestCase; def test_xxx; end; end Until ruby 1.9.2 ruby -Itest -e "require './xxx.rb'" - -v did the job, with 1.9.3 I suddenly get: /usr/local/rvm/rubies/ruby-1.9.3-rc1/lib/ruby/1.9.1/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Understanding different methods of cloning a stream, and which situation to use which in When copying a file stream, I've come across two examples: This one, Using requestStream as IO.Stream = state.Request.EndGetRequestStream(ar) ' Copy the file contents to the request stream. Const bufferLength As Integer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: php_intl.dll 4+ in xamp 1.7.4 + php 5.3.5 V6 for symfony 2 I'm trying to setup symfony under my local development machine using xampp 1.7.4 (with PHP 5.3.5 V6) but I'm getting this warning: Upgrade your intl extension with a newer ICU version (4+). I've tried downloading the source from windows.php.net but the ver...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Detect when a new event is logged in Windows How would i detect in my application, when a new event is logged in the windows event log. Currently i'm running a timer ever 5 minutes to check for new events but it would be much better if i can detect new events in realtime using WMI or .net Thanks A: You need to set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Div is laying ontop of absolute-positioned element. How to put element above the div? I have a couple of controls on the page. One of which is a button, another is div with width: 100%. The button has position: absolute. My buttons CSS -- just playing around with it for now: .toggleButton { z-index: 99999999px; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Process Synchronisation using semaphores Here is the problem. I want two processes to occur alternatively, the complete problem is here. Q. In a system ther are two processes named A and B.When the system starts,the process A executes twice then process B executes once.The Process B cannot execute until process A ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Validation on TextBox: red border does not always appear on invalid results I have a textbox that is bound to a property that requires a value, ie: [Required(ErrorMessage = "required value")] public string SomeText { //get set... } And in my XAML, I have the following setup for my textbox: UpdateSourceT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do you add HTML into an email in Blackberry? How do you add HTML into an email in Blackberry? I've tried multipart emails, but that does not seem to work. I am asking how to send an HTML formatted email from an application running on a Blackberry, if I am wording too vaguely, please let me know how to rephrase ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android turning clicks into touches I have an on click listener: whiteKeyPressedArray[i].setOnClickListener(new View.OnClickListener() { public void onClick(View v) { }} I see that this allows touches: public boolean onTouch(View v, MotionEvent event) { //Switch case for type of touch } But how can...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AJAX calls fail in Opera and IE8 For some reason, AJAX requests seem to be failing in both Opera 11.51 and IE8 but work in Firefox and Chrome. I am not doing anything fancy other than the standard post request call: $.post('/dashboard/valid_email/', { email:email }, function(data) { I've added an alert before and a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing custom model data from another widget when an item in view is clicked I have a QListView that sets a custom QAbstractListModel as the model. The model loads data from a database and puts it all in a QList<QHash<QString, QString> > dataList data structure. Each QHash<QString, QString> data contains stuff li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: opening a jquery popup form in rails to display comments and create a comment I'm have the standard comments controller attached to my project through a has_many association. I have a set of rows that show the latest comments. When the user clicks on the comment that is displayed (let's say they click on title), the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to group methods/properties in the outline view of Aptana IDE I've looked everywhere for a feature like this. I use the Aptana IDE (which is based on Eclipse) for my php development, and I use the outline feature a lot. I enjoy xcode's 'pragma mark' feature, which lets you group sections of your sour...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: java return from private method to public I have a public method and a private method. they are both supposed to return int values. The private method is the one that does all the work and the public is the one that is called from the main program. How can I return the results returned from the private method by the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Ordering of eigenvectors when calculating eigenvectors using LAPACK's ssteqr I am using LAPACK's ssteqr function to calculate eigenvalues/eigenvectors. The documentation for ssteqr says that the eigenvalues are sorted "in ascending order". Is it reasonable to assume that the list of eigenvectors is also sorted in as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: set new Image on ImageView I created an XML layout for my project with an ImageView in it. I add a default image for imageView. Now programatically I am getting that imageview and trying to change the image source using imgView.setImageBitmap(newbitmap);. The problem is that both images are showing - the default ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading indicator with dojo XHR requests I only recently started using dojo and I am doing numerous ajax calls using dojo xhrGet, xhrPost,..etc. Now I have an animated gif image which i want to use to indicate "loading" to the user. I am not too sure how this can be done. Can someone please advise me on this? here i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any way to skip the crop screen in the Sincerely Ship library? My application handles photo editing already, which includes cropping. Is there anyway to skip this screen in the Sincerely Ship library? A: Sure thing! Just pass the sincerely library an image which is already resized to the correct print size...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to pass model from json to view? i have a button on my view when fire it execute GetReport() and it execute :public ActionResult GetReport(int licenseId) by json. now public ActionResult GetReport(int licenseId) fill my model and return it by json. everythings are correct but i do not know how link returned m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Possible to link .dll with .lib? Here's my dilemma: I'm attempting to create a .dll version of my project. This project uses the V8 and CURL libraries which are currently built as debug .libs. I'd like to package all of them up in a single DLL that can be shared (I understand I need to alter my code with __declspec(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to move a specific trunk revision and its subsequent edits to a branch? We realized that we would like some work in the trunk to have actually have been in a branch. We would like several commits to go into a branch, and preferably, we would preserve the history of the commits. So: r0 --- r1 --- r2 --- r3 wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: dependency resolution pip virtualenv I have 2 local libraries which are dependent on different version of suds. Example - * *Module-A-1.0's setup.py has a requirement of suds ==0.3.9. *Module-B-1.0's setup.py has a requirement of suds ==0.4.0. Both these modules are required by Module-C, which has the foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an type of array in c that allows strings to be used as indices? I am looking for something like: a["hello"] points to a list, a["h"] to another. Basically, I'm looking for an associative array implementation. A: No, not in C. You may want to look into hash table libraries to get what you want. A: A bit o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add selected values to a div w/ jQuery I have a table with values. <table id="myTable"> <tr> <th title="Text to copy to list">header 1</th> <th title="Text to copy to list">header 2</th> <th title="Text to copy to list">header 3</th> </tr> <tr> <td>Value 1</td> <td>Value 2</td> <td>Value 3</t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drupal autocreate custom content type on registration I have created a new content type for storing additional user data (outside of the standard profile) page. This content type is only viewable by the user and the admin. What I would like is that when a user registers this custom content type is automatically crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python adding config files to path I have directory structure like following: analytics / / \ \ conf script src other / \ / \ / \ <setup> <source> < setup >: setup.yaml sql.yaml < source >: src/ folder A/ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Combining Apps Into Universal Easy? iPhone/iPad I am about to begin developing an app and have never worked with universal binary. Is it possible to create them both individually and then merge them is needed later? Or is that out of the question? It is pretty important to decide from step one whether I need to go u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle to_char bug I don't know if it's a bug or what, but when I try to format the Day of the week in a certain way with the to_char function in Oracle, SQL Plus give me this error : ORA-01821: date format not recognized Here's the line that cause a problem SELECT TO_CHAR(sysdate,'dsp') from dual; So d is of 'Day ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Getting absolute file/dir path in python From the code below both returns me the same output. When should I use one over the other? import os from os.path import abspath, dirname print abspath(dirname(__file__)) print os.getcwd() PS: I wanted to use this for dynamically changing the path for logs, static files and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ExtJS 4 class loading fails I have code similar to this: Ext.define('GG.view.Workbench', { extend: 'Ext.container.Viewport', layout: 'fit', items: [ { xtype: 'container', layout: 'border', items: [ { region: 'center', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error calling getResources().openRawResource() I have to read a file called hello.txt using the following code on java/eclipse/android: import java.io.InputStream; public class Tokenirzer { public String ReadPath () { InputStream inputStream = getResources().openRawResource(R.raw.hello); } } Howev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook error on tab application with fbgraph I am trying to ask for extended permissions on a Facebook tab application with fbgraph gem on ROR3. The error message given is: { "error": { "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.", "type"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: spooling a clob value with multiple lines using sqlplus to a single cell of a CSV I tried to spool a CLOB to a CSV file using code that looks like below: set pagesize 0 set heading off set long 30000 set longchunksize 30000 SPOOL test.csv select text from user_views; But the above code returns the CLOB as multi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C#, Winform - creating PDF I'm still kinda new on the programming thing, but i would like to create a program wich could create PDF's with some information in them. Could anybody recommend a neat way of doing so, i kinda need to create a regular A4 page with a table on it.. and some other informations. is it possibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: what happens to pointers to dynamically allocated memory after a UNIX fork? Someone please clarify what happens with pointers after a fork(). As I understand it, pointers to anything on the stack or statically allocated are relative to the stack/data segment registers, so copying them exactly during a fork is OK. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Drupal 7 - New template for other pages I've tried using the page-node-2.tpl.php but it hasn't worked... Is there something I'm missing? I'm new to Drupal, but I think it might have something to do with not having a template.php in my themes directory? A: See http://drupal.org/node/1089656 for template file name co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby - "extend" statement in a class If (for whatever reason) I extend Stuff in class Dog how can I access CONST1 through the Dog class? I know I can get CONST1 by saying Stuff::CONST1, but how through dog can I get it. I also know that this code would work if I include Stuff in class Dog. module Stuff CONST1 =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails on iOS - action "show" could not be found on :method => :delete I have a Rails application that has a mobile view for iOS users. All links seem to be working, except those that have posts tied to the rails :delete method. An example link_to: <%= link_to list_task_path(t.list, t), :method => :delete do %> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android browser php cookies I am unable to manipulate cookies via php on the vanilla android browser. (ver 2.3.4) The browser options are set to accept cookies, and some websites do allow me to log in normally (though not all). I have made a really simple test script to try and see if cookies are set at all: setcook...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to grab last 12 12 months from cygwin "date" INCLUDING FEBRUARY I want to make directories for the last 12 months, starting whenever I run my script. I've got this code, which is %90 good: for i in {1..12}; do mkdir "$(date -d "$i months ago" +%Y-%m)-01" The problem is that instead of making a 2011-02-01 d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to pass querystring values to swf? This is driving me nuts... Based on my research I should be able to pass QueryString parameters directly to a swf object like so: http://localhost:3000/SomeFlash/bin-debug/myFlash.swf?userId=827419 In the mxml oncreationcomplete method I have tried the following: // oncreationc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trigger prettyPhoto after PHP Post Instead of going to another page after a successful INSERT, I'd like to trigger an instance of prettyPhoto to let the user know their email was successfully sent and to keep them from leaving the page, and for eye candy. Right now I'm just using: header("Location: http://website.co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery plugin not working - TypeError 'Undefined is not a function' in safari I am using a jquery treeview plugin to make a list in to hierarchy view. This works fine in firefox, but results in a error like 'TypeError: undefined is not a function' in safari and 'Uncaught TypeEror : Object [object object] has no meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to repeat a set of characters I'd like to repeat a set of characters multiple times. I know how to do it with a single character: string line = new string('x', 10); But what I'd like would be something more like this: string line = new string("-.", 10); which would result in: -.-.-.-.-.-.-.-.-.-. I know the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: GAE/Python: collection_name not working with Polymodel? I'm having trouble using db.ReferenceProperty with PolyModel in GAE. If I have two models derived from a base PolyModel, and each one has a reference to another "container" model, the collections on the container contain both PolyModels, not just the one as yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xcode 4: How to open the currently-viewed file in the Assistant pane? I often want to edit in two different locations in the same source file. I miss the ability to drag a vertical split in an Xcode window; this feature was apparently lost when going from Xcode 3 to 4. Is there a super-quick way to open the currentl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Display Logcat in Terminal? Edit/Solution: execute ./adb logcat in the platform-tools directory. Original Question: I know that there's a way to display the LogCat for an Android device/emulator in Terminal on my Mac, but I'm not sure what the command is. This is mostly due to my incompetence with UNIX commands. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: "Could not map the MEP URI" Error from Axis2/c and Rampart I had my web services working. I introduced rampart and now I am getting an error in response. The Webserver is Apache httpd. Running Axis2/c with Rampart 1.3.0. The services.xml looks correct as far as I can tell but I can post that too if needed. The MEP i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to suppress "There are still active COM objects in this application" error when closing application? I've written a few ATL COM objects that are used for drag-and-drop within my C++ Builder application. Due to reasons beyond my control, my application still has active COM objects when the user attempts to close ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add less specific class without !important I have the following CSS rules: .bookItem:hover { background: rgba(0,150,255,0.1); } .selected { background: rgba(0,150,255,0.2) !important; } When a bookItem is clicked, I use jQuery to add the selected class to it. The trouble is, without the !important the selected cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make workbox show workflows outside of sitecore/system/workflows Sitecore's workbox seems to only be able to show items that are in workflows in sitecore/system/workflows. Is there a way to make it show workflows in other parts of the tree? I have been able to solve several issues with moving a workflow out of that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a Netbeans ruler Heres a quick questions for all you folks out there: Is it possible in the Netbeans IDE to show a ruler on top of the coding window - like in Microsoft Word or the Context code editor? If so, how? I have tried googling it, but to no avail... A: I am fairly certain that the answer is no, as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to keep spaces in the formatted expression in jqMath I am using jqMath for Math equation formatter. I don't want to remove spaces and newline character from the expression. How can I do that? I have tried a lot but I coudn't find any solution. A: from the author ... In general, it's best to let html handle th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need a PHP script to return an exact match of a python script Please I need help getting the exact md5 value of this python script in PHP The Python script def md5code(params): params = {'identifier': ' ', 'amount': '0.0', 'code': 'UNIA'} req = dict([[key, params.get(key, '')] for key in ['code', 'identifier...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get Dynamic Index of Rows I've created an SQL Query that orders all the rows of a table by a specific way. Q: How can I get the row number (index?) of a certain row in such a dynamically created list? Thanks in advance. A: SELECT Row_NUMBER() OVER (ORDER BY <your criteria>) as RowIndex, other fields FROM MyTable U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I stub a class in a module in Python for testing? I have a module I am using which uses RealClass, so it is an internal dependency I don't have access to. I want to be able to create a FakeClass which replaces the functionality of the RealClass for testing. I don't want to replace individual methods but the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: XSL Foreach - Getting The Value Here is a bit of XML that's in each record: <MT N="usage" V="something"/> <MT N="usage" V="something else"/> I'm trying to display all of these V values for each record with XSLT, but am having issues targeting the correct value. <xsl:for-each select="MT[@N = 'usage']/@V"> <xsl:v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can multiple VS 2010 code snippets be stored in the same file? I have about 10 code snippets I want to use in a demo in Visual Studio 2010. Does each code snippet need to be stored in a separate snippetName.snippet file? Or, can I have all snippets in one file? VS complains when I add a 2nd snippet to a file. May...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to calculate a date difference in calendar months? $time_start = mktime(12,0,0,1,1,2011); $time_end = mktime(12,0,0,7,1,2011); $format = '%m months'; $start_date = new DateTime(date(DATE_ATOM,$time_start)); $end_date = new DateTime(date(DATE_ATOM,$time_end)); $diff = $start_date->diff($end_date, true); echo $di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Box2D and GameCenter multiplayer i have a hockey game with mallets running on iphone/ipad. The server controlls all the physics and send to the other device the server mallet position and the client sends to the server his mallet position. This part is working properly, the problem is about the puck. Becuase is way ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WAV plays from file, does not play directly from URL I have a URL that returns a 8-bit PCM, mono, 8 kHz WAV sound. When I try to play that URL via Android's MediaPlayer class, I get an error and the following in LogCat: 09-29 17:36:40.710: ERROR/PlayerDriver(562): Command PLAYER_INIT completed with an error or info ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to style a subset of some text in HTML/CSS? Currently, I'm doing something like this: <h2><div class='q'>Q:</div> Does alfredo sauce contain soy?</h2> and then styling it in my CSS file, like so: .q { padding-bottom: 15px; display: inline; font-size: 35px; font-weight: 700; color: #65A6D1; }...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to convert ANM files to Maya Acii? I had these bunch of maya files on my hard drive. Unfortunately, my hard drive crashed, and I had to give it for data recovery. Now, those maya files got recovered as .anm files. Is there a way to convert them back to maya ascii or maya binary files? ANM files are described as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SROLLBARINFO.rcScrollbar is referred to dimesion of scroll bar itself or scroll thumb SCROLLBARINFO Struct cbSize DWORD rcScrollBar RECT dxyLineButton DWORD xyThumbTop DWORD xyThumbBottom DWORD reserved DWORD rgstate DWORD 6 DUP SCROLLBARINFO ends When GetScrollBarInfo() return thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can subclass inline a pure virtual method that is not inline in the base? As I understand it, the compiler can inline a virtual function call when it knows at compile time what the type of the object will be at runtime (C++ faq). What happens, however, when one is implementing a pure virtual method from a base class...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to delete an object store on Persisten Object on Blackberry? I have a class with name DataContext that use Hashtable to save data to Persistent Object. Example I save two object: DataContext data = new DataContext(); data.set("object1", EditField1.getText(); data.set("object2", EditField2.getText(); data.commit(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I edit a properties file without trashing the rest of it Example.properties user=somePerson env=linux file=mpg properties.java class propertiestTest.java { Properties props = new Properties(); props.setProperty("user", "GodIsUser"); final File propsFile = new File(someDir/Example.properties...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the preferred way of upgrading to new major version of Plone? I am currently running a plone 4.0.x instance I would like to keep up to date. Buildout upgrades of minor versions like 4.0.0 -> 4.0.1 are easily done by just changing the "extends" statement in the buildout.cfg. But how about major version change...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the correct import statement to use for a Select object in webdriver 2.4 under python? I am writing tests with selenium webdriver 2.4 on python 2.7. The documentation (http://seleniumhq.org/docs/03_webdriver.html) demonstrates the ability to manipulate select form elements as follows: Select select = new Sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Populate dropdown select with array-with multiple options So I'm trying to populate a dropdown with the states, the value for the option should be the two characters value, and the text for the option should be the full state's name, using the code below is returning a value of 0,1,2,3... and returning all the optio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: "Missing Parameter Values" error on moving to next page of report I am writing a web application using ASP.NET 2.0 [Visual Studio 2005 Professional Edition]. I have a Crystal Report that is connected to a stored procedure residing in SQL Server. This stored procedure accepts a parameter and therefore I have a formul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A way to convert bitrate/format of audio files (between upload & storage to S3) Currently using PHP 5.3.x & Fedora Ok. I'll try to keep this simple. I'm working on a tool that allows the upload & storing of audio files on S3 for playback. Essentially, the user uploads a file (currently only allowing mp3 & m4a) to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7601292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }