text
stringlengths
8
267k
meta
dict
Q: Counter to Close JFrame, bring up Confirm Dialog This post relates to my last one regarding a timer. I decided the easiest thing to do for immediate results was to just write a Counter thread that counts down from a certain time (in this case 5 seconds) and if the counter reaches 0, the JFrame closes and let's the u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Make a select like Google Translate I'm trying to make a select like the snapshoot but I can't make it, and then receve a value with php, I need the select only appears a image, but on click appears image and little description on image's right side, and when click an option close menu and change image to selected, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Groovy XmlSlurper vs XmlParser I searched for a while on this topic and found some results too, which I am mentioning at the end of post. Can someone help me precisely answer these three questions for the cases listed below them? * *For which use-cases using XmlSluper makes more sense than XmlParser and vice-vers...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "85" }
Q: MVC3 and WCF Cross site .NET newbie here. I have an MVC3 web application EF 4.1 Code First and Data Entity Framework, works great. I am trying to create another WCF Service/Application that will run on a different IIS server than the MVC3 application. The objective is "Cross site communication": * *MVC3 app saves...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP reindex array? I have array that i had to unset some indexes so now it looks like $myarray [0] a->1 [1] a-7 b->3 [3] a-8 b->6 [4] a-3 b->2 as you can see [2] is missing all i need to do is reset indexes so they show [0]-[3]. A: Use array_values. $myarray = array_values($myarray); A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "169" }
Q: Using MSBuild to buld a solution (.sln) with many projects in how can I make each project build into its own folder? I am trying to create a simple build process for a quite complex (many projects) vs2010 solution. I wish for a folder structure such as this -Build -Proj1 -proj1.exe -proj1.dll -Proj...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to tell hadoop how much memory to allocate to a single mapper job? I've created a Elastic MapReduce job, and I'm trying to optimize its performance. At this moment I'm trying to increase the number of mappers per instance. I am doing this via mapred.tasktracker.map.tasks.maximum=X elastic-mapreduce --create --al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Button for continous scrolling of a div with Javascript code Found this code on the net. Want to modify it to make it scroll a div continously when the mouse button is down and stop scrolling when the mouse button is up. I tried this: * *Change from the click event to the mousedown event. That did not do it. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity Framework Data Reader Production Error Only on production, I'm getting this error: "Execution of the command requires an open and available connection. The connection's current state is closed." What's weird is where its saying its happening. It's happening in a place that's never happened in all of our dev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there some way to create a class that have an object of a class that have an object of this class in C++? In C++, is there some way to create a class that have, as attribute, an object of a class that have, as attribute, an object of the first class? e.g.: class A { B attribute; public: A(){} }; class B ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JSP Reference Books There seems to be a dearth of fresh JSP reference books to purchase. Most are from between 1999 and 2003, with almost nothing after that. There are still lots of Java books, and while most of the syntax is easily swapped, I'd rather have a reference book specifically for the dynamic browser asp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PATH variable in Python How can I change the Environmental PATH variable through code in python ? I am trying to return the path of an executable file. The code does not work because the shell is pointing to another directory. Any help is appreciated. A: You can use os.environ. Example: path = os.environ["PATH"] #...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Grails Spring Security Authentication - GSP error not shown I am new to Grails Spring Security and am struggling to show the login error message. The plugin is installed and correctly configured against my DB. When a wrong username/password is provided, LoginController takes over and actions auth > authfail are inv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem loading CSS styles with a PHP static files loader I have exactly the same problem treated in this topic. That's: I have some static files in some folders and I want only some users to see that content. That users are coming from a previous login. To get that, I'm trying to implement the first solution given ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing a variable in a union which is inside a class Sorry for naive question in C++. For below code, there is a class, inside which there is a union declaration having two variables. How to access the variables in the union using the class object in code below: class my { public: //class member functions, and o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Add multiple drop down lists to ASP.NET form on-the-fly I have an ASP.NET form with one drop-down list. I want to have a "+" sign next to the list to allow the user to add another drop-down to the form, and so on, up to a maximum of 15 drop-downs. Ideally, this will be handled client-side, but I would also be open t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: customize sfApplyApply or create separate module? I'm not sure if I am approaching this the right way; looking for some input from the community. I'm using the following pluggins: * *sfDoctrineGuardPluggin //for user management *sfForkedDoctrineGuardApplyPluggin //for registration of new users What I'm trying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set Rounded Border for Blackberry BitmapField I trying to set rounded border for Blackberry Bitmap field.But it is not working for me. I overriding paint method of Bitmap field. g.drawRoundRect(0,0,HomeScreenIcons.barcode.getWidth(),HomeScreenIcons.barcode.getHeight(), 10, 10); How can i set Border for Bitma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ruby: convert day as decimal to day as name Is it possible to convert quickly a strftime("%u") value to a strftime("%A") or do i need to build an equivalence hash like {"Monday" => 1, ......... "Sunday" => 6} I have an Array with some day as decimal values class_index=[2,6,7] and I would like to loop through this a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Office Interop Issue on Windows Server I am trying to access the Word Office Interop on a server from my aplication using the following line: Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application(); This however causes an exception to be throw: Retrieving the COM class factor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Emacs: python-shell doesn't respond to RET When I start python-shell (or even just start python from M-x shell), Emacs gives the expected prompt: bash-3.2$ python Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help", "copyright"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iPhone: Customizing group table cell border style I have customized group table cell background where I am using following code to draw table cell border. The border appears correct but it always appear solid line. Is there anyway to make it etched/dotted line? What do I need to modify in following code? -(void)dra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you search for a string in a webpage with javascript? I am making a javascript greasemonkey script that redirects you when it finds a certain string in a webpage. Here is my code: // ==UserScript==<br> // @name No 009 Sound System!<br> // @version 1.0<br> // @namespace http://www.cakeman.biz/<br> // @descript...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to compile single fortran objects using translator f2c? I have the following problem: I want to simulate some control engineering system. As it is quite complicated I used the computer to derive some (complicated) equations which can only be exported to fortran77 code. On my development pc this is no problem (li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Calling Accept() second time gives new socket for the same client request I like to write a server program with two threads, one thread for accepting requests and queuing them. Second one, worker thread, for processing them (I have not written this yet). Here is the pseudo code. while (1) { newsockfd = acce...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange problem with Google Maps and jQuery animation on Safari 5.1 I have a page with a Google map and a slider made by me that uses a simple horizontal animation. Everything works fine except on Safari 5.1 (mac) where the animation is screwed up (it doesn't go all the way across). I found out that removing the map...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RTT calculation using tcptrace For the below attached tcptrace output (this is taken from the site http://tcptrace.org/manual/index.html under RTT stats) 1 arg remaining, starting with 'indica.dmp.gz' Ostermann's tcptrace -- version 6.4.5 -- Fri Jun 13, 2003 153 packets seen, 153 TCP packets traced elapsed wallcloc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to add tooltip for a item or cell of a vaadin table I noticed that vaadin 6.7.0 beta1 supports to add tooltip for row/cell of a table. However, I did not find any example how to add it. Is there anybody who can provide some sample? A: Use code as below: table.setItemDescriptionGenerator(new ItemDescriptionGener...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Azure web role receiving results from a long process My Azure web role uses Ajax to call a function (in default.aspx.cs) that delegates work to worker roles. Worker roles may take up to 30-40 minutes depending on input file selected by user. If the worker roles return the result quickly it is received by the webrole...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: methods using yield not allowed to call themselves This could well be a user error (I'm kinda hoping so). I'm running into a strange case in C# were if I try to make recursive call in a method that uses yield it doesn't seem to be respected (i.e. the call is ignored). The following program illustrates this: // node ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting current category with FPC enabled Is it possible to get current category when Full Page Cache is enabled? Catalog controller is not executed in this case, so the registry (current_category key) is empty. All I can get is the root category Thanks A: As one of the possible solution is to get category ID by gi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Search API Solr integration with fivestar (or similar) rating system (fascet and sort) I'm attempting to sort nodes by ratings using the Search API faceted search with Solr integration. I've already set up fivestar ratings (about 9 per node, its a large multi-axis rating system.) but i'm unable to index these rating...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is Metro, is it going to replace .NET completely? Heard that Microsoft is planning to release Metro (http://connect.microsoft.com/metro), calling next generation technologies and some of them said its going to replace .NET, is it true? How Metro is important for a .NET developer? A: Metro style is a new type o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Absolute positioned element displays in different position in safari compared to IE8 For www.zabb.co.uk/test2b.html the displayDiv displays higher up in IE8 than in Safari. How can I make it so they display in exactly the same vertical position? Thanks in advance. A: I haven't examined your page, so while there may...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use the same variable in two methods? I hope this question is not too basic for someone to help me out on. I have a variable who's value I define in one method that I would like to use and manipulate in another. Is this possible? I hope the simple expample code attached will help. I want the value for 'c' t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ExtJs Combobox problem Hi i have a formpanel with remote combobox, the store is jsonstore and is get from webservices with paging results, everything is well, but when you pick an option form the combo always pick the first one, you can pick the third but the combo choose the first option i don't know the reason for...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: undefined local variable or method `acts_as_taggable' in gem I'm working on converting a plugin to a gem. In one of the models I'm using acts_as_taggable_on, and it looks like this class BlogPost < ActiveRecord::Base acts_as_taggable .... end However, I get this error when I run it: undefined local variable or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Better solution for this 2x fast-enumeration? I'm looping through an array and comparing the objects tag property in this array with the objects in another array. Here's my code: NSArray *objectsArray = ...; NSArray *anotherObjectArray = ...; NSMutableArray *mutableArray = ...; for (ObjectA *objectA in objectsArray...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unexpected Thread Abort Exception using Tasks. Why? I have a console application running in an app domain. The app domain is started by a custom windows service. The application uses parent tasks to start several child tasks that do work. There can be many parent tasks with children running at any given time as the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: oracle rollback and commit In the following sql statements: BEGIN update table1 set col1 = 'Y'; commit; update table2 set col2 = 'Y'; rollback; end; / Will it rollback both the updates or only update #2? A: Just #2 You might be interested in save points A: Your statement will rollback only the current transaction...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how can i save my n3 file formate like it's origin file i programing with c# and dotnetrdflibrery'I have an n3 file that i open it in a notpad and show it below @prefix my: <http://www.codeproject.com/KB/recipes/n3_notation#>. my:Peter a my:person, my:boy;     my:suffers my:acrophobia, my:insomnia, my:xenophobia; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: When should we host WCF service in IIS and when should we host in a windows service? I need to host my WCF service but I am unable to decide whether I should host it in IIS or a windows service? What are the advantages, drawbacks, benefits of one over the other please? Thank you A: IIS under version 7 is out of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: rake db:create - rake aborted - no rakefile found So, the title is quite self explanatory, but here's the following .. rake db:create rake aborted! No rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) Any help would be appreciated. A: You have to be in the root of the Rails app that you a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to deserialize JSON string is correct in c#? Help to deal with JSON deserialization correct answer. For example, we have JSON response to the following: {"variant":"otvet1", "source":"otvet2", "items":[ {"list":"512"}, {"vist":"315"}, {"zist":"561"}]} To deserialize using the fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Numbers occasionally not adding correctly in JQuery This code is inside a jquery mobile form. It adds up the numbers and displays the total in a disabled text box. When the the total is 100, the continue (submit) button is enabled. The session var code properly puts in zeroes when there isn't a value. Problem: Somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: StringIO with binary files? I seem to get different outputs: from StringIO import * file = open('1.bmp', 'r') print file.read(), '\n' print StringIO(file.read()).getvalue() Why? Is it because StringIO only supports text strings or something? A: When you call file.read(), it will read the entire file into memory....
{ "language": "en", "url": "https://stackoverflow.com/questions/7558168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: On pressed button block the other buttons How could I make my button to do the on click action even if the button is pressed and the finger is still on the screen (the button is not released). Or I would accept the solution that when a button is pressed and is not release, the other buttons on the layout to not be b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPI - Visual Studio 2010 SP1 I am at a total loss when it comes to WPI and the continous reinstallation of Visual Studio 2010 SP1. I have even went as far as creating a virgin machine and installed VS2010 and then immediatly installed the tools from WPI. After completion (which shows success) I reboot the machine ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Image.SelectActiveFrame memory problem I'm writing a control to show images. My problem comes out using Image class on multipage TIFFs. I use this (I post only relevant code) at the beginning: Image img; int pages; img = Bitmap.FromFile(filename); pages = img.GetFrameCount(FrameDimension.Page); then, when the user ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any java memory structures that will automatically page data to disk? Basically, I am caching a bunch of files in memory. The problem is, if I get too many files cached into memory I can run out of memory. Is there any sort of java memory structure that will automatically page part of itself to disk? For...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mysql drop permission for Wordpress We are running a Wordpress site and one of the plug-ins requires drop permission on the database. (We currently do not grant drop permission and have not needed to for any other plug-ins.) Is there a security concern if I grant the public connection/user drop privileges? The plug...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting No Linked You Tube account while implementing the API I have been trying to upload video to you tube using AuthSub.I cant use Zend here so the client library is out of the question.I am following following steps: 1.Redirecting the user to the authorization page. 2.Getting the token from the redirection. 3.Ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compute range over list of `xts` objects In R, I've got a list of xts objects and I want to compute the range of the time index over all the items in the list. I can't find a smooth way to do it though, it keeps losing the classes of the objects & becoming raw numeric vectors. For example (my list is called states,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sort a table fast by its first column with Javascript or jQuery I have a table which is dynamically populated from FullCalendar. The problem is that FullCalendar does not care about its original order. The table looks like this: <table id="caltbl"> <thead> <tr> <th> </th> <th> Date </th> <th> hours </t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Is there a way to prevent SQL Server from Validating the SQL in a stored procedure during CREATE / ALTER One aspect of our system requires our SQL Server instance to talk to a MySQL Server via a linked Server Connection. MSSQL -> LinkedServer(MSDASQL ODBC Provider) -> MySQL ODBC Connector -> MySQL DB The Table on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Toggle several divs What I would like to do is show a couple of divs out of a selection so that the user get a almost tailor made page the idea is that there are several divs IE: <div id="vid1">some content</div> <div id="vid2">some content</div> <div id="vid3">some content</div> so if the user goes to a page ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Objective-C type not found I'm trying to compile my Objective-C application but it fails saying "Unknown type name 'OpenGLView'". Now I know what this means but the weird thing is I'm convinced I'm importing it just fine. #import <Foundation/Foundation.h> #import "OpenGLView.h" #import "Frame.h" #import "Mesh2.h" #i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to use jquery each loop in ajax I need output like below code, where each set of div is coming trough ajax as follows, i am getting div id dynamic as slide1, slide2 via jquery each function. assume that there is no anchor tag at start so how can i get href="#pix1", href="#pix2" ? every time href value is incre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unbind or remove functions? I'm having some difficulty with the accordion UI. I want a set of divs to be an accordion when the window is a certain size (below 1024) and just divs (above 1024) The code that I have works if the window is greater than 1024 and then I resize to a smaller window. But if I expand the wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fetch request returns an array of objects - NSFetchedResultsController returns null req = [[NSFetchRequest alloc] init]; // entity ent = [NSEntityDescription entityForName:@"Medicine" inManagedObjectContext:context]; [req setEntity:ent]; // predicate pred = [NSPredicate predicateWithFormat:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET MVC. How to return json with html I have a controller method (Method1) that should return JsonResult with the following properties: return Json(new { someProperty1 = 'value1', someProperty2 = 'value2', html = "html_code_that_will_be_rendered" }); As you can see it has 'html' property. This html should be ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create an ajax call on jQuery slide change? How do I call this Jquery ajax call on jQuery slide change? function callpage() { $('#formcontent').empty().html('<p style="margin-top:20px;text-align:center;font-family:verdana;font-size:14px;">Vent venligst, henter webhosts.</p><p style="margin-top:20px;margin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SWT TreeViewer, trim string text in columns I'm using a SWT TreeViewer to show some paths, is it possible to trim the path string to insert "..." (points) when the path is too long a is not fully visible in the tree column? Something like this: Thanks in advance A: Ok, reading the TreeColumn code I have noticed th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Autoheight of vertical column header in C# using DevXpress I used this http://www.devexpress.com/Support/Center/p/Q233111.aspx (the code is in VB so I converted it to C#) to get vertical column headers. I get the vertical headers but my problem is some of them doesn't fit, so they are not fully visible. Is it possi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Trying to make regex JSLint compliant I'm trying to make this regex: var url_pattern = /(\()((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\))|(\[)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\])|(\{)((?:ht|f)tps?:\/\/[a-z0-9\-._~!$&'()*+,;=:\/?#[\]@%]+)(\})|(<|&(?:lt|#60|#x3c);)((?:ht|f)tps?:\/\/[...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I do this layout in HTML & CSS? How do I do the following layout: / header width:100%, height: 100px (this is overlayed) / ///////////////////////////////////////////////////////////////////////////// / / / / div widt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lucene: Iterate all entries I have a Lucene Index which I would like to iterate (for one time evaluation at the current stage in development) I have 4 documents with each a few hundred thousand up to million entries, which I want to iterate to count the number of words for each entry (~2-10) and calculate the freque...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP/MySQL relational database problem. Filter to match options I have a table of people who need help, and a table of people who give help. They each have a one to many relationship with further tables for work hours, hobbies and activities. My problem is that when I am creating a filter in order to match them up I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple objects subscribing to an NSNotification (Objective-c) I have an Objective-c class MyClass that subscribes to MyNSNotification. There are multiple instances of MyClass in my application. Hence multiple objects receive the notification. Is there a way to "filter" notifications for a particular object? I i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp net mvc and javascript response I had a javascript that needs to do two things: 1. Send data to be updated in database 2. Update my html form place in show mode. 3. Update the row of my table to reflect updated data. My javascript do only 1 and 2: $(".form-commands .save").live("click", function () { var f =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Need to read in an unspecified number into an array ok so i need to fill an array with integers based on a number that i specify in another part of the program. This is what I have so far: public abstract class Polygon implements Shape { //numSides is the number of sides in a polygon int numSi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: sendBroadcast(intent) gives a null pointer exception This is my second post today as fixing the 1st post lead to another problem which I am really struggling on. I want to use Broadcasts and intent to send data packets back from a service to the UI. I managed to bind and start the service successfully see my other p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nginx configuration for static sites in root directory, Flask apps in subdirectories I'd like to have a static site in my root public_html directory, then Flask apps in their own subdirectories (e.g. public_html/foo). The static root directory functions as expected. I have spent hours editing the nginx configuration...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Is it possible to ignore Float :: = HexFloat and only see numeric characters? I'm trying to parse the string value "87306E107" using hasNextDouble. This value is a string and should return false when using hasNextDouble but it returns true. I want know if it's possible to have this method return false? The reason...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GWT CellTree Selection of Parent nodes I'm trying to use the GWT CellTree to display a heterogeneous, hierarchical data model. I need to be able to a single selection, but be able to select Parent nodes as well as child nodes. For example, if you look at GWT's own example, you'll see that they only provide one sele...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert Razor text into string from Model Can anyone help me with some Razor syntax? I have a foreach loop ( shown at the end) and I would like to insert two items of text into a link to produce something like this: <a href="/PDFFiles/Dummy.pdf#page=123" target="_blank"> I hope my question is clear, Many thanks. @fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Inverse" Limit? I'm using MySQL to store financial stuff, and using the data to build, among other things, registers of all the transactions for each account. For performance reasons - and to keep the user from being overwhelmed by a gargantuan table - I paginate the results. Now, as part of the register, I displa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: OpenLayers zoomToExtent does not zoom correctly I have an openlayers map with a couple of POI, and I want to zoom so these all fit the map, which I'm doing with the following code: var bbox = new OpenLayers.Bounds( <?php echo $this->box->getSmallestLongitude() ?>, <?php echo $this->box->getSmallestLatitude(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Default AsyncCallback in GWT Doing my app, I got bored from always implement the same default error treatment (show a message, caught.printstacktrace and etc..) in the asynccallback onfailure. I wonder if you can make a generic treatment or standard treatment, something like that. Thanks. A: I assume you are using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to add title and Done button on toolbar in a modal view I try to present a modal view (InfoViewController) from a navigation view controller(DateViewController). I add a toolbar on top of InfoViewContoller's view. Now I want to add a title "Info" and a "Done" button on the toolbar.(The Done button will perform t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Friend operator behavior (const vs non-const) I have the following C++ code: #include <iostream> template <class T> void assign(T& t1, T& t2) { std::cout << "First method" << std::endl; t1 = t2; } template <class T> void assign(T& t1, const T& t2) { std::cout << "Second method" << std::endl; t1 = t2; }...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java NIO Pipe vs BlockingQueue I just discovered that just has an NIO facility, Java NIO Pipe that's designed for passing data between threads. Is there any advantage of using this mechanism over the more conventional message passing over a queue, such as an ArrayBlockingQueue? A: Usually the simplest way to pass ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: CRUD module does not support Calendar type? CRUD module is so cool but small problem. I am using 'Calendar' types in model classes, and they do not appear in CRUD pages. Once their types changed to 'Date' from 'Calendar', they appear. It seems that CRUD does not support Calendar type. Question. How can I use Calenda...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JavaScript string replace IE problem This simple code works fine in FF and Chrome... but not in IE8: var pathtop = $('#autoplay').find('embed').attr('src'); pathtop = pathtop.replace('http://www.youtube.com/v/', ''); Gives: 'undefined' is null or not an object error on line 2 I also tried something like this: pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Initializing an array of objects I'm currently working on a card game, and I'm having trouble with some initialization code: // in my class... Card cards[20]; // in method... for(int i = 0; i <= 20;i++) cards++ = new Card(i, /*i as char +*/ "_Card.bmp"); The trouble is that my compiler's telling me that cards++...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: UIDocumentInteractionController on the detailView I'm previewing a file using UIDocumentInteractionController, but it is occupying all the area of the iPad. I would like it to appear on the detail view of the split view controller. I've checked that the UIView of my view controller doesn't occupy all the screen. Any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get a string after another string in ObjectiveC? For example, the text is: my name is angie merkel and Im stupid! I'd like to get the angie merkel from the string. How can i do this? My head is going to explode... i can't trim this string because it's a variable (text from the user for a ChatBot) A: If th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: scroll bars showing up in iframe, width is only 500px, height set to fluid I cannot for the life of me figure out why there are scroll bars appearing on my iframe Page tab. The width is set at 500px, after knocking it down 5px at a time from 515px. There are no margins, and the height setting is on "fluid." When I v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: using gestureoverlayview with scrollview problem I have scrollview in that i have tableview and in that I have gestureoverlayview ....my problem is when I do any gesture horizontally it works fine but when I do any gesture vertically the scrollview start moving ...the event get captured by scrollview ... I tried fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: jQuery variable substitution I have a simple jQuery function below.. I'm interested in dynamically changing the 'query:FOOTBALL' attribute with a dynamic page variable. So something like 'query:PAGE_TITLE' or PAGE_VAR I haven't had any luck get .replace() to work.. I must be overlooking something very simple; What a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating Anchor Link Within Masonry Set I have a unique problem with Masonry that I would love some help with. Because I am loading fonts externally through Typekit, I have to include the Masonry code within window.load instead of document.ready (It is necessary to load the fonts before Masonry loads because otherwi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Column header repeat don´t work in ssrs 2008 I have a report with a tablix that has row headers. I want to repeat the headers on each page, so I activated the flag "Repeat header columns on each page". But nothing happens... this worked with earlier versions of ssrs... A: Answer can be found here. A: You may also...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Upgraded Coldfusion from 9.0 to 9.0.1 - new cfgrid problems in Firefox After running into problems with auto-suggest stripping off leading zeroes, I took the plunge and updated my dev copy of CF to 9.0.1, including the cumulative hot-fix. Now I see a new problem. Every one of my existing cfgrids is now displaying in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Receiving a SIGABRT when accessing NSDictionary When using a NSDictionary that navigates to a PLIST I keep on getting an SIGABRT error, **2011-09-26 18:31:01.740 AlarmAppiPhone[3126:10d03] -[__NSCFArray _isNaturallyRTL]: unrecognized selector sent to instance 0x5cb5090 2011-09-26 18:31:01.742 AlarmAppiPhone[3126:10...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ColdFusion Builder 2 Client Error - Memory Leak/Loop on Edit I've not found any other resources on this issue, so I figured I would ask the SO community. :) I currently have an issue with my CFB2 client going into a memory leak about three seconds after I edit a particular file on one of our company webservers. This...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Search and display on same page in mvc2 asp net have a simple search form with a textbox. And upon submitting the form I send the contents of the textbox to a stored procedure which returns to me the results. I want the results to be displayed on the same page the form was, except just below it. Right now I'm doing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java escaping chars that already exist in the string I need to escape chars that exist within a string but the escape chars are part of the escape code ie. Map<String, String> escapeChars = new HashMap<String, String>(); escapeChars.put("^", "^94;"); escapeChars.put("%", "^37;"); escapeCh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: preg_replace doubt What I'm doing wrong ? echo preg_replace('#\d{3}\d{3}\d{3}\d{2}#', '$1.$2.$3-$4', '12345678901'); Output would be this: 123.456.789-01. Isn't formating the string!! A: <?php echo preg_replace('#(\d{3})(\d{3})(\d{3})(\d{2})#', '$1.$2.$3-$4', '12345678901'); is correct, because dollar sign + inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a ruby gem that enables cross-platform mouse manipulation? I need the ability to programmatically trigger a mouse click at specific coordinates. I've found AutoIt and the auto_click gem which both supposedly provide this ability, but only on Windows. I've also found the rautomation gem which aims to provide...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Implement Timeout in HTTP Post What is the best way to implement a connection timeout (let's say, 20 seconds) within an HTTP post connection? My current code is as follows: -(NSData*) postData: (NSString*) strData { //postString is the STRING TO BE POSTED NSString *postString; //this is the string t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7558318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }