text
stringlengths
8
267k
meta
dict
Q: PHP / Mime Types - List of mime types publically available? I'm looking for an array, preferably php or json, that maps file extensions to mime types. This is intended to be a fallback for servers without Fileinfo, mime_content_type, or PEAR support. Here is my pathetic list atm... // Fallback for servers without Fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: drupal_map_assoc($array) function _ahah_example_get_first_dropdown_options() { $stid = oci_parse($conn, "SELECt code,descr1 FROM dbtest.regions"); oci_execute($stid); $region= array(); while (($row = oci_fetch_array($stid, OCI_ASSOC))) { $region[$row['CODE']]= $row['DESCR1']; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert Java Map to a basic Javascript object? I'm starting to use the dynamic rhinoscript feature in Java 6 for use by customers who are more likely to know Javascript than Java. What is the best way to pass a Map (associative array, javascript obj, whatever) into Javascript so the script-writers can use the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: android: Unable to access struct static data members I'm having the next kind of error when linking the application: undefined reference to 'MyStructure::K_VARIABLE_A undefined reference to 'MyStructure::K_VARIABLE_B ... The structure is defined inside "MyStructure.h" as: struct MyStructure { const static int K_VAR...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple Frontends - Java Backend I just started working on a project which will about making a big website. With big i mean: * *Webshop *Forum *Normal Website (Information pages etc..) At first i just wanted to pick a decent open-source webshop and just built my site around it. But then i started thinking ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Merge multiple *.csv, *.txt, or *.ascii files based on a common field using python I want to merge about 8 *.csv files into one. An example file: ID, Average 34, 4.5 35, 5.6 36, 3.4 Another file could be: ID, Max 34, 6 35, 7 36, 4 And I need the output to be: ID, Average, Max 34, 4.5, 6 35, 5.6, 7 36, 3.4, 4 This...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android Map Cross Marks Why is this coming? i use eclipse and in that use the "export signed application" option. I use the existing keystore i.e. debug.keystore. I've got my own api key dev key, and have used it at all the proper places. The cross marks dont come all the time, but they do come often enough to look ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to you change the value of android:summary on-the-fly using coding? I have the following in a settings.xml file: <PreferenceCategory android:title="@string/chiming_activity_time_category_title"> <Preference android:title="@string/chiming_start_time_title" android:summary="@string/chiming_start_time_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make a query where it filters everything that starts with a number in Django? I have a model called Book with a Title Field. class Book(models.Model): title = models.CharField(null = False,blank=False) Now I need a filter to get all books with titles starting with a number. This works but how will I ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: graph of linked tags Hi I have a list of lists of linked tag, like this: some_tags = [[u'art', u'interactive', u'media', u'berlin', u'gallery'], [u'event', u'art', u'Istanbul', u'experimental', u'newmedia', u'bioart'], [u'seriousgames', u'installation', u'interaction', u'design', u'art', u'london', u'people'], [u'ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery - How to get attribute of an element when using the 'click' event I'm using jQuery to get a click on an 'a' element. I have a list of those links where each one has a class which by him I'm capturing the click. I would like to know which of the links has been clicked (I have an attribute 'setid' for each link...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Child view focus in MVVM application to see Command I am developing an MVVM application. I have a main Window, which looks more or less like this: <Window> <ContentControl Content={Binding ContentViewModel} /> </Window> Then I have this ViewModel, which exposes a certain number of Commands, and I want these comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Codeigniter URI function url_title() how to use I am using the CodeIgniter framework and I am confused on how to remove %20 from my urls. Below is an example of my code. Controller - blog method - show attribute - this is my blog public function show($blog= null) { // my attempt to set the uri segment $b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploying a custom build of Dojo I'm trying to build Dojo 1.6.1. I ran C:\somepath\dojo-release-1.6.1-src\dojo-release-1.6.1-src\util\buildscripts>build.bat action=release htmlFiles="C:\path\test.jsp" Test.jsp contained a few js files. One of which contained all the require statements. Now I have a release\dojo fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the dropbox-php library with pear HTTP_OAUTH to work? I've been struggelig to get the dropbox-php library to work, but the page where I try to use the classes outputs an error: Warning: include(HTTP/OAuth/Consumer.php) [function.include]: failed to open stream: No such file or directory in /home/sensured/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dynamically set height of browser action popup based on window size When a user clicks my browser action I'd like it's corresponding popup window to (almost) fill the screen. I need the: * *height/width of the current window WHEN * *the user clicks my popup I know I can get the height/width of the current...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: websphere 7.0 JAXWS webservice deployed in tomcat 7.0 not working Friends: I have a JAXWS webservice developed in WebSphere 7.0. It is working there. The stack in Websphere is Axis2.0 I wrote a POJO Java class, annotated with the @WebService annotation and then I did a wsgen to generate the necessary artifacts and c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Paypal integration on website My need: I want users to click on button and goes to paypal, where they can login or add the credit card details and payment should be get done. In short, I don't want to store credit card info on my website. I found 'Express Checkout' is a suitable paypal method for the same. Am I righ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Safely and properly pulling value from Nullable? Possible Duplicate: Which is preferred: Nullable<>.HasValue or Nullable<> == null? I'm working in a codebase which uses both of the following forms for "safely" getting values out of Nullable types. For example, if foo is a Nullable (int?): if (foo != null) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SQL Question checking nulls I'm very new to sql. I am on this project where I have to check if something is null and if it is I have to change it to zero but there are many tables that I would have to do this and many columns. I was wondering if there was a way that I can check the whole table for nulls instead of c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio 2010 Database Builds Drop If Exists Is there any way i can change the "Alter" statements for tables and procs to "Drop if exists" when the build spits out the scripts?? Using Visual Studio 2010 Ultimate. TFS 2010. A: I believe the code you are referring to is generated from a template. Look here... C:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What excectly is Cirrus server role in flash P2P connection According to the article quoted below, if we want to use Cirrus for RTMFP connection it should stay connected for the whole communication period. Cirrus service Flash Player instances must connect to the Cirrus service (using rtmfp://p2p.rtmfp.net) in orde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom asp.net mvc 3 jquery.validate.unobtrusive I am converting a site from asp.net mvc 2 to asp.net mvc 3. I am wanting to use the built in validation in mvc 3 which uses the jquery.validate and the jquery.validate.unobtrusive. However on my old site I was already using jquery.validate and added custom method for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I change in app purchase price that is ready for sale ? without entering review again? Just to be sure. I have application with in app purchase, ready for sale state. If I change the price, this will be effective immediatly(or 24 hours..the same) or this will need disable the in app purchase item, and need to go...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NSNumber to NSString (without trailing zeros if it has decimals) I'm struggling with this issue, and I couldn't find any resource for it : I have an NSNumber that I want to display in an UITextField, so the user can edit it. So I need to convert this NSNumber to an NSString, like this : float value -> desired strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .NET Mutext.ReleaseMutex and Mutex.Close What's the difference between the two? If I do Mutex.Close() instead of Mutex.Release() when shutting down my app, what would be the side effect? A: ReleaseMutex is used to allow another thread to obtain the mutex. It should only be called if you have acquired the mutex (cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Line plot with arrows in matplotlib I have a line graph that I want to plot using arrows instead of lines. That is, the line between successive pairs of points should be an arrow going from the first point to the second point. I know of the arrow function, but that only seems to do individual arrows. Before I work o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: httppost.execute goes to exception i have searched each and every thing at this site but still i don't understand what is matter with my code i have debugged it also it goes to exception when it tries to execute the this line "HttpResponse response=httpclient.execute(httppost)" i have also added permission of intern...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does one Animate Layout properties of ViewGroups? I have the following layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent"> <FrameLayout an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: FFTW: Trouble with real to complex and complex to real 2D tranfsorms As the title states I'm using FFTW (version 3.2.2) with Fortran 90/95 to perform a 2D FFT of real data (actually a field of random numbers). I think the forward step is working (at least I am getting some ouput). However I wanted to check everyth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Toolbar button similar to Back/Forward buttons of firefox - xul I am developing a Firefox addon. I need to create two buttons which exactly looks and operates like back and forward buttons. But the difference is I need to put my own icon inside them. I am completely blank. Any directions will be really helpful. [Edi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Return value copying issue (to improve debug timing) -- What's the solution here? The most interesting C++ question I've encountered recently goes as follows: We determined (through profiling) that our algorithm spends a lot of time in debug mode in MS Visual Studio 2005 with functions of the following type: MyClass...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQueryUI modal add function to defaults I always find myself fixing this chrome scrollbar issue on every jQueryUI modal I add. So, I was thinking that I could add that code to the jqueryUI dialog defaults. I found this question but can't quite bridge the gap and apply it to my code. $.extend($.ui.dialog.prototype.op...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python regex gotcha Could you explain me why the first regex doesn't match? 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 >>> import re >>> re.match(r'\d','.0') >>> re.match(r'.\d','.0') <_sre.SRE_Match object at 0x109adbd30> A: re....
{ "language": "en", "url": "https://stackoverflow.com/questions/7519493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# - Windows 2000 BalloonTip Events workaround Ive been looking all over for a workaround for this but have found nothing besides "Just have them click the NotifyIcon". Windows 2000 obviously does not support BalloonTip events but I need a way to detect when either the balloon tip is clicked or closed. So I was thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Subclipse - Repository Exploring Fetching Children Takes Forever I recently got the latest version of Eclipse Indigo for Java Developers - then installed Subclipse using the update site: http://subclipse.tigris.org/update_1.6.x Now when I go to SVN Repository Exporing perspective - my repository location having been...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why can't I place this object into an array? In PHP, you can normally place an object in an array, like so: class Car{} $car = new Car(); // This runs without error $array['vehicle'] = $car; I have a custom MVC framework I've built, and I need the controller to get an ORM object from the model, so it can pass that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Set allowing quick insert/deletion and random selection in C# What data structure could I use in C# to allow quick insertion/deletion as well as uniform random selection? A List has slow deletion by element (since it needs to find the index of the element each time), while a HashSet does not seem to allow random se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MySQL - complicated LEFT JOIN I have that one-to-many relationship going here. Plus, not all "primary" records will have a joined record in the second database table. Here are my tables: tbl_customers tbl_addresses A customer record in tbl_customers can obviously have many addresses, in the tbl_addresses table. Her...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In Ruby how can the last method on a chain access the initial object - EDIT, SOLVED - Ended up creating a method Object#rec to accomplish what I needed, this is the result: #$l stores the last object on which Object#rec was called $l=nil;class Object;def rec;$l=self;end;end class String attr_accessor :ref ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Override TD:first-child with TR:hover? I have a table where the first cells have a different background. When the TR:hover is applied those cells do not change. Is there a way to override them when the row is hovered? #spreadsheet TABLE, #spreadsheet TH, #spreadsheet TD { border:1px solid #CCC; } #spreadsheet T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: textFieldShouldReturn is not working anymore On iPad, textFieldShouldReturn is not working anymore. I had it working until like five minutes ago, suddenly the method is not called anymore … Any Ideas? Below is the code, the only thing changed was a notification for an UITextView… Thanks! - (BOOL)textFieldShouldRet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Table column width unexpectedly shortened I have an HTML table (populated from a datatable on server side), with no styling except background color, and for some reason it breaks some of the lines. Is there any CSS behavior that dictates this? I tried to replicate it with a table populated with a random string of "M...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Enterprise Library 5 Logging Block: How to write to event viewer? I'm using Logging Application Block from Enterprise Library 5 trying to log into flat file and event log. My configuration looks like this: I'm using this code to write to logs: Logger.Write("message", "General1"); Logger.Write("message", "General2")...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: VB6 to COM-callable wrapped .NET - problems finding .NET libraries Premise: * *Wrote a COM-callable wrapper (CCW) written in C# to be called by VB6 code. *The C# code has .NET libraries (third party) that it must utilize. *The wrapped C# class instantiates fine, raises events properly, takes method calls proper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I use the same variable in one function with another function, without making that variable Global? How can I take one variable from one function and use it in another function without having to make that variable global? A: You have basically two choices. One is to pass it to the second function as a parame...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Sort AS3 XMLList in document order In Actionscript 3, is there a way to sort the nodes (instances of type XML) in an XMLList in document order (as defined in the XDM spec; "Informally, document order is the order in which nodes appear in the XML serialization of a document")? Alternately, is there a way to compare t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Process, unable to run exe that creates an Image and read it back I am trying to run an exe from C# ProcessStartInfo si = new ProcessStartInfo ( ExePath, InputImageFilePath +" "+ numericUpDownResize.Value +" "+ numericUpDownPad.Value+" "+ numericUpDownWindow.Value ); si.UseShellExecute = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I tell if a file is currently being written to? I'm saving a fairly large bitmap in a background thread. It takes about a second. The main thread will try to load the same file into a canvas. How can I tell the main thread to wait until it has finished saving? Edit: I wanted to know how to check on the file,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: command execution with nohup in background when executing a command with nohup , is that necessary to execute it in background. If the only thing required is that the command should not hang when closed the terminal, then what is the differnce in ( nohup command & ) and ( nohup command ) ? Both of the above stateme...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Popup Message instead of lblMessage I want show this "lblMessage.Text = "Message sent successfully.";" message in a popup upon Clicking on the submit button. How do i do that in asp.net? A: Change the text after hiding all the form. Choose an update panel where it will update asynchronously and after the completion...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read exe file as binary file in C# I want to read an exe file in my C# code then decode as base64. I am doing it like this FileStream fr = new FileStream(@"c:\1.exe", FileMode.Open, FileAccess.Read, FileShare.Read); StreamReader sr = new StreamReader(fr); fr.Read(data, 0, count); But the problem is that when I wri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: COM Applications not working Our Test web server recently went down and we lost COM+ Applications installations. I am trying to reinstall the COM Applications. I have the installed the COM Applications and have the Identity set to run as Local Service. I have Security set to Perform access checks at the process a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Printing result of mysql query from variable So I wrote this earlier (in php), but everytime I try echo $test", I just get back resource id 5. Does anyone know how to actually print out the mysql query from the variable? $dave= mysql_query("SELECT order_date, no_of_items, shipping_charge, SUM(total_order_amount) as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to make button-looking buttons that are not images in form-submit buttons? I had a designer help me make links that look like buttons that look something like this: http://www.comehike.com/hikes/scheduled_hike.php?hike_id=233 (the yellow buttons are the RSVP, Ride, Drive, etc.) Those are not images. They are jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to setup custom api for Magento with SOAP V2? I am on Magento 1.4.1.1 and I am trying to setup a custom function in the API using SOAP v2. I have it working for SOAP v1 but I need v2 so that C# can use it. For v2 the function shows up in the WSDL but alwasy returns this error: Procedure 'testFoo' not present. He...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: TFS 2010 gated check-in using TortoiseSvn over SvnBridge I have the configuration in the above title. I am using the TFS gated check-in feature which works fine if i use the TFS tools to check in my changes. A review of my understanding of the way it works: my changes are intercepted by the gated check in and put i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VB .net : How can a Server handle multiple clients simultaneosly at an instance I am facing a problem in VB .net Client/Server application where I am successfully able to talk between them using TCPListener and TCPClient class usage. However, when I try to connect another Client to the same server on the same welcom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Window background color: appears darker than specified? I'm trying to play around with colors in WPF and the form's background color. Without doing ANYTHING ELSE (no code behind, deriving from another class, etc), I create a brand new default Windows Form. I change the background to some light blue color. Save t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: get href value from a website to chrome extension I am making an extension and i want to do the following- suppose i want my extension to work only on say, xyz.com, which contains the following line- <a href="xyz.com/abcd" class="abcd">abcd</a> How do I retrieve href value from xyz.com's code into my extension usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set the google custom search to dispaly the results of search on a paticular page like search.php? I have implemented google custom search engine on my website http://www.finalyearondesk.com/ What I want is that when user enters his query into my own defined search bar, then the results [By result I mean the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How should I allow others to dynamically find web services? I have been fighting with this for a while now. I need to prototype SOA, and with it, the registry. I have been fiddling with jUDDIv3 on JBoss SOA Platform 5, but there don't appear to be any tools that allow me to publish to a v3 jUDDI registry. See my rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery Greater than non-selector? I am trying to figure out how to use greater than in jQuery without a selector ? $('.myClass').gt(2).css('width','100px'); My problem is that I am using this in a for statement and I can't use the selector :gt(). So how would I do this ? A: Use the slice method: myItems.slice(2).cs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Twitter image sharing How to share images in twitter using php? I know its using image upload api of twitter. But i have no idea how to implement this ? Please help to find a solution.Thanks in advance. A: Here's the Doc on twitter image sharing . https://dev.twitter.com/docs/api/1/post/statuses/update_with_media ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3 - URL Helpers With Scoped Resource I have a scoped resource in my routes file: scope :module => "physical" do resources :mymodels end Using '> rake routes' I get the standard routes, including: mymodel GET /mymodels/:id(.:format) {:action=>"show", :controller=>"physical/mymodels"} However when I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Clip Text in a TTreeview (Continued) I have taken the advice, or at least I think I have, that I got in my previous question. To summarize, I replaced the THTMLTreeList from TMS with a TTreeList and made two columns in it. I set the first column to 150 pixels and I overrode the AdvancedCustomDrawItem event w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Output caching _ViewStart.cshtml and _Layout.cshtml in MVC 3 I am trying to cache the MVC 3 _ViewStart and _Layout pages, am I right in thinking these are not cached by default? The problem is the VS bult in web server or IIS should be caching my images in these site master pages but it seems to be loading them ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Continuously Auto-Scrolling ListView I have a Listview in Android. I want that the Listview continuously scrolls from top to bottom by itself. It should happen infinitely And obviously I want to capture the click on any of the items of the Listview, post that the scroll will continue Anybody having experience with s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Acts_as_taggable_on fails in rails 3.1 I am using acts_as_taggable_on on my rails 3.1 app. This is my model class User < ActiveRecord::Base acts_as_taggable_on :skills end I get this error the moment I try anything with the user object. NoMethodError: undefined method `acts_as_taggable_on' for #<Class:0x90bfd8...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rhino Mock List constraint I'm trying to asssert that a method was called on a stub. The method I'm trying to assert was called takes an IEnumerable<string>. I don't care about the exact contents, but I just want to test that the count is a certain number. I can't get the assertion correct, I get Rhino.Mocks.Excepti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Get the client id of the message sender in socket.io? on the server side i got socket.on('chat', function (data) { io.sockets.socket(data.clientid).emit('chat', { msg: data.msg, senderid : senderid }); }); How can I get the get the senderid without the sender having to post their clientid th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Display XML content in HTML page How to display XML and other type of data in same page ? <?xml version="1.0" encoding="ISO-8859-1"?> <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <country>Columbia</country> <price>10....
{ "language": "en", "url": "https://stackoverflow.com/questions/7519618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: WHERE - IS NULL not working in SQLite? Here's a strange one: I can filter on NOT NULLS from SQLite, but not NULLS: This works: SELECT * FROM project WHERE parent_id NOT NULL; These don't: SELECT * FROM project WHERE parent_id IS NULL; SELECT * FROM project WHERE parent_id ISNULL; SELECT * FROM project WHERE paren...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How can I create an Activity that encompasses other Activities? SO. I am starting out in WF4 and I have a design/flow question. I created a custom code activity that takes an "in argument" and stores a result to an "out argument". Pretty basic. Next I use an "If" flow operator using the result of the "out argume...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Iterating over javascript object and valueOf toString methods var x = { article: "bla bla bla ", journal: "le monde ", magazine: "playboy" }; for (var i in x) { alert(i + " "+ x[i]); } Every JS object has a valueOf and a toString method. Why can't I see them when I iterate over the properties of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP/MySQL: Handling Questionnaire Input I have a questionnaire for users to be matched by similar interests: 40 categories, each with 3 to 10 subcategories. Each of the subcategories has a 0 - 5 value related to how interested they are in that subcategory (0 being not even remotely interested, 5 being a die-hard fan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating custom magento webservices I'm having some trouble creating some custom web services in Magento. I'm trying to get the module configured properly and I can't seem to make the web services I've defined in the api.xml file show up under the user role setup in the admin area. I've defined a custom module in ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript - seeing all javascript loaded Suppose I have a line like this on a HTML page: <script src="/script/myscript.js" type="text/javascript"></script> and suppose the server is not allowing me to load myscript.js directly from the browser. Is there a way to see the javascript code inside this script from with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: add html value when creating sharepoint list instance I have created a Sharepoint list definition, and an instance of that definition. In the instance I need to store some HTML as the value of a field in my list instance. I know I can do this through the UI, but I need this list created on deployment. When I wrap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Create a CSV from Text File useing Linux Console I have a text file that looks like this: line1 line2 line3 line4 line5 "" "" keep going for a long time I'm trying to come up with a script that would give me: line1,line2,line3,line4,line5 line6,line7,line8,line9,line10 So comma sepa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to cast object of type 'ASP.Default_aspx' to type 'BasePage' public partial class Default : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { BasePage page = (BasePage)this.Page; In my Default.aspx: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Default.ascx....
{ "language": "en", "url": "https://stackoverflow.com/questions/7519661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is passing an unexecuted IEnumerable as a parameter bad practice? Looking through some of our business logic code I've found where some methods are being passed an un-executed IEnumerables as a parameters such as this: GetDetails(IEnumerable <Entity> item) { // do something with the item } Now the code works fine a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Nibble shifting I was working on an encryption algorithm and I wonder how I can change the following code into something simpler and how to reverse this code. typedef struct { unsigned low : 4; unsigned high : 4; } nibles; static void crypt_enc(char *data, int size) { char last = 0; //... // ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to arrange the data in a Pivot Chart? (stacked column chart) I generated a pivot chart from a pivot table. The chart type is stacked columns. The problem with the pivot is that it generated automatically the order of the stacks and I can't set them in the order I want Do you know if I can rearrange the stacks or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using the Drupal commerce module for super simple single page checkout for one item There are a mass of options when it comes to customizing the Drupal commerce module. What modules do I need to enable for a super simple checkout that looks like this (all on the same page): * *Single Item, with a few variations w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cocoa: Accessibility (VoiceOver) for buttons with image only I use NSButton with empty title and image on it, and it cannot be accessed with VoiceOver. But when I'm setting title (VoiceOver seems to use title), NSButton tries to show it. I think there should be an easy way to not display title, or to set button tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Replacing the getHomeLink in Magento Can I just replace code <?php echo $this->getHomeLink() ?> in the header.phtml file copied below with http://ourdomainname.com? Since our magento store is linked through navigation within our site, we want to use a link to our main domain in the header INSTEAD of using the store ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery Selectors based on the Value of Three Drop Down Menus I am working on with three drop-down menus each of which have three options. Together these three drop-down menus create a system that can be in any one of twenty seven states. For each drop-down, there is option 1, option 2, and all (which is the union of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: redirect to a specific view from method controller I have a controller called "products_controllers.rb" that have this method: def create ... ... respond_to do |format| if @product.save ??????? else format.html { render :action => "new" } format.xml { render :xml => @product.errors, :...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Schema and fixtures not being loaded when running rake:test from new Rails plugin I am creating a brand new full gem plugin using Rails 3.1.0 on ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]. I am having trouble with the schema and fixtures not being loaded for running rake test. Following are the steps...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Set default image if no image is selected to upload in codeigniter I'm doing a script that will upload an image and save the image path in the database. The only problem that I have is if a user doesn't upload an image I want to set a default image. But in codeigniter when an image is not selected it automatically g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Team Foundation server configuration I'm trying to configure Visual Studio 2010 with team foundation server. I'm getting following screen I can add only windows users into user groups Now, I need to create windows user for every remote user or is there any way get it work? How can I give access permissions to r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Defining JPA Default Table Qualifier All of my tables (MSSQL) use a schema/qualifier/prefix (e.g., abc.Table1, abc.Table2). This qualifier is the same for all of the tables and I would like to specify it as a default to JPA so that I do not need to annotate each class with a custom name string. This can be done with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CONCAT with GROUP_CONCAT in mysql So I have looked everywhere for an answer to this, but so far no luck. Any help is much appreciated. I am new to mysql (transferring from a filemaker pro background). I have a database where I keep information for prospects for our business. I have a question about listing informati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NSDate issue, the date is the day before then it should be I want to implement method, that will count the number of days in month. Everything is fine except my date is the day before then it should be. In the following example date is "2012-09-14 21:00:00 +0000" and should be 2012-09-15 21:00:00 +0000 Will apprecia...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Function Definitions as Arguments var cancel = setTimeout(function(){clearTimeout(cancel);}, 500); var cancel = setTimeout(clearTimeout(cancel), 500); Scholastic question: The first of these two expressions work, while the second does not. The setTimeout() method is accepting a function and a duration as its argu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: div box inside div box. Relative positioning, and equal padding, space between all sides I have this div box right now: div#main-edit{ padding:2px 6px 4px 6px; color: #555555; background-color: #FFF8F8; border: #dddddd 2px solid; width: 750px; height: 500px; margin-left: 10%; margi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The symbols I should be aware of for SQL injection I know that you cure all of the stuff with mysql_real_escape_string() (and with htmlspecialchars()), but I want to know the symbols that cause all this mess everyone wants to get rid of? The thing here is, that we here had to transfer a website not built by us from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get count on ths query I'm doing an INSERT INTO table1... SELECT... FROM table2 However, I need to retrieve the identity from a table3 and do an insert into it just before inserting into table1. These two inserts need to occur together, with table3 insert going first. I've tried something like th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to grab a specific SHA from the git log output Executing the following command git log --before "Feb 01 2011" returns all of the commits from before the specified date, including their SHA I'm trying to write a cygwin script that syncs my head to the last commit of a specific month, without me having to find and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7519725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }