text
stringlengths
8
267k
meta
dict
Q: CSS Selector "(A or B) and C"? This should be simple, but I'm having trouble finding the search terms for it. Let's say I have this: <div class="a c">Foo</div> <div class="b c">Bar</div> In CSS, how can I create a selector that matches something that matches "(.a or .b) and .c"? I know I could do this: .a.c,.b.c ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "239" }
Q: How to enable TLS/SSL in java, Spring / CXF for Web Service? I have a simple WebService defined in Spring config: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cxf="http://cxf.apache.org/core" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:wsa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I simplify token prediction DFA? Lexer DFA results in "code too large" error I'm trying to parse Java Server Pages using ANTLR 3. Java has a limit of 64k for the byte code of a single method, and I keep running into a "code too large" error when compiling the Java source generated by ANTLR. In some cases, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to automate Windows authentication in Python with selenium-rc? I am using python to write selenium-rc test code for my server code. The server application is written with ASP.NET and is configured with "Windows authentication". The execution steps of my python code look like the following: * *Start python mai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eclipse android phonegap config.xml not working? I can't for the life of me figure out why my XML file isn't working. It's located in my assets www folder: The links to the images are correct - the id of my application is the same, but it still won't show my splash screen OR icon! Help! <?xml version="1.0" encoding=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Help getting first web2py Cron Task working I'm running web2py locally with Windows 7 and live on a Linux Ubuntu server and I haven't been able to get my cron job to run in either. My crontab looks like this: */1 * * * * root *autoemail/send_autoemails and my function works fine when called manually. It also e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: .htaccess Redirect images folder to another domain ok so i have 2 domains site1.com/images/ (all images) and I need to redirect the imgages link site1.com/images/ to site2.com/images/ so that when and when exp. site1.com/images/i.jpg is called it will look at site2.com/images/1.jpg and will find it. .this is bas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xcode support of lambda functions I have a program coded in VS that I'm trying to port over to Xcode. There are several issues I have ran into including use of lambda functions. Since Xcode uses gcc 4.2 and thus doesn't support C++11, will I not be able to use any lambda functions? If I want to work on the code fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C# Remove items from class array Possible Duplicate: Remove element of a regular array I have a method defined which returns class array. ex: Sampleclass[] The Sampleclass has properties Name, Address, City, Zip. On the client side I wanted to loop through the array and remove unwanted items. I am able to loop th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Opening users twitter page in the twitter app from a button press in Android I have searched quite a lot on Stack Overflow for this request however it all seems to be centred around just opening the twitter client. I would like to click a button, open the default or used Twitter App and have it display someones pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: [GLSL]How to compare the z value of all the vertices in world coordinate? This might be a simple question. As a newbie on GLSL, I would rather ask here. Now, in the vertex shader, I can get the position in world coordinate system in the following way: gl_Position = ftransform(); posWorld = gl_ModelViewMatrix...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's a recommended way to build a HTML5 mobile app? Although we are new to this technology, we are working on a HTML5 mobile app nowadays with sencha-touch and some other js libs like i18n. The problems are that: * *No matter how much we try to tune the performance, it feels kinda slow. *Every time we change t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Mod Rewrite 500 Error Correction I have a .htaccess file that is using Mod_Rewrite but I am running into a problem if someone puts in junk in the URL it generates a 500 error, and displays all my mod information. I would like to either stop it from generating the 500 error or forward that error to a different page....
{ "language": "en", "url": "https://stackoverflow.com/questions/7517470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: problem with collision of UIImageViews -(void)moveTheImage{ for (NSUInteger i = 0; i < [views count]; i++) { image = [views objectAtIndex:i]; X = [[XArray objectAtIndex:i] floatValue]; Y = [[YArray objectAtIndex:i] floatValue]; image.center=CGPointMake(image.center.x + X, image.center.y + Y); if(!i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: accessing 64-bit COM server from managed assembly fails I have a problem accessing a COM object from a 64-bit COM server written in C++ from a .NET project (the 32-bit version works well). It is a problem similar to the one described here Troubleshooting an x64 com interop marshaling issue. I have a COM method that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Invoke main method in java class from jsp? I had a requirement to create a small file utility class to run off the command line from a windows desktop. The code got completed, however, after reviewing how to package it, it requires a custom framework from the main application in order to run. Don't ask why as that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ System Time returning the same wrong value I want to retrieve the last write date on a file. I have written this code for it, but it returns me 52428 in values like "Year" all the time int LastErrorCode; LPCSTR Path = "C:/Users/Username/Desktop/Picture.PNG"; WIN32_FIND_DATA Information; if(!FindFirstFile(Path, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RESTSharp 102 & Async+WP7.1 The newer 102 version broke my requests :( this doesnt work anymove ... client.ExecuteAsync<Resource>(request, (response) => { var resource = response.Data; }); has anyone figured out how to use now? documentation is old :( A: The updated version as of 102.1 for wp7 looks like this....
{ "language": "en", "url": "https://stackoverflow.com/questions/7517484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does OBJECT require an explicit end tag? In the following example, the word "Goodbye" doesn't render (in Chrome 14, anyway): <html> <body> <p>Hello</p> <object width="400" height="400" data="helloworld.swf"/> <p>Goodbye</p> </body> </html> However, it does render when I add an explicit end tag to object: <h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get different string from a file in xcode 4? In my prgram, I want to use a txt file to store all the words that I need to use. Here is the example of the txt file: AAA BBB CCC DDD If I want to get a specific word (such as CCC) in the txt file, could it be possible for me to do so in xocde 4? If yes, how to p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTTPS AppStrip code? Does anyone working with AppStrip have a code to call the AppStrip bar via HTTPS? I'm hoping to have something up to test next week before the Oct. 1 migration deadline, but they haven't updated their site with the code yet. Last I heard something was supposed to be up this week. Thanks! A: App...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Designing keyboard on J2ME color mobile I want to create a J2ME application for writing SMS faster using QWERTY button on a simple non-qwerty phone. So the application will show all these buttons which user can use I've knowledge on Java and have developed simple calculator too but cant design it in NetBeans. So l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sleep / Suspend / Hibernate Windows PC I'd like to write a short python script that puts my computer to sleep. I'Ve already searched the API but the only result on suspend has to do with delayed execution. What function does the trick ? A: Without resorting to shell execution, if you have pywin32 and ctypes: import...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: HSBC CPI problem from ASP We have been using the HSBC payment component for a while, running on a windows 2003 r2 sp1 box, however we now have to move it to a 2003 r2 sp2 box (both 23 bit) We have registered the CcCpiTools.dll and set permissions on the Dll’s to Everyone and added it to the system32 folder (with it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: String address to location on Google Maps I have a map view in my android app, i'm just wondering if it's possible to have a function which takes in a String which would contain an address that would be passed onto google maps and returned as a geopoint location on the map? If anyone knows where any tutorials are on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .net - dependentAssembly Today I was getting some assembly mismatch issue and after a bit of digging I found that for a particular DLL, actual reference in project was made to some other version and config file for that project was showing dependency to some other version of the same DLL. Exp. <dependentAssembly>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Jetty Spring Web Services sqljdbc_auth.dll conflict We have created 2 web services from similar code bases that are using Spring and Hibernate and we are wanting to run them in a Jetty Server. Each Web server can initliaze the wsdl just fine from Spring. If I send a message to one web service that ends up connecti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS launch images file type I'm working on an iPad app and reading this page that said launch images must be in PNG format, but in their iOS Human Guidelines, they only recommend to use .png, not "a must". I want to use .jpg format as my launch images because my launch images size in .png are about 2 mb alone, and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Authorize Attribute MVC 3 & Web.Config AppSettings Value Does anyone know if there is a way of using a value in Web.Config AppSettings section on an Authorize attribute for a controller in MVC3? I am currently using something like this in web.config: <add key="AdminRole" value="Admins"/> , and then I tried pulling...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unable to connect to Lion server using finder, but able to using the lion server program? I have just set up a server at work. Its sits the other side of a substantial firewall and there for I VPN in to access it. The VPN appears to be functioning as I am able to access the server through the Lion server program and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to use lazy values within for-expressions? I have a list of Chickens and Eggs I want to create. They are defined as: class Chicken (val name: String, e: => Egg) { lazy val child = e } class Egg (val name: String, c: => Chicken) { lazy val parent = c } and a single pair must be instantiated lazily be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is my MVC Action not model binding my collection? In my site I am gathering a list of numbers (for sorting) and sending them to my MVC action with the following code: $('#saveButton').click(function () { var configId = $('#ConfigId').val(); var steps = new Array(); $('#stepList li').e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Control a frame from container page I have a web page that contains two textboxes and a button. I can't control this page by adding any thing to it, or changing any thing in it. I want to (in some way) write some text in the first textbox when the page loads, without pressing the button. I want to put the page in a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Jquery, replace one row in table with a new one Say I have a table: <table id="mytable"> <tr class="old_row"><td>1</td><td>2</td><td class="edit">Edit</td></tr> <tr class="old_row"><td>1</td><td>2</td><td class="edit">Edit</td></tr> <tr class="old_row"><td>1</td><td>2</td><td class="edit">Edi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to play two different sounds in iPhone sdk? I have two different wav files which I have to play by calling different methods. I can play one wav file but unable to play the one. My code is In .h AVAudioPlayer *player1, *player2; In .m -(void)correctSound { NSString *sound = [[NSString alloc] initWithFormat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Transfer a file from an Android to another Android via Wifi as it's done by Bluetooth? I'm making a schoolar proyect which envolves Android programming. I've already done most of the work but now I need to send one file or a buffered string line from an Android phone to another one via Wifi. I can't use the Bluetoot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding the Gemfile.lock file After running the bundle install command, 'Gemfile.lock' is created in the working directory. What do the directives inside that file mean? For example, let's take the following file: PATH remote: . specs: gem_one (0.0.1) GEM remote: http://example.org/ specs: gem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "209" }
Q: Adding A Custom Discount Order Total in Magento Does Not Change Sales Tax I have created a custom order total that gives a discount in certain situations. The grand total always comes out correct, however the sales tax calculation is not taking my discount into account when calculating (so if I was giving a discount...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to convert DWORDLONG to a char *? res = pRecord->Usn ; char sres[1024]; strcpy(sres,""); ltoa(res,sres, 10); I have this variable res, which is of type DWORDLONG, and I am trying to convert it into a string so that I can insert it into the database. Also, how would I convert it back. Is there a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET 4 new TCP client fails to connect: No connection could be made because the target machine actively refused it I am having a simple issue with .NET 4 Sockets (TcpClient) in both win7 and xp. I get the error: No connection could be made because the target machine actively refused it This does not appear to be a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I prevent Hibernate from updating NULL values Is there a setting in hibernate to ignore null values of properties when saving a hibernate object? NOTE In my case I am de-serializing JSON to a Hibernate Pojo via Jackson. The JSON only contains some of the fields of the Pojo. If I save the Pojo the fields th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: css: capitalizing hard-coded uppercase text I have content that is in uppercase ( that's the way it's persisted on the back end ) and I have to transform it into 'proper case'. I'm finding out that 'text-transform:capitalize' doesn't work. I suspect there's no css based workaround for that either. .text-test{ t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MFMailComposeViewController Not Working in Landscape My app uses landscape mode. When trying to integrate MFMailComposeViewController that always worked for me in my other portrait mode apps, I came across the issue of mail controller not showing up at all. I found a lot of info during research and I tried to overwr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Receiving voip calls while application is in background in ios I think i have all the requirements to have an "alive" socket while the app is in background. That is to say: * *My application has voip and audio as its background modes. *I'm using PJSIP as the SIP library, which is supposed to use CFReadStreams wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: mootools Sortable detach I'm working on an interface using Mootools 1.3 that will have two columns of information-- on the left, "available elements" and on the right "selected elements". You'll pull from the list of avail. in the left, and pull to the right, where you will be able to sort. Here's a fiddle: http://j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between two strings C# Lets say I have two strings: string s1 = "hello"; string s2 = "hello world"; Is there a way I can get a string s3 = " world"; which is the difference between the 2 strings? EDIT: The difference will be always in this scenario s1 = "abc" s2 = "abcd ads as " A: string s1 = "hello";...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Playing video with many particles animated on top I am playing a movie using an AVPlayer and animating 500 falling particles on top. I tried to simply add 500 animated CALAyers. I tried several variations on that but performance is always a problem. As soon as I get more then around 100 CALayers, the video gets cho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Powershell format-table error I am attempting to run the following code to retrieve a list of local users on a machine. gwmi win32_useraccount -Computername $env:computername -Filter "Domain='$env:computername'" | Format-Table Name,Description I get this error when running inside a PS1 file: The object of type ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: HTML5 canvas issue? Here is my JS code: function Show(output, startX, startY){ var c = document.getElementById("myCanvas"); var context = c.getContext("2d"); context.fillText ("A" , startX, startY); context.font = 'bold 20px sans-serif'; context.fillText ("B" , startX, startY + 50);...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to install JpGraph Can some one please let me know how to install and configure (JpGraph.http://jpgraph.net/doc/faq.php) I saw the articles of that site but I cannot understand that.. Please help me..Thank you in advance A: Did you try out any examples. You can download jpgraph files here The basic bar graph e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Different floating point result with optimization enabled - compiler bug? The below code works on Visual Studio 2008 with and without optimization. But it only works on g++ without optimization (O0). #include <cstdlib> #include <iostream> #include <cmath> double round(double v, double digit) { double pow = std:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "120" }
Q: cant fill array java hi ive got a public array of ints and i want to store 1 or 2 in the array but im getting the error NullPointerException what im doing is this public int[] which; public int gotIt; public void Check() { int cont = 0; System.out.println(intento[0]); for(int j = 0;j <= s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sorting issue iphone sdk Having some problem, I got it sorted but looks likes this, "10/16/2011 12:00:00 AM", "10/16/2011 12:00:00 AM", "11/16/2011 12:00:00 AM", "11/16/2011 12:00:00 AM", "9/15/2011 12:00:00 AM", "9/15/2011 12:00:00 AM", "9/15/2011 12:00:00 AM" the format is "MM/dd/yyyy", I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UITextView didEndEditing isn't called on iPad The method textViewDidEndEditing is not called when you dismiss the keyboard on the iPad with the button in the right corner at the button. However, i want the method to be called so that I basically can access the written text. Any Advice? A: Observe UIKeyboardDidHideN...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: looking for a tool to convert PDFs to images and text (or html) I need to convert about 500 PDFs to text and images or html? A command line tool is ok, and I'm on a mac, so installable easily or with macports or brew is ideal. A: Why don't you consider using the web service Zamzar. They support conversion of pdf t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with Date Formatter i want to show date. I am using code NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"MMddHHmmss"]; NSDate *now = [[NSDate alloc] init]; NSString *theDate = [dateFormat stringFromDate:now]; But it shows 0921164432 PM. i dont want to show PM how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Control.Invoke does not exist in the current context Error: The name 'Invoke' does not exist in the current context The class I am working on already has a base class so I can't have it implement something like Windows.Forms.Control. I looked at article here but I don't want to implement another interface, and do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I parse xml coming from http server using android Possible Duplicate: Parsing the XML Response in an Android Application I am using following code public void executeHttpGet() throws Exception { dialog = new ProgressDialog(this); dialog.setCancelable(true); // set a message t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Aligning a 100% width div to a fixed width div Consieder the following please: .d1 { width: 100px; float: left; } .d2 { width: auto; float: left; } <div class="d1">Content fixed</div> <div class="d2">This content should take the rest of the page (on vertical side)</div> This does not work. How can I let a fixed w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What actually breaks in a new Firefox update? With Firefox and its new "release every 6 weeks" strategy it seems that a large group of people are angered by this because they say "it updates too fast". However the next sentence is "I moved to Chrome" which has an even faster release cycle... This makes me wonder, wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: CrystalReports 2008 and PHP again I am confused with Windows (and it's not even Vista!). I'm trying to hook up CrystalReports 2008 and PHP for a simple report printing interface. CrystalReports (to my knowledge) provides a COM interface to open reports and then for example export them to PDF or Excel files. I'm curr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to define typemap(in) and typemap(out) for const_iterator * in swig/python? I'd like to let swig know about the type of my const_iterators so that it can GC them and get rid of this error: swig/python detected a memory leak of type 'MyClass::const_iterator *', no destructor found I can't really figure out how I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Button Handle MouseLeftButtonDown but still want the event to bubble I have a listbox with a DataTemplate for the items. Inside my template, I have a label and 3 buttons. My problem is that when i click the buttons, the listboxitem never become selected since the button handles the event. Is there a way I could make...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How could I display a heatmap on an image with PHP? I have an image (graph) inside a <div> on which accumulated clicks are displayed, so it looks like a mess of dots all over the place. I'd like to make this "nicer" to look at, and thought heatmaps would be the best option. How could I implement such a solution? I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I convert functions that use C++ pass-by-reference into C? I have a piece of code that is written in C++ and need it in C. I converted most of it but I can't figure out how to convert C++ pass-by-reference in functions to C code, i.e. Example: int& a; it is used in some function as a input variable: void do_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Cakephp SQL Error: 1064: Have a find call on a table called Attachment which is assiciated with another table called AddOn. I get a sql error. It seems to be looking for a field called display_field but this is not in the table. Why it is looking for it I do not know. $previous = $this->AddOn->Attachment->find('firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I escape slashes and double and single quotes in sed? From what I can find, when you use single quotes everything inside is considered literal. I want that for my substitution. But I also want to find a string that has single or double quotes. For example, sed -i 's/"http://www.fubar.com"/URL_FUBAR/g' I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "103" }
Q: ViewGroup finish inflate event I have created a custom layout which extends ViewGroup. Everything is working fine and I am getting the layout as expected. I want to dynamically change an element in the layout. However this is not working as I am calling it in onCreate and till that time the entire layout is not actu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: List processing with intermediate state I am processing a list of strings, you can think of them as lines of a book. When a line is empty it must be discarded. When it is a title, it is "saved" as the current title. Every "normal" line must generate an object with its text and the current title. In the end you have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is a linefeed char added to the http response? I do this ajax request: var response = $.ajax({ url: 'product/add', data: $("#formAddNewRow").serialize(), type: "POST", success: function() { var id = response.responseText; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I search for a value in an integer table using LIKE and ? I have a query similar to this: SELECT itemID FROM itemTable WHERE itemID LIKE '%123%' itemTable is of type INT. This query works just fine by itself, as it would select '12345' and '0912398' and so on... The problem occurs when I try to use Let's sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Calling static method in PHP 5.3 Late Static Binding Singleton Method I have an abstract class that contains these methods: <?php public static function getInstance() { $me = get_called_class(); if (!isset(self::$_instances[$me])) { $ref = new ReflectionClass($me); self::$_instances[$me] = $r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XCode 4 "add build setting condition" not enabled I am trying to include Layar Player in the iPhone application I am developing in XCode 4. One of the steps of section "1.3.1.2 Universal build configuration" asks to click on "Add Build Setting Condition". But that option is not enabled (it is shown in grey). Only t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Hide/Show Map Markers I wonder whether someone can help please. I'm trying to put together a script which hides and shows locations on my map. The host code I've been using is here and my code is shown below: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ldap check username-password combination via java To test a username-password combination with ldap i do the following * *connect to an ldap server with a masteruser account *search for the user to check *open another connection by using InitialLdapContext and the given combination. This works fine for me til...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to select maximum per column-value in SQL? In SQL Server, I have a list of integers, datetimes, and strings. For example, number datetime string 6 2011-09-22 12:34:56 nameOne 6 2011-09-22 1:23:45 nameOne 6 2011-09-22 2:34:56 nameOne 5 2011-09-22 3:45:01 nameOne 5 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JQuery Function that hides all tags whose functions match a certain pattern I am new Jquery and have written a toggle function that looks like this: $('.one-toggle').click(function(){ $('.one-graph').toggle(); }); Basically I want to change my two CSS selectors so that they match any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with executing PHP script running on Cron I'm trying to run a very simple PHP script on cron on a third-party hosting server and I have encountered a weird problem. The script's contents is NOT executed although I got confirmed that the cron does execute the script in scheduled times. I cannot check the Cron...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: problem with using twitter4j on android I am using twitter4j and oauth-signpost for integrating twitter with my android app. I have implemented part of the activity, what it does is it authenticates the user (or atleast thats what its supposed to do). The problem is, it cant find the token and gives this error messa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Grails 1.3.7 clean project cannot serve utf8 files I create a clean grails application and run grails dev war and deploy under Tomcat 6.0.32. When I attempt to download this file via localhost:8080/utf8.html, I get a response with busted encoding and characters. When I create a ROOT/ directory in web-app/ and serve ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: FB._https = true doesn't play nice with FB.Canvas.setAutoResize? I'm converting my facebook app to run through HTTPS. It seems like when I set the FB._https variable to true, the FB.Canvas.setAutoResize() stops resizing the iframe. This is what my code looks like: window.fbAsyncInit = function() { FB._https...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript: How to check the existence of a url? I need to check the whether an external url like http://www.example.com exists or not using javascript or ajax. Thanks in advance.. A: You can load it into a hidden iframe and see if you get content. You can't use "ajax" (e.g., an XMLHttpRequest call) for it, becaus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Entity Framework Code First - One-to-Many with a join/link table Is it possible to create a One-to-Many relationship with Code First that uses a link/join table between them? public class Foo { public int FooId { get; set; } // ... public int? BarId { get; set; } public virtual Bar Bar { get; set; }...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Key-Path for an element of a dictionary property of an object in a predicate? In short, I am looking for the correct predicate format to index into a dictionary attribute on an object. I have an array of myObject instances, each with an attribute CPDictionary(NSMutableDictionary) extAttributes and I am trying to all...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to translate UTF8 file into html-like notation How to translate an Unicode file in French (any language) to a relevant file in html-special encoding. For example, the letter "e" with accent should be translated into &eacute; , etc... é -> &eacute; I need to prepare a localized file without UTF8 letters like "é"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i integrate Selenium RC with PHP? I very recently started working on Selenium. I know to run the testcases on IE we should have Selenium Server. I downloaded and finally got it running on my computer. Can anyone tell me how do i put the Selenium test case from IDE to RC and integrate the RC in PHP? or how to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rotate a Java Graphics2D Rectangle? I have searched everywhere and I just cant find the answer. How do I rotate a Rectangle in java? Here is some of my code: package net.chrypthic.Space; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Space extends JPanel implements ActionListener{ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: How to call on a object member procedure a nested table attribute? Have this objects and table types: CREATE TYPE Person_typ AS OBJECT ( name CHAR(20), ssn CHAR(12), address VARCHAR2(100) ); CREATE TYPE Person_nt IS TABLE OF Person_typ; CREATE TYPE dept_typ AS OBJECT ( mgr Person_typ, emps P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set radio button active manually (by code)? I have 2 radio button say r1 and r2.grouped together and made r1 group as true from property. I have made bool variable(vr) and attached with these radio button(DDX). Now from code i wrote vr =1 then updatedata(TRUE). but from ui it is still showing r1 radio button ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using VBA from Access 2007 to search in AutoCAD (dwg) files I have hundreds of DWG, AutoCAD files that I would like search and catalog into an MS Access Database. Basically, I would like to search the DWG's and extract whatever description is in the Title box as well as the Date and bring everything over to Access m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jboss 6.1.0.final gwt and ejb combination this is my first post, so if it isn't understandable, please feel free to ask. I'm trying to develop a gwt-application that uses my own ejb-classes from an external shop-project. My ServiceImpl reaches the ejb, as required, however I'm not able to use Injection as it seems ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: How best to modify and return a C# argument? I need to take a Widget that already has several property values set. I need to change the Widget's name. I'm drawn toward Option 3, but I'm having a hard time articulating why. public void Do(Widget widget) { // 1 widget.Name = "new name"; } public void Do(ref Widg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Prolog meta-predicates: applying a predicate to lists, passing a constant Assume that you want a predicate that replaces Number1 with Number2 in a list. Of course it is trivial to write a recursive function for that, like: replace(_,_,[],[]). replace(N1,N2,[N1|T], [N2|NT]):- replace(N1,N2,T,NT). replace(N1,N2,[H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to simulate mouse clicks in QML? I'm trying to send a QMouseEvent to the QML objects being currently displayed. The QApplication::sendEvent() always returns false meaning that my event did not get handled; but I don't see why. Maybe I'm sending the event to the wrong object? Where should I send it to? I also pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Windows batch script copy file last modified I'm trying to write a quick batch script to look at the last modified date of one file and compare it to the last modified date of a few others, and if it's greater than those other lastmods, it copies the files to those directories. This is what I have so far: @echo off ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java: split() returns [Ljava.lang.String;@186d4c1], why? And i have no idea why! I bascially have a STRING (yes, not an array), that has the following contents: [something, something else, somoething, trallala, something] And i want to turn it into a String[]. So first off i substring() off the first and the last c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Passing array in JQuery Script Been working on this dumb problem for two days now. If you can help I would sure appreciate it! So my html goes like this: <a class='selected' option ='2' category='1' price='1750.00'>Round Corners</a> <a class='selected' option ='3' category='1' price='2200.00'>Chamfer Corners</a> An...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to document fields in a record in clojure? For example: (defrecord Contract [^{:doc "primary identifiers..."} contract-id]) But this doesn't seem to work: (doc Contract) clojure.lang.Cons cannot be cast to clojure.lang.Symbol [Thrown class java.lang.ClassCastException] Maybe you can't document reco...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to connect people to random partners in chat application? I'm developing an app to be hosted on GAE.Basically my app needs to connect people randomly. I did similar app before where i assigned unique id to each user.Once the user enter the app his ID will be inserted into static synchronized LinkedHashSet(which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pass Image to other activity I want to load image from web, then decode it by the BitmapFactory.decode() method. now I have image in bitmap. i want it to load on the imageview which is View of the another activity So how can i load the image on the other activity A: Bitmap appears to inherit 'Parcelable'. This imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7517713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }