text
stringlengths
8
267k
meta
dict
Q: How to get response from web API call I have an API that I want to call and get the response back. Then I want to assign that response to a variable. I have an API like: http://example.org/Webservicesms_get_userbalance.aspx?user=xxxx&passwd=xxxx When I run this URL in a browser, it prints an SMS balance. I want thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Where is the infinite loop? Hello this is my first message in overflow(Sorry if the question is too long) and im also junior at java and english. I've recently read a mind game. Question was something like this: There is four women,and their names: kirmizi - yesil -sari -mavi (these are colour names in Turkish) Each...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create a user profile upon registration add profile form fields to devise registrations#new form I have a rails 3.1 app with devise: * *User has_one profile *Profile belongs_to user *Overruled the devise registration_controller *Custom registration views all working fine, registration works fine Now I could ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Passing multiple parameters using single input control in JasperServer I have created jasper report in ireport. I am trying to execute it using jasper server. I want to pass two input parameters to report using single Input Control. This input control is a drop down. It has text and Id. I want to pass both id as wel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL JOIN INNER or OUTER I have two tables: users: id username clan clans: id clan crest I trying to do the search by username with output the clan of username. Query: SELECT `users`.`id`, `users`.`username`,`users`.`clan`, `clans`.`crest` FROM `users` JOIN `clans` ON `users`.`username` LIKE '%gu%' Output: id user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implement IDispatch::Invoke to be called by a WebBrowser control I'm trying to do what they explain on this article in the Controlling Download and Execution section. I understand the Web Browser Control in that context is not .NET's WebBrowser. What I'm trying to do is to gain control over what the WebBrowser contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to create custom ToolStripProgressBar in C# Windows forms? How to create custom ToolStripProgressBar in C# Windows forms? I want to create a progressbar with the style as continuos but in windows xp it is not possible.. So how can I set owner draw for this control ? A: I can give you more Information on the T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting sunshine data from latitude and longitude in php I am working on a site which requires sunshine (hours of sun in a day )data of a location. I have the laitude and longitude of the location but now i have to determine the hours of the sun per day on that location.For example say i have a location 'NewYork'.n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing time string with SimpleDateFormat I have a problem parsing just the time string from my database private static final String TIME_FORMAT = "HH:mm:ss"; public static final SimpleDateFormat timeFormat = new SimpleDateFormat(TIME_FORMAT, Locale.getDefault()); And following the output: String time = "17:17:57";...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using NSLog to print navigationType I have the following paragraph: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType *)navigationType { NSURL * url = [request URL]; NSRegularExpression* regex = [[NSRegularExpression alloc] initWit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django url pattern with or without as path to view? I'm new to Django and been reading the http://djangobook.com and finds that the following two patterns work the same way with no hiccups for project named mysite and views.py on the project root with a function named hello. (r'^hello/$', 'mysite.views.hello') (r'^...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: exception: current-continuation-marks: no corresponding prompt in the continuation: # why do i get exception on (redirect/get) in this program #lang web-server (require web-server/formlets web-server/page) (struct app (nm) #:mutable) (define (start req) (render-main-page req)) this function is to be used by most pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make UIButton always on top, and change able to change the subviews? I am using two views that are UIScrollView and UITextView. When program runs, UIScrollView displays. User can scroll it horizontally and paging enabled. If he taps on it the UITextView (which was at back side) comes forward in flip animation...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update a JAR file on UNIX system I have a JAR file on a UNIX system for which owner is a different user. Is there a way in which I can add or update a .class file present in the JAR archive? A: If you have permission to write to the file then yes, like this: jar uf foo.jar foo.class
{ "language": "en", "url": "https://stackoverflow.com/questions/7608581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apart from MySQL concurrent connection limit, does PHP/Apache play any role on dropping connections? If MySQL is dropping connections in a PHP application, and MySQL connection limit is set above the number of concurrent users in the application, which other factors can contribute to this behavior? Also, analyzing m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What formatting can RSS readers reliably interprete? Im making a normal RSS feed for my website. I need to include simple html formatting in the description eg paragraphs, line breaks, lists, etc. To do this I need to wrap the description content as CDATA. The issue with this is that when I validate my feed the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .net MVC 2 controller inheritance I have i little problem with inheritance of my controllers for example : public class AController: Controller { public ActionResult Index(long id) { return Index(id, isComposite); } } public class BController : AController { } when i click on ../B/Ind...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Style of Select element behaviors different between IE 8 and FF I have a select element, and want to change select itself as black background, white fore color, but have options be while background, black fore color. It works fine in FF, but in IE, select element 'inherits' its option's style. I worked out the snipp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Template Ignores String.Empty Values I have an ASP .Net Webservice which returns a System.Data.DataTable like object (contains rows and columns, with the cell values being strings) which is serialised to JSON. I want use this data table JSON result to populate an HTML table using jQuery Template. If a row con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Importance of constant class If I put constant variable values directly in classes, its panic when this value get changes. If i make a constant class to keep such constants it helps to do changes in one class only. But again I need to identify all the classes which are using these constants. Because recompilation is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IEWC Treeview refreshing to top of page on click I am using an IEWC webcontrol in ASPX/C# page and whenever a treeview element is clicked, it will refresh to the top of the page. Is there any way to stop this? It now works fine in IE with the addition of Autopostback and Viewstate set to True. Just not in Chrome. (N...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use Library with JNI in NetBeans WebApp I have developed a WebApp with Java-NetBeans. Now I have a library (List&Label from combit) what I want to use in it. I have all to use it in Java-Desktop-Application (JNI-Dll, Definitions). Now, I would ask, if there is a way to use it with WebApp (in a Servlet) and how to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHPUnit Integration into NetBeans 7 I am trying to get PHPUnit working in Netbeans. I was using 3.4.9 but that refused to work and it was suggested to upgrade to the latest version. I have now upgraded to 3.5.15 and when I run it I get the following message: unrecognized option --log-xml I understand that this is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Submit automatically an RSS feed to RSS Feeds directory How can I submit an RSS Feed automatically to a list of RSS Feeds directory? A: You'd probably be better off by using an existing service, such as Ping-o-matic. Wordpress also lists several other XML-RPC ping services in their Codex.
{ "language": "en", "url": "https://stackoverflow.com/questions/7608616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is possible to have accent sensitive and case insensitive utf8 collation in mysql? How can I perform accent-sensitive but case-insensitive utf8 search in mysql? Utf8_bin is case sensitive, and utf8_general_ci is accent insensitive. A: If you want to differ "café" from "cafe" You may use : Select word from table_wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Make hit test visible property different for grid rows I have a grid that contains 3 rows, one of which contains a TextBox thats can be edited. The grid sits inside a paretn that provides drag functionality to enable it to moved around a canvas. In order to enable this, i need to set IsHitTestVisible to false, in or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Optimistic concurrency with Entity Framework and MySQL I'm currently developing an app using Entity Framework 4.1 and MySQL. I want to use optimistic concurrency and therefore need to create a table structure which allows EF to detect concurrency issues. My goal is something similar to this: http://blogs.msdn.com/b/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: RadGrid Double Click with Single Click I have a requirement to fire a client side event on Telerik RadGrid Row Double Click, and an update fetching from server on single click. But Double click event doesn't work. If I remove "EnablePostBackOnRowClick" option, then it works fine. How can I use both? Here is my code...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: shifting controller function to library in codeigniter I am trying to put this function ((click_add)) in library so that i can call it from all the controllers. I already have get_ads() function in library. I tried various ways to shift the click_add(id) function to library and call it to view along with get_ads but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get the current version of my iOS project in code? I would like to be able to get the current version of my iOS project/app as an NSString object without having to define a constant in a file somewhere. I don't want to change my version value in 2 places. The value needs to be updated when I bump my version...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "163" }
Q: Error in insert query of sqlite I am making an iphone app, in which I am using sqlite. In one class when I tried to insert a string it get crash and giving the following error -[CFString UTF8String]: message sent to deallocated instance 0xe555220 I don't know Why it is happening. Following is the insert query which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert UTF8 characters to numeric character entities in PHP Is a translation of the below code at all possible using PHP? The code below is written in JavaScript. It returns html with numeric character references where needed. Ex. smslån -> smslån I have been unsuccessful at creating a translation. This...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: SCSS Support in Aptana 3.0.4 Eclipse Plugin? Is there a full scss support in the apatana eclipse plugin 3.0.4? The editor assigns the sass-editor, but there seems to be no coloring available. source format also don't make anything. A: The basic SCSS support - syntax coloring, folding - is there in 3.0.4; if you see...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: while loop within foreach I've got a form with questions which gets answered. Then on the following page I'm trying to validate the questions to see if the answer is correct or not because eventually I must work out a percentage for the test. $tid1 = $_SESSION['tid']; $departmentid = $_SESSION['deptid']; $userid = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Anything to attend when changing values in a multidimensional foreach() loop? I got a site that executes the following code $keywords = ($_SESSION[$_POST['ts']]); print_r($keywords); foreach ($keywords as $keyword) { foreach ($keyword['whitelist'] as $entry) { foreach ($_POST as $ke...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SNMP4j vs JMX? what to choose for myapplication Regarding applications administration, I think SNMP4j and JMX are the most used standards. Looking to the documentation of each one, I got confused and not able to choose one or the other. So, I decided to get post and get some feedback from people who already have exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Long running query on a self joined table I try to improve the performance of a query which updates a coloumn on each row of a table, by comparing the actual row's values with all other rows in the same table. Here is the query: update F set PartOfPairRC = 1 from RangeChange F where Reject=0 and exist...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I get eclipse gwt devmode to always recompile all my modules I have two modules, the Main module and the Included module. If I start the Main module it will show an interface with an iFrame which contains the Included module with some additional controls around it. I can also start the Included module separately...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What SQL indexes should I add for this bloated query? I'm wondering if indexes will speed this query up. It takes 9 seconds last time I checked. The traffic table has about 300k rows, listings and users 5k rows. I'm open to ridicule/humiliation too, if this is just a crappy query altogether. I wrote it long ago. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to validate the Access Token and get new one if it's invalid? My app is working just fine and everything is OK but when the user logged-out or come back after two hours or change his password or remove the app then try to add it again I get an error like this with the reason of each error : Fatal error: Uncaught...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mysql (innodb) index decision for better perfomence I have a simple table with 1,000,000 rows. this row has a datetime field that I am always quering where statement on it. SELECT * from my_table WHERE date_time = 'blabla'; Is it reccomened to put index on it for that reason only (where statement)? A: Definitely ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: put textbox content on span or li after doing space Is there an easy way to do something like the tag editor at the bottom of the question area in stackoverflow. I need a list of strings. So, I planned to do a textbox and on pressing the space key, the content is pushed in to a span or a li tag, and the textbox is e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wxpython event not triggering I'm following the example given in http://www.blog.pythonlibrary.org/2010/05/22/wxpython-and-threads/ I have a thread which is checking an sftp server for new files every 30 seconds. If it finds files, it uploads them to a db, and then it should trigger an update of certain GUI elements...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Added preferences dynamically that will last over sessions I have preference defined in xml, and I do this addPreferencesFromResource(R.xml.preferences1); to create the pref activity. But in code (dynamically) at runtime somethimes(depends on busyness logic) I add more items like this CheckBoxPreference c=new CheckB...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Custom Alert Dialog Display Error after changing the Build Version I am developing a simple demo . Here in this demo, I am just creating one simple custom alert dialog . It works fine. It shows me the perfect result when i build application in 1.6, but when i change the android version from 1.6 to 2.2, it sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: switch on / off flash light programmatically on android smartphones (without using the camera) I saw your question about How to turn on camera flash light programmatically in Android?"How Turn on only Camera flash light programmatically in android?". I'm trying to do the same. The links you used to solve your proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Postgresql database shared across multiple geographic locations I'm working on a project where a Postgresql database needs to be shared across several physical locations. Each location has limited connectivity, and may only have access to the outside world once or twice a day. So the database has to be available loc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to identify leaks objects using Leaks in XCode 4? Can any one guide me that how to use and identify the variables that are leaking the memory? I took the snap as following, but yet no idea to understand it A: Open the right utility area (click third button next to the status info in the top bar). when you then...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does git ignore all files in a directory except one? I know there are many questions on how to ignore directories, and I usually haven't had any problem until now, but now I'm stuck with something I don't understand. Here is my directory structure: /src /war com.example.MyProject/ WEB-INF/ classes/ d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to load user's file in Flash? I would like to load a user's file right after the app is inicialized. I have this code: fll = new FileReference(); fll.browse([new FileFilter("Text *.txt", "*.txt")]); It works fine when some button is pressed, but when i just put it inside the frame's code, it doesnt wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rails how to give data to ajax in a secure way? In order to use some AJAX calls, we use often some input type="hidden". But these values can be easily changed. So, is it a builtin rails feature than permit to send date to AJAX, withouth being usable by user, or than can't be changed by user ? In my current rails app...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Refactor recursive algorithm into an iterative one? I have following recursive algorithm needed to redactor into iterative process. CvSeq is a tree structure.Where contour->h_next gives the next node in the same level. contour->v_next gives the next contour in level below.(child node) void helperParseCurves(CvSeq* c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Bad Exception on dealloc? I having a problem with a Bad Exception that I could not locate at first, but now have it pinned down on a [super dealloc];, but I have no idea why this happens. Here is my code : EditingViewController.h @interface EditingViewController : UIViewController { NSManagedObject *editedObje...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I index duplicate items in an array? Starting with the following array (of hashes): [ {:name=>"site a", :url=>"http://example.org/site/1/"}, {:name=>"site b", :url=>"http://example.org/site/2/"}, {:name=>"site c", :url=>"http://example.org/site/3/"}, {:name=>"site d", :url=>"http://example.org/sit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Any problems with putting DAOs and Gateways in Application.cfc? Is it ok to put DAOs and Gateways that will be called many times but only need to be instantiated once in the Application scope? Thanks A: Yes, absolutely. Another option is to use an IOC framework such as ColdSpring or some other bean factory. The bea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can we use HttpResponse object only to keep session management between server and device in Android? Can we use only HttpResponse object to keep all session management between server and device? A: I'm not sure if that would work as the session id needs to be sent back to the server from the device (the client) upo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Session Should not expire I have 2 application, * *1 as A application and *2 as B application. Now from A , I am navigating to b application, there I will spend some time. And In B I have a log off button, if user clicks on that, it should come back to application A, with session intact. I am using J2EE an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple get methods in single Resource class with Restlet here is my code : this is my application class >>> import org.restlet.Application; import org.restlet.Restlet; import org.restlet.routing.Router; import firstSteps.UserResource; public class FirstStepsApplication extends Application { @Override ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Out String Parameter Not Returned From COM Interop I have a ATL COM component method which has an [out] BSTR* parameter. I have create a reference to this component from my .NET application which treats the parameter as an out String type. The COM component allocates this string like this: USES_CONVERSION; *...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding 'parse_str' in PHP I'm a PHP newbie trying to find a way to use parse_str to parse a number of URLs from a database (note: not from the request, they are already stored in a database, don't ask... so _GET won't work) So I'm trying this: $parts = parse_url('http://www.jobrapido.se/?w=teknikinformat%...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: java generate class file at runtime I need to generate class at runtime, each class is mapped to a database table. Such class is model class used in ORM. When client specify a database table to work with, my application check for existence of corresponding model class , if it does not exist, generate it and load i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to access request scoped bean in controller? I'm trying to understand the request scoped beans. Suppose I have a controller and I have a request scoped bean instantiated using spring config xml <bean id="loginAction" class="com.foo.LoginAction" scope="request"/> Do I need to add it as a dependency in controller...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android: findViewById returning NULL - couldn't find out whats wrong? I have the following layout. When i create WebView and GestureOverlayView objects in my MainActivity class, it returns null for both of the objects. GestureOverlayView gesturesView = (GestureOverlayView) findViewById(R.id.gestures); WebView webVie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS url() function: Browser support I have seen in the comments of Is quoting the value of url() really necessary? and CSS background-image - What is the correct usage? that Mac IE 5 does not support quotation marks inside the url() function. Also PPK's CSS page does not mention the url() function at all: http://www...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Working with relations in ORM What is the best/common solution (best practices) to working with relationships in ORM (from long-life project view)? 1) E.g. I have Oracle HR schema. Is it ok to create relations between every objects (entities) where it is possible or only between objects where I really need now (and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is my pointer not null after free? void getFree(void *ptr) { if(ptr != NULL) { free(ptr); ptr = NULL; } return; } int main() { char *a; a=malloc(10); getFree(a); if(a==NULL) printf("it is null"); else printf("not null"); } Why is the output of this program not NULL? A: B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Gmail / yahoo threading email including attachment Is there a way to force gmail / yahoo in threading emails with the same subject? Here's what happened with the email that i sent. Yahoo - the second email is combined with the first email including the attachment. Gmail - The second email is empty and no attachmen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to add two row list for CMS (wordpress) What is the best way for me to add a two row list with employees to a Wordpress CMS? Like this: live example | picture | personal data | In the example above I've used a table, but this would properly work better created as CSS. I need a way for the client to add new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use NSCursor to display custom cursor I am trying to use custom cursor in my game using nscursor. I use following code //While initializing openglview mCustomCursor = [[NSCursor alloc] initWithImage:image hotSpot:NSZeroPoint]; [image release]; [mCustomCursor set] I am setting cursor rect in res...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Attaching a jQuery plugin on-the-fly for better performance Recently I needed to attach a large number of a jQuery color picker plugin on a page. With color inputs for borders, shades, gradients, and so on, that quickly became a lot of color pickes. Since the tool was loaded repeatedly for 50+ elements, the page wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tinymce editor using opa import stdlib.core.web.resource Editor = {{ base_url = Resource.base_url?"" load = <script type="text/javascript" src="{base_url}/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> @client init()= ((%% editor.init %%)()) @client getContent(dom : string)= ((%% editor.getCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++11 Template function that takes a std::function which depends of template parameters I am trying to write a template function that accepts a std::function which depends on the template arguments. Unfortunately the compiler is not capable of correctly deucing the arguments to the std::function. Here some simple ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: update favourite list in realtime iphone My app has two tabs, one of which is a table view, in the other tab I can add the current object to the core data storage, and I wish the table view could be up-to-date anytime I am done adding and switch back to that tab (table view). Currently, the table view only refreshes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drag element from sortable list and drop to non-sortable block Drag an element from a sortable list and drop it to a block where elements are non-sortable but draggable. Is there anyone know how to achieve this effect in Jquery? <div id="viewpot"> <div id="sortable"> <div class="draggable">A</div> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tabular view in Win32 API I am a newbie in win32 API and I'm trying to write an app that will calculate the md5sum of a file selected through the menu or dragged and dropped in the window. I want the window to have 3 columns so that it can display the filename, path and md5sum respectively. Can someone please give m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: using htk for non-digit recognizing I have been trying to use HTk coupled with sphinx4 for a speech recognition application. I am providing my input as a wav file and i am using the sphinx provided "Transcriber demo' and the 'Lattice Demo" however the output was pretty much unacceptable. So i decided to introduce H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image Effect on Hover w jQuery A few months ago, i ran accross a jQuery plugin which gave me a great effect once you moved your mouse over a thumbnail. Actually, it made the image slide out in 4 pieces leaving some html content on it's place..here's a simple example image of what I'm looking for... http://i.stack.im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS application's orientation remember? I have several view controllers, which maintains only landscape mode and one view controller with all interface orientations(for example, slideshow). "Splash screen" can only in landscape mode. After "slideshow" is in portrait mode and I fully terminate application(from task b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: frame.Eval(script) not returning the results in WatiN string result = frame.Eval(javaScriptCode) not returning the results in WatiN. But it is working fine for browser.Eval(javaScriptCode) A: If the page in your iframe has linked to another domain, you cannot execute javascript code for that frame. That is restrict...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change value in first of two arrays (multidimensional) PHP I want to change the number in the first array in a multidimensional array. I have a code that outputs the value to an array and there is no chance for it to start counting from one - in my code. So my idea is to change the value starting from one - after it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get App_Themes location in a html file using javascript I am looking for a solution in javascript, where I can get the location to App_themes\Theme folder which contains theme files in asp.net. For example why this isn't so easy is because when the virtual directory has been mapped directly to domain name t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When executing JAR, get ExceptionInInitializerError: version.properties not found I've been writing a small project in Eclipse which runs perfectly within the IDE. Then I've build a runnable .jar file through Eclipse (which should include every dependency library inside the jar itself). I use 3 library in my proje...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Bash programming with filesystem functions I have been busy this week trying to wrap my head around a little Bash program to migrate a CMS from one server to another. The reasopn for this is because I have more tha 40 of these to do, and need to get it done in a timely manner, thus the Bash idea. Needless to say, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: phonegap iphone : Documents Directory Absolute path I am new to PhoneGap and I am using it with Xcode. Can anybody tell me how to get to the absolute path of the Documents Directory in the index.html? A: function success(fileSystem) { var path = fileSystem.root.fullPath; } // request the persistent file system...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: template error message c++ I have the following header file: #ifndef DATABASE_H #define DATABASE_H #include <vector> #include <iostream> #include <string> #include "record.h" using namespace std; template <class value> class Database { public: void write (ostream& out, DBScope scope) const; Databas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simple TCPSocket server in Ruby exhibits a HTTP header issue I'm benchmarking some simple HTTP server implementations in Ruby (no threads, threaded, fibers and eventmachine) but this simple piece of code fails using threads: #!/usr/bin/env ruby require 'socket' server = TCPServer.new("127.0.0.1", 8080) puts "Liste...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reset HTML5 invalid input state The inputs with a validation are initially not marked as invalid until the value changes. How do I restore this initial state? My problem in detail: I have a simple order form. If the user clicks the "add item" button, I clone the first item and empty the input fields. But since I'm u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Query to return certain row always Can you suggest a query where a condition will be executed always . Say : if($country == 'hong-kong') { $cond = "AND country = 'china'"; } $q = " SELECT * FROM tbl_people WHERE region ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to filter a boolean column on ActiveAdmin? This question is related to the ActiveAdmin gem. I'm trying to filter a column that has a boolean type but with no success: filter :column_name and filter :column_name, :as => :boolean don't work. Any idea? Thanks! A: filter :column_name, :as => :select will create a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: open html file on sdcard with phonegap and jquery mobile i have some HTML files that users can download in runtime to sdcard. Now i want to create a link in my app to open those files. The problem is, i do not know what i should write in href property of the link tags to open the HTML files on sdcard can anyone help...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: creating a hierarchical dropdownlist in asp.net i am working on eCommerce site in asp.net 3.5.in that i have to create categories.The categories is Stored as hierarchical order based on parent Id.Because the level can increase. my problem is in add/Edit Categories page.in that categories has to display in hierarchy....
{ "language": "en", "url": "https://stackoverflow.com/questions/7608791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can DBI statement handles use cached calls to execute()? I have an application where the database rarely changes, and the application requires many reads from the database that is slowing down the performance quite significantly. Many of these reads are exactly the same. So I want to get DBI to cache the results of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: how to use C# variable inside of javascript block variable using Razor? I have a view file(.cshtml) with this C# block in top of file: @{ List<string> selectedCategories = new List<string>(); } well I want to use the selectedCategories list in the following javascript block @section scripts{ <script src="../../Scri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Viewstate invalid length error I've been trying to get to the bottom of the old Invalid length for a Base-64 char array and Invalid character in a Base-64 string. It's a large ViewState, as I'm storing a big chunk of data in there that I don't want the user requesting from the database every three seconds. Because ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the exact mouse down coordinate? Why my code does not work? I would like to show something at the mouse down place, I tried to use : $('#my-graph').mousedown(function(evt){ // show object at: var x= evt.screenX, y=evt.screenY; //or show object at: var x2=evt.pageX, y2=evt.pageY; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Periodic failure when editing or creating in SQL using PHP I have a problem which I can't really figure out. I am tranfering information from a form, via JSON, to a PHP file which is handling the database call. When trying it on my apache server it works aprox 75% of the time. The last 25% nothing happens. The form-...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open Document/file on client with impersonation I have an ASP.NET/c# web application. There is a link on the page that i want to be able to click, open that file from a share, enable the user to edit it and then save it back to the share. The share directory is locked down and can only be accessed via a seperate acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to make Json lib generate such string: \/Date(1317375052044)\/ My target is to generate such json string: {"EndTime": "\/Date(1309737600000)\/"} I define a HashMap to generate the string If I define the string value as "\\/Date(1317375052044)\\/" then the result is "\\\\/Date(1317375052044)\\\\/". If I define th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to set autosizing in interface builder for rotatable bg image? I'm designing the UI with IB with a lot of images, and the default design orientation is landscape. However, I need to shrink the whole view to fit in portrait mode, by shrinking to the maximum allowed width and maintaining same aspect rat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remote events in .NET Remoting? I have a class for remoting which contains events. But when I am trying to set handler for those events on the client side I receive exception. My code looks like: //In common library class RemoteClass : MarshalByRefObject { public event EventHandler SomeEvent =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7608826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }