text
stringlengths
8
267k
meta
dict
Q: Can Datepicker be used as a month Calendar picker? I wonder if it is possible to user Jquery ui datepicker to only show the month/year part and not the days. I know I can get the month and year with changeMonth and changeYear options, but how can I prevent the days from showing at all? A: Try using CSS: .ui-datepic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RCP SaveAndRestore does not reopen views I have a RCP application. Its default perspective opens two views on thew left and the bottom, in relation to the editor area. The option SaveAndRestore is set to true. Upon the next startup of the app, both views are closed. Why? What am i doing wrong? A: Well it seems, tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Change the index number of a dataframe After I'm done with some manipulation in Dataframe, I got a result dataframe. But the index are not listed properly as below. MsgType/Cxr NoOfMsgs AvgElpsdTime(ms) 161 AM 86 30.13 171 CM 1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Search for a Wikipedia page based on its NRHP refnum I have an application which maintains a table of places registered in the National Registry of Historic places. I'd like to reliably search for one of these places in Wikipedia, given its NRHP refnum. The search I am currently using now looks like this: http://e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL INSERT with multiple nested SELECTs Is a query like this possible? MySQL gives me an Syntax error. Multiple insert-values with nested selects... INSERT INTO pv_indices_fields (index_id, veld_id) VALUES ('1', SELECT id FROM pv_fields WHERE col1='76' AND col2='val1'), ('1', SELECT id FROM pv_fields WHERE col1='7...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: SQL IsNumeric not working The reserve column is a varchar, to perform sums on it I want to cast it to a deciaml. But the SQL below gives me an error select cast(Reserve as decimal) from MyReserves Error converting data type varchar to numeric. I added the isnumeric and not null to try and avoid this error but it st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Run a script using DBX I have a script like this script = GF1_dd_Daemon_Sh PROCESS_NAME=RG INSTANCE=RG PART_ID=1 Inside this there is an executable which is called. When I run this script(#!/bin/ksh ) it creates a core dump and using dbx when i analyse the stack trace I cannot get any much info. Is there any way to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding a substring from a database in MySQL I have a Database like this" NAME - AGE alex - 20 mathew - 14 alexandra-31 human-10 now in a text box elsewhere when i type say "al",I should get the result as alex and alexandra. how do i do this in MySQL? please help. A: select * from tableName where name like 'al%' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculating rank on an aggregate column in a Hibernate SQLProjection I am trying to write a query to calculate a rank column based upon an aggregate column. The query is an SQLProjection as part of a Hibernate Criteria query. Here is what I have tried: String sqlProjection = "(select count(*) from IPTStatistic ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to access a CSS class that is loaded via a iframe on a page I have just added a 'Like' button from Facebook. The site is in Arabic, and I have added the necessary Arabic language locals to the FB code. Now the problem is the Icons are displaying slightly different, and I can see that can be controlled by CSS. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to clickRight in selenium dont use javascript and fireevent? I have one contextmenu and i want to clickRight in selenium test. i try to use fireEvent but i m failed. and i dont know java script. So how to do clikright in selenium. thanks A: Use selenium.contextMenu(locator) A: Have you tried the recording feat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Validating date format with Zend_validator How can I validate the date format (dd-mm-yyyy) using zend_validate? A: You simply use the Date validator (Zend_Validate_Date). Eg $validator = new Zend_Validate_Date(array( 'format' => 'dd-mm-yyyy', 'locale' => $yourLocale ); A: It is not possible at the moment ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamically set properties of contorls in gridview I have a gridview which has a textbox in an itemtemplate. I want to set the maxlength property of this textbox dynamically. The code I have now is - <asp:GridView ID="grd" runat="server" EnableViewState="true" AutoGenerateColumns="false" OnRowDa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can use a X.509 certificate created on another computer? I need to encrypt an XML file with a x509 certificate on one computer and be able to decrypt it with the same certificate on another computer. It doesn't seem to work for me like Microsoft suggests: http://msdn.microsoft.com/en-us/library/ms229744.aspx Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Last In-First Out Stack with GCD? I have a UITableView that displays images associated with contacts in each row. In some cases these images are read on first display from the address book contact image, and where there isn't one they are an avatar rendered based on stored data. I presently have these images being u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Specifying project Property values from within Visual Studio If I have properties defined in my project file like so <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <foo>bar</foo> </PropertyGroup> </Project> I can easily set these properties on the MSBuild comma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I avoid passing context object all over the place? Possible Duplicate: Dependecy Hell - how does one pass dependencies to deeply nested objects Lately I've been struggling with this particular problem. For testing and managing reasons I decided it would be a better option to inject an object like $config t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android SharedPreferences design model I have these two classes. SettingsManager extends another class and stores the data and also gets the context from the Activity as parameter. However this doesn't seem to work and I get empty EditText fields. Could you please suggest anything to fix this? public class Settings...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Attributes reversed in certificate subject and issuer I am trying to generate X509 certificates with bouncycastle 1.46, with the code below. The issue I have is that when a certificate is written in a JKS and then reread, the DNs are reversed. For instance, if I run the code below, I get the following output: CN=tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Passing structure as pointer I'm trying to pass structure as pointer in function arguments. Here is my code #include <stdio.h> #include <stdbool.h> #include <string.h> typedef struct { int yearOfManufacture; char model[50]; bool gasoline; } Car; void PrintCarDetails(Car details); int main (int argc,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: php url encode and htaccess parameters I have encoded my url text (ex: Ice's Bird) and pass it as a parameter to another file via htaccess redirection and the url appears as below. http://test.com/nature-pic-Ice%26%23039%3Bs_bird.php In the above url, I want the word Ice's bird as parameter, but I can get only the w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: xpath/xquery sql - Get all values Hi I have a blob of xml.. <string>1</string> <string>2</string> <string>3</string> <string>4</string> <string>11</string> <string>1211</string> <string>12331</string> how would I get all the values using xpath/xquery in SQL Thanks A: The xpath //string will return all the values i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows Phone 7 IE - Get GPS Coordinates From Mobisite I use the following code to get the GPS coordinates on a Android/iOS device from a mobisite but it doesn't work on WP7. How can I get a user's GPS coordinates in IE on a WP7 device? (I am testing on a Samsung Omnia 7). <script language="javascript"> navigat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create a program to list all the USB devices in a Mac? I have a limited exposure to the Mac OS X operating system and now I have started using Xcode and am studying about I/O kit. I need to create a program in Xcode under command line tool in order to list all USB devices connected in a Mac system. Those who ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How to test if PerlIO::fse works on file test operators? #!/usr/local/bin/perl use warnings; use strict; use utf8; use Encode qw(encode); my $dir = '/data/Delibes, Léo'; if ( -d $dir ) { print "OK\n"; } if ( -d encode 'utf8', $dir ) { print "OK\n"; } This prints 2 times OK; I suppose this is because Perl ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Submit Page with just Code Behind Using C# I am creating a callback page that receives info from a payment gateway and then updates a database. I then want it to 'submit' itself automatically to a 'thank you' page, passing the order number as a hidden field. I have looked at httpwebrequest, but I can't see with this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Thread-safe initialisation of local statics: MSVC Possible Duplicate: Is static init thread-safe with VC2010? I know that gcc and llvm-clang emit code to initialise local static variables in a threadsafe manner (which allows one to escape the static order initialisation fiasco by wrapping global statics in functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to find class name inside a bunch of jars I have a whole lot of jar files in my system , related to my Application . How can i find a particular class in that whole lot of jar files ?? Thank you A: If those jar files are in the build path of your Eclipse project: Ctrl-Shift-T (for "Open Type", "type" as in "c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: All Forms Not Passing Parameters All of the forms in my rails application are not submitting parameters even to the production.log: Started GET "/countries/afghanistan/edit/" for 41.132.43.55 at Tue Sep 27 03:39:06 -0700 2011 Processing by CountriesController#edit as HTML Parameters: {"id"=>"afghanistan"} Render...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rocket framework portability to web based applications I am designing a windows form application. I want also to provide a web based front for the same application. I understand that I need to redesign the UI part wholly and I am ready for that. But what I would like to know is that what architecture should I follow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are any limitations exist as to using different versions of git software on the same physical repository? For example when working from computers which have different git software versions installed. A: git's repository layout has been very stable over time, so using even very old versions of the software with rep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Restricting importing groups while importing users from LDAP into Jira I don't want to import the groups from LDAP into Jira, while importing the users from LDAP in Jira. I am not familiar to LDAP, but I want to import only users in Jira. Is there anything that can be done at Jira level to restrict importing groups?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Launch Image on iPad only in PortraitMode (Only device) I wrote an iPad app and I'm using two different images as launch images. The iOS simulator shows the proper image during startup but the device always uses the portrait image. I have the right file size (Xcode does NOT give me any warnings)! I'm using iOS5 Bet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery how to get innerWidth but without the padding? From the docs, innerWidth does almost what I need: "Gets the inner width (excludes the border and includes the padding) for the first matched element." I need to know the width excluding the padding. I.e. the usable space inside the element. Does jquery provi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: capybara's fill_in method not working as expected I have 2 forms in my page. The first form has a field "Username" and the second form has a field "Username:". When fill_in label, :with => value is run (where label = "Username:"), the input box labeled "Username" is getting filled instead. I changed "Username:" to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Email Validation to accept all special character I've regular expression to validate the email address as below var reg = /^([A-Za-z0-9_\-\+\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; please help me to validate the entered email so that the input box should accept all special characters listed below. .!#$%^&*-=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What could cause a "richedit line insertion error" in C++Builder when inserting text in a different language? I have a C++Builder application using a TRichText control that has to display a report, running under Windows XP. The application was written in English but has been adapted to use other languages. Creating ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problems with inheritance with Symfony2, Doctrine2 I edited some mistakes and details... Well, I have been trying to create a inheritance with Product as parent and Film and Book as childs. Checking online and the official documentation didn't solved my problem because examples are poor and incomplete. (http://www.d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: solaris lex error Am deploying a lex/yacc solution trying this grammar. The problem comes when i want to compile .lex file using this command: lex -t "file.lex" I get this error:Error: Parse tree too big Try using %e num Any help please thnks. A: I have a similar lex (same output from lex -V) and this grammar ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iOS - Change color channels levels programmatically Is it possible to adjust color levels using Core Graphics? I would like to adjust channels using parametrized curves in the Gimp or other graphic editor style. A: You can use this: ios-image-filters (like photoshop) if you want to manipulate levels, here's your me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: zombie.js visit() calling back too early (using browserify) Im using zombie to test a backbone app, when I use zombie.visit, zombie calls the vows callback before all scripts on the page are loaded, so my backbone app isn't loaded. However if I wait for the 'done' event, i.e. browser.on 'done', @callback then my bac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Default all pages to a HTTP connection except for 4 pages which need to be HTTPS I am completely new to .htaccess and rewrite rules and I am struggling. Bascially I am working on a website with thousands of pages, I need all of the pages to be HTTP except for 4 pages which the customer data collection and payment pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VS Code snippet and SimpleTypeName - different results depending upon order in XML? I'm writing a little snippet to generate C# properties (as have many before me no doubt). I would like to add various attributes in the generated code, and would like to use the "SimpleTypeName" function. However, it seems that it do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: A facebook link not opening on iphone I want to open a facebook comment page link Like http://www.facebook.com/comments.php?href=http://wombeta.jiffysoftware.com/ViewWOMPrint.aspx?WPID=310 but problem is this link doesnot open in iphone device or simulator but opens fine on desktop.When i try to open this link on s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Echo data from database in each times get I send three times values 1 & 2 & 3 by jquery.serialize() for $hotel_id in PHP, now i want get in the each times from send, data linked with $hotel_id(like: 1 or 2 or 3) from database. but in the following code i just get data that linked to last $hotel_id(3). I want as: Fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Migrating an EJB project running on JBoss to Websphere Applicataion Server 7 I have a Java EJB project running on JBoss properly.However I have to migrate it to WAS. So I created an EAR then deployed it to WAS. After I tried to run this project on WAS i get this error: Error 500: javassist.util.proxy.MethodHandler,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find days difference between the current day and input date $a = "Sat Aug 04 23:59:59 GMT 2012" How to find that is that $a is 100 days older ? I can't use any extra perl modules because i cant install it on all hosts A: First you have to parse that string in a DateTime object, using DateTime::Format::Build...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What can be the parameters to char getenv(const char *name);? I looked over various documentation on getenv(), all they describe is how to use it and what it does i.e environment variable whose name is specified as argument. But, I am trying to find the complete list or atleast as many as possible which can be used ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How create object of ScriptableObject in java-scripts.....? when I try to make an object of a class in java-script file which extends ScriptableObject... The following error will arise. js: uncaught JavaScript runtime exception: TypeError: Cannot find default value for object.” class file is package sumit2; import ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove back entry in windows phone mango how can i remove back stack in wp7.1.I have 3 pages and say A,B,C when i navigate from A to B and in B there is a button to add new contact detail.when i click it page navigate to page C and In page C there is a Done button and when i clicked done button the page navigate to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MVC3 One model, One Controller, One (CRUD) View I have what i call "help tables" in my sql server database. These tables all contain the same attributes/fields. They will later be transformed into dropdowns. In my mvc3 application, i created a model, a view, and a controller for each table. I feel this is too much w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Magento Database Repair Tool Not Working I'm trying to upgrade my magento 1.3.2.4 database to 1.4.0.1 by using "Magento database repair tool", but it's not working. When I enter the details launch the script it takes ages and still nothing happens (once I waited about and hour) and I have a decent server (dual Xeons...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I reuse a UIView for drawing? I'm implementing a horizontal carousel of items - a bit like a UITableView, but with the cells arranged horizontally rather than vertically. I'd like it to support large numbers of items, by reusing one item and setting its properties only when it needs to draw or tap a view. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: asp.net link button not firing I have a link button inside the asp.net repeater control. I am trying to call the serverside method on the click event but no luck. I tried html anchor but it is not working so I switched to link button. <ItemTemplate> <li class="showmenu"> <p class="subtext">&nbsp;&nbsp;<asp:LinkB...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What impact do PHP sessions have on Magento functionality? My Magento store generates a whole lot of PHP sessions. I run a cron job to trim them back after they get to be a few days old. Questions is this: What is the impact on user experience of having their PHP session deleted? Is there any? I haven't discovere...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access to the clipboard when copying content from a WebControl with a Silverlight-component in VB6 Little old school :) In VB6, I got a UserControl containing a SHDocVwCtl.WebBrowser. The page I am displaying contains a Silverlight-component, and I want to be able to copy content (text) from the SL to the clipboard....
{ "language": "en", "url": "https://stackoverflow.com/questions/7567989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Correct index for my MySQL query I have the following Table: CREATE TABLE `sal_forwarding` ( `sid` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `f_shop` INT(11) NOT NULL, `f_offer` INT(11) DEFAULT NULL, . . . PRIMARY KEY (`sid`), KEY `forwardTime` (`forwardTime`,`f_shop`), KEY `forwardTime_2` (`f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DecimalUpDown (Extended WPF toolkit) - Source only gets updated on lost focus I am using Extended WPF toolkit's DecimalUpDown control with its Value property binded to a Decimal? as follows: <extToolkit:DecimalUpDown Value="{Binding BlahBlah, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ShowButtonSpinner="F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Create dynamically a XSD for a form In the Form Builder tool from Orbeon it's possible to specify a schema by uploading a XSD file. But if we don't have the schema or we are too lazy to c reate it, is it possible to create dynamically the schema ? The schema is needed for the use of the form datas in other system...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Relative redirect in Django The url config of my app currently looks like this: from django.conf.urls.defaults import patterns from django.views.generic.simple import redirect_to urlpatterns = patterns("myapp.views", (r"^$", redirect_to, {"url": "main/"}), (r"^(?P<title>.+)/$", "article"), ... ) This w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: modify iphone static library (.a file) how can i modify (just only change url) my static library file (.a file)? in fact i can see url string when i open with textmate editor and then change then save. but it gives this error: error which i take; ld: in /Users/ysnky/iPhonePro/MySDKTestApp/../../Desktop/iPhoneMySDK...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XML Generator, Poco classes Is there a XML generator that creates a XML file based on my poco classes? I also want my nested classes in the XML output. Example: public class Person { public string Name { get; set; } public List<Child> Children { get; set; } } public class Child { public string Name { ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Storing "irregular" data in MySQL Apologies in advance if this question has already been asked, but I really don't know how to search for the problem I have. I'm developing a hotel booking and reservation management system with the intention of working with multiple clients, and it is expected that some clients will...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does brush have only 3 hexa value? For example, in this page there is code such as: <SolidColorBrush x:Key="DisabledBorderBrush" Color="#AAA" /> Why does the color property only have 3 hex value? Doesn't color normally have 6 or 8 hex value? (like Fill="#FF0000FF") What does the 3 hexes means? mean? A: Brush c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Calling a javascript function everytime a key is pressed in input field I want to call a function whenever a key is pressed. I am using onKeyPress event handler. However i see that it calling the function only the first time the key is pressed. I want to call it everytime a key is pressed. Can someone help me in thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generics Question ordering In an interview they told me Write the code in the brackets to order the list. They said order but you dont know if the type is going to be int or decimal. They also told me not to use framework methods like .sort So I have no idea how would I do it? I need to be ready for the next time...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to avoid duplicate entries in nested iteration How can I rewrite this to avoid duplicate entries? images.each do |img| thumbs.each do |th| html << link_to(image_tag("#{th.url}"), "#{img.url}") end end I want to wrap thumbnail images th.url into links to original images img.url up: I'm using a fog gem to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mysql deleting rows not in other table I know this is possible, but not when you need to reference the row you want to delete from. For example: select * from `dvd_role` r left join `dvd_actor2role` a on a.`roleId` = r.id where a.roleId is null; This produces the offending rows which are not present in the dvd_acto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PostgreSQL user groups and authorization Postgresql version 9.0 I need an idea for grouping postgresql users. i have 150+ table in database, and i want to settle groups of people. some of them can reach all tables, some of them not. I know it is possible to make it using grant or creating roles. but i want to figur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Web programming principles Coming from a bit of a conventional (if rusty) programming background, I am busy getting to grips with the "stateless" nature of web sites. It is quite a mindset change! I've created a small web site for the team in which I work to use internally to track some aspects of our daily grind. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Issue with modular pattern approach I just went to http://jsperf.com/prototype-vs-closures/2 prototype vs closures performance test. Actually I use Modular pattern a lot which internally uses clousre AFAIK. Now as per test it says protoype wins over modular pattern. Is that true? should I be using prototypes based a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to get form elements values in javascript and create a url with thoese values For example I have a form: <form name='myform' id='myformid'> <input type='text' name='name' id='name'> <input type='text' name='color' id='color'> <input type='text' name='made' id='made'> <input type='submit' name='submit'>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Insert index/Keys into an array D Could you give a an advice how to insert keys/index to a an array in a specific order as you can se.... I would like to in the result index the values id1 = 3 id2 = 4 id3 = 5. How do I do that? This code public static function getTest($ids){ $input = array(); foreach ($ids ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hibernate: map last row of a @OneToMany relation I have a relation between element and its names. All historical names as well as the current one are located in table "element_name" that has field "created". The row last created is the current name of the element. How could I map the current name of the element as t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Listview below listview android I want to have a listview containing some content. And below it, when you scroll to the buttom of the listview, a new header would be displayed followed with a new list view. Is is possible? //Edit The two listview need to have differet layout xml. Have tried to put the second listvie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Comments in mustache.js icanhaz don't work? I have the following in my template {{! This is a comment that shouldn't be rendered }} I tried it using the demo here: http://mustache.github.com/#demo And found an example from mustache here: https://github.com/janl/mustache.js/blob/master/examples/comments.html But com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: stupid error android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed here is the error: 09-27 12:47:39.155: WARN/System.err(10899): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed 09-27 12:47:39.155: WARN/System.err(10899): at android.database.sqlit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to bind to resource from codebehind without using DataContext I have a datagrid with messages, which has declared itemsource in codebehind. TO every row I need to add contextmenu from which user can select user to whom he wants forward a message. <!-- COLUMN: DATE SENT --> <data:DataGridTemp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mysql Query to show exact 7 days expiring clients I am having a bit of difficulty in getting the right value. What I want to query is, the users who expire in 7 days, for example on 4th Oct 2011, the query should display the result of that particular day only. Right now I am querying as below: select * from users wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Xcode 4 too many clang processes With references to the following question speeding up xcode builds, the following command still works in Xcode 4: defaults write com.apple.Xcode PBXNumberOfParallelBuildSubtasks 4 However it only limits the number of 'cplus' processes that Xcode initiates while building. In Xcode ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Subtract month and day mysql I need to subtract 1 month and 4 days with mysql, I saw the command DATE_ADD (NOW (), - 1 MONTH) perfect for 1 month but for 1 month and 4 days, using 31 days is not valid for every month that some bring 30, 29, 28. I can not add 31 + 4, 30 + 4, etc. A: SELECT CURRENT_TIMESTAMP + INTERV...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: Shared variables between two independent processes I have a daemon process running and doing its job. I want to be able to collect statistics from it while it is running. My environment is Linux and the programming language is C. One option is to make the daemon process writes to some log file and parse/analyse the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ninject.Web.Mvc knows about dynamically loaded Controller but ASP.Mvc doesnt? I have got quite a complex project on the go at the moment, and as part of this I have a MEF layer which purely handles loading of plugins and then the newly loaded plugins expose their routes which are registered with asp.mvc and their co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to specify current working path in jni I have Java Android application (TestApp). From my TestApp I call function from jni code: JNIEXPORT jint JNICALL Java_com_app_test_testApp_CreateFile( JNIEnv* env, jobject thiz, jobject jclass ) { pFile = fopen ("/NDK_Log.txt", "a+"); // Get's current date time and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Extra default padding problem CSS for Firefox I have that CSS for one of my elements: background: -moz-linear-gradient(top, #3B3B3B 0%, #FFFFFF 100%); When I inspect it at Firebug it is like: -moz-linear-gradient(center top , #3B3B3B 0%, #FFFFFF 100%) repeat scroll 0 0 transparent When I look at my page it has s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android - Notifying observers of changes in an sqlite query/view I'm developing an application where I need to update a DB, and then notify interested observers if the updates have changed what they are observing. It seems to me that an obvious way of doing this would be to define triggers which invoke a callback wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Image Lost on Minimizing Window I have added an image to a Canvas and then display that canvas on Panel. But when I minimize and then maximize the Window, the image disappears from the Panel. How can I solve this? Following is the code: public class CloseCanvas extends Canvas{ private static final long serialVe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: call batch by web service in .net I have a batch script that takes as a parameter the source to an image and outputs the image modified. Can I place the batch on a server and call it by means of a webservice? A: To get you started, here is some information and pointers to different alternatives. Try them and see wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: foreach loop checking a value has changed before moving on I have a foreach loop that looks like this, <?php $current_question = ""; foreach ($question_and_answers as $qa) : ?> <?php $current_question == $qa['current_question']; ?> <?php if($current_question == $current_question) : ?> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Sencha Touch: Passing data from the onItemDisclosure to the detail view panel and template I have the usual data passed into my onItemDisclosure as below: onItemDisclosure: function(record, btn, index) { console.log(record.data); }... I can see the data no problems but I would like to pass this data onto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: remove objects from hibernate session I have hibernate pojo class A { B b ; some other properies} with lazy= true for class B. When i get object A, B is not loaded and hibernate returns its proxy. When i pass this object to another module, that module traverse each and every objects in A and when it encounter B.getX...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Split large string into substrings I have a huge string like ABCDEFGHIJKLM... and I would like to split it into substrings of length 5 in this way: >1 ABCDE >2 BCDEF >3 CDEFG [...] A: ${string:position:length} Extracts $length characters of substring from $string at $position. stringZ=abcABC123ABCabc # 01...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: invokeMethod from Groovy with parameters I want to invoke groovy method from the given below class package infa9 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import com.ABC.csm.context....
{ "language": "en", "url": "https://stackoverflow.com/questions/7568120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change Hypersonic DS to MySql DS I try to switch an existing (and well deploying) application to MySql instead of Hypersonic. After I follow all steps from JBoss tutorial my application fails in deploy saying: org.hibernate.MappingException: An association from the table OLOLO refers to an unmapped class: com.trolol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Easy mySQL Group By question If in a mysql table RESERVATIONS there are DATE_ARRIVAL, DATE_DEPARTED and TOTAL_EARN columns How do I Group By month, all earnings in 2010? A: select monthname(DATE_ARRIVAL),sum(TOTAL_EARN) from RESERVATIONS where DATE_ARRIVAL between '2010-01-01' and '2010-12-31 23:59:59' group by mon...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Select( ) always block on /dev/ttyUSB0 i m using Select() sys cal on XBee rf module which is on /dev/ttyUSB0.but this syscal just doesnt return(returns only on timeout),but if i use read() in a WHILE loop on this port i can see the data comming /*code to open the port*/ system("stty -F /dev/ttyUSB0 5:0:8bd:0:3:1c:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieving the last modified file in a directory over FTP using a bash script with curl I'm writing a bash script and one of the tasks which needs performing is to connect to an FTP server via curl and find the name of the last modified .zip file. The name format of the files we are looking at is MM_DD_YYYY_ALL.zip....
{ "language": "en", "url": "https://stackoverflow.com/questions/7568126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to draw a line to join buttons in relative layout of Android App I am using Eclipse to write an Android app that has a column of buttons, and when one is pressed it will open another column of buttons next to it that corresponds to the button pressed. What I would like to do is add a solid line that connects the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jsFiddle works. Implementation on webpage doesn't? This js fiddle runs with no errors or problems: http://jsfiddle.net/3j45B/2/ However, when embedded within http://www.zabb.co.uk/untitled6.html it does not work? Any suggestions please? EDIT: Further to your comments and suggestions below a solution has been found,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unknown syntax error on creating a simple widget in Tkinter I was following this tutorial (http://sebsauvage.net/python/gui/#add_button) on making widgets with Tkinter. I have been making sure to follow it very carefully but, when I run it now in step 10, I get an "Invalid Syntax" Error. Here the code: import tkint...
{ "language": "en", "url": "https://stackoverflow.com/questions/7568139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }