text
stringlengths
8
267k
meta
dict
Q: catching sql related errors with try--catch in java (to log the errors) I am using log4j for logging messages in a java desktop application (working on Eclipse to create this app). One part of the work is to do bulk insertion of csv (comma separated values) data into sql server database using JDBC. I want to catch a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to link progress change event to progress bar I have windows form application that run a a class method by BackgroundWorker. I would like to add the windows form a progress bar to show the progress. in the class method I have a foreach loop so I would like each loop to send the form event with the current perc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Blackberry-ListField with images from URL (XML DATA) I want to display the images which are in my XML in a ListField.I have parsed the data but not able to display that data in listfield.i have created one bean class which includes setter and getter of my data. if(tempList.item(j).getNodeName().equalsIgnoreCase("bs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android : i want use my custom font with WebViewb i want use my custom font with WebViewb my html file loaded in webView but still without font my font has Unicode characters i work on android 2.2 mWebView.loadUrl("file:///android_asset/P_007.html"); my css: <STYLE type="text/css"> @font-face { font-fam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: select next 2 digits starts with XXX but not XXX I'm trying to find about text and width value(so: 50%). To select 50% with regex I have to add width=" inside the regex. So, width="\d{2}% will select width="50% but I need to select only 50% in the first one. In the second one, I have to select(find) only about text...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create a function to save outputs to a text file? I am supposed to create a program that given a file with a .vcf extension, read its data and print out a formatted contact sheet. Provided that i was able to do so, how would i be able to save the output to a text file whose name or path is provided by the use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Method or object constructor not found in f# I have been trying to learn f# over the past few weeks and am having a little trouble with certain aspects. I am trying to use it with XNA and am writing a very simple game. I have a simple player class that implements DrawableGameComponent and then overrides its methods ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why to pass mutex as a parameter to a function being called by a thread? At some places I have seen people creating a thread pool and creating threads and executing a function with those threads. While calling that function boost::mutex is passed by reference. Why it is done so? I believe you can have a mutex declar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Using the latest value from IObservable I've got three IObservable of types Foo, Bar and Baz. In addition, there is a method defined as: void DoWork(Foo foo); The IObservable are defined elsewhere as Subject and OnNext is called from time to time. Whenever new data is available (defined by some Where queries), I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PC Lint Warning 537: Repeated include file How to deal with this warning from PC Lint? I have in several files the #include <GenericTypeDefs.h>. PC Lint shows me the message Warning 537: Repeated include file 'filepath\filename.h' If I delete this declaration I cannot compile. I would like to suppress this warning ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Jplayer Circle Player not playing mp3 file I've just downloaded the jplayer circle player and it works great. However when I change the link to my own mp3 file it stops working. Is there something else I should be doing? Thanks var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1", { /*These ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to convert a string from CP-1251 to UTF-8? I'm using mutagen to convert ID3 tags data from CP-1251/CP-1252 to UTF-8. In Linux there is no problem. But on Windows, calling SetValue() on a wx.TextCtrl produces the error: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in rang...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Error when running Rails with Ruby 1.9.2 under RVM When I try to run a Rails application when using Ruby 1.9.2 under RVM, I get the following error: /Users/purinkle/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [rake-0.9.2] (Gem::Lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does this Facebook FQL query return empty? The following FQL query is returning empty. There's no reason for it not to, as its quite clearly documented as possible in the FQL Documentation itself. SELECT eid, uid, rsvp_status FROM event_member WHERE (uid = me() OR uid IN(SELECT uid2 FROM friend WHERE uid1 = me()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery and CSS style If I want to add an CSS style for a field in a table that has the value that is equal to the current time or greater than the current time but it is less than the value of the next field, how can I do this using Jquery? The sample of table looks like this: ----------------------- field | cur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cycling through a hex colour spectrum I'm working on some code with Arduino, and I'm trying to get a strip of LEDs to cycle through the spectrum of colours in order. I have done this in the past by changing the red green and blue values independently, but the current LEDs I am working with take Hex values (for examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hibernate - want to put delete and store in one "transaction", if pb occurs, all will be rollbacked I have a method which delete some items, and next insert some others items. public void refresh() { if (newitems != null) { toto.clear(); for (totoDao p : newItems) { toto.store(p); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cocos2d with GameCenter, OpenGLError I get this error in a particular situation and i dont know how to solve it. After i invite someone to play with me, i touch the 'uninvite' button then i hit cancell and it calls this method: // The user has cancelled matchmaking - (void)matchmakerViewControllerWasCancelled:(G...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: yiic stop to work on dev version (1.1.9) I recently started a new project, however i normally use the dev version (trunk) to get the most recently version of framework, but now in this version (v1.1.9-dev) after created a new app using webapp command when I tried to use any yiic command nothing happened. I try to ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How insert value in text field of custom cell from pickerview when user click on textfield? I have a table view in which i am adding a custom cell. In custom cell i have a text field. In that text field i want to insert value from picker view. Picker view will open when user click on text field. I have following cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: File path gwt app hosted mode I'd like to know how to get the path of a file to access to it in hosted mode. My app is reading some files using a servlet. Originally the files are located under the folder "war" (e.g. "war/data/file1.txt"), in development everything works well, the servlet reads the file and sends th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: No hs_err_pid.log file created and core dumped from jvm on Solaris Problem description After a while of running my java server application I am experiencing strange behaviour of Oracle Java virtual machine on Solaris. Normally, when there is a crash of jvm hs_err_pid.log file gets created (location is determined by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to select a div within a form and alter it's style I have a formpanel and a div inside it with the class 'x-panel-body' How can I select that div and alter it's style? I've tried using ext.select and setStyle but it tells me that the html has no setstyle method. Thanks edit: to add, that is the only form on the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Very strange jQuery selector bug in Firefox 3.6.x Alright, I spent a lot of time turning a non-AJAX shopping cart checkout into an AJAX checkout. I did this by separating out the various sections into tabs using jQuery UI tabs. I then use AJAX to post changes on one tab and selectively refresh other tabs. The sele...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I generate the database from .edmx file in Entity Framework? I have had to suddenly switch to working on Code First Entity Framework 4.1. I started off not knowing anything about this framework but in the last 8 hrs I am now much more comfortable having read blogs and articles. This blog in particular is one...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Template Template C++ Function How do I write a template function that operates on a arbitrary container of a arbitrary type? For example how do I generalize this dummy function template <typename Element> void print_size(const std::vector<Element> & a) { cout << a.size() << endl; } to template <template<typena...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: UserControl OnPropertyChanged issue I have OnPropertyChanged method in my UserControl class: private static void OnColorChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { ColorPicker colorPicker = (ColorPicker)sender; Color oldColor = (Color)e.OldValue; Color newCol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to configurate mailto to rtl? In my html I am writting: <a href="mailto:fromJavaSceript@gmail.com?body=%A0%F9%ED%0D%0A%F9%ED%A0%EE%F9%F4%E7%E4%A0%0D%0A%FA%2E%E6%0D%0A%EE%F1%F4%F8%A0%F4%E5%EC%E9%F1%E4">websitemail@gmail.co.il </a> the new outlook window TEXT is opened the from the left to the right where I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I block php debug output from being committed in svn? I would like to block debug functions var_dump, print_r, etc... from being commited to the repo so that QA can go over things and not report bugs like "There is a huge block of text on all of the pages!!" I have tried regex (not a great idea... presumably)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: The ConnectionSettingsTask for WP7 is not getting resolved by the compiler I am coding for WP7 Mango ( Windows Phone 7.1 profile). The compiler is not able to resolve the ConnectionSettingsTask class. According to MSDN it is in Namespace: Microsoft.Phone.Tasks Assembly: Microsoft.Phone (in Microsoft.Phone.dll) I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to leave browser opened even after selenium ruby script finishes I am using a ruby script with selenium web-driver, for automating an web page login. The issue is after script finishes it closes the browser also. I want to keep the browser opened even after the script finishes. Is there any way by which I can ke...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to implement digital zoom with iphone device camera? In iPhone App, I want to implement digital zooming in my iphone app while capturing photograph using iphone camera. How can I do that ? A: UIImagePickerController has a cameraViewTransform that you can use to scale the camera view when the user zooms. After t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: the "|=" operator in c++ I have a question about "|=" in c++, how this operator works, for example: bool result; result |= callFunctionOne(sig); result |= callFunctionTwo(sig); result |= callFunctionThree(sig); result |= callFunctionFour(sig); and the function called above, will reutrn "true" if the paramater sig...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get information of element that called function with jQuery I was wondering how I'd go about finding with jQuery, the element id that called an onClick method? my code is: JS function getInfo(event) { console.log(event.target.id + " ... "); } HTML <div class="menu-content" id="thisismyid"> This is some plac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using "path" and "asset" for non-template data When creating templates with Twig, it's easy to use the path and asset functions. <a href="{{ path('my_route') }}"><img src="{{ asset('bundles/acmedemo/my_image.png') }}" /></a> However, some of my data come from non-twig files or from database. What would be the right...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I write multiple messages to a database using log4j? Pretty new to all this so excuse any beginner mistakes. I was wondering if I was able to get log4j to write multiple messages to the same db record in a single log write. example log.debug("Message 1" , "Message 2"); or log.debug("Message 1" , 7); Can log4j on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I distinguish left/right/double click in the handler if $.live('click')? ....live('click', function(){ /*How do I distinguish left/right/double click*/ }); It seems event.button can be used to distinguish left and right click, but how to distinguish double click? And I don't know if event.button is suppor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Most efficient algorithm for parsing nested blocks with escapes or delimiters I define a nested block as something with separate opening and closing characters. I.e. { and }, [ and ], etc. An algorithm must ignore opening and closing characters if they are enclosed in a delimiter (such as '{' or "{"), or explicitly...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Main Differences between android 1.x and 2.x Can't find the answer for the long time. Can someone help me to find differences? A: Android API levels Click on a version for a changelog. A: There is no simple answer. Many things have been changed up and updated and added throughout all of the various different relea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook Pay Dialog Not Calling Callback After Confirmation I have implemented a servlet in Java that handles the credits communications with Facebook (as per the API). I implemented the servlet to perform the same functionality as the example php code and following the guidelines in the API. I send FB the id of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Hook Rails Engine into global layout I'm currently writing a modular rails app where every functionality is inside a rails engine. I've set up my first engine and everything's working fine so far. now I'm wondering what is the best way to hook the engine into my global navigation that is currently rendered in app/vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Move an element to another parent after changing its ID I have HTML like this: <span class="file-wrapper" id="fileSpan"> <input type="file" name="photo[]" id="photo" /> <span class="button">Click to choose photo</span> </span> I want to extract the input field from there, change its ID and put it in an othe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Extjs 4 MessageBox prompt mandatory Is there any way to make the input mandatory on a prompt messagebox in extjs 4, like add an allowBlank config to the textarea... A: Ext.MessageBox unfortunately does not support controlling the close-behavior based on the return value of the login handler (at least in Ext 4.0.2a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Binary files in java I Know that binary files connot be read by text editors, thay can be read only by programs. but when I create binary files using java(bytes), I can open files and read it ? why that happens? In other words, I see a plain text rather than a sequence of zeros and ones. I know that in java there ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Compress an ASPX Page? I followed the sample from here to compress my page: http://www.codeproject.com/KB/aspnet/Aspx_Compression.aspx But the result I get is a page full of odd characters: ���I�%&/m�{J�J��t��$ؐ@�������iG#)�*��eVe]f@�흼��{����{����;�N' Not sure what's wrong with that code? I tried the code bot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there anything special in developing mobile applications in phonegap? Am a android application developer and am new to phonegap. I heard of phonegap framework and my doubt is developing with phonegap have any other advantage than cross platform. Am going to develop application only for android is there any other...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Access ASP.NET session variable from JavaScript When the code var accNo = '<%=Session["hdnAccession"]%>'; will be executed ?. I change the session variable in the Page_LoadComplete event, but when I access it using var accNo = '<%=Session["hdnAccession"]%>';, it always return the value which I set FIRST. In Page_Loa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Optimal SQL Query when ORDERing BY SUMs Just as a note, this question is an extension of one of my previous questions. The parameters have changed, so I need a new answer. I have a MySQL Table that has four fields post_id(unique int), user_id(int), category(varchar), score(int). My goal is to end up with two values,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: gcc -finline-functions option I have a question regarding the -finline-function options We are testing whether the function which we have implemented is getting successfully inlined. Here are the observation * *The functions are getting inlined for -01,-O2 and -O3 optimization levels. *The functions are not gett...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Animate NSWindow I would like to animate a custom NSWindow (just containing an image) with a scale transform. I was using previously an CGSPrivate function but I would like to publish my app to teh appstore, so it no more an option. Do you know how I can achieve the same result? A: If you only need to scale an NSWi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why is shouldAutorotateToInterfaceOrientation not called in rotation 5,6? Everything is fine and the method "shouldAutorotateToInterfaceOrientation" gets called for standard orientations like portrait, portrait-down, landscaperight and landscapeleft. However, I have noticed that it's not get called on orientations t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Export to Excel - JSP Page I have a simple table which I would like to export to an Excel file on click of a button. I wrote a function in JavaScript, but I am not sure what is going wrong. function CreateExcelSheet() { var x=myTable.rows var xls = new ActiveXObject("Excel.Application") xls.visible = tru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making Android's ZoomButtonsController and GestureDetector get along I've been stuck on this for a while now, and though I found a workaround I don't quite understand why it works and I should to implement it properly! There also seems to be a dearth of information on the ZoomButtonsController out there. Per other a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Automate download and install of root certificate Currently we manually go to a url to download a root cert. However there is now a need to automate it. I am looking for C# examples of how to accomplish this. I would like to give the url as a parameter, and then the program must take over and open this url in the b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get data from a database that is between two dates I am writing a system that will show data from a selected month. The user can select the month they want to look at, this then creates a URL something like this .com/page.php?month=03 the page as you can guess will take the idea and then use it to get data from the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NHibernate Multiple Parents with same Child Entity Reference-to-Parent I have a data structure with two parents, that can have children of the same class (entity) type. public class Parent1 : BaseParent { public Parent1() { Childs1 = new List<Child>(); } public virtual IList<Child> Child1 { g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: controller & model name ambiguity in code igniter 2.0.2 Following is the scenario: I've integrated HMVC in CodeIgniter 2.0.2. Created a module with following structure. /application/modules/login /application/modules/login/controllers /application/modules/login/controllers/login.php /application/modules/login/models...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with installing assemblies to the GAC I'm trying to deploy a couple of third party assemblies in the GAC with WiX. Some of these assemblies are mixed assemblies. The common way of doing this seems to be setting the assembly-attribute of the corresponding file to "net". However, doing it that way yields in an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: swfupload jquery plugin file upload list Was just wondering if anyone knows if you can set the limit of upload files to display on the list after selecting the files? (NOT the max amount of images you can upload) eg. I choose to upload 10 images, normally it will display a list with all 10 images in the queue... ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the alternative for CollabNet's python svn bindings? What is the alternative for the python svn bindings provided by CollabNet (this where you have 2 directories: svn and libsvn, the second with a lot of pre-compiled libraries)? The problem with it is that it just can't be configured to run with Windows vers...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP file execution txt doc Possible Duplicate: PHP run code from txt file Php... is it possible to execute a txt in a server that contains a php script? I need to execute this somehow The file is in txt extension.. Please tell me if It's possible A: Just use include, but be aware that this is very insecure. Thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: which command equivalent in Python I have the following code which i am using to check if the program class-dump exists on a system. The program only returns a blank. cmd = ["which","class-dump"] process = subprocess.Popen(cmd, stdout=subprocess.PIPE) print process.stdout.read() This code always returns a blank. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NPE When running Netbeans using the GTK LAF Recently, I got a weird stack trace in the netbeans logs (I added it to the end of this post). I was able to track it down to the LAF. This error happens, when running Netbeans using the GTK LAF, but works fine in Metal, and using the native Windows LAF. It seems, that the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails AR Search across multiple non-associated tables What is the Rails way to unify separate queries into a single one? Currently I am running separate queries, which i combine into one big results page afterwards: @events = Event.where("name LIKE ?", "#{params[:search]}%") @cars = Car.where("name LIKE ?, "#{param...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing svn repository from KDevelop I have successfully installed Subversion and set up repository for my project. Then added project to repository, checked it out and opened it in KDevelop. I can see Subversion menu items but every time I'm trying to operate with svn within KDevelop (either add, commit or updat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Defining copy constructor in a class inherited from POD struct As you know compiler defines default constructor, copy constructor, assignment operator and destructor for POD structures if it weren't defined manually. Usually (or maybe should I say always) it's a bit copy operation. So I've decided to inherit my clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use GROUP BY (date) in MySQL to start at a given day of the week If I have a MySQL query to aggregate totals by week, e.g.: select sum(keyword1), sum(keyword2), sum(keyword3), dateTime from myTable group by week(dateTime) order by dateTime asc I find that the weeks appear to begin on a Sunday. Can this be ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Adding files to a GitHub repository How do I add files to my GitHub repository? I'm using Windows and all my project files are in one folder and I just need to upload it to my repo. A: You can use Git GUI on Windows, see instructions: * *Open the Git Gui (After installing the Git on your computer). *Clone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Can't Selecting Multiple fields in django admin In My django admin form I have one Image Upload field and also It has been done for the preview support.Also I has clear option to clear that image in the object.If i need to select another image with also clicking the clear option "It does't do that" At a time it says...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can . (period) be part of the path part of an URL? Is the following URL valid? http://www.example.com/module.php/lib/lib.php According to https://www.rfc-editor.org/rfc/rfc1738 section the hpath element of an URL can not contain a '.' (period). There is in the above case a '.' after "module" which is not allowed acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Drupal 7: How to create a text field with php default value? I've been searching for quite a while now and still wasn't able to find an answer yet. I'm using Drupal 7.4 and I created a new content type. There i want to add a simple text field that has a Default value where I can add PHP. Normally, the Default value ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to delete a character? Hi I am developing a code in which I need to perform a delete a last character from a uitextview I tried like this -(IBAction)delete:(id)sender{ uitextview.text =[NSString stringWithFormat:@"%@%@",uitextview.text,@"\b"]; } on a delete button action i gave this code but this is not pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How are notifications such as "xxxx commented on your post" get pushed to the front end in Facebook? Possible Duplicate: How does facebook, gmail send the real time notification? For example, I am on Facebook and I see this little notification being displayed that some one commented on a post I made. What is the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone Web based apllication back ,forward and refresh button In my iphone web based application i want to add backword,Forward,Refresh and Action button like the native Webview,How i implement this in my app. Thanks, Arun A: Use what HTML gives you to draw this navigation. Or look for ready code for that.
{ "language": "en", "url": "https://stackoverflow.com/questions/7555563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the recommended way to make a numeric TextField in JavaFX? I need to restrict input into a TextField to integers. Any advice? A: I want to help with my idea from combining Evan Knowles answer with TextFormatter from JavaFX 8 textField.setTextFormatter(new TextFormatter<>(c -> { if (!c.getControlNewText...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: Webview loading dialog My code below loads a progress dialogue into webview on the initial load but I'd like it to appear every time webview is loading a URL! I think I need to use onpagestarted() before the progressbar but I'm a bit of a noob at all this and having trouble getting it working. Can anyone advise plea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with MAX_FILE_SIZE in PHP I have a flex-based image upload form, and I've lost its source code. Now there appeared a problem with uploading big images (about 10MB), but with the same images an old html-based form works correctly. In my php-file there's ini_set("post_max_size","64M"); ini_set("upload_max_file...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with CSS transitions on a tags in Safari I'm having trouble with a -webkit-transition effect in a HTML page. The page is here: http://www.newerawrestling.co.uk/new/ Basically, the colour of the links within the main sections (marked up in a <section> tag respectively) seem to be broken. They should be an off...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: android monkey runner scripts I was trying to run a a sample python program using monkey runner but unfortunately throwing an error of this type : Can't open specified script file Usage: monkeyrunner [options] SCRIPT_FILE -s MonkeyServer IP Address. -p MonkeyServer TCP Port. -v MonkeyServer Logging ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharing data between services and activities I have a ListView with a custom ArrayAdapter, that shows orders from an ArrayList. These orders are supposed to be synced with my server. There I have an API, which I am requesting for new orders, and if there are any, I get an XML of the order back. What is the best appr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP & GD: Storing files created during session to then delete once session expires I am creating an online multi-layered GD image creation tool. Users can upload new images to the server to add to the GD produced image. I want to be able to store the gd image and all user uploaded files throughout the php session du...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MediaPlay won't play a sound, why? Here's my code MediaPlayer mp = new MediaPlayer(); ... try { mp.setDataSource( getString(R.raw.click)); mp.prepare(); mp.start(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalStateException e) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Goertzel algorithm works over analog signal? My SIP phone is getting a tone(ringback) in regular rtp packet in PCMU payload (not using the rfc 2833 supported payload formats). To detect if tone or speech is present in rtp data Goertzel algorithm should be used. I am new to this domain and not able to understand...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery.get the success parameter I am using jQuery.get to send a message to the server and it works. I now want to action on the reply I get from jQuery.get and having no luck. My simple test code to test it works is- jQuery.get("/www", function(data){alert("it works");}); What do i have to be aware off to get the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server table league I would like to build a table league from matches (scores and rounds). I succceeded from my SQL Server database to calculate points for each teams and matches but I would like now to generate a table league.. (football) Some one can help me please? SELECT TOP (100) PERCENT dbo.jos_joomlea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: MEF - notify when plugins are loaded / unloaded I have a simple asp mvc app which uses MEF, and there is a route which can be accessed by admins to refresh the directory catalog and compose parts, however one thing I am trying to find out how to do is notify some code when a plugin is loaded / unloaded. The scenario...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling a function with incremented values If I call a function like this: var n = 0; f(n, n += 100) the values of it's arguments are 0 and 100, not 100 and 100 as I would have expected. This behavior does what I currently need in my program but I don't understand why it works this way and it troubles me. Can someo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Highlight the searched text in UITableView using UISearchBar Using UISearchBar searching text in UITableView. I just want to know how to highlight searched text. Highlighting could be make text bold or change text color. E.g. If I'm searching text "Stack" using UISearchBar in UITableView which contains a row with st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling batch file from code I'm attempting to call a batch file in code. I run it when the program starts and then every 10 minutes ( for testing purposes ). However, when the function is called through the timer it takes about 5 minutes to process it, but when I do it through start up it only takes 30 seconds.Its ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Generics. Why does it compile? abstract class Type<K extends Number> { abstract <K> void use1(Type<K> k); // Compiler error (Type parameter K is not within its bounds) abstract <K> void use2(Type<? extends K> k); // fine abstract <K> void use3(Type<? super K> k); // fine } The method ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: If just the index.php loads as its generic unparsed self, what exactly is [not] happening? I visited a client's site today, and I'm getting the actual content of their index.php file itself rather than their website. The function of the index.php file says: This file loads and executes the parser. * Assuming this i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Predefining list capacity To prevent many re-allocations I have something like this in my code: List<T> result = new List<T>(100); Do I need to call TrimExcess before I return the new list or not? result.TrimExcess(); return result; The aim is to make the allocations quicker for the first 100 items, for example. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Directory Separators Ignored on Inserting into mySQL I have been trying to insert a directory Path into a mySQL table (reportPath column). The inserting works OK but the directory separator is ignored on insert. E.g A path of D:\public_html\Testman\config is inserted as D:public_htmlTestmanconfig. What am I missing...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drawing text with transparent background I use code like below to update text (in a bitmap) dynamically into a texture: public void UpdateTexture(GL10 gl, int x, int y, int textureId, Bitmap bitmap) { gl.glBindTexture(GL10.GL_TEXTURE_2D, textureId); GLUtils.texSubImage2D(GL10.GL_TEXTURE_2D, 0, x, y, bitmap); }...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EF - Cascade Delete Not Working, Can't Delete Object I get this error: System.Data.SqlClient.SqlException The DELETE statement conflicted with the REFERENCE constraint "FK_comments_postId__164452B1". The conflict occurred in database "awe", table "dbo.comments", column 'postId'. The statement has been termina...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: HibernateOptimisticLockingFailureException while updating an object I am getting following exception while updating an object. HibernateOptimisticLockingFailureException: Object of class [User] with identifier [25614]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Any way to unfriend or delete a friend using Facebook's PHP SDK or API? I want to be able to authenticate the user, list out all their friends and give them the ability to unfriend / remove some of those friends with without going through the process on the Facebook.com website. Is this possible via the API? A: The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why doesn't the diamond operator work within a addAll() call in Java 7? Given this example from the generics tutorial. List<String> list = new ArrayList<>(); list.add("A"); // The following statement should fail since addAll expects // Collection<? extends String> list.addAll(new ArrayList<>()); Why does the last...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: JQuery Mobile select menu change event fires multiple times I have a JQuery Mobile Multi-Page layout and I want to trigger a function when a select menu on my site is changed. Currently when the menu is changed three events fire. I have put together an example that should show you what i'm facing. * *From the m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PK Violation on a history table This is in SQL Server 2005. I have an address table: dbo.Address ( AddressID INT IDENTITY(1, 1) PRIMARY KEY LastUpdateBy VARCHAR(30) <bunch of address columns> ) I also have a history table: dbo.AddressHistory ( AddressID INT, AsOf DATETIME, UpdateBy VARCHAR(30) <all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7555654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }