text
stringlengths
8
267k
meta
dict
Q: How to get rid of top fading edge in android full screen mode? By putting the following two lines of code in activity.OnCreate, I can get a full screen view: requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Simulating a click on a menu item in Robolectric It's fairly simple to simulate a button click in Robolectric: Button someButton = (Button) findViewById(R.id.some_button); someButton.performClick(); However, I can't seem to figure out how to do the same thing with a menu item. I create a menu in Activity.onCreateOp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: how to count rows from multiple tables in sqlite i am using following code - (int)GetTextCount { NSMutableArray *audioArray=[[NSMutableArray alloc]init]; int count = 0; //This method is defined to retrieve data from Database NSString *dbPath=filePath; sqlite3 *database; if(sqlite3_open([dbPath UT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I run a loop for a period of time in C#? Possible Duplicate: How to execute the loop for specific time So, I have an infinite loop in C#, but the thing is, I want the loop to end at some point. Not based on a count or a loop interval, but based on a period of time, so once that period of time has passed, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MKMapView current location showing as custom pins I have set so that my MKMapView shows the current location. I also have a custom pin implemented for other pins. However, it turns out the current location shows as a custom pin, whereas I just wanted it to be a regular blue circle (like what google map has). I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: RegEx replace content within curly brakets I'm working on a small system with a WYSIWYG-editor that spits out HTML. In the generated code the HTML-links looks like this. <a href="{link:3645}">One line</a><br/> <p>yada yaya</p> <a href="{link:2780}" target="_blank">Another link</a> I would like to "scan" all the HTM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why is class a reserved word in JavaScript? I am planning to implement class inherit interface using JavaScript. class is the perfect word as the name of the constructor. class = function (classname) {}; // create a class with classname classA = new class("classA"); // create a class named classA Unfortunately, cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: web2py: how to copy a python array into a javascript one I'm currently having an issue with getting javascript and python to communicate in web2py. controller: def testDB(): a=[] a.append('a') a.append('b') a.append('c') return dict(m=a) (Eventually this will be replaced with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create UI components dynamically using Sencha touch? I am a beginner to Sencha touch API. I am real struggling to make the UI components using Sencha touch lib. I have created some sample UI. But it is static in nature for now. How can i make it dynamic. Dynamic means i want my JSON response to decide the com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get a form value in a controller I am using Spring MVC. How can I get text box value of the following snippet in my controller method? <form name="forgotpassord" action="forgotpassword" method="POST" > <ul> <li><label>User:</label> <input type='text' name='j_username' /></li> <li><label>&n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Is it possible in c++ to forbid calling a certain function at compile time? I have 2 classes: class Entity { void addChild(Entity* e); }; class Control : public Entity { }; What I want to do is to not allow adding a Control as a child of something that's not a Control. So, for example: Control c; Entity e; e.a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Refreshing Data in BO I am getting an error while refreshing the report in BO. What I have to do is to refresh a report in BO and find the refreshing time it taken for that. Once I find all these I have to insert those data in MySQL table. While I am doing this I get the following error. Exception in thread "main" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does every Object in java have its own Constructor? This question is because of this line i read A new instance of an object is created by calling a constructor method. i agrre but constructor method of what..? an OObject or a Class itself..?.. Sorry if its an amateur question but i'm still learning java and i'm fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem implementing virtual method in derived class Hey I was trying to multiple inherit a pure virtual function using MVS2010 Compiler. So I can run a draw for all renderable objects. So here is the diagram in ASCII |Renderable | |Entity | |virtual bool draw()=0;| | functions in here | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hibernate child tables are not updated I have 3 mysql database tables called "Invoice","Selling","Invoice".ER diagram is as following. This is a simple database for billing application. Invoice table keeps data about the invoice and Selling table keeps the items which are bought for the particular invoice. Item ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP: Populated drop down menu and get posted item I want to populate text file to drop down menu. Then, post the selected item to another text file. The script does not work. It only writes a blankline to "userinput.ini". My code for index.php: <html> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rich Text Editor suggestions for CMS build onZend Framework I developed a simple CMS, for managing my website in Zend Framework. Now for the contents I require a rich text editor. Is there any specialized editor, which I can use directly on Zend Framework. Found digit editor, but as I am a novice I found it pretty h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Preparing for and backing up my first non-school project So I've decided to start a personal programming project just to try and to improve my programming skills and improve my abilities to organize myself better. The problem is I've only worked on small assignments so far, at most a few classes (the files of course...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to pause video recording in gstreamer I created a pipeline as this: v4l2src -> tee -> queue -> encoder -> avimux -> filesink tee -> queue -> v4l2sink Now I want to pause the recording(keep loopback, but pause encoder), and when I resume, I expect the recoding file continues from where I resume. I tri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Cross domain uploading Are there ways to upload files using a form in url A that points to url B in its "action" attribute without redirecting the page to url B? A: I know it's 3 years later, but since I had this same question myself today, I figured I'd post my solution here. It's not the prettiest, but it uses a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to get rid of the fraud transction made through a interface developed with ubercart-paypal in drupal i had developed a site in drupal using ubercart and paypal as default gateway, everything is working fine only one problem - some people making the fraud transaction through my site, i got log messages from paypa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: django - use filter in the argument to a simple_tag I had a custom simple-tag. And it seems I can't use a filter as its argument. Here is an example. mysum is the tag. myincrease is the filter. foobar is a variable and I want to pass foobar|myincrease to mysum. The template: {% mysum foobar|myincrease 1 2 %} gives ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why my ordering by linq does not work Trying to order logs by logtype or by logType and thenBy DateTime but does not work.What am I missing? public enum LogType { Fatal, Error, Warn, Info, Debug, None, } public class Log { public DateTime ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hudson / Sonar report about compiler warnings Is there a plugin to show compiler warnings in Hudson and / or Sonar? A: Hudson/Jenkins has the Warnings plugin. There's no similar plugin for Sonar, but I'm wondering if the compiler checks are redundant with the many checks embedded in Sonar (Checkstyle, Sonar Squid, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript Beginner: Why isn't my form submitting Trying to teach myself javascript here so do bear with me. Why isn't the following snippet working? <script type="text/javascript"> function form() { var role_id = document.contextform.role.value; document.contextform.action="profile/" + role_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cacheing pictures for a listview so i have a listview with images from some urls, i tryed to save the pictures after loading in a arrayList of bitmaps but in the end only 2-3 pictuers showed in the list on my device (the emulator shows all pictures), so i tried to cache the pictures after downloading and i use: ` ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to authenticate on an ASP.NET 4.0 application and Redirect to ASP.NET 3.5 app On a Windows Server 2003 machine running IIS 6 I have an ASP.NET 4.0 web application on its own website (http://authorize.com) that has the Login.aspx page. When the login button is pressed it authenticates the user with: FormsAuthent...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the desired output using awk in unix I'm new to using awk, and I'm stuck on a problem. I have a file: startpoint--A endpoint--B startpoint--C endpoint--D I want the output as desired in a column so that under startpoint, I have all the start variables(A,C) and under endpoint all the end varibles(B,D). Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using structures in GCC and getting errors The same code ran in TURBO C. struct details { char name[20]; int year; float price; }my_str; details book1[10]; This error is produced. How can this be fixed? ram.c: In function ‘main’: ram.c:11:1: error: ‘details’ undeclared (first use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: InputStream.read method getting called too fast I'm trying to read InputStream data from Bluetooth socket and the method does what it suppose to do at the beginning. But for some reason later on it doesn't read everything. Here's the method that I'm using right now: public int read(byte[] b, int off, int len) When ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: powershell : using get-content as body of an smtp mail I am using powershell to send an SMTP mail. The body of the email is from a file. The problem is, when I receive this email, it removes all spaces and linefeeds so it looks ugly. Outlook client is no removing linebreaks. My code is as follows: $smtpserver = "smt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: android - passing variable from intent extra to ImageView Android newcomer here. I'm trying to setup an activity to display a selected image. The foundation of this code is from the Hello, Android 3rd edition (Pragmatic Programmer) that I have attempted to modify. Basically, I want to be able to click a button in o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Outdated book description of Try-Except-Finally statement I am following Apress, Beginning Python from Novice to Professional book. It is mentioned that: finally. You can use try/finally if you need to make sure that some code (for example, cleanup code) is executed regardless of whether an exception is raised ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to use the Amazon Webservices in my iphone application? iam developing one applciation.In that i want to use the Amazon webservices for storing the data.I dont know anything about how to use the amazon webservices in iphone application.SO please tell me how to integrate both of these. A: You would have to read ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "The result set is closed" error on nested execute query I want to write a query that should print values for xml tags from database in java. <employee emp:empid=" " emp:empname="" /><location loc:locname=" "/> The code below gives the error "The result set is closed". How can this be fixed? conne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: popViewController when textFieldShouldReturn is called? I've got a simple UIViewController with a UINavigationController. All that the view controller contains is a single UITextField. This view has two purposes: * *Create a new item. In this case, there are "Cancel" and "Save" buttons in the UINavigationControll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I execute commands on a remote computer? I have a machine that I am able to connect using the Remote Desktop Connection application and it is on a different domain. This machine has a SQL Server that can ONLY be accessed when I attempt to access it after logging into this machine. Is it possible (either via...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to split the time i need to split the time from datetime format using the json parsing . A: String[] startDateAndTime = e.getString("startTime").split(" "); String startDate = startDateAndTime[0]; String startTime = startDateAndTime[1]; try this to get your start date and time. A: In the current scnario, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Placing image which is in WebContent folder in H2 tag in HTML I am creating tabbed sections with tab heading as H2 as below: <div class="mainTab"> <div class="myTab"> <h2>Tab1</h2> Tab1 content here </div> <div class="mtTab"> <h2>Tab2</h2> Tab2 content here </div>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In need to display different colors in BAR - chat by using silverlight? In silverlight generally we can create a chat but i need create a BAR-chat based on the below requirement. Example: students marks 50,70,60,90.....like that having .for me based on marks i need to create different colors in the bar ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Photoshop like Grid/Guidelines with JQuery, Html 5 I'm looking for Photoshop like grid & Guidelines with JQuery. Is there any plugin for this ? Or is there any way to create such dragable/movable guides over Html 5 page. UPDATE / ANSWER Here is working Fiddle [ Thanks to Xenethyl ] A: As far as I'm aware, there ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Figure out if hours spanned is greater than 24 I don't know if am am loosing my mind or if this is even possible. By the way, I am not using any standard libraries so this is not language dependent, hence why it's here and not on stackoverflow. I have 2 time periods that are being passed to me in a int format. 1st p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to resolve Haskell type errors I'm trying to learn Haskell, and I'm writing the unzip function (yes I know it's built in, this is practice) but I'm having issues with my recursion line. I have: -- unzip turns a list of two element tuples into two lists unzip' [] = ([],[]) unzip' [(x,y):ls] = let (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery - option buttons reset cancelled I have a single checkbox that indicates that a user would like dinner. Under this checkbox are several radio buttons from which the user can select his/her dinner option. I am looking for two things to happen... 1) Whenever the user "checks" that they would like dinner I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Show Date in a Textbox in android I have a problem that, I have two Textboxes which contains dates, from calendar Dialog, the Calendar dialog shows default current Date for both TExtboxes, But I want, If a user selects a date from first TextBox(startdate) then the next Calendar Dialog for second TextBox(End Date) sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL: INSERT INTO table SHOW CREATE VIEW I need to write the column 'Create View' of SHOW CREATE VIEW in to a temporary table. Note that i cannot use the INFORMATION_SCHEMA because the create view statement there is a little bit different to the statement i get from 'Create View'. Specifically the statement in INFO...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unexpected Delay in Controller I have a method that gets the IBOutlet of another class by initializing an instance to the other class and then runs code that uses the references to the IBOutlets to set a memory address in another app. The code runs fine but is periodically updated by a timer that I set up to refres...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: selenium: checkbox not getting enabled? I have a webpage where I have a text field/box and two checkboxes. The checkboxes are enabled only after something is typed inside the textbox. When i do this manually everything is fine. But when i try it with selenium, the checkbox does not get enabled, even after writing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IExtractImage:Extract Method "Object reference not set to an instance of an object." error I want to develope image library for office document which will create thumbnail image of office documents. I got code for http://msdn.microsoft.com/en-us/library/aa289172.aspx The code i got that is in vb.net i converted in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check a textbox value inside a table is null or not? I have a page where i have a table it consists of a 3 textboxes inside each row, also i have a add row button at the bottom of the page, by clicking this should add a new row to the table, but it should trigger this action only if all the inputs in the tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to join three tables from a database using just one common field amongst them all.(Mysql) These are three tables 1. table `p_transactions` has following fields (`txn_id`, `txn_uid`, `txn_bid_no`, `txn_date`, `txn_desc`, `txn_amt`, `txn_fee`, `txn_mode`, `txn_status`, `txn_mdate`) 2 . table `p_game_results` ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Patterns for accessing subject hierarchy in RSpec When using RSpec to test deeply nested data structures, I find the need to define subjects in nested contexts in terms of the subjects in the containing contexts. I have looked extensively but not found any examples on how to do with without defining many variables. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is it possible to smooth button corners in Delphi I need smooth corners for my button. Is it possible to get that for TSpeedButton? A: I used the TJvXPButton (built into Jedi JVCL) for that purpose. It has rounded corners, it's free, it looks great, and it's the same on all versions of windows, with themes on and w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Refreshing a window from another thread while other operations are performed? I have been trying to keep the splash screen for my application from hanging while the application loads its initial data, however I have not yet been sucessful in finding a way to do this. Here is the code I have tried: SplashView splashS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Detect Shift key down using jna I have implemented keyBoardHook, but however cannot detect the character pressed while shift key is down. I have tried using the GetAsyncKeyState function of windows to detect when shift key is pressed. But this does not process shift+2 = @. it overrides the shift key and prints the k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swing components freezing until one component completes its job I have created a simple JAVA Swing program that has a JTextArea, three JTextFields and one JButton. What this application does is when the user clicks the button it updates the JTextArea with a text line, the text line inserted into the JTextArea is pre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to know the coverage for the django application ? I am having a simple django project that contains some applications.Everything works well.Now how do i check code coverage for my project.I have installed coverge-3.5 tool and just tried to know coverage by typing "coverage report" from terminal..It shows some re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Apple Script - to choose color displays a buttonless headless color wheel Color Picker I used the information on this post to create a Color Picker on my mac to replace the digital color meter app. http://www.macosxtips.co.uk/index_files/replace-digitalcolor-meter-in-lion.php But after I did that, I get a color pic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: TabStrip issue on postback I have a page and in the page I have a RadTabStrip, it has a MultiView with two indexes and two TabStrip indexes. The problem I am having is that when i update something in the second index, it returns back to the first index on postback. So I added a parameter in the url called &mode=Upda...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redirect to new page on session expire, in Zend_Auth I'm using zend 1.11 framework with doctrine . I'm sending below ajax request to populate dropdown list & etc... But once session expired i'm redirecting to login page in every actions of controllers. So i'm getting whole html page as response if session got expir...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Properties button disabled when accessing network properties through IContextMenu So, I have a c++ plugin dll for an app that supports plugins. The dll enumerates the Shell Folder for networks and displays your networks. It then allows you to invoke action on default Context Menu actions for those networks. Now, if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android NDK make file i am trying to execute a sample in ndk,but getting the following error. Android NDK: There is no Android.mk under mp3solutions/jni Android NDK: If this is intentional please define APP_BUILD_SCRIPT to point Android NDK: to a valid NDK build script. android-ndk-r5b/build/core/add-application.mk...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Selenium IDE - Not capturing button link In Selenium IDE, the application has got image as button. The click event for that is not capturing. Is there any alternative Selenium Commands available for that or otherwise, is there any JavaScript user extensions can be added? Please help. Thanks A: Yes.. the image will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharepoint LookUp field on Choice field? How to create a lookup field for the Choice field..For eg: In a list i have Choice field and i have to create an lookup column in other list pointing to this choice field ..When i select this list this column is not appearing in the dropdown...Please let me know if there is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Not able to write the testcases for inner class using EasyMock I am new to the EasyMock. I need to test my class using the EasyMock. but here the problem is my class has inner class and this inner class is instatiated in the outer class's method and calling the method of inner class by passing some parameters. I am ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fixed point vs Floating point number I just can't understand fixed point and floating point numbers due to hard to read definitions about them all over Google. But none that I have read provide a simple enough explanation of what they really are. Can I get a plain definition with example? A: From my understanding, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "155" }
Q: C# - trim text file contents to specified line number I have a very annoying bug, code generation tool has generated like 20,000 lines of rubbish in file. Removing it all by hand, is, well, rather hard, so I want to write a program that does so. Good news is that source code file contains needful info on lines 1 - 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java2D negative position can not be displayed, move origin to bottom left I am trying to draw lines on coordinates system in Graphics2D. However, I find out that the part on line in negative area can not be shown. Is there anyway I can make the lines in negative area be seen? Also, is there anyway I can convert dir...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get Canvas coordinates after scaling up/down or dragging in android I'm developing an application in which I'm pasting images, doing drawing and painting on canvas. This app can also Scale up/down the canvas or drag it to different location. My problem is: I can't get the correct canvas coordinates after scaling or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: In Ruby, how can I reflect on classes contained within a module? I'm using a library that lays its library out like this: module Lib class A; end class B; end ... end I know that I can use send on an object to "call" a method known only at runtime (e.g., foo.send(:bar, :baz_param=>42). How can I do this at th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Logging into a server using JSON object I've a bit of code that will be used to login to a clients server with his user name and password. Here is the code that I am using. My problem is that it isn't authenticating properly. I've checked the URL, user name & password but still there seems to be some sorta error pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A tricky XSLT transformation I have a loosely structured XHTML data and I need to convert it to better structured XML. Here's the example: <tbody> <tr> <td class="header"><img src="http://www.abc.com/images/icon_apples.gif"/><img src="http://www.abc.com/images/flag/portugal.gif" alt="Portugal"/> First Grade</td>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Right to left Text HTML input For my website, i need to provide arabic support. Part of it is to provide input textboxes where when user types in, the new characters have to be appended to the left and the text has to be right aligned. setting the css property to text-align:right didn't work, as i could not get th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Visual Studio 2010: How to generate component diagram from code I got into a project that is under development for quite sometime and lacks models and documentation on the design. We are using Visual Studio 2010 Ultimate. There is one old preliminary VS architecture model and I am trying to grow it up to show how th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WatiN : Textfields are not getting automated while running the code as WatiN.Core.IE window = new WatiN.Core.IE(); // Frames // Model TextField txt_txtName = window.TextField(Find.ByName("txtName")); TextField txt_txtPassword = window.TextField(Find.ByName("txtPas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Node.js: How do Proxy sites deal with relative Urls? I've created a relatively simple proxy in Node, which allows me to download pages and display them. This is fine, although some scripts, links, forms and images seem to be broken since they are pointing to relative files. As a project I'm trying to create a fully ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Caching with Cedar/Memcache/Rails 3.1 So I have been trying to get caching to work on my private website, which basically just serves static stuff with little dynamic stuff in it. Since I am going to deply to Heroku Cedar, I have to go with Memcache instead of Varnish. However, I do not seem to be able to make it ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: screen rotation in android I want to use screen rotation in android device. But I don't want to rotate whole activity. How is this possible to rotate only some of views in a activity Like there are two button and one ImageView. I want to rotate only ImageView on screen orientation change. Plz suggest the way. Thanks...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom building of APK is there any way how to change, via changes in build.xml file, package name in time of build? Is it even possible?
{ "language": "en", "url": "https://stackoverflow.com/questions/7524879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: A basic question on multihreading For example I have a resource lock. So a multithreaded function checks if it's set before accessing a resource, then if it's not sets it Is there a tiny possibility that between checking and setting, another thread would have set the same lock? A: Yes, there is such possibility. Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: QTextStream and std out I have the code: QTextStream out(mFileHandle); out << (QTime::currentTime().toString(Qt::LocalDate) + " - ").toAscii(); out << "Something another"; std::cout << "Data: \n"; std::cout << out.string(); out.flush(); It writes to file but after 'Data:' I get '0', why? How to send data to both ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Framework/Library like Sitemesh I am looking at a UI framework similar to Sitemesh http://www.sitemesh.org/ Just to add, I am planning to have a Java based web app, which would be based on fluid design and would have "slightly" different layouts for desktop/mobile/tablet. (e.g. some areas just rearranging on differe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Onitemclick listener on getview method I'm trying to implement to open a custom dialog box having related info from the adapter list. here I'm using onclicklistener, it is working fine i'm getting custom dialog box, my problem is i'm not getting the correct info. If i click on any item on the list in dialog box it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I add a rich text box to a Custom Post Type in Dashboard? I'm trying to add a custom post type for 'surgeons' unfortunately theres like 6 sections i need to add which need to be rich text and not plain text for images, etc. this is what i currently have. I have all the plain text fields working fine but now i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Installing PDCurses for Cygwin I've been searching for a solution to do this for a while now, but still unsure. How do u install the PDCurses library in cygwin. I have the zip, I just don't know where to place the files. Is there a way to do this? Thanks in advance EDIT: If ncurses itself would be better how woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I call Close() or Dispose() for stream objects? Classes such as Stream, StreamReader, StreamWriter etc implements IDisposable interface. That means, we can call Dispose() method on objects of these classes. They've also defined a public method called Close(). Now that confuses me, as to what should I call onc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "190" }
Q: Logout functionality in android I am making a kind of social networking app. I am implementing log-out functionality in it. On Logout button click it should navigate to login screen but instead it is now navigating to the home page screen.I am using the following code for logout.. IntentFilter intentFilter = new I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQuery plugin default options prefix, string combine I'm wring a jQuery plugin, and I want the divs created inside of the plugin can be customized the ids, which i mean: this is what i've done: (function($) { $.fn.plugin = function (options) { var defaults = { box_id = "nos-box_id", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Shortcut key to close Immediate window in visual studio 2010 What is the shortcut key to close Immediate window in Visual Studio 2010. I open it using Ctr+Alt+I I want to close it using shortcut key with dock mode. A: Shift + Esc This is the correct answer. It's already in several comments. A: Press CTRL+F4 to clo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Copy File from UNC Path Server - Using Delphi 7 Services I created one service which is running in one server and I need to copy directory from another server to directory in this server through this service. The service is failed when finding directory specified in another server. Like If DirectoryExists("\\ServerN...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: issue in excel exporting with chrome12 I have a asp.net web application which exports the data into an excel sheet. This function is perfectly working in firefox, IE and chrome5.XX But not in chrome 12.XXX.. it generated the file as report.aspx insted of report.xls. any idea..? Thanks in advance. A: Even I had the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I zip files programmatically in iOS? Possible Duplicate: Zip and UnZip a file programmatically in iphone? I want to zip images and audio programmatically in my app. How can I do that? A: Try ZipKit. Put this as part of your build and then #import <ZipKit/ZipKit.h> After this you are good to go.
{ "language": "en", "url": "https://stackoverflow.com/questions/7524922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is my WCF client timing out after calling a method in the WCF server that raises an event? I have a WCF service hosted within a Windows service. There is s method in the WCF service that will raise an event that the Windows service subscribes to. When the event is raised and the Windows service catches it, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Annotation based ApplicationContext I understand that the ApplicationContext can be annotation based in Spring 3. Can anybody please share an example , so that I could refer the same. Thanks in advance, Vivek EDIT - This is the XML configuration: <context:annotation-config /> <context:component-scan base-package="co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change application type with Mono.Cecil? How can I modify an application from Console Application Type to Windows Application Type and vice versa with Mono.Cecil? A: To convert a console .exe to windows .exe, you can use: var file = "foo.exe"; var module = ModuleDefinition.ReadModule (file); // module.Kind was prev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Set cookies before subsequent requests in IE I'm trying to set some cookies (via javascript) before the browser makes a request for various resources lower on the page. The following works in Chrome/Firefox, but, not IE: [some_page.html] <!doctype html> <head> <script> var hash=new Date(); document.cookie='h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: what's the overhead of passing python callback functions to Fortran subroutines? I just wrapped a Fortran 90 subroutine to python using F2PY. The subtlety here is that the Fortran subroutine aslo takes a python call-back function as one of its arguments: SUBROUTINE f90foo(pyfunc, a) real(kind=8),intent(in) :: a !f2p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: SQL + ASP.Net Efficient paging My method of paging is inefficient as it calls the same query twice therefore doubling the query time. I currently call the 1 query that joins about 5 tables together with XML search querys to allow for passing List from ASP.net.. then I need to call exactly the same query except with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: entity framework navigation property to table in different db I have 2 tables in different db db1..Towns id Nazv db2..MathchedTown id t_id d_name They are joined by по Towns.id = MathchedTown.t_id This EF classes: [Table("Towns")] public class Town { [Key] public int id ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: starting text in uitextview from center both horizontally and vertically I want to begin text entered into UItextview from center both horizontally and vertically, please some one help me. A: set Alignment as center.for that select the textfield from .xib class and go to the library and in that set Alognment as ce...
{ "language": "en", "url": "https://stackoverflow.com/questions/7524949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }