text
stringlengths
8
267k
meta
dict
Q: is possible write/read a file using a string data type structure? for write something in a file i use for example this code: procedure MyProc (... ); const BufSize = 65535; var FileSrc, FileDst: TFileStream; StreamRead: Cardinal; InBuf, OutBuf: Array [0..bufsize] of byte; begin ..... FileSrc := TFileStre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java - Generically handling the creation of subclasses I have three classes that are quite similar, excepting a single method. Therefore, I chose to put the rest of their functionality into an abstract superclass. When it comes to creating instances of these classes, however, I'm at a loss for how to implement what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I pass query parameters on in the MVC default route? I have an MVC2 project where I want the default route to pass on query parameteres to the default action. Right now I have a route like this routes.MapRoute( "Default", // Route name "", // URL pattern new { controller = "Search", action = "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Paypal Hidden variables doesn't work Possible Duplicate: Variables upon submitting Paypal form //Buy.php <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="hosted_button_id" value="EWE57TOG6A1GO"> <input type=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scala: filtering a collection of Options Say I have a function that checks whether some operation is applicable to an instance of A and, if so, returns an instance of B or None: def checker[A,B]( a: A ) : Option[B] = ... Now I want to form a new collection that contains all valid instances of B, dropping the Non...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: how to show pdf in android emulator i want to show pdf in emulator.the following code i use. public class PdfActivity extends Activity { public void onCreate(Bundle savedInstanceState) { URL url; Button btn; super.onCreate(savedInstanceState); setContentView(R.layout.main); System.setPropert...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to clone a Java object with the clone() method I don't understand the mechanism of cloning custom object. For example: public class Main{ public static void main(String [] args) { Person person = new Person(); person.setFname("Bill"); person.setLname("Hook"); Person cloned ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do I select TOP 5 PERCENT from each group? I have a sample table like this: CREATE TABLE #TEMP(Category VARCHAR(100), Name VARCHAR(100)) INSERT INTO #TEMP VALUES('A', 'John') INSERT INTO #TEMP VALUES('A', 'John') INSERT INTO #TEMP VALUES('A', 'John') INSERT INTO #TEMP VALUES('A', 'John') INSERT INTO #TEMP VALUE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Getting the width of a Dynamic TextView inside a Table Row I am stuck up here trying to get the width of a TextView in a Table Row after setting some random text to it. I am using the getWidth(), but it returns zero always. Is there a way to find out the width of a dynamically created TextView. Here is my code. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Question on CSS % height If I define a CSS as follows; div {height: 50%;} Will this work across most modern desktop browsers (IE8+, FF, Safari) and mobile browsers (iPhone/iPad, etc) Is there any need to specify the following 2 additional attributes for cross-browser support min-height: 50%; height: auto; I am as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to select background color in selenium can any budy explain how to select background color from <div class="shc" style="background-color:#814c1b;">About Me</div> in selenium. i've source code like this <div class="gwt-Label mock-tab selected-tab">My Account</div> and i need to select color from it. i'm using...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What control to use to display main & sub tables ASP.NET 3.5 & SQL 2008 I have this main table & a subtable. For each set of calculation, 1 record is added to the main table & several records to the subtotal. Most of user entered data goes into the subtable & some into the main table. Currently I have a web page se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: c #Asynchronous capture from a process output and display it in a RichTextBox I have a richTextBoxLog which is public and static. After I declare it, I start a new thread which initializes new variable named proba. richTextBoxLog should get the value from proba. The problem is, proba needs time to be initialized, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenEJB cannot use javax.persistence.jtaDataSource The following configuration is ok for WebLogic, but in OpenEJB it raises a error "javax.naming.NameNotFoundException: Name "AppDB" not found." And if I removed the property javax.persistence.jtaDataSource, it works. And why set 2 duplicated datasource? Because it's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get index creation date from SQL server How can I find the create date of an index. I am using SQL2008 R2. I checked sys.indexes but it does not have a create date so I joined the query with sys.objects. The thing is that the object id for an index and the table containing that index is same. I am using this query....
{ "language": "en", "url": "https://stackoverflow.com/questions/7579932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Maintaining two Xcode versions in parallel on a Mac Can we maintain two versions of Xcode (like Xcode 3.2 and Xcode 4) in parallel on a single Mac machine? A: Yes - this works fine - normally when you install Xcode 4 if you already have an older version of Xcode it gets moved to /Developer-old and the new Xcode 4 i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do i execute a process in C# that installs a printer driver? I have to start an executable (installPrint.exe) within my C# code. For this purposes I used the System.Diagnostics.Process class. The exe file installs a printer driver and copy several files into different directories. I can execute the exe from comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Notification not working (htc wildfire) I am trying to play a sound, and flash the backlight of android phone using notification manager. I have used the following code. All the required permissions are there in the manifest file. But I am not sure why this is not giving any notification in emulator or in the device...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get Client IP from a Server JSP [Security] I want to know security issue using jsp method request.getRemoteAddr();. I want to filter some client IP (I can't use firewall :-(). I was wondering in this way an attacker can change the ip source of HTTP Request? Or the client ip is build from layer 3? I want to check the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linux USB driver probe() problem I'm currently work on kernel-mode USB driver for Seowon SWU-3220A WiMAX USB modem. It is a complex device (after plugging it appear in system as USB CDROM, and driver needs to switch it to modem mode). My problem is that the probe() function from my driver is never called. I think it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rhodes or Sinatra for iphone development? i wanted to develop an iphone app in Ruby, so i was confused to go for which framework.. Rhodes or Sinatra.. My app has to integrate google maps, GPS etc.. Please suggest me :) A: iPhones run on iOS. iOS will only run compiled Objective C. If you do decide to code in so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I assume an executable file as a snapshot image of an execution state? I read some unix manual (http://pubs.opengroup.org/onlinepubs/009695399/functions/posix_spawn.html), and there was a mention about execution. The new process image shall be constructed from a regular executable file called the new proces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript Image loading Facebook style so I was browsing through this page: http://360langstrasse.sf.tv/ It basically is a Javascript-Street View, but only allowing one direction. Therefore its kinda like playing a movie. When moving fast I notived that the images are grainy/pixelated, the same way as when browsing...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Automatic redirection to start page-C# asp.net In gridview ,there is a templatefield which is imagebutton.i'm binding imageurl at runtime(on pageload) based on the document type.if i'm not binding the image,on next postback it loads the startup page.can somebody give the reason for this? Thanks
{ "language": "en", "url": "https://stackoverflow.com/questions/7579957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to handle this situatiuon in Perl I am having a configuration INI file to store all configuration required for my script to run. I have a Logger.PM which uses Log4Perl, and ConfigReader.PM which reads the INI file and stores the value in global variable. My Start.PL is the entry point where i call the methods fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AlertDialog inside alertdialog android I am trying to add an alertdialog within an alertdialog.But not able to see the second alertdialog..please help me here is my code shown AlertDialog alertDialog = new AlertDialog.Builder(myclass.this).create(); alertDialog.setTitle("First alert"); alertDialog.setMessage("first ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Retrieving data from a POST method in ASP.NET I am using ASP.NET. There is a system that needs to POST data to my site and all they asked for is for me to provide them with a URL. So I gave them my URL http://www.example.com/Test.aspx. Now I do not know exactly how they POST it but now on my Test.aspx page I need to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: XSL for each loop selecting position of first occurrence In the following code snippet, I'm trying to get position of EMP_ID field from the available fields. This works fine if there's just one occurrence of EMP_ID. But if there are more than one occurences then variable 'empid_field' will have positions of all the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Working with Java JAR files from cmdline Let us have a Java application, contained in files A.java and B.java with dependency on somejar.jar file. The questions are: * *how to create a self-runnable JAR file with all the dependencies and sources compiled within? The main condition is using the standard Java utili...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to move Activity to mapActivity in android application I have one application. I need to display a map view when we click on Help button. Actually the Help button is in one class and google map is in another class. Now how can we call one map activity class from another activity class. A: You launch the activit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open Graph actions adding problem I've added test application then created graph action "XXXXX" in that app, then I deleted that application and created new one and tryed to add the same action (cos the action deleted with app I guess) the system did not allow me to add the action and showed me an error that I've al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to count the number of 1's surrounding a given element in a 2D list with Haskell? Suppose I have the following nested list: list = [[0, 1, 0], [1, 9, 1], [1, 1, 0]] Assuming you are only given the x and y coordinate of 9. How do I use Haskell code to find out how many 1's surrounds the number 9? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Print new line to a text file without carriage return (CR) in windows I am writing a program in C that prints a random hexadecimal value to a text file. The printed value has a carriage return (CR) along with a line feed (LF). However, the CR (visible in notepad++) is causing issues when the file is used. Is there a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Xcode 4 in my Mac App Store says its installed, but it's not I can't seem to re download xcode 4 as the mac app store thinks that I already have it. I've had this problem before with another app, but could really do with a solution to this problem now as I need xcode for a new work project. Any help anyone could of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to identify the websphere MQ listner port is down from code level I want to monitor mq listener status whether is up or down. If the connection is down i want to track it down and made a changes accordingly through my program. Is there a way to achieve this using java ? A: I would consider monitoring your lis...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to execute commandline application (bat) before mercurial commit? I would like to execute command line application before each commit (push) to central repository. If application will execute with errors, commit should fail with some message. I have found some examples of python hooks, but nothing about calling...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: facet_grid of back to back histogram failing I am having some trouble creating a facet grid of a back-to-back histogram created with ggplot. # create data frame with latency values latc_sorted <- data.frame( subject=c(1,1,1,1,1,2,2,2,2,2), grp=c("K_N","K_I","K_N","K_I","K_N","K_I","K_N","K_I","K_N","K_I"), lat=c(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows 7 - JAVA - starting or stopping apache 2 (httpd) service I would like to know how to stop, start, and restarting the Apache (2.0.64) service installed under Windows 7 in my program JAVA (executed in the same machine). Initially, I developed my apps in Linux environment and I had no problem to do that. Now, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update JTable in runtime I have a JTable which represents a database table. In runtime when I click a button I want to update my table from database. It is working if the button is in that panel where the table is. When I try to create an object from other class it is not working. How can I update a JTable from outs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jqgrid/mvc 3 - Export to excel and raise a file download dialog? I have read many solutions but I haven't got the working one yet. My problem is quite easy, export data to excel file and raise a file download dialog. However the file download dialog doesn't show. I could be the call method from View to Controller i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java method overload I have 2 alternatives to implement a calculation method, and I am wondering what would be the better approach. The method needs some int and double parameters and (in some cases) a special flag to do some different calculation. In the first example, I could call the method with 'calculateFoo(1,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS: Fixed width + Dynamic width children, filling 100% parent width? I have a parent div (- in diagram) who's width I don't know in advance. I have two child divs (a and b): b - is always a known fixed width, and should always be positioned on the right. a - should fill the remaining space -------------------------...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: GCC error: cannot convert 'const shared_ptr<...>' to 'bool' in return I'm switching to GCC 4.6.1, and it starts to complain about code which works fine with GCC 4.4 and MSVC10. It seems that it doesn't want to convert between shared_ptr and bool when returning from a function like this: class Class { shared_ptr<Some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How to implement custom cell selection behavior with button for UITableViewController? I'm trying to replace standard table cell selection behavior with a button-press behavior. The result should be same - to push detailViewController on top and to present some detail info. The cell view is loaded from a separate xi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Perform validation only on create using php-activerecord I am creating a User Model using Codeigniter and php-activerecord and the wiki says I can use 'on' => 'create' to have a validation only run when a new record is created, like this, static $validates_presence_of = array( array('title', 'message' => 'cannot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing a variable in php file How to add values from <input> to $var in php file? html <input type="text" id="align" name="align"/> php file <?php $align="center"; ?> A: You mean you want to post it and put it in a PHP variable? Try this: <form action="somephpfile.php" method="POST"> <input type="text" na...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Oracle table SELECT rights issue My application has few tables on Oracle where user XYZ is the schema owner. Tables has been created using XYZ. And I would like to have ABCUSER to have CRUD rights on these tables. I have given the access via GRANT ALL ON TABLEABC to ABCUSER and grant is succeeded. But when this user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's equivalent c++ "_popen" in C#? What's equivalent c++ "_popen" in C#? I would like open file with some command into stream. e.g. ffmpeg -i "D:\Downloads\shakira.mp3" -ac 1 -ar 11025 -f s16le -t 20 -ss 20 - 2>nul thanks in advance. A: Check out: http://msdn.microsoft.com/en-us/library/system.diagnostics.proc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Changing positions of div panels I have 3 panels: 1 - 2 - 3 The effect i want to have is that the three panels are moving forward. * *First i hide the panel number one (fadeOut) *Second, I change the id of panel number 2 to 1 , panel number 3 to 2, then I change the panel number 1(hidden) to 3. *Finally, i set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to combine these two queries? SELECT htpid AS parentid FROM likehot WHERE htpid IN (SELECT id FROM bultin WHERE DATE >= '1317108749') GROUP BY htpid ORDER BY COUNT( htpid ) DESC giving result parentid 16060 16059 16058 16057 and other query SELECT app_id,bultin.id,photo_album_id,entcmmnt_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UIViewControllers in UIScrollView? I have a design question. I have a scroll view that I want to use as a means of navigation. I.e. the user can slide between screens. At present, I am creating view controllers and putting their views directly on the scroll view: aViewController.view.frame=CGRectMake(0,0,320,200); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why IE does not refresh the page after a JS call to a click button? On a ASP.Net page, I am in front of a problem only with IE. Here is the description. On a page, there is two buttons and one label. The first button is visible and calls a JS function on the click event. This JS function calls the click function of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mysql connection profiles configuration file Is there a way to save the connection params(like host, port, username, password, db) to the mysql servers I frequently access as shortcuts? I am looking for something similar to ssh config for mysql from terminal in ubuntu. preferably with ssh tunneling support as well. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why gives FactoryGirl such large ID's in my testcases? I am using a Rails 2.3.x and Ruby 1.8.7 environment with FactoryGirl 1.3.3 (edit: version of FG has no influence as far as I can see) In my console, when I do: Factory(:user_activity) I get: #<UserActivity id: 25, user_id: 1, resource_id: nil, ... > However w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DataGridView ComboBox doesn't save when focus After select a value in DataGridView ComboBox and click a save button in bindingnavigator, data doesn't get update in database. User must lose focus in order to get the data updated. Is there a way to fix this problem ? A: Weird. I have done this recently and it worked ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java loop-output fact Think about the code below has a loop article.length public String getArticle(){ String headline=article.getHeadline(); //getting a,b,c,d from here System.out.println(article) return blabla; } Lets say output is like: 1-a 2-a 3-b 4-c 5-d 6-d What is the way of writing output like: 1-a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Running liquibase in java code I'm trying to execute in Java code analogue of Ant's "updateDatabase" task: Main.main( new String[]{"--defaultsFile=db/properties/db.test.properties --logLevel=debug update"} ); First, I could not find an updateDatabase command. I've tried: update, updateSQL, but all the time I'm gett...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android Action Bar Problem I am trying to implement a action bar in my app.I followed the method from this link http://developer.android.com/guide/topics/ui/actionbar.html If I keep the tragetSdkversion>= 11,Then it works fine. But If I add min sdk version>=11 then the buttons shows up as part of the options menu a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an ehcache jsp tag? In a current project of mine, JSPs are getting huge (lots of jstl end el logic, no Java), and due to increasing traffic, caching on many levels has become a necessity. Some components need to be dynamic, so we won't be able to use filter-based solutions. Unfortunately, the logic uses man...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: mobile application: how do I provide client authentication I had an idea for a fitness mobile app and I have been developing applications based on this idea for iPhone (Obj-C based), Android (java based), WebOS (html5 based) and Nokia Qt. I now need to provide authentication to the users of my application. The serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Filtering list of tuples based on the availability of a member in a list I want to filter a list of tuples like [(1,22,1),(5,1,8),(8,3,4),(7,5,6)] using a list like [1,7] which would eventually give me the result [(1,22,1),(5,1,8),(7,5,6)]; since (8,3,4) does not have either 1 or 7, it is eliminated. I can write a c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PostgreSQL delete fails with ON DELETE rule on inherited table In my PostgreSQL 9.1 database I've defined RULEs that delete rows from child tables whenever a parent table row is deleted. This all worked OK, until I introduced inheritance. If the parent (referencing) table INHERITS from another table and I delete fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: html5 videos not playing in chrome and safari in stage i have a problem in playing html5 videos in chrome and safari in stage.Local its playing all browsers.its playing after 10 to 15 mints in chrome and safari in stage .but in stage firefox playing currcetly.Pls help to me .Here i have pasted my code. <video id="mg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cancelling alarm from other class that the one which initiated it I set alarm from one class using this code Intent myIntent = new Intent(ClassOne.this, AlarmService.class); pendingIntent = PendingIntent.getService(ClassOne.this, 0, myIntent, 0); AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SER...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Webservice throws "empty" exception I've a webservice which seems to works fine, but sometimes the webservice stop working for no apparent reason. When I check the response in Firebug I see an "empty" exception: "There was an error processing the request" When the error occurs none of the methods on the webservice i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails : Model with Array of object of my class I'm beginning RoR. I've designed my model like this : User -login:string -password:string -email:string -followers:array (type user) I have now this termainal rails command :* rails generate model User login:string password:string email:string but i don't know how to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why RTP/RTSP meddle with my H.264 NALs? I looked in The RFC and noting could explain why the following happens(Though the decoder can still produce the original movie). I transmitted the H.264/AVC nals using VSS h.264 encoder, the byte stream looked something like this E5 46 0E 4F FF A0 23... when I read the movie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Make 'To' field only show one recipient This is the PHP code I am using upon clicking 'Submit' button at the form. Currently, when user inputs the email addresses, the message will be sent to those people. Upon checking my email when I was testing, I noticed that at the 'To:' field, it shows all the recipients. I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery click function removeClass addClass sequential I want to click on a button, a div appears, when clicking the same button it should disappear. Actually only appearing works, how to hide it again? Skript: $('#button').click(function() { $('#ui-block-a').removeClass('visuallyhidden').addClass('ui-block-a'), fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SSHJ Example of Public Key Auth from File Can someone give me an example of using SSHJ for Public Key Authentication? I realise this question is essentially identical to ssh example of private/public key authentication, however the answer by the author https://stackoverflow.com/users/126346/shikhar refers to a googl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: .Net 2.0 Form tag I have a .net application with aspx coded like: ... <form id="Fac_Status" action="TEST.aspx?Section=rel" method="post" runat="server"> <asp:Button id="BTN_ActSTADD" runat="server" Text="Submit" CausesValidation="True" OnClick="BTN_ActSTADD_Click"></asp:Button> </form> ... Is there any possibility ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Install Ads (Advertising) Server I want to install small ads (advertising) server on my local computer, to be run on linux, is there anybody know the program/tools of it ?. thanks, A: First, you'll need a way to receive requests. A static IP address. Or a service like No-IP. Then, you'll need a way to serve th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xcode Designer: How Do I Create 2 Sliding Selector Controls? Hi,I want to list for ex. speechers in an organization. Let's say a schedule. I've seen a couple apps in AppStore and liked this most. How do we create such controls? Like select the date then the place of speech. Those two don't have to be dependent.I co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Best option for deploying a CakePHP web app to shared hosting I have always edited code live on a site through an FTP connection in Coda or similar, however I've just written my first PHP web app for user sign ups etc and I'm very wary that i'm going to need a better plan than "live editing". I'm on shared hosting s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use a parameterized class as resultClass in iBATIS We have the following class public class TemporalData<T> { private T data; private String opCode; private Date updateTime; // getters, setters } public class Employee { private String name; private int age; private Date dob; /...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to make sure information in pixels work on all screen sizes? I have a Gallery with images of text, and a database that contains each text's position in the images.. The position is represented in pixels, and thats the problem: How can I make sure that the information works on each screen resolution? The images a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Customizing facebook fan box css HTML, with CSS set to a file on localhost: <div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <fb:like-box href="http://www.facebook.com/pages/abc/143772917800992?created" width="200" height="550" show_faces="true" stream="false" header=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to name method that raises an event I have a method (Read) that raise an event when there are new logs: public class LoggerModel: ILoggerModel { public event System.EventHandler LogsChanged; ... public void Read() { if (ThereAreNewLogs()) { OnLogsChanged(System.EventArgs.Empty); } } } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ignore return type from a Expression.Call When an operation invokes an Expression.Call, it will throw an error stating that 'System.Boolean' cannot be converted to 'System.Void' More specifically: I am implementing a 'wait' keyword which will simply call WaitOne() on a specified EventWaitHandle, and I am not interes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: T-SQL (varchar(max) vs CLR (string, SqlString, SqlChars)? I have a problem, that I can't solve. I'm using SQL Server 2005, C# CLR for using outer dll. The problem is at length of parameter. I need to use as function parameter type varchar(max). If at C# code I use string, SqlSring, I can't use T-SQL type varchar(max...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Perl iterate through each match Let's say I'm scanning through a page of raw html looking for this regex. (The quote mark on the end is intentional). m/(https?:\/\/.*?(?:'|"))/ This pattern is likely to match ~ 100 times. What is a common perl idiom/a quick way to iterate through a list of all capture group matches...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: How do I jump to a definition (function definitions, struct definitions, ...) in Notepad++ I usually use Notepad++ to read open source, but I don't know how to jump to a definition or jump back previous position. How do I do that? A: I'm using the SourceCookifier plugin for this. The file containing the definition ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: For Android's canvas, Is there a way to draw a path of variable width? I have a path that I want to draw on the canvas, but I want to change the width of different sections depending on some variables. How can I do that? Also, is it possible to use a bitmap pattern as the stroke of the path? Similar to what Photosho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Draw a Fill Rectangle with low opacity I a have a PictureBox with a picture in a Windows Form application in C# language.I want draw a FillRectangle in some location of picturebox.but i also need to see picture of picture box.how can i draw this rectangle with low opacity to see image of picturebox? A: Do you mean:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: EJB application hosting I am studying ejb and developing an application. I want to host and see how it works. I searched everywhere ejb hostings:cloud,vps hosting. But their hosting cost is very expensive for me. Now I am thinking of a home server. but the problem is if I run it, the security risk will be there as I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sql server encrypted column to be decrypted on another server How to: Encrypt a Column of Data shows how to encrypt a column of data in sql server and decrypt it in the same database instance the encryption part is exactly what I want however the decryption process would be different for me : I will create csv files...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: String Output to File So I'm trying to write a large string to a .txt file, but am having some trouble. The string I want to output is this: 0.x.y.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t.f.t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Glazed Lists SortedList update when source object order property changed I have some object with orderProperty class Car { private int order; // getter and setter implementation } Then I create EventList: EventList<Car> cars=new BasicEventList<Car>() for (i=0;i<10;i++) {Car car=new Car(i); cars.add(car);} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Maven: PL/SQL script with sql-maven-plugin throws error PLS-00103 I'm trying to use the sql-maven-plugin to execute a PL/SQL script on an Oracle 11 database. Although the script is valid PL/SQL (as far as I can tell), the execution gives me a PLS-00103 error: The SQL script: (drop_all_tables.sql) BEGIN EXECUTE I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Are both getters and setters mandatory in JSF's managed beans? I have a JSF component which is initialized from a managed bean's getter getProperty(). Is it mandatory to also have a setter setProperty() in that managed bean? A: It depends. Some property bindings must be read-write. For example, if you bind the valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: TextArea in Table Cell strange issue I have worked with javame + lwuit. I encountered an unusual behavior of textarea, when it is inside table cell. Originally textarea ыhifted to right over edge of cell, then I set a fixed size, the problem goes away, but there was another - even though that textarea was stretched ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySpace oauthentication login using php I have tried searching the internet for this, but couldn't find. Is there any documentation for authentication procedure from PHP web application for MySpace login. Can anyone give me example URL where from i can download source code to connect with MySpace account? A: implem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the advantage of having a domain name (spotilocal) that resolves to 127.0.0.1? Not sure if this is best suited to Programmers, Server Fault or Stack Overflow. It's not, however, a question about developing for Facebook. Facebook recently announced tighter integration with Spotify. Play/pause buttons that co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Yammer url for post something i want to find out how to post something in yammer group wall via php application.I searched in yammer api and couldn't get clear idea.can someone please help me with the url format to post something to yammer wall A: They will tell you when you register for an API key: Request token ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to fetch ID from other site? Just let me know how one site fetch Logged in ID of other site? e.g. If i already logged-in in Gmail,then how any other site fetch gmail email ID into their user name textbox? Thanks A: This would only be possible if Gmail had an API for it. You can't read an other domain's cookies,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any alias available in Perl for referencing a module name? I have multiple Perl modules. The package names seems to be big everytime i access the functions from those modules, i need to provide something like this &PackageName::Functionname() is there a shortcut or alias available in Perl which can referen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to rotate image and resize with transparent background using PHP GD Following code using for rotate an image and resize the same, <?php $src = "41611326.png"; // Get new dimensions list($width, $height) = getimagesize($src); $new_width = 192; $new_height = 192; $dstimage=imagecreatetruecolor($new_width,$new_h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django URLS, how to map root to app? I am pretty new to django but experienced in Python and java web programming with different frameworks. I have made myself a nice little django app, but I cant seem to make it match www.mysite.com as opposed to www.mysite.com/myapp. I have defined urls and views in my urls.conf w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: Delphi OTA interface - AddPluginBitmap function does not display the caption When I use the following code in my package (a Delphi OTA/IDE plugin): unit uSplashRegister; interface implementation {$R SPLASHREGISTER.RES} uses Classes, Windows, Graphics, ToolsAPI,DesignIntf; ResourceString strSplashScreenName ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NetBeans 6.9.1 fails to see svn configuration for SSHFS mounted drive I'm using NetBeans 6.9.1 with the Python package on OS X 10.6.8 for a project I've mounted using FUSE for OS X and MacFusion. Initially, when checking out the project from subversion, I'm able to commit and update as I wish. However - when I resta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7580230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }