text
stringlengths
8
267k
meta
dict
Q: Lazarus - why doesn't this work with ShowModal? I have two forms in Lazarus. one is frmMain and the other is frmSub1. both have a text box. The following code works. i.e., on clicking a button on frmMain, the value procedure TfrmMain.cmdShowClick(Sender: TObject); begin frmSub1.Show ; frmSub1.txtAns.text := tx...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: type=dict in argparse.add_argument() I'm trying to set up a dictionary as optional argument (using argparse); the following line is what I have so far: parser.add_argument('-i','--image', type=dict, help='Generate an image map from the input file (syntax: {\'name\': <name>, \'voids\': \'#08080808\', \'0\': \'#00ff00...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: sqlite3 inside C++ (stored procedure or complex sql with TABLE and its INDEX) I'm trying sqlite3 in my C++ app. I have done: * *sqlite3 my.db *sqlite> CREATE TABLE links(UrlAsID VARCHAR(255) PRIMARY KEY, Owner VARCHAR(255), ......, CreationTime INTEGER); *sqlite> CREATE INDEX linkIDs ON links(UrlAsID, CreationT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does JPA only refer to RDBMS JPA is all about data persistence; is data persistence only limited to RDBMS ? if not what are all the different persistence mechanisms (like Excel,File System,XML, NON RDMS etc ..) we can achieve with JPA specifications ? A: JPA is designed for RDBMS, and looking at the API and metada...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Priority between thread messages? Though I am quoting this in context of Borland C++ application, but the question is both specific for Borland as well as generic in nature. In a Borland C++ project, I observe that a user interaction with the GUI (say a menu item click) is taking less priority than a task delegated ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: listview for a single row? I've got an application which displays a field that can have multiple entries but I only wish to show the first entry and then give the user the option to expand that to display all items. I was thinking of making this a listview but once it's expanded I want it to retain the expansion. t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to auto linewrap comments in .NET? I'd like to have a single command to auto-linewrap the XML-style comments in .NET. Example: /// <summary> /// This comment line should be /// on one line, and other lines in this <summary> block should be wordwrapped. /// </summary> I wouldn't mind buying some of the commercia...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to insert a row into table automatically? I have two tables (parent & child) in my database. How can I insert a new record into the parent table so that a record is automatically inserted into child table? A: You can use (after insert) triggers for that, see MySQL manual for syntax. A: Here's an example of usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Syntax error when Insert to Access using OleDb I do not have a lot of experience in vb.net, but I am trying to use OleDB to insert a record with String,string,Yes/no(studentname, number, gender). However when I insert it , there's a exception raised stating that I have invalid syntax for the "insert into" query. I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Vim visual selection delete/insert in Emacs I was trying to find a replacement of vim's visual mode which is extremely useful, say I would like to delete the first two characters on the below two lines 11 line1 22 line2 in vim, I enter into the visual mode and select the region I want to delete, and delete it. More...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Relation "OR" in relational databases The question is pretty trivial I guess. But nevertheless, E.g., I have Entities: user (id, name), group (id, name), user_group (user_id, group_id) and gallery (id, name, owner_id). Owner of the gallery could be user OR group. What's the best solution for this in relational dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Spring jdbc with aop transaction configuration not committing I am using Spring 3.0.6 in Tomcat 6 with JDK 1.6. I have configured Spring JDBC with declarative transaction using the Spring reference. I see following in the log for my delete query but after the execution the record does not get deleted. Any idea what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Download Manager with priority (Java, Android) I'm doing a little download manager within my app. I was using ThreadPoolExecutor threadpool = new ThreadPoolExecutor(1,210, (int) 210, TimeUnit.SECONDS,new ArrayBlockingQueue<Runnable>(210), new mThreadFactory()); and calling the following method for order the downlo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The mechanism behind Unity3D visual programming third party tools First sorry for posting this here.I just got no answer to this question on "Unity Answers"I have been looking into the tools like uScript or Strumpy Shader Editors which are node based visual programming tools like Unreal Kismet or 3DsMax particle flo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Bridging standard input/output over a TCP socket I want to write a script that does the following: * *Start listening on a random available localhost TCP port. *Start a certain external program passing the port number as an argument. *Accept a single connection to the server socket. *Send the script’s standard...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cast object at runtime I want to perform the following line of code using reflection. IWshRuntimeLibrary.IWshShortcut desktopShortCut = (IWshRuntimeLibrary.IWshShortcut)WshShell.CreateShortcut(Environment.SpecialFolder.Desktop.ToString()+"\\Max Y+Y.lnk"); I have successfully get the right part of expression. WshSh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Validate an email inside an EditText I want to validate an email introduced inside an EditText and this the code that I already have: final EditText textMessage = (EditText)findViewById(R.id.textMessage); final TextView text = (TextView)findViewById(R.id.text); textMessage.addTextChangedListener(new TextWatche...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to access a password protected site using python? I was thinking that, if I access a password protected site using python's mechanism, I would get a 401 Unauthorized error which needs authentication data. So inside my script, I tried to access my yahoo mail box which apparently needs username and password, I tho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What should we prefer to use Stored Proc or Prepared statements I have recently started working on Databases. I know the basic difference between Stored Procedures and Prepared Statements. But can just brief me an idea that when we have to use which one. My trainer told me both are used when you have to execute a co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript: Radio button not checked value I have variable that get's value of checked radio button named: parentcheck I wanna check if parentcheck is checked and =0 or if not checked. Tried if(parentcheck=='') for "not checked". it doesn't work. var parentcheck = $(".parentcheck:checked").val(); if(par...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP Regex for whole words only I have the following code: function mmh_links($message){ ini_set('auto_detect_line_endings','1'); $row = 1; if (($handle = fopen(realpath(dirname(__FILE__))."/mmh_replace.csv", "r")) !== FALSE) { while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Prevent url's from appearing as links in mail clients I'm sending an HTML mail from my app, this mail contains URLs, is there a way to prevents from mail clients to show these URLs as links? for example: <table> <tbody> <tr> <td>http://www.google.com</td> </tr> </tbody> </table> will generate" http://www.google.co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: ORDER BY relevance, while using parametarized values i found the following query online: SELECT company_title FROM companies WHERE company_title like '%gge%' GROUP BY company_title ORDER BY CASE WHEN company_title like 'gge%' THEN 0 WHEN company_title like '% %gge% %' THEN 1 WH...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Invoking Visual Studio's visualizer manually Scenario I've been trying to manually invoke Visual Studio's visualizer from code/immediate window, so far without any luck. I've written a simple console application with the following code: var dataset = new System.Data.DataSet(); Then I added dataset into the Watch Wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I read file by line and execute each line with cat I have file js.txt which contains paths to javascript files. I want to output all javascripts into one file. js.txt content: js/jquery/jquery-1.6.2.min.js js/jquery/jquery-ui-1.8.6.custom.min.js My bash script: #!/bin/bash WEBROOT=/home/rexxar/web/webroot/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mock classes with traits Is there any library that provides tools for mocking classes with traits (both can be statefull)? Simplified example: trait T { var xx: List[Int] = List[Int]() def t(x: Int) { xx ::= x //throws NPE, xx == null, even after implicit initialization } } class A extends T { } class...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to keep a table field value in consecutive growing order throughout delete operations? I'm working on a table in a database which has a primary key field with numeric int value. CREATE TABLE 'table' ( 'primary_key_field' INT NOT NULL 'other_fields' .... PRIMARY KEY ( 'primary_key_field' ) ) When I i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wrong decibel result on fft data If i remember the decibel range is bit depth * 6. I play wav file that his bit depth = 16 (using NAudio lib) and I get the fft result then i'm calc the decibels for each fft result. 20 * Math.log10(fftData[i]) and i've got strange results (-109...) how it can be over -96 (for 16 bit)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: several choices for executable path, but only one works inside Visual Studio? I am trying to register my executable for some shell action and need to find out the path to current executable. I found several questions (and answers) here on SO, and found the following options: * *Environment.GetCommandLineArgs()[0]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails server on VirtualBox is running really slow My local Rails server is running excruciatingly slow. The setup: Ubuntu server in VirtualBox, and Windows can SSH and access HTTP port 3000. Memory allocated is 1.5GB, but the page is still responding really slow in my Windows 7 browser. Any thoughts on this? (I migh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Purpose and Use of ThreadLocal class? I was going through the ThreadLocal class documentation and wondered in what scenarios it can be used. First I thought it can be used in those scenarios where we have third party/legacy classes and we want to handle synchronization issues. Then I looked at other examples of Thre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: java regex not working Why this regex isnt working for non-word and non-digits like this: )(ª º ? sentence.split("[^(\\p{L}\\p{N})]"); Is it suposed to work or not? PS: I can't find any information either on SOF or in the web A: A better description of the problem would be nice, but I'm guessing you're looking for...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenGL - Not Draw Completely Occluded Polygons? Let's say we have a set of polygons, can change the camera view angle and can translate the camera in the 3D environment. From certain view angles some of these polygons are completely occluded by one or several of the other polygons. For each drawn frame we know the e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Filling an array with selected items of another array I'm just getting to know AppleScriptObj-C and trying to create a simple application that would allow me to create playlists. The question is: I have an array, containing all the music tracks from my iTunes library viewed through NSTableView. I make a selection a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it more efficient to make a half-transparent PNG, or set opacity/alpha-filter on a non-transparent PNG? The image in question will be reused about 5 times on each page of a website. I can either set the opacity to 0.5 and alpha(opacity) to 50 or I can lower the opacity of the image in Photoshop and save it with t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sort after inserting an item into a Linked List? I have a C++ Program to insert Nodes to a linked list. The Nodes consist of a string that we'll call data, and a pointer to the next node that we'll call next. Also, the head node will be defined as head. I'm not sure what's more efficient - 1. Inserting a bunch of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting information from PFX file Is there a utility to get information from PFX files like for example to get the private key? How is a PFX structured? A: KeyPal utility will help you partially. Refer Pkcs#12 options. A: Use the below command. keytool -list -keystore path of pfx file in quotes -storepass passwo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java - looking a method like contains static boolean contains(Iterable<String> haystack, String needle) { for (String s : haystack) { if (s.contains(needle)) { return true; } } return false; } static void containsAll() throws IOException { List<String> words = loadLines("...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: No results showing for mysql select all Hello guys i am trying to show all the users pokemon were the table belongsto = there username here is my code i have a connect on top of this has well // Get all the data from the "example" table $result = "SELECT * FROM user_pokemon WHERE belongsto='".$_SESSION['use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to read repository at http://download.eclipse.org/releases/indigo I was trying to add the PDT, Indigo - http://download.eclipse.org/releases/indigo Unable to read repository at http://download.eclipse.org/releases/indigo. Unable to read repository at http://download.eclipse.org/releases/indigo. http://downloa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: zend google fusion table update As anyone any idea on how to update a table in google fusion using Zend framework? I can get the data: $url = "https://www.google.com/fusiontables/api/query?sql=SELECT%20name%20FROM%201695591"; $data = $gdata->get($url); $postcodes = $data->getRawBody(); But have no idea how to upda...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Encoding issue with WebView's loadData I'm loading some data, containing latin-1 characters, in a WebView using String uri = Uri.encode(html); webview.loadData(uri, "text/html", "ISO-8859-1"); When displayed, the latin1 characters are replaced by weird characters. If I load the html directly in a TextView (just to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Deploying Pyramid to dotcloud What is the proper way to deploy a Pyramid project to dotcloud? The contents of wsgi.py: import os, sys from paste.deploy import loadapp current_dir = os.path.dirname(__file__) application = loadapp('config:production.ini', relative_to=current_dir) I'm currently getting the following e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "surprising" constant initialization because of definition order When reading the slides about constexpr the introduction is about "surprisingly dynamic initialization with consts". The example is struct S { static const int c; }; const int d = 10 * S::c; const int S::c = 5; Alas, the audio track is missing, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Flash as3 dragging Movieclips from Scrollpane component into a movieclip/stage Hi im new on this board hope you can help me. Im trying to make a flash map game.Now i have got items in a Movieclip and want this Movieclip into a scrollpane component but i have got probs cause the dragging dont go outside of the scroll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to run parallel applications (High Performance Computing) on google app engine? Has anyone used Google App Engine with a HPC application? is it possible to do parallelism? You can do parallelism (at least in theory) using java + threads, but how many threads can you get? how efficient is it? A: When ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding architecture and folder structure in Symfony2? I'm completely new to Symfony 2 and i can't really understand the folder structure and organization of a project. I know what a bundle is, but what is unclear to me is: * *what's the main directory (the directory to be copied on the web server for deplo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ActionBar capacity/overflow not changing on orientation change I have an app using the ActionBar, where I handle orientation changes myself: android:configChanges="keyboard|keyboardHidden|orientation|screenSize" ...and the menu should fit in the ActionBar without overflow in landscape, but not in portrait: <?xml ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Getting week started date using MySQL If I have MySQL query like this, summing word frequencies per week: SELECT SUM(`city`), SUM(`officers`), SUM(`uk`), SUM(`wednesday`), DATE_FORMAT(`dateTime`, '%d/%m/%Y') FROM myTable WHERE dateTime BETWEEN '2011-09-28 18:00:00' AND '2011-10-29 18:59:00' GROUP B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C: drive access permission in windows 7 In matlab, I used a windows standalone application. There is a line in this application that writes a file in C:\...\...\. When I run the output exe file produced from this windows standalone application, the exe doesn't write in C:\...\...\ neither tells me that there is a se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update MYSQL and SET particular row Content I am trying to update my table t1 which has rows as following :- * *id *menu Currently i am having data in it as id = "1" menu = "menu1 ,menu2 ,menu3, menu4" I am using explode method of PHP to get MENU row of my table t1. $show_data = mysql_query("SELECT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Pixel Loading and Evaluating with PIL I want to create a program that loads the RGB values of each pixel in a image and saves them in some kind of list/dictionary/tuple and then when I type in a value it tells me how much pixels in the image have that value. So far I have read through the whole PIL documentation try...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Zend_From Validator only if the field input has changed? I'm writing a Backend System and I want to allow the users to change their email address. I've written a custom validator to check if the email-address the user has entered already exists in my database. Now I ran into a problem: The form is populated with the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GWT - how to implement RequestContext methods outside an @Entity-annotated class? Is it possible to implement RequestContext methods outside an @Entity-annotated class? @Entity class TheEntity { public static TheEntity theMethod() { ... } // don't want it here } @Service(TheEntity.class) interface TheEntityReques...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Form not being serialized? jquery and ajax I have a form that is submitted to a php script with jquery and ajax, but turning out blank in the php script. form: <table id="coachapplication"> <form id="coachapplicationform" action="" method="post"> <tr><td>Briefly explain your teaching methods:<br /> <textarea maxle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to properly add entries for computed values to the django internationalization messages file? Django documentation states: The caveat with using variables or computed values, as in the previous two examples, is that Django's translation-string-detecting utility, django-admin.py makemessages, won't be able t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7625991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: iOS - Unable to access NSMutableArray in didSelectRowAtIndexPath? I am unable to access my NSMutableArray in didSelectRowAtIndexPath although i am able to access it in cellForRowAtIndexPath. Here is my code :- - (void)viewDidLoad { NSString *path = [[NSBundle mainBundle] pathForResource:@"drinks" ofType:@"plist"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Estimated size of the self-join operation on a relation R, given a histogram for R Query optimizers typically use summaries of data distributions to estimate the sizes of the intermediate tables generated during query processing. One popular such summarization scheme is a histogram, whereby the input range is partit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Retrieving the image name from a powerpoint file I need to retrieve the image file name from an image in a pptx file. I already got the stream from the image but i didn't got the name of the image file... Here is my code: private static Stream GetParagraphImage(DocumentFormat.OpenXml.Presentation.Picture picture...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: On converting a Short to a Byte what goes on? I'm new to Java, from PHP, so spending some time/effort understanding types. Then I came across this: Byte bb = new Byte("127"); System.out.println(bb.byteValue()); Short ss = new Short("32727"); System.out.println(ss.shortValue()); Syste...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: google.zxing barcode generator in iReport I want put a barcode in my page and can preview it. The barcode generator is google.zxing and my reporting tool is iReport. But i dont know, how to configure Image Expression and Expression Class of an image in iReport. A: The two key ideas are first to write a bit of Java ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: JSF List Converter How do I write a converter for a list of items of class A in JSF2? I have written a converter for class A, but the items show up using the default toString() function: "A@hashcode". I need to use a converter rather than a backing bean method so that validation can take place (Hibernate Validator)....
{ "language": "en", "url": "https://stackoverflow.com/questions/7626015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Storyboard to alternate Opacity between two controls I'm trying to come up with a XAML based StoryBoard that alternates the opacity between two Label controls. e.g. Label1 and Label2. When the window loads, Label2 has the Opacity set to 0 by default. I want to achieve something like: Label1 = Opacity 1 (pause for 10...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: web development e-mail protection Currenty, web sites gives generic messages to the users on invalid login attemps such as: The username or password you entered is not valid to protect e-mails from spammers. However, I read somewhere that this is not enough because sign up forms will warn user if the e-mail address...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make a property with known and fixed values for a user-defined button? I have a user-defined button, and it may have a Style property which I choose in properties window a value for it and depending on that value its Image and style will change. How can I make this property to have some predefined and fixed v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Comparison of Strings Possible Duplicate: How do I compare strings in Java? Am I am comparing strings in the wrong way? Please show me how to compare correctly? Thanks. private void deleteButtonActionPerformed(java.awt.event.ActionEvent evt) { String selectedV...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Comparing multiple very large csv files against each other I have n csv files which I need to compare against each other and modify them afterwards. The Problem is that each csv file has around 800.000 lines. To read the csv file I use fgetcsv and it works good. Get some memory pikes but in the end it is fast enough...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to call a method of a locked object from another thread? when thread 1 has the intrinsic lock of an object because of synchronized(object) { ... } is it possible to call object.method() from thread 2 or not respectively do I need to type synchronized(object) { object.method(); } in thread 2 to prev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Laying out divs of different heights in a grid I have a site that I'd like to layout like this image: Red is the desktop version and yellow is the mobile version. I can easily switch between the two using media queries. My problem is how to write the CSS for the desktop version - I only include the mobile version b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CC-Mode 5.32.1 with Latest Emacs I'm trying cc-mode 5.32.1 with Emacs trunk. When I compile I get these errors cc-mode.el:596:29:Error: Symbol's function definition is void: byte-compile-obsolete Compiling file /home/per/pnw/emacs/cc-mode-5.32.1/cc-styles.el at Sun Oct 2 12:28:53 2011 cc-styles.el:654:29:Error: Sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery Ajax FileUploader & asp.net I am trying to create a File Uploader with progress bar with Asp.net + Jquery. important thing is I do not have a MVC webpage. I have followed the instructions here: http://blog.stevensanderson.com/2008/11/24/jquery-ajax-uploader-plugin-with-progress-bar/ However It just skips ove...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the bluetooth connection time out in mobile/j2me? Im developing a mobile application in j2me.In my application i connect the mobile with some other device with respect to bluetooth.After connection established i send the command from the mobile to that other device to perform some operations via bluetooth. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 2.3/3.1 TimeZone calculation/parsing performace gap Why does this code 500.times { Time.now.in_time_zone('Helsinki') } take several seconds with Rails 3.1 while it takes only a split second in Rails 2.3 (both with Ruby 1.9.2-p290)? I discovered this by searching for a cause for an extremely slow loading page ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Approaches to implement macro definitions in html I would be great doing things like <define tag="myTag" options="3"> <h1> #1 </h1> <ul> <li> #2 <li> #3 </ul> </define> and then use it: <myTag option="foo" option="bar" option="bean" /> I regard macros as really big advantage. A work-around is using a macro p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Cannot write text as UTF-8 to file using python I am working on a program that reads a downloaded webpage (stored as 'something'.html) and parses it accordingly. I am having some trouble getting the encoding and decoding correct for this program. It's my understanding most webpages are encoded in ISO-8859-1 and I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: display:table in a div not showing like a table http://img580.imageshack.us/img580/1811/sinttulooh.png I have the problem you see in the picture. That's a div with three columns. This div has a display:table property, and every column has a display:table-cell property. The problem is that, as you see, the left and r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Partials for HABTM I have the following models: user.rb has_and_belongs_to_many :comps comp.rb has_and_belongs_to_many :users And my comps_controller.rb is: def index @user = User.find(current_user.id) @comps = @user.comps end and my comps/index file is: <%= render @comps %> and my parti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DatagramPacket not transmitting the right message I'm implementing a client/server application using UDP transmissions. Here is my part of my code : Client : InetAddress serverAddress = ... int serverPort = ... DatagramSocket socket = new DatagramSocket(9999); ... String message = "<HELLO>"; byte[] outbuffer = n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hebrew - english layouts selction in android application What is the best way to provide the ability to switch between hebrew/english layouts in Android applications? Is it commonly done - or usually just providing hebrew or english applications. I know there is abikty to use localiztions - but is there Hebrew suppo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Background function in asp.net Is it possible to write a background function in a master page that triggers after a specific period of time, say 5 hours? function() { execute code from the clsGeneral Class } Please suggest how this can be implemented. A: Pre IIS 7.5 you don't. (technically you can, but i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is effect of "System.gc()" in J2ME? I'm developing a mobile application in J2ME. Here I'm facing memory problem. I'm facing out of memory error. So please give the ideas of how it get rid out of this kind of error/exception, garbage collection, memory management in J2ME. I had one doubt what is the effect Syste...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a frame1 in the timeline, to be my startpage, when I already have a frame on the first timeline? I have 3 layers in the timeline, and I want to make a new layer, and then use the new layer to be my first frame (like a startpage). How do I do that? A: Flash does not support show/hide of layers. Learn abo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python/Django: sending emails in the background Imagine a situation in which a user performs an action on a website and admins are notified. Imagine there are 20 admins to notify. By using normal methods for sending emails with Django the user will have to wait until all the emails are sent before being able to proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How to set current date and time using prepared statement? I have a column in database having datatype DATETIME. I want to set this column value to current date and time using `PreparedStatement. How do I do that? A: Use PreparedStatement#setTimestamp() wherein you pass a java.sql.Timestamp which is constructed wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: MapReduceBase and Mapper deprecated public static class Map extends MapReduceBase implements Mapper MapReduceBase, Mapper and JobConf are deprecated in Hadoop 0.20.203. What should we use now? Edit 1 - for the Mapper and the MapReduceBase, I found that we just need to extends the Mapper public static class Map exte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Get browser history and search result in android I am trying to get the history and search results from the android browser. In the following code I get all the bookmarks, which works great: public void getBrowser(){ String[] requestedColumns = { Browser.BookmarkColumns.TITLE, Browser.BookmarkCol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: java regex tricky pattern I'm stucked for a while with a regex that does me the following: * *split my sentences with this: "[\W+]" *but if it finds a word like this: "aaa-aa" (not "aaa - aa" or "aaa--aaa-aa"), the word isnt splitted, but the whole word. Basically, i want to split a sentece per words, but also ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to invoke powershell Set-Location command silently? I would like to cd to some directory without the path to that directory being displayed by powershell. No matter what I try - nothing works: PS C:\dev\windows\nc> cd .\NC.Server.Host | Out-Null C:\dev\windows\nc\NC.Server.Host PS C:\dev\windows\nc\NC.Server.Hos...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET C# Generate Table Dynamically doesn't work I've been trying to generate a table with n number of rows. Being used to PHP makes this all the worst. I tried the following code: using System.Data; // Create a DataTable instance DataTable dTbl = new DataTable("myDynamicTable"); // Create a DataColumn instances...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No known package when getting value for resource number Everything looks like ok. But : No known package when getting value for resource number 0x7f040001 exception is throwing. A: My code was: Resources res = getResources(); InputStream is = res.openRawResource(R.xml.questions); then I changed it to: is = ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: ARM LPC1751 pins configured as I/O How can I configure one pin for input and another for the output? If I am not wrong this could be done with GPIO registers that controlls device pins that are not connected to peripherical functions. A: Look in UM10360.PDF, Chapter 9: GPIO. There you can find the description for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get page size using AlivePDF Is it possible to get the page width and page height for a PDF during creation with AlivePDF? I need this to place a shape to the right side of the page, no margin or padding, sticked to the right side. A: Hopefully this will help you. Looking at the AlivePDF API documentation for the P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What does Array as Object mean in Basic4Android? SQL1.ExecNonQuery2("INSERT INTO table1 VALUES(?,?,?)",Array As Object("def",3,4)) I don't seem to understand why the argument list in the above statement is declared in the form of Array as Object('xx','xx''xx').How is it exactly being converted into a list parameter...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image upload doesn't work in mozilla and Internet Explorer - asks to save files I have implemented upload feature in ASP.MVC. I am using jQuery.BlockUI and JQuery.Form plugins (but I don't know is this important). And everything works perfect in Google Chrome. But in Mozilla and Internet Explorer it doesn't. When I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ICS timezone not working I have made an ICS feed containing a long list of events. My timezone does not seem to work. In the sample below you see that my event should start 07:55:00 and end 09:30:00. This is what it should show in my calendar. Instead it shows 09:55:00 and 11:30:00 - an offset of two hours. The time...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How to pass object to function in c++? Can anyone tell me how I can pass an object to a C++ function? Any better solution than mine? #include<iostream> using namespace std; class abc { int a; public: void input(int a1) { a=a1; } int di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: the picture can't be attached when I publish a new feed on facebook by graph I was publishing a new feed to the wall on facebook using graph api in ruby, and it works except the picuture is blank. here is a arguments I attached { :message => "Hello, world", :name=> "name here", :link=> "http://bl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: asp.net MVC3 Custom Validation I am new to MVC so this question may be naive I know you can add validation attributes to model properties and the framework will provide appropriate server side and client side validation.However I am forced to use a legacy database structure where one of the properties in the model i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Need a syntax highlighter for inserting code into a web page I have tried Google but I can't find the websit /utility I'm looking for. A while ago I found a website which lets you paste in Javascript and then it will produce html/css which you can copy and paste into your webpage which then displays the Javascript w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP form submission I've built mini content management system. In my page add form i'm using ckeditor. for text are named content <textarea id="content" style="width:100%" name="content"></textarea> Adding all data from form into db table with following php code. (Function filter used for sanitizing data) <?php req...
{ "language": "en", "url": "https://stackoverflow.com/questions/7626124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }