text
stringlengths
8
267k
meta
dict
Q: jQuery autocomplete item click and event bubbling How can I get the link click to trigger a select? EDIT: Im refering to why doesnt the line $("a:contains('item2')").click(); trigger a autocomplete menu select? <!doctype html> <head> <title>Test</title> <script src="jquery-1.6.4.js"></script> <script sr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validator id is not registered i am getting this warning in eclipse: Validator id is not registered on the line: <f:validator validatorId="confirmPasswordValidator" /> i am using JSF 2, and tomcat 6 and my el-impl library is org.glassfish.web any ideas why ? and how to solve it ? A: Ignore and run it. Eclipse is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Segmentation fault with arrays and pointers I have a segmentation fault...i'm not sure what's causing it. Also, when passing the member pname into the function get_names, am I doing this correctly, or is there a better way of doing this? #include <stdio.h> #define MAX_NAME 20 #define MAX_PLAYRS 16 typedef struct {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: nspredicate problem with AND operation I am stuck up with below line and i am not have much knowledge on coredata , `NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(bookPath == %@) AND (accessed==%u)) AND (isCurrentSession==%u)", myString,[NSNumber numberWithBool:NO],[NSNumber numberWithBool:_accessed]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Transfer piece of xaml to resource I have 8 columns and every of them has the same datacontext. <!-- COLUMN: PREVIEW MESSAGE --> <data:DataGridTemplateColumn x:Name="PreviewColumn" CanUserSort="True" SortMemberPath="Preview" Width="*"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can a property return a default value (similar to some built-in .NET properties)? Is there a way to have a class that can return a default type without specifying the property? If I had a class that had a few properties and one property returned a string value and others returned additional types, could I do the fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Twitter PHP - URL not encoded in tweet I'm trying to post to Twitter using the Twitter PHP SDK twitter-async my tweets include a URL in them that doesn't seem to be getting encoded. How can I make the URLs show properly when tweeted? I call this function in the SDK function postTweet($tweet) { $this->twitterObj->...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is subclassing NSNotification the right route if I want to add typed properties? I am trying to subclass NSNotification. Apple's docs for NSNotificationstate the following: NSNotification is a class cluster with no instance variables. As such, you must subclass NSNotification and override the primitive methods ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Load Returned mySQL Values Into Form I wonder whether someone may be able to help me please. I've put together a form and php code (below) that allows an administrator to search for member records from a mysql database using the email address as the search criteria. HTML Form <form name="memberpasswordresetform" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Question about anchor point So I have been playing around with animations lately and I've come across the anchor point. I understand that the anchor point is (0.5, 0.5) by default, which is the middle of the view, and you can change it so that the anchor point is on one of the borders. My question is, how do I go on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: asp.net get html controls in code behind If I alter the html on a page using JavaScript, how can I access those changes in my ASP.NET code behind? I found some dhtml "drag and drop" code online (http://www.dhtmlgoodies.com/scripts/drag-drop-nodes/drag-drop-nodes-demo2.html), but after moving list items from one con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Two postgresql server with same configuration, different performance I got two identical servers, in both is installed postgresql server version 9.0.4 with the same configuration. If I launch a .sql file that performs about 5k inserts, on the first one it takes a couple of seconds, on the second one it takes 1 minut...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I run curl as shell command line in PHP If I try to run this inside a script: <?php exec("curl http://ww.google.com") ?> I get: -bash-3.2$ php test.php sh: /curl: No such file or directory using shell_exec: PHP Warning: shell_exec(): Cannot execute using backquotes in Safe Mode... How can I run curl as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Decrees size of Font : decrees size of Font in Java which I am printing it in PDF file I am printing data on PDF using Java code when data populate data gose to out of field in PDF here the code I am using PSD address for printing data form DB String FULL_NAME= rs.getString("FULL_NAME"); af.setField("topmostSub...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alternatively presentation of the archive I'm searching for an alternativ view of the archiv output page. So if you click on a archiv link you get a view e.g. of the Month. And exactly this Page where i get the filtered output i want to apply some changes. So i mean not: wp_get_archives() Best regards Illu A: If y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while trying to connect to SQLite3 database from CakePHP Recently I migrate an application from one server to another and now when I try to access to the app I get this error: "Fatal error: Call to a member function query() on a non-object in /var/www/reynierpm/magno-reynierpm/models/datasources/dbo/dbo_sqlite...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Transparent image not appearing in menu My page is here. My drop down navigation css is here. I'm trying to add a transparent png image, image here, to the drop down portion of the menu. However, it's not appearing. I thought adding a "suboptions" class to the dropdown ul would do the trick, along with setting CSS f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java. Creating a date according to user timezone in web-application I have a Java web-application. In some places there is showing of dates. I want to display the date according to user timezone. How do I create a date for the show if I know the timezone the user? I use the class Date. Any help would be greatly appr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C#: Get exact substring from HTML code using IndexOf and LastIndexOf I have a HTML page retrieved using the GetResponseStream() in C#. I need an exact value (int) that comes from that page, which is different every time I run the program. Nevertheless, the structure of the HTML code is the same, in particular: (......
{ "language": "en", "url": "https://stackoverflow.com/questions/7572098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does the Facebook OG Object Debugger Somehow Skip PHP? I have a dynamic PHP page that basically displays a video. When a Facebook user clicks on the video, a timeline event is posted to their Facebook profile, but my OG meta tags don't seem to want to cooperate with the PHP variables the video information is stored...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I *think* I have a memory leak. What now? I created a C++ DLL function that uses several arrays to process what is eventually image data. I'm attempting to pass these arrays by reference, do the computation, and pass the output back by reference in a pre-allocated array. Within the function I use the Intel Perform...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iOS Facebook connect not working when user has FB's app installed? Has anyone else had this problem? I'm getting this error when trying to authorize a user via FB, I think I've isolated it only when a user has installed the Facebook app: fb_our_appID://authorize#error=unknown%5Ferror If you delete the FB app from t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Grails filter multiple actions Within one filter, how can I match more than one action of the same controller? def filters = { organisationDelete(controller: "organisation", action: "confirmDelete, delete") { //... } } In this mapping I have "confirmDelete" as a GET and "delete" as POST A: in the old ACEG...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: regular expression : find all digit in a string I would like to get all digits of a string like this : "0" => Groups = "0" "1 2-3" => Groups = "1", "2", "3" "45i6" => Groups = "4", "5", "6" I'm using this code : var pattern = @"(\d)"; var m = System.Text.RegularExpressions.Regex.Match(value, pattern); if(m.Success)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC3 - Binding DropdownList to int - Value always required I would like to bind a dropdownlist to an integer as follows: @Html.DropDownListFor(m => m.ProductID, Model.AllProducts, "") Obviously in the above case I am allowing for a default (blank) value so that no value is chosen by default. My viewmodel is very si...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jQuery simulating a click after default event was prevented I'm having some smashing time with jQuery again, this time it doesn't quite work on calling .click(). The idea is to have a singleton class that looks for any elements tagged with ui-hint-confirm and show a confirm dialog. If user clicks OK the original ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to detect an empty div using jQuery? I can't use: $('div:empty') because the div might have empty spaces in it. I want to remove it if it has nothing or nothing but empty spaces. A: Based on @Xeon06's answer, you can extend jQuery's selectors to find all elements with no content: $.expr[':'].nocontent = functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to filter a table by column using native jQuery I would like to make use the core jQuery libraries to do as per title. Is it possible to do this with the native jQuery UI library? I prefer not to use plugins as these are not hosted on any CDN (as far as I' am aware). How can i filter the table by matching the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: extract array from multidimensional array i have an array which is like this Array ( [0] => Array ( [name] => Amanda Coleman [id] => 98764676778 ) [1] => Array ( [name] => Hashimi Sultana [id] => 876304848 ) [2] => Array ( [name] => Maren Shawesh ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Grails basics:dates, strings, and object properties I'm just starting out with Grails, transitioning from Javascript In a controller, I'm trying to do this below, but I get an error def list = { def projects = Project.list() projects.each { it.dateCreated = it.dateCreated.format('mm/dd') println it.date...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple folders to reports in TestNG Eclipse plugin I'm running Test Cases with TestNG Eclipse plugin. How can I specify a distinct folder as output to the HTML reports by configurating testng.xml? I've seen Cedric's answer to this very similar question (http://stackoverflow.com/questions/5401746/generating-testng...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ClearCase: Are views created in Unix not visible from Windows and vice versa? We have a ClearCase UCM project implementation that we access from Windows and Solaris stations. I have created several views on the same stream of the project from the CC project explorer in both Windows and Solaris. But when I go into t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Process Class Not Found in System.Diagnostics? (System.dll???) I am using .NET Framework 3.5, I have referenced all the assemblies, I have double checked everything, but still this irritating error CS0234: The type or namespace name 'Process' does not exist in the namespace 'System.Diagnostics' (ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight treeview: save expanded/collapsed state I'm using a hierarchical tree view in Silverlight 4. This tree can be cleared and rebuilded quite often, depending on the user's actions. When this happends, the tree is collapsed by default, which can be annoying from a user perspective. So, I want to somehow save...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XML search or DB search / javascript (client side) or php (server side) calculation Let's say your site has 200,000 unique users a day. So, your server is heavily loaded/pounded; and you do NOT have resources to buy a bigger/better server. So, you are stuck with what you have. Now, whenever a user comes to your site...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting "error: type mismatch; found : Unit required: () => Unit" on callback I am just starting out going through a tutorial on scala and have hit a block. I have merged together a couple of examples and am getting an error, but don't know why. import java.text.DateFormat._ import java.util.{Date, Locale} object F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: resize image by area I am trying to write a javascript function to resize an image based on a given area (or in my case (somewhat inaccurate) 'average dimension' since that's easier to think in terms of. Rather than feeding in maximum height and width, I want to feed in maximum area so that long or narrow images wil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MYSQL/PHP/AJAX Search using SELECT, CONCAT, OR and LIKE on multiple columns I'm makeing a search filed for a table that has 25+ columns in it. Two of them are a First Name and a Last name. I can get the CONCAT to search them fine alone but when I add the other OR selections I get errors. Can anyone point me in the r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a NANT task to start/stop COM+ components? I am automating our deploymnet using CC.net and a NANT build script. I have to stop and start our COM+ components during deployment. Is there a NANT task that does this? A: Assuming that the COM+ components are your components (ServicedComponent instances), then y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JavaScript sound synthesis As part of a third level project I am going to attempt to build a web based sound synthesiser using HTML5 and JavaScript. Does anyone know of any APIs that would allow me to deploy it on all or most browsers? I have so far seen an API that works with Firefox only and another on GitHub that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: RuntimeWarning: in python 2.6 while importing python-pycrypto-2.3-1.el3.pp I have installed "python-pycrypto-2.3-1.el3.pp" and "python-paramiko-1.7.6-1.el3.rf" in red hat linux and using python2.6 version. And when I import paramiko, I get below RuntimeWarning mismatch: /usr/local/lib/python2.6/site-packages/Crypto/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android + Which layout would you suggest? I'm laying out a row for use in a ListView and I need a little help. The row will look like this: Below is what I have so far, the highlight bg is not showing up and the text won't align center (sticks to the top). <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmln...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hibernate 4, EnversIntegrator could not be instantiated I'm trying to set up Hibernate, and since 4.0.0 just came out I naturally decided to go with that. It seems that no matter what way I try to create a SessionFactory, it always leads to the same error: Initial SessionFactory creation failed.java.util.ServiceConf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Button background before a thread Why the background of the button doesn't change before the thread starts? It changes after the thread sleep ends. I mention that the background changes if there is no thread. answer1Top.setBackgroundDrawable(correct); try { Thread.sleep(2000); } catch (InterruptedException e) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Boolean variable has to be shared in diff spring bean I have two beans <bean id="eventService" class="xxx.xxxx.xxxxx.EventServiceImpl"> </bean> <bean id="UpdateService" class="xxx.xxxx.xxxxx.UpdateServiceImpl"> </bean> A Boolean variable has to be shared... means updating Boolean in a bean should be available for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The action value does not match a navigation case outcome I am getting the following error in Eclipse: The action value does not match a navigation case outcome on the following line: <h:commandLink value="Add person" action="add?faces-redirect=true" /> I am using JSF 2, Tomcat 6, Glassfish el. Any ideas, why I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to have Camera Preview and TextView on the same screen? I was wondering if there is some way to have a camera preview fill a part of the screen, and at the bottom have a textview box into which I can add text later. I don't have any code yet because my team is still evaluating if this is possible at a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: NotSerializableException when sending an serializable object over socket? Im trying to send a custom-made object over a socket connection. The class implements serializable but the constructor still throws a NotSerializableException when im trying to write the object to the socket. I'll post relevent code below: pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to animate programatically created bitmaps in android I have a board game app that creates a lot (hundreds) of bitmaps, and constantly changes them as the game progresses. These bitmaps are created, not loaded from a resource... so they have no R.id to refer to. I would like to animate some of them, e.g. a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I put a lightbox or image map within a lightbox? I've had a look around but haven't managed to find what I'm looking for. Basically, I've got an image on a page that uses a jquery lightbox to make it larger and easier to view. In addition to this, with the original lightbox active, I now need 'hot spots' on tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IFrame and Parent Frame Session Handling I have an application that contains no session time out, we don't want our users to have to log in every time they come to the site or even if they've remained idle. We recently partnered with an external vendor to provide some research data which we are rendering in an i-fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery: Onload Scroll to Object I've got a bit of a problem with scrolling at the moment. I'm developing a forum app for Facebook and I'm trying to get the page to scroll to the latest post on a page if the user wishes. I can do this no problem when I load the topic via AJAX in the same page, but I run into a prob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Link, clone, fork or download Twitter Bootstrap? What should be the best thing to do with Twitter's bootstrap css/javascript library? link (online), clone, fork or download it? I would like to always have the latest updates on my website but I would like to customize small things like width size of a the tabbed navi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Assembly built by a newer runtime error after converting to Web App I've recently been converting a website project over to a web application project. The old website had a C# file in the App_Code folder which worked fine even though the rest of the project is in VB. Since I've converted the project to a web app, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to implement a keyword search from a MySQL CLOB or VARCHAR column I have to implement a keyword search from a CLOB column in my MySQL / JPA project. I know that I can use a JPA query something like SELECT something FROM something WHERE..., but are there any other 'Enterprise' way of doing this? (I am asking...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check if string appears within node value in XSLT I have the following XML: <nodes> <node> <articles>125,1,9027</articles> </node> <node> <articles>999,48,123</articles> </node> <node> <articles>123,1234,4345,567</articles> </node> </nodes> I need to write some XSLT which will return only no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Login via curl to webmail I wanna login to my university webmail page by curllib. I program following code to do that: $url = 'http://eetd.kntu.ac.ir/mda2.asp'; $reffer = 'http://sabamail.kntu.ac.ir:3000/WorldClient.dll?View=Main'; $agent = "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Net...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A table value places a checkmark in a checkbox on a form How do you have MS Access place a checkmark in a checkbox control based off a value in a table? A: The usual way is to bind the form to a query or table and bind the control to the relevant field (column).
{ "language": "en", "url": "https://stackoverflow.com/questions/7572217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to do a function for a sprite or menu in cocos2d? I created two CCLayers, one is gamelayer, another is howlayer. The code of gamelayer.m is -(id)init{ if (self = [super init]) { CCSprite *gamebg = [CCSprite spriteWithFile:@"bg.png"]; gamebg.anchorPoint = CGPointZero; [self addChild:gamebg z:0 tag:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Could you recommend an IDE to develop HTML5 canvas applications We're starting to develop a Web application that will have some complex functionality written in HTML5 canvas. Please, could you recommend any good IDE (open or commercial), or a toolset to develop/debug this kind of applications? Thanks in advance. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: CSS gradient on a pseudo element in IE9 Knows someone a solution for setting a CSS gradient on a pseudo element in IE9? This is my approach: http://jsbin.com/iquhut/edit#html,live It seems like filter does not apply on pseudo elements or I missed something out? A: Use images. IE9 does not support css gradients (-ms...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django QuerySets - with a class method Below is a stripped down model and associated method. I am looking for a simple way upon executing a query to get all of the needed information in a single answer without having to re-query everything. The challenge here is the value is dependent upon the signedness of value_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Custom CMDIChildWndEx template class linking errors Ok, I have defined the template class, which compiles as expected, when I implement this class in a function of the CMainFrame of the application and compile it, I receive unresolved linking errors. void CMainFrame::OnFunc() { CTestList<CMyClass> list; } The l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Learning wxPython, basic thing I want to display a button that when I click adds to the main panel a static text that automatic adds to the BoxSizer of the panel. I have this code but dosen't work good. Anyone can help me? I am desperate. Thanks import wx class MyApp(wx.App): def OnInit(self): self.fram...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to catch keyboard keys if jqueryUI datepicker is active jqgrid column contains jqueryUI DataPicker used in inline edit mode. If DataPicker input element has focus and Ctrl+S or some other key is is pressed, body_onkeydown is not executed: IE9 invokes ctrl+s default behaviour (save dialog). In FireFox body_onkey...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: replace all but - ,+, and . I'm working on a donation webapp, and I need to format a string the will leave minuses (-), pluses (+), and decimals (.). I want people to be able to format their dollar amounts how they want, but leave the numbers and decimals as is. I currently have the following code: var raised = $(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what is the best way to upload a csv file into a MS SQL table? Several approaches: * *Use SQL Bulk Import Stored Proc and call the stored proc with the file path *Use SqlBulkCopy in System.Data.SqlClient dll *Read the file line by line and then insert into a table row by row *Any other ways? Which one is bes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Login activity problem Im currently developing an application for android, the first screen of the application is the LoginActivity, it is authenticating with facebook and a facebook login dialog is shown on users request. The whole login process is working great, when you have logged in user are brought to a new ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating function arguments from a named list (with an application to stats4::mle) I should start by saying what I'm trying to do: I want to use the mle function without having to re-write my log likelihood function each time I want to try a different model specification. Because mle is expecting a named list of sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: In ruby how to use class level local variable? (a ruby newbie's question) So suppose I have this (not working): class User description = "I am User class variable" def print puts description end end So, how should I use the var description, how to pass this into a method as a default parameter, or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: using $.each to addClass to elements I'm trying to style a sub-set of anchors using an array HTML & CSS: <div> <a href="#1">one</a> <a href="#2">two</a> <a href="#3">three</a> <a href="#4">four</a> <a href="#5">five</a> <a href="#6">six</a> <a href="#7">seven</a> </div> .hilight { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to encode a hyperlink in CSV formatted file? When I try to encode a HTML anchor link in CSV file cell it becomes corrupted and not readable by Excel. Is there some sort of non-HTML solution or format to encode a hyperlink in CSV file cell? A: For when automagicalism doesn't work, and you're definitely using Exc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: Conditional Formatting in Excel using Alphanumerics I have a conditional format in Excel that is displaying the up/down arrows based on certain values. This works just fine. However, in my spreadsheet (which is largely controlled by VBA) the user has the ability to review data in a 'grade' display (L=1,M=3,H=5) rat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change ProgressBar style in ListFragment under compatibility library? The progress bar is large one by default in ListFragment ProgressBar progress = new ProgressBar(context, null, android.R.attr.progressBarStyleLarge); Is the only way to change it using reflection? A: I believe you should be a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Dev express ASPXGridview close row after insert. e.cancel has gone? How do you close a row on an ASPXGridView after running the RowUpdated event serverside. In the 9.3 version, you just needed to call to close the row after an insert, but grid.CancelEdit() e.cancel = true I now have v11 and the e.cancel option ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stuck in glDrawElements I have a very strange problem. My game engine performs loading of model asynchronously. After that it is added to the rendering loop. The problem is that sometimes (and it's absolutely random) after model was loaded the execution freezes at glDrawElements. I don't get any EXC_BAD_ACCESS or s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the purpose of the tilde in this situation? What could be the purpose of the tilde in this code block? public override int GetHashCode() { return ~this.DimensionId.Id ^ this.ElementId.Id; } ^ Operator (C# Reference) Visual Studio 2010 Binary ^ operators are predefined for the integral types an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: how to change block view pagination style I previously posted this question on drupal stackoverflow, but I didn't get any answers. I'm trying to make 2 different pagination styles. One for page views, and the other for block views. The block view should display image arrows for previous and next. I tried the follow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can be possible to programmatically upload and retrieve photos from PicasaWeb in C# Is it possible to use PicasaWeb to host photos for my website? My requirement to upload and access within my ASP.NET Website. A: Yes, technically. You can use the Picasa Web Albums Data API to access the metadata about your im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I check for a nil="true" value on XML that is passed back from webservice call? I am receiving xml from a webservice call that contains a nil="true": <cacheEntry> <systemFK nil="true"/> </cacheEntry> I used the Flex DataService (webservice) wizard to create the service objects for the cacheEntry componen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check if a row in a table has muti-byte characters in it in a MySQL database? I have a table which has column of descr which stores string values. Some of the values in descr has multi-byte characters in it and I want to know all those rows so I can remove those characters. How can I query the tables using My...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to "insert into table (col1, col2) values (select max(id) from table2, select id from table3); "? I am trying to create a many-many relationship between the max(id) in table1 with all the ids in table2, using a lookup table called table1_table2. Ultimately so that the rows in table1_table2 will be: table1_id, ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to bind a List (one or more times)? I follow the Presentation Model pattern for coding some screens. * *I store some Beans in an ArrayList *I will display the content of this List in a JTable, thanks to an AbstractTableModel *I also want to display some records from this list in a Combo Box (in a form) and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: HTTP could not register URL ... because TCP port ... is being used by another application First, I am not good in WCF. I have a WCF service hosted in WindowsService. Since sometime the service stoped to run because of the exception: HTTP could not register URL http://+:8092/MyService/ because TCP port 8092 is being ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Any neat way to limit significant figures with BigDecimal I want to round a Java BigDecimal to a certain number of significant digits (NOT decimal places), e.g. to 4 digits: 12.3456 => 12.35 123.456 => 123.5 123456 => 123500 etc. The basic problem is how to find the order of magnitude of the BigDecimal, so I can t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Actionscript code not executed without user interaction The following code works as expected: when a user clicks the button, the installer automatically launches. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WP7 - How to embed my xap in a webpage I have made a Windows Phone 7 app and I would like to embed it in a webpage. I found two examples to help explain what I want to do: http://www.lifewaresolutions.com/deluxe_moon_demo_wp7.html http://help.arcgis.com/en/arcgismobile/10.0/apis/WindowsPhone/samples/start.htm I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chaining calls to temporaries in C++ I have a class that does a transformation on a string, like so class transer{ transer * parent; protected: virtual string inner(const string & s) = 0; public: string trans(const string & s) { if (parent) return parent->trans(inner(s)); els...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: second highest salary in table in sql second highest salary in table in sql select * from emp e where 2 =(select count(distinct sal) from emp where e.sal<=sal) I am unable to understand this query...can anyone help me. A: Let's analyze the inner query: you are selecting all the distinct salaries there are more or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Easiest way to edit a huge geoJSON? I'm sitting here with a huge geoJSON that I got from an Open Street Map shape-file. However, most of the polygons are unnecessary. These could, in theory, easily be singled out based on certain properties. But how do I query the geoJSON file to remove certain elements (features)? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to inject in @FacesValidator with @EJB, @PersistenceContext, @Inject, @Autowired How can I inject a dependency like @EJB, @PersistenceContext, @Inject, @AutoWired, etc in a @FacesValidator? In my specific case I need to inject a Spring managed bean via @AutoWired: @FacesValidator("emailExistValidator") public cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Make linked directories I have a class that pulls in an id, name and (if needed) parent-id, it converts these into objects and then links them. If you look right at the end you will see what Im trying to fix at the moment, The folder objects know if they have a child and/or parent but if I were to run mkDirs() here ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TestNG: Use ApplicationContext in multiple Test-Classes I've written some test-cases inside a single TestNG Test which extends AbstractTestNGSpringContextTests. The ApplicationContext is correctly setup and I can use it inside my test-cases. The problem is that the setting up of the applicationContext can take some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add two arrays together AND run methods on them to order, limit, or paginate Im trying to make a news feed for a site and Im adding two arrays of different classes together to create a @feed_items array. But clearly I need to be able to order the new array by created_by right now I have: def home @c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iOS: HTML5 video, continuous playback while remaining in fullscreen I am currently developing an iPad app that aggregates various video feeds on the internet. Then using a UIWebView, some Javascript, a <video> tag, and the mp4 URL I can playback the video and the native iOS video controls appear. This all works grea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Speed up Excel Autofilter I have a workbook that I made which generates a density map of I/O signals in an industrial plant. The whole workbook is driven by the lead sheet which the user inputs the signal type and where it is located. On the worksheet that generates the density map I give the user the ability to c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CakePHP business logic layer CakePHP doesn't seem to ever mention separating the business logic and data access layers of an app. This is my first MVC app and my "fat models" are turning out to be very fat because they contain all kinds of business logic whose only real thing in common is requiring access to the sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Storing and retrieving Shared objects in Red5 I want a "simple" method so i can store shared objects in the disk, and then i can retrieve these so's from the disk even the red5 server restarts. PS: i wasted many hours on finding good doc that explains the procedure but i found none. A: Just notice that every field...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Could not load file or assembly '' or one of its dependencies. An API call exited abnormally I have a .NET App that I've recently Checked In to Team Foundation Server. Ever since I Checked it in, I get Access Denied to the App folder. I then give security permissions to the impersonated user and receive the error: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: How to use HTML5 ondrag event to change the element's position? For example : https://github.com/lbj96347/easypost/blob/master/test.html (p.s: you should have jquery and the css file of the page.:-)) Like this page,you can use the jquery extension to change the element's postion. But html5 and ie offers us the drag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7572366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }