text
stringlengths
8
267k
meta
dict
Q: Deploy different WCF .svc files based on configuration I have a Service1.svc file that is a normal WCF service. If I deploy the WCF project it will happily copy the Service1.svc file along with the binaries and the other files. So far, so good. What I want is, based on the selected build configuration, or some other...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Gsoap undefined references I'm trying to use and web service with gsoap. I've already generated all *.h and *.cpp using wsdl2h and soapcpp2, included all libraries, at least I think so, but when I build the project it gives me the message of undefined references to a lot of methods. The thing is all methods are decl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can jsp .tag files be included via a tld file like Java TagSupport classes? Most of my tags are done with .tag files, as its much easier to work with html that way. However, my web applications expect these tags in the web.xml/tags directory, which is a pain when a tag is shared among multiple web apps. If i underst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Want to add notes in a PowerPoint slides using VB.NET I want to add notes in the PowerPoint slides notes part under the PowerPoint slide using Microsoft.Office.Interop.PowerPoint. I'm using VB.NET code. Now it is creating the PPT file, and I can add text, comments, and images in the slide. But I need to add notes in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Establish relationship between managed objects in two different contexts I am parsing JSON string to create new managed objects in a separate thread and in a separate managed object context. Later I want to merge the changes in the main thread by listening to NSManagedObjectContextObjectsDidChangeNotification. The p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamic Types of fields in .NET Is it possible to dynamically change the type of the object in a class? say, I have a Filter class, that specifies a filtering condition for a list of objects of a specific ObjType Public Class PropertyFilter Public Property ObjectType as MyObjectsTypeEnum Public Property MainObje...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: retrieving rows in reverse direction from table using sql limit I am implementing pagination using SQL limit in MySQL db.Records are needed to get retrieved from the last row backwards. There are several thousands records in table and I want to retrieve say 500 records at a time to show up in a page. SELECT * FROM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Initializing object properties - how to do it properly Possible Duplicate: Initializing Class Fields at the Field Definition or in Class Contructor Setting variables on Constructor VS on the class definition What is the difference (if any) between the following 2 examples, and what is the proper way to initialize...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Call multiple HttpWebRequest I need to do several HttpWebRequest requests in a single moment, but when I make the request several times will cost a lot of time. I plan on doing each request in a separate thread and then get all the returns and put it all together when all calls are completed is it possible? A: Abso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook comments generating javascript error I'm having a javascript error in every browsers in local AND online when using Facebook comments. Trying to retreive 0 or multiple comments doesn't seems to change anything.Anyone have an idea? Error message Message : 'this._count.value.0' is Null or not an Object. All.j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mysql deliberate slowdown I have an Java application that connects to database. In the production environment, the dataset is very large, so the application very slow and I want to simulate (the slowness) in development environment. Is there a way, how to slowdown mysql, so the response time is bigger? I know, that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL:Query to check if a column meets certain criteria, if it does perform one action if it doesn't perform another I have found it quite hard to word what I want to do in the title so I will try my best to explain now! I have two tables which I am using: Master_Tab and Parts_Tab Parts_Tab has the following infor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java regex from Perl-type regex I'm trying to extract hours, minutes, seconds, and nanoseconds from a string time stamp in a log file.Here is the input string I am testing with: SOME_TEXT,+09:30:01.040910105,SOME_TEXT,SOME_TEXT,SOME_TEXT In Perl/Python, I would use the following regex to group the fields I am inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Qt. get part of QString I want to get QString from another QString, when I know necessary indexes. For example: Main string: "This is a string". I want to create new QString from first 5 symbols and get "This ". input : first and last char number. output : new QString. How to create it ? P.S. Not only first severa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: Listbox Data Virtualization and Multi-select I have a listbox that can potentially have a large number of items with backing data. In order to handle data virtualization, I have tied into WPF's UI virtualization by writing a collection that implements the same interfaces as ObservableCollection and can spin up our b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: iOS app crashes on device with no crash info My app is crashing on the device after I repeat a certain sequence of actions a few times, generally it occurs after a memory level of one is triggered, and always occurs when one of the view is being loaded. This problem cannot be reproduced in the Simulator. There are...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex: createPopUp -> Make everything modal except scrollbars I made this simple application to demonstrate my problem. It has: * *An image *A button that launchess a popup window *Scroll bars on the side <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.ado...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: django filter depeding on character count of the item I have two models such that class Employer(models.Model): code = models.CharField(null=False,blank=False,default="") class JobTitle(models.Model): employer = models.ForeignKey(Employer,unique=False,null=False,default=0) name = models.CharField(max_l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I add facebook and google plus share code to HTML5Boilerplate? HTML5Boilerplate has some conditional code for outputting the open < HTML > tag. I'm working on adding the xfbml and google plus sharing code on my site, but not sure where to add the required code to the < HTML > tag. On Paul Irish's github I se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to print toast every 10 seconds in Java? I want to print toast for every 10 seconds that is Toast.makeText(current location,latitude,longitude). public class SimpleService extends Service { @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub return null; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting an optimization report from GCC I would like to know if there is an option I can use with GCC to get a detailed report on the optimization actually chosen and performed by the compiler. This is possible with the Intel C compiler using the -opt-report. I do not want to look at the assembly file and figure out...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Why Rails doesn't include the Javascript files at the bottom of the HTML page by default? I read here that it is better to include Javascript files at the bottom of the HTML page. Why Ruby on Rails doesn't do so by default ? A: I would guess that Rails includes your application.js in the <head> by default because i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: SQL Auto-Increment in Oracle APEX occasionally skips a chunk of numbers when incrementing? I have created a table in APEX that has a PK that is incremented by a SQL sequence: CREATE SEQUENCE seq_increment MINVALUE 1 START WITH 880 INCREMENT BY 1 CACHE 10 This seems to work perfectly. The issue is that sometimes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Interested in learning struts 1.x I am working on a struts project which I am new to. I have the background in jsp, servlets and understanding of j2ee. Is there any good sample struts sample project I can download and learn? A: Forget learning from samples. I've seen Struts samples ranging from incomplete to comple...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Send intent for screen on from shell How can send intent in the console for start the screen on ? I know the action for turning the screen on it is Intent.ACTION_SCREEN_ON, but I have hard time sending the intent from console. A: I found the solution adb shell am broadcast -a android.intent.action.SCREEN_ON
{ "language": "en", "url": "https://stackoverflow.com/questions/7584723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does require in PHP slow the site down? What I mean is whether writing something code in a file and then writing a require to it somewhere else is slower than writing the code in the file itself? (What about a require to a file that only has a require?) A: Yes, it's slower, but not by any magnitude of which you sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to upload mp3 file using Facebook Graph API [PHP SDK] I am using PHP SDK to upload/publish mp3 file on facebook page. I have a wordpress blog and using cron jobs to schedule post. Cron job has no issue and everything seems to be working great except uploading these mp3 files. I want to publish these mp3 files wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sql Server - Selecting Logical Results in a Query Suppose I have a table: ACCOUNT It has columns: ID, NAME, BALANCE I want to determine if the SUM of balances of people who has balance more than $ 2,000 is greater than $ 50,000. It means I want to select a logical value. Because I don't want to get specific sum, I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: VBA How to solve two equations with two unknowns I am trying to calculate point on a line. I got the points of the edges and one distance between one edge to the point I want to find (which is B). A(2,4) B(x,y) C(4,32) The distance between A to B is 5. How can I calculate Bx and By? using the following equations: d ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Delayed_job - job failing - need error message I am using delayed_job to run background processes. It works fine but then suddenly fails a job for no apparent reason (the job suddenly disappears from the jobs queue). There is nothing printed in the delayed_job log other than failure. Is there a way to get better ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# WinForms Process Encoding problem I am writing a windows forms application in C# I have a Process Object which runs a cmd command and returns it's output. Process Pro = new Process(); Pro.StartInfo.FileName = "cmd.exe"; Pro.StartInfo.Arguments = "<Dos Command here>"; Pro.StartInfo.CreateNoWindow = true; Pro.Start...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SOLR: Is it it possible to index multiple timestamp:value pairs per document? Is it possible in solr to index key-value pairs for a single document, like: Document ID: 100 2011-05-01,20 2011-08-23,200 2011-08-30,1000 Document ID: 200 2011-04-23,10 2011-04-24,100 and then querying for documents with a specific val...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I use most of my code in an ASP.NET MVC3 app? I wrote a simple WPF Application as an example: Model: public class User { public String FirstName { get; set; } public String LastName { get; set; } } ViewModel: //ViewModelBase contains base code for INotifyPropertyChanged public class UserViewModel : View...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google App Engine JDO Query using Alternate logic for 'NOT IN' I'm developing a Google App Engine Java app where users can search business objects from database based on search criteria. The search results (a list of records) should not include any of the records (certain number of records, say 100) from their past ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Separated login config for JBoss? I'm trying to create an RPM-packaged Ear file that should be installable together with other RPM-packagesd Ear files in a JBoss container. (I could probably create a separate container within JBoss, but that's a lot of overhead for one Ear.) This works fine, except for one issue. My...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: automatically print stack trace on any uncaught exception How can I automatically print the stack trace to stdout on any uncaught exceptions ? I am using pipe = subprocess.Popen(cmd, shell=False, cwd=cwd, env=env,stdout=open(pth,'w'),stderr=open(pth,'w')) On uncaught Exception, the file will only contain Unhandle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Inclusion of header files in case of templates. When we make a class we declare its functions in a header files and define them in a source file... then the header file can be included in the main file to use the class... But if we declare a template class in header files and define it in the .cpp file and then if w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hide and remove class on blur See this: http://jsfiddle.net/AFhvS/4/ Try remove the text inside the input field in one of the two filled fields: http://jsfiddle.net/AFhvS/5/ and then go on blur, it should appear a alert, but it doesnt, so i have done something wrong? A: you may add the class you want to remove $('....
{ "language": "en", "url": "https://stackoverflow.com/questions/7584789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing JPEG EXIF rotation data in JavaScript on the client side I'd like to rotate photos based on their original rotation, as set by the camera in JPEG EXIF image data. The trick is that all this should happen in the browser, using JavaScript and <canvas>. How could JavaScript access JPEG, a local file API objec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "139" }
Q: Using C dynamic memory functions in C++ to avoid Segmentation Fault I'm trying to safely recover from a segmentation fault I expect to happen. I'm trying to avoid it checking using my canAlloc() function here. When canAllow returns false, A0 (which is Ackermann's if you didn't see it) should throw an exception that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to check if an hash is "completely" included in another hash? I am using Ruby on Rails 3.1.0 and I would like to check if an hash is "completely" included in another hash and return a boolean value. Say I have those hashes: hash1 = { :key1 => 'value1', :key2 => 'value2', :key3 => 'value3' } hash2 = { :k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: What Eclipse products are there by default? I have a number of Eclipse versions installed. I noticed they have different icons in my task bar. The reason for this are different lines in the eclipse.ini files: -product org.eclipse.epp.package.jee.product versus -product org.eclipse.epp.package.java.product My quest...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create a HUE color bar I'm creating a color picker and I am at a stage where I need to create a HUE color bar: One way to create it would be through gradient stops in XAML. For example: <Rectangle Width="50" Height="100"> <Rectangle.Fill> <LinearGradientBrush StartPoint="0.5,0.025" EndPoint="0.5,1" > ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there any point to using Any() linq expression for optimisation purposes? I have a MVC application which returns 2 types of Json responses from 2 controller methods; AnyRemindersExist() and GetAllUserReminders(). The first returns a boolean, 2nd returns an array, both wrapped as Json. I have a JavaScript timer ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google image search: How do I construct a reverse image search URL? How can I programmatically through java convert an image to "some string" to pass it as a parameter for searching in google image search. Actually I have made some base64 convertion of image but it differs from that that google does in its image sea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: PHP radom output from key value array How can I get the follow thing done. The follow array I have: array(2) { [0] => array(3) { ["id"] => string(1) "5" ["avatar"] => string(15) "4e0d886ee9ed3_n" ["username"] => string(5) "testuser1"} [1] => array(3) { ["id"] => string(1) "1" ["avatar"] => string(15) "4e25bc58b6789_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP & MySQL - get top level category with just one query I'm trying to get the first category (level zero, no parents) from a child category (which might be any level) with just one query with MySQL. Is that possible? Here's an example DB structure : Table categories id (INT 11) parent (INT 11, zero if it h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Seamless image replacement / update I am creating a multi-layered image editor using AJAX to send calls to a PHP script, then using a GD library to process the changes, save the new image and send the new image path back to the browser for AJAX to replace old with new. This example, when you move a layer it seamless...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: latest Mercurial and IIS on Windows 2003 I don't get it working :( What I did so far: installed: -tortoisehg-2.1.3-hg-1.9.2-x86.msi -python-2.7.2.msi -mercurial-1.9.2-x86.msi My PATH Variable contains: D:\Program Files\TortoiseHg\;D:\Python27; Created D:\MercurialWeb\ and set it up in IIS to run a test python cgi sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery $(document).ready and reading div content on load Anyone know why this isnt working? css #test1 { height: 50px; border: 1px solid black; } #test2 { height: 50px; color: red; border: 1px solid black; } html <div id="test1"> test<br /> Text </div> <br /> <div id="test2"> </div> jq...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get href of wrapping anchor on click I need to be able to get the href (or somehow get the target url) of any <a> tag that is clicked even if it is wrapping another element. For example, you could ordinarily do: $("document").click(function (event) { url = event.target.href; }); However, in this example, the <a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you add a variable to the global scope? (ruby on rails) So, I'm trying to do some unit tests, and my current_account_permissions variable is undefined when running the tests. (works fine when the server is running). It's similar to current_user in that it's available everywhere, except tests apparently. Is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is blockquote element not inheriting parent p's styles? I have very very simple HTML: <p> <blockquote> </blockquote </p> The p element has a rule in an external stylesheet to define the font-family and color, yet when the blockquote is inside the p, the blockquote is not inheriting any of the p's styles. This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Avoid long lines in Perl scripts I have used \ at the end of shell scripts to avoid long lines, and improve code readability. But I cannot do it in Perl, what am I doing wrong ? Do I have to escape them in any way? I mean something like: my $dbh = DBI->connect("DBI:mysql:database=xxxxxxx;host=xxxxxt", "xxxx", "xxxxx...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What actually does this javascript snippet mean? From HTML5 Mobile Boilerplate's helper.js: (function(document){ //all stuff here })(document); What does this snippet do or when does it run? A: This is a closure, it defines a method which takes an argument document and immediately calls it with document as the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PowerShell+MSI. How to release opened database? I have VB Script: ..... Set oInstaller = CreateObject("WindowsInstaller.Installer") Set otempDB = oInstaller.OpenDatabase(sMsiFullPathTemp, 1) ....... Set otempDB = Nothing At this string it releases database: Set otempDB = Nothing. I need to make PowerShell script l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add views to UIWebVIew? like this image I wonder how some apps do this great affect, i've trying to accomplish this but without much success. the idea is to add views like textview or label to a webview or to scollview so that it appears with gray background and can be scrolled, the below image describes the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making firefox addon using Qt I wanted to ask whether it is possible to make an firefox addon using Qt.If possible how can I do that ? A: See the Qt Browser Plugin example from Nokia/Digia/etc. Was part of Qt Solutions (now discontinued, but is under the BSD license and since it used Qt 4.x when it was supported, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sending querystring variable to new popup window My JavaScript code is this: var newwindow; function poptastic(url) { newwindow = window.open(url, 'name', 'height=400,width=200'); if (window.focus) { newwindow.focus() } } And my C# code: foreach (GridViewRow row in GvComments.Rows) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Race condition with Performance Counters for current process I am trying to get around the old "How do I get a Windows Performance Counter for the current process" issue. Basically I am enumerating Process Object instances to get a list of Process objects that I can then query for their process id and compare to my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Locating a file directory to display pdf in c# I am having a problem with displaying a pdf in my form wen a menu item is clicked the directory im using cant be found the file is in the project folder private void helpToolStripMenuItem_Click(object sender, EventArgs e) { System.Diagnostics.Proces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to add an image to a MessageBox in VBA? I am wondering if it is possible to add an image to a messagebox in VBA mainly, but if not any other languages. MsgReply = MsgBox("InspectionCreator - Continue?", vbMsgBoxSetForeground + vbSystemModal + vbYesNo) If vbYes = MsgReply Then Listener.Connect2SW Else:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Excel 2007 Pass-Through Windows Authentication I've created a simple (asmx) web service which returns a DataSet. I've added the webservice to my Excel 2007 workbook using the Data -> From Web button and I'm able to view / refresh the data. The problem comes when I need to secure the web service: I've turned on Wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: A basic question on java/TestNG After writing my first few Java test programs, I want to write corresponding TestNG classes. I am using RHEL 5. I see that a typical directory looks like src/main/java and src/test/java. (a) Who creates such directory? Do we create it manually? or there is a way to create test directo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apache 2 The requested URL / was not found on this server I'm hosting a couple of webservers. I've set the first one up with no problems. On the second server when I attempt to navigate to it (http://192.168.1.47:99/) I get this error "The requested URL / was not found on this server." I know that the port is bei...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: how to display total sum of rows in datagrid in flex I have an AdvanceDataGrid. How can I show the total of each column at the bottom. I am able to calculate the total, and tried displaying them on labels below each column by giving width as column width. But they are not getting aligned properly below each column. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Filtering DataTable in VB.Net I am having a datatable with following structure. mid mname version baseID ------------------------------------ 1 tag3 1 1 2 tag3 2 1 3 tag3 3 1 4 tag5 1 4 5 tag5 2 4 6 tag6 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JSON call fails with JQuery I've been searching arround and I can't retrive JSON information from this example. Can anybody help me please? var jsonURL = "http://mdc2.cbuc.cat/dmwebservices/index.php?q=dmGetCollectionList/json"; var jqxhr = $.getJSON(jsonURL, function(data) { alert("Success!"); alert(data[0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Testing code that uses another framework than jQuery using QUnit? I am writing a small library that can use several frameworks (jQuery, Prototype, YUI2 at the moment) as its backend and I am testing it using QUnit. However, QUnit requires jQuery. Is there a way to run a test in a sandboxed environment which does not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When to expect IEnumerable and when to expect IQueryable from a Linq query I am having some trouble understanding when Linq is giving me an IQueryable result and when it is giving me an IEnumerable result. Example: I am using EF and I have two entities Location and Configuration. Each Location can have multiple Conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: variable is not a CFStringRef I have this: partenaire_lat = 48.8160525; partenaire_lng = 2.3257800; And obtain a NSString like this: NSString *endPoint =[NSString stringWithFormat:@"%@,%@", partenaire_lat, partenaire_lng]; and after using this NSString in some context I get this stupid error: Variable is not a CF...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Ajax ComboBox rendering incorrectly I'm using the ComboBox from the AjaxControlToolkit v4.1.50731. When it displays on the page, the dropdown list renders well below the origin of the control. Unfortunately, I can't post an image due to SO restrictions. I kept the code to a minimum on the page to avoid any possibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: easiest way to move a Rect upto bounds of enclosing Rect when about to move out of it I have a Rect A inside an enclosing Rect B. the enclosing Rect B is the area in which the Rect A is allowed to be moved. when trying to move Rect A beyond the borders of enclosing Rect B it should get stuck at a border or corner of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue with pagination in Datatables implementation I am having a small issue with pagination. When implementing the "four_button" type, the table displays correctly (with correct pagination buttons) however clicking on any of the pagination buttons (Next, Previous, etc...) will throw an error of "fnCallbackDraw is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Connection to SQL server files require SQL Server 2005" error in Visual Studio 2008 I am very much new to the .net framework and Visual Studio. When i try to add a SQL Server database to my project using solution explorer App_data -> Add new item i get the following error message: Connection to sql server files(.*m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: android version required I have created and published an application on the market... However, on the market page it says: "Version required 1.0" while I know it needs at least version 2.0 (level 8) as it uses google maps.. I know that I have to include in the manifest file something like this: I have tried to chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I use Unity Config file or Code to register types and instances? Finally started to configure an IoC Container! I'm using Unity and have configured it to have my objects registered using the config file: e.g. <container> <register type="ILogger" mapTo="Logger"> <lifetime type="singleto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: spring jdbctemplate: different behaviour on different app servers (date issue) I am running the same select query on the same database using the same code but using 2 different app servers. Query: Find a certian day's entries in a journal. 1) Existing legacy app server (BroadVision running on unix): Select title...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android: After closing my app, in Application Management, still showing Force Close I can start my app and close later. But after closing, if I go to Settings-->Applications-->Manage Applicaitons and select my app, the Force Close button is still active which means my app is running behind the scenes. Why is this......
{ "language": "en", "url": "https://stackoverflow.com/questions/7584915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript Curve Generation How can I write a function that takes an array of 2D points and returns the Bezier/Quadractic curve(s) so I can redraw it later using the HTML5 Canvas bezierCurveTo or quadraticCurveTo method? A: EDIT: improved. See a demo which uses the code below. var makeCurveArgs = function(points) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dependant Observable Array in Knockout JS I have started to play around with knockoutjs and do some simple binding/dependant binding. My goal is to have 1 <select> list populated based on the value of another <select> list. Both are being loaded from an ajax call to my asp.net webservice. So I have two <select> list...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I give focus back to object with lower z-index, trying to create a series of transparent divs on top of a map If I have a parent div that contains a child div on top of it, can I give the parent div the focus without hiding the child div? I am using Google Maps API and would like to draw a grid of transparen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to deserialize object with custom serializable properties? I'm trying to serialize/deserialize collection of interfaces, which basically is unsupported. I found a question on SO where a proposition is stated to provide a serializable wrapper properties for those properties which depends on interfaces. So that's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check if iphone has Square app installed - open or install In my code, I need to determine if an app has been installed on the iphone device or not (the app I need to check is Square). If the app isn't installed, I would to open the app directly to Square, and if it is installed, I would like to open Square. Is ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Swing ignores first click after decreasing Windows time I have a Swing application that deals with date and time, so a lot of tests are done changing the system's date and time settings. During the tests, we noticed that after decreasing the clock, the first click is ignored by the application. Is it a bug of Swing/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using the appengine datastore admin to move data to a new application - how long should this take? I am moving to the high-replication datastore which is relatively simple when using the AppEngine Datastore Admin feature to copy all data from the old application to the high-replication application. However, I have s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mod_perl debugging & viewing source I've recently started work on a project that uses mod_perl. I'm attempting to use the Perl debugger to debug some Perl scripts that are running under mod_perl. I start the debugger with the following command: sudo OPTIONS="-X -DPERLDB" /etc/init.d/httpd restart The relevant deb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to send my program to background while a certain process is running I have a program that starts another program (iexplore.exe), then my program should go "invisible" or atlast to background, and stay there while this asd.exe is running. This code is working, BUT it eats memory, and sometimes its just stays hide...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "popover" problems on twitter bootstrap css/javascript library I've tried to implement popover javascript on my site with twitter bootstrap and i couldn't. If anyone could help me with my code, i would appreciate a lot. thanks in advance for that. <head> ... <script src="scripts/jquery.min.js"></script> <scr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: AJAX asynchronous response callbacks I have been working with AJAX for a while now, but in limited and simple ways. I use JQuery Currently I am debugging a web application. The client side code uses JavaScript and JQuery. I noticed that in this application it is possible to have multiple AJAX requests sent out at th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: delay qTip call using setTimeout and clearTimeout This was working fine: $('#panel_derecho a.tooltip').each(function(){ $(this).qtip({ content: { url: '/includes/qtip.php?'+$(this).attr('rel')+' #'+$(this).attr('div'), text:'<center><img src="/images/loader.gif" alt="loading..." /></center>' }, show:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting Date range picker variables OnClose I'm trying to get the StartDate and EndDate variables of the date range picker when the OnClose function is called, however I am having difficulties. I replaced onClose: function(){}, with onClose: alertdata, However that already breaks the daterange picker and I cannot ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Screen resolution change notification message? I have a WTL app running and would like to know when the screen resolution has changed. The most likely candidate would appear to be SPI_SETWORKAREA sent via the WM_SETTINGCHANGE message but I wondered if this is the correct message to use. This has to work on XP and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Set match function in a mysql query with Java I have the following excerpt from a query (mysql) made ​​in java: queryGeral.append("FROM product p, fabricante_product fp, fabricante f, extensao e, product_autor pa ") .append(" WHERE ") .append("a.nome like ? AND ") .append("p.cod_materi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Autofac Webform Integration: Manual Property Injection Consider this autofac registration module for a webform MVP style application, where I register a couple of components by providing some parameters dependency. public class SampleModule : Module { protected override void Load(ContainerBuilder builder) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: android getHeight()/getWidth with RelativeLayout Hi I'm new to Android and am facing the problem: how do I get the Height/Width of a view, which is placed in a relative layout? I tried getHeight() and getWidth() and both return 0. I need to know whether this view has reached the end of the Layout so that I can plac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: linux search multiple word in a files I have a folder containing a set of text files. -Folder --- file 1 --- file 2 --- file 3 --- file 4 I have a set of word that i want to check if are inside. {word1, username, blah blahblah} Is there a way on a single command to discover which of these file contains all the word...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: `Out of resources` error while doing loop unrolling When I increase the unrolling from 8 to 9 loops in my kernel, it breaks with an out of resources error. I read in How do I diagnose a CUDA launch failure due to being out of resources? that a mismatch of parameters and an overuse of registers could be a problem, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you localize the message of Ext.LoadMask? How do you localize the msg of Ext.LoadMask? I tried using Ext.override, but my gridpanel loading from a store still shows Loading... instead of the text I provided. A: you don't have to override loadMask, you can set the text of the loading mask on the grid view. Ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: regular expression to select after n number of occurences of certain character Creating some regex expressions here. I was wondering if I could get some pointers on how to go about selecting a string after n occurences of one character and before the next occurence of a certain char. for instance xyz|yui|i want to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7584968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }