text
stringlengths
8
267k
meta
dict
Q: Would this LINQ statement ever return null? Given the following C# code: List<string> source = new List<string>(); IEnumerable<string> values = from value in source select value; Will values ever be null or will it always return an empty sequence? A: Yes it CAN return null if you have an extension method defined ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: handle security popup using vbscript (without QTP/Selenium) I am automating an application login using vbscript. I am using the code - Dim objIE Set objIE = Wscript.CreateObject("InternetExplorer.Application") objIE.Visible = True objIE.Navigate "https://portal url" after this, there is a security pop up which ask...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is string::c_str() no longer null terminated in C++11? In C++11 basic_string::c_str is defined to be exactly the same as basic_string::data, which is in turn defined to be exactly the same as *(begin() + n) and *(&*begin() + n) (when 0 <= n < size()). I cannot find anything that requires the string to always have a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: Converting Timestamp value in a prticular Date Time Format I have a problem that I have a timestamp value which is coming from JSON parsing, I am converting that timastamp in Date Time Format which is desired, all is working fine but month always return 1 in any case. means If timestamp contains aug month but it ret...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to show a WinForms Modal Dialog from a WPF App Thread I have a WPF application. The main window of this application has a button. I am opening a WinForms modal dialog in a separate thread when this button is clicked. The trouble I am having is that the dialog does not behave like a modal i.e it is still possible...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Application cache: strange behaviour on iPad I'm making a website where a user can say which items he wants to cache. Based on this, a manifest file is generated. By doing this the user can still browse in the website when he is offline. This is all working fine in google chrome. But on iPad it's not working as it s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: cross compile issue with simple hello program Background : Trying to setup a cross compiler environment for arm target (TQ2440/Mini2440) On HOST running Red Hat: * *Wrote a simple hello program *gcc -o hello hello.c *compiles successfully *./hello *displays the hello world message *rm hello *arm-linux-gcc -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: remove date from DateTimePicker for Compact Framework http://msdn.microsoft.com/en-us/library/aa446530.aspx but there is no possibility to null date or to delete date from text field. how to remove date from textfield or how to connect TextField with DateTimePicker A: To display blank you can set it as DateTimeP...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cursor with result from multiple content providers - Android I want to query two different content providers: MediaStore.Images.Media.EXTERNAL_CONTENT_URI and MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI First I need to query the "MediaStore.Images.Media.EXTERNAL_CONTENT_URI" so that I can get a cursor to all i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: DataGrid editcommand in UpdatePanel My page uses Multiview with 3 views. the third view for searching and has a datagrid in updatepanel, in datagrid has editcommand column. when user click edit on edicommand comlumn, the activeviewindex of multiview set to 1, but it throws and postback error. "Invalid postback or c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Embed images in library project using Monotouch 4.2? I have a library project that contains a couple of UIViewControllers that are shared across various applications that make use of the libray. One of the view controllers needs some images. They are located in my myLibrary/Controllers/TestController/Images. Which b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is a .aspx page loading twice when I click a button on the page? When clicking on a button in a .aspx page, the page loads twice. In the first load, the page's IsPostBack property is true and on the second load, this property will become false, which is a problem for my website. Does anyone have any ideas why it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ajax and Jquery in Symfony I'm a beginner in Symfony (version 2), I have a project achieved with plain basic PHP, and now I'm redoing my pages in dealing with Symfony framework, and arrived to my jquery ajax functions, surely, things gonna be different, I used to do like this: $("#div").click(function(){ $.post("t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: issue with virtual keyboard scrolling in BB LWUIT I have done a j2me application when I port it to Blackberry using LWUIT framework I have a problem in virtual keyboard as it does not automatically scrolls because of which the user is unable to view what he is typing in the text field . Can help me solve the issue. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails, Nginx and PostgreSQL - 502 Gateway Errors I'm running Ubuntu 11.04 on Linode and I'm trying to get Rails 3.1, Nginx 1.0.6, Passenger 3.0.9 and PostgreSQL 8.4 set-up and running. I've managed to deploy my application and it all appears to work perfectly but after a few successful HTTP requests the server begi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update an Image uploaded to SQL Server in ASP.NET MVC 3 I have successfully uploaded an Image on my SQL Server using ASP.NET MVC 3 C#. Also I have managed to successfully displayed/downloaded that image in the Index view. However, the problem occurs when in the Edit view of the data, If the Image has been changed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django-nonrel on Google App Engine API creation I'm developing an app that interfaces with an iPhone app via an API. I am building it on Google App Engine, using django-nonrel. I'm looking for a solution that allows me to build read-write APIs that perform CRUD operations. I've tried django-tastypie, but it doesn't...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to access a graphic that has been added to the stage in Adobe Flash Pro (CS5) I added a graphic to the stage and I need to access it from actionscript, any idea how to do that? A: You need to convert your graphic to a MovieClip: * *Click on your graphics *Press F8 *Click OK *Click on the newly created Mov...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Check if Datatype from schematable and user data match I'm having a little problem with checking user inputs. I want to check if an input is of a "given" datatype. The problem is in the "given" as you might have guessed :-) I get an SQLschematable via a Datareader. The database can be exchanged, for the program shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamic URL change without page reload Is there a way to change URL of a website without reloading page? (Without "#" or Javascript.popState() event ). For example : if I click a button change URL from / to /new_url with no page reload. If is it possible, I'd like to use pure JavaScript, and I need cross browser sup...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with xml parser (foundCDATA not always working) I'm developping an app which get data from a web xml file. I'm basically following this reference, but with the function - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock because the xml from the web has the following structure: <?xml versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Character Issue When Run Through The Release Process I'm using MSBuild to release my .net code and update the database. I'm having an issue with certain characters. The following scripts work fine when run in the SQL management studio. However when they are run a part of the release process the first two lines s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Internationalization with PDFBox I have been using PDFBox in my project to create pdf files containing som data from my program. It has been working great up till now as starting to add new languages starting with japanese. I have tried this: font = PDTrueTypeFont.loadTTF( doc, new File( "fontFile.ttf" ) ); It seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: can get a username and password match from mysql db as the title suggests I can get a match on password and username when trying to retrieve a user from my database. When I first create a user I use this method that also hashes the password: mysql_select_db($user); $username = $_REQUEST['username']; $password = $_RE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQLCODE=-723 during insertions in DB2 I have a series of insert statements in my code. The table has few triggers to update last updated date and time. Certain insertions are succeeding while other similar inserts into the table fails with DB2 SQL Error: SQLCODE=-723, SQLSTATE=09000, SQLERRMC=CMSDB.ITNPR...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Storing Array elements in an order specified by the user I'd like users of my application to be able to rearrange a number of elements in an array into an order of their choice, while maintaining the original array structure. What's the best representation of this data? I've considered using decimals (e.g when movin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which python to install if I have an Intel Core i7 and 64-Bit Windows 7? I have to install Python 2.5.4 from http://www.python.org/download/releases/2.5.4/ which is required for the pcraster program. However there are three python choices For x86 processors: python-2.5.4.msi For Win64-Itanium users: python-2.5.4.ia...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: HashMap absolute capacity I 've been doing some performance checks with one HashMap object in my code and discovered that it slows down adding objects inside at around 2000-2400 objects. In fact when it arrives to 2400 objects circa, it remains blocked and doesn't admit more entries. Is there a limit in this kind of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to host a multi-tenant software on Django? Imagine you have a main django project which hosts software for different tenants -> The software would be hosted on -> www.tenantdomain.com The main project is hosted on -> www.ourdomain.com Supppose the software is accessed at this url -> www.ourdomain.com/tenant_id/h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript window.location in new tab I am diverting user to some url through window.location but this url opens in the same tab in browser. I want it to be open in new tab. Can I do so with window.location? Is there another way to do this action? A: Rather going for pop up,I personally liked this solution, mention...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "205" }
Q: How to avoid numeric exception : overflow in Maple 14? Maple 14 has isprime command which testing whether number is prime or not. It's allowed to write expressions as input data so we may write the next command : isprime(2^(3^43-5)-1); but I get the following error when trying to run a test : Error, numeric exce...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: browser close event in GWT/GXT? Hi I am using EditableGrid. i have a requirement as below, when user edits any record in grid and moves away without saving, then i need to alert the user saying that he has some data to be saved. and user should be given yes/cancel options. currently i am using below code, but the pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: $ ssh -T git@github - permission denied (public key) I'm first time GitHub user. I installed Git for Windows, following instructions: http://help.github.com/win-set-up-git/ Came to the point of generating a public ssh-key. Opened Git Bash. Generated the key, saved it on github.com in my SSH Public Keys, now trying s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: is there a tool to check unused uses in delphi? Possible Duplicate: How can I identify and get rid of unused units in the “uses clause” in Delphi 7? is there a too that can check for unneeded uses units, that expand the project beyond its needs? example we have unit a; uses b,c; procedure aP; var bI:Tb; begin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: opencv android sample error I'm having trouble running pure native OpenCV app on Android sample that is described here. "Tutorial 2 Advanced - 1. Add Native OpenCV" I'm able to compile it properly, but it doesn't install on virtual device. It says invalid apk file. My Android Manifest, default.properties specify vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: when should I use JFrame.add(component) and JFrame.getContentPane().add(component) in java Is there a difference between them and are there any conditions in which one should be used instead of the other? A: From what I understand from Javadocs, JFrame.add calls the latter. It is a convenience method to get around ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Pass a function as an argument to another function, by reference (C++ rookie) I am having trouble passing a function as an argument to another function. I know this has been addressed already here, but I would appreciate a little more help because I'm having no success. I have tried to adapt this example to my nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Teamprojects in subfolder not as root I try to set up a new structure to a new TFS repository and I try to map team projects to subfolders in a structure like this: Root * *Trunc * *(TeamProject)Proj1 * *SubProj1 *SubProj2 *SubProj ... *(TeamProject)Proj2 * *... *(TempProject)... *Global *Release ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between this.Dispatcher.BeginInvoke() and Deployment.Current.Dispatcher.BeginInvoke() methods in Silverlight I know Dispatcher.BeginInvoke() is used to execute some piece of code in the UI thread.Recently I noticed that there is another way to get the Dispatcher instance by using 'Deployment' class. I wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to remove special characters from NSString I am doing push notification application and i am getting device token <8c09362c 82d6b735 c82fb2d9 8070db6f f73419b3 9da15e34 72aba570 6fbf5a45>, I got that device token from NSData, have succesfully converted into NSString, however i only need to remove first and last ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Provide UIImagePicker with your own UIImage. I'm trying to get a downloaded photo that was saved on the device (not photo library), and put that UIImage in a UIImagePickerController so i can crop it (using allowsEditing), as when i would choose it from my own Photo Library. Does anyone know if this is possible in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with eval() in javascript could somebody help me out in understanding this javascript piece of code : eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)));} Sorry for irritating you guys with least details. Actually I got the code from - forum.fusioncharts.com/topic/8012-fusio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: build error in eclipse(helios) for dynamic web project I have a simple dynamic web project in eclipse(helios). In this I have one jsp which ask for uname and password and it goes to a servlet which will just print the uname. I am using Ant to build the war and deploy. I have done below settings for path: * *ANT_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Select into statement where source is other database How to copy data from one DB into another DB with the same table structure and keep the key identities? I use Sql Server 2012 "Denali" and I want to copy some data from a Sql Server 2008 DB. The tables I have are exactly the same but I want the data from the old D...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do databases sort Chinese characters? I am currently writing a web app and will need to do some ordering on a set of Chinese characters and I want to know whether Chinese characters are sorted by databases, if so how does it get sorted? For reference I will be using PostgreSQL. A: PostgreSQL sorts text using th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: mvc2 html.textbox from model, dynamically update as marker dragged before saving I am trying to populate <%: Html.TextBoxFor(model => model.FaveRunLatLng1)%> dynamically as a user drags a marker around a map. I need to use this value as the map is initialized with the FaveRunLatLng1 value. However, when the user dra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multipage SVG with R When using layout in lattice::xyplot with trellis.device you can get several pages in a PDF: trellis.device(pdf, file="myfile.pdf") data(mtcars) xyplot(hp~mpg|gear, data=mtcars, layout=c(1, 1)) dev.off() I would like to use the same approach to get a multi-page SVG. I have tried cairo::svg, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery IF and 'Radio' value question I have a code that doesn't gives you to submit the form until all the fields are filled. Now i have one field that is hidden unless the user checks the "client" option on the radio below it. I need to know how can i check if the radio value is "client" and only then to force them...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Java/Android scientific number to html I'm a newbie at programming and maybe there is a solution to this problem I just don't know about. I have a TextView with values. As some of the values are really small they are shown as scientific numbers. But I don't like the 2e-02 expression I'd like to convert it to an Span...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to suspend gif animation when the Button is deactivated and how to align center vertically the gif relative to a LWUIT Button? I put animated gif into the Resource Editor. I created a Button based on this gif Image , and the Button has also a text : r = Resources.open("/resources.res"); uploadImg = r.getImage("u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Binding list of objects to ListView with a UserControl inside, problem I have a ListView containing a UserControl with a public property MyPublicProperty of type MyType. public MyType MyPublicProperty{ get; set; } I bind to ListView a list of items of MyType listView.DataSource = (List<MyType>) items; listView.Dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FBGraph API not coming in land scape mode I am developing an iPad application in which Login is done using Facebbook graph API.My App supports landscape mode. I have integrated FBGraph API , but it is not coming in landscape mode.Please suggest me how to show my facebook login view in landscape mode. Any suggestion...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Still cannot bind to my android service I am quite new to Android and I am porting a C# program to android. Most of it is going fine but I have a long running problem of not being able to bind to 1 of my services. I wanted to start and bind to the service to receive sendBroadcast(intent) from the service. The intent...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Re-releasing an iOS app in other countries? I have an app that I pulled from countries outside of the US due to a major bug regarding reverse geocoding. I have fixed that bug and resubmitted for review by Apple, but I'm curious if users in other countries that already purchased the app will get the update automatica...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WPF ListboxItem and ContextMenu I have code like this: <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Vertical" ContextMenuService.ShowOnDisabled="True"> <StackPanel.ContextMenu> <ContextMenu> <MenuItem Command="Delete" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Scala^Z3 (Z3 Version 3.2) and parsesmtlib2string(...) not working While trying to implement a test using parsesmtlib2string I hit an error: println("Hello World!"); var smtlib2String = "" smtlib2String += "(declare-fun x () bool)" + "\n" smtlib2String += "(declare-fun y () bool)" + "\n" smtlib2String += "(assert (= ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS and menu active state How would I go about setting the menu so that the item to the right of the selected/active menu item does not have a background image. Example with no selected state, just to show how the small 3px width separator, is added ul li { background: url(nav-seperator.gif) no-repeat right to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sencha touch animation problem - after slide animation is completed it is still present on the screen Here is my animation code: Ext.Anim.run(loginform, 'slide', { out: true, direction: 'left', au...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using SOAP to connect to a web service, please tell me what am I doing wrong? I am trying to connect to a web service using PHP/SOAP and for some reason I can't. I think there might be a problem in these lines: $client = new soapclient('http://212.199.64.197/LeadCollector/LeadCollector.asmx'); $client->debug_flag=tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I optimise this mysql query? SELECT MAX( CAST( auction_price.Auctionprice AS SIGNED ) ) AS `max_auction_price` FROM auction_detail LEFT JOIN auction_price ON auction_detail.auction_id = auction_price.auction_id WHERE auction_detail.season = '2011' AND auction_detail.sale_no = '26' AND auction_detail.area LIKE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Listen to page save event in a Chrome extension and Firefox addon I am in the process of developing a plug-in which needs to be notified when a web page is saved. I have been browsing the chrome extension API for a long time now and cannot seem to find a solution to this. Does such an event exist and is it possible ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Glazed Lists EventTableModel class stroked in NetBeans I try to use Glazed List to create dinamically changed TableModel. All works fine, but class name EventTableModel is written strikethrough text (I use NetBeans IDE). I watch class implementation - no @Deprecated annotation here. Has anyone encountered this probl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to confine a UIWebView to a specific facebook user page I'm creating a UIWebView to load a facebook page of a specific: NSString *urlAddress = [NSString stringWithFormat:@"http://www.facebook.com/%@",self.userID]; //Create a URL object. NSURL *url = [NSURL URLWithString:urlAddress]; //URL Requst Object NSURLRe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why does Qt use qint64 for data lengths and offsets instead of quint64? QIODevice and the related classes use qint64 for positions and sizes which is a signed datatype. Is there a need to express negative values? Because otherwise the 8 bytes of such a type could be used to express greater sizes, couldn't they? A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: HTML table, clicked row's number Is there any way to find out row number where I recently clicked, in HTML table? I need this behavior to find out whether use clicked on top and bottom of the currently selected row. I suppose the algorithm will be: * *select one row *select another row in same table *find out...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I attach a SOAP Header to my C# client? I have my web service set up to recieve a soap header of name "TestHeader" with param "Name" How do i create a soap header in my client AND send it to the service? So far I have created it in my client. public class TestHeader : SoapHeader { public String Name; } I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Django URLs regex I need you help to validate a regular expression link in Python. Here's how should the link look like: http://www.example.com?utm_source=something&utm_medium=somethingelse And I've tried something like: r'^\?utm_source\=(?P<utm_source>[-\w]+)&utm_medium\=(?P<utm_medium>[-\w]+)/$' But this doesn'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: setting up apache behind a forward proxy I have an Internet connection which is behind a forward proxy.I have to use the proxy server ip address & port No. to connect to the internet.I have installed apache web server in my machine.The apache is configured to use ProxyPass (meaning - it has to fetch documents from a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Haskell - Merge Sort, sorting words and numbers I've written a merge sort in Haskell, it works when using numbers but not with words, and I thought it would. I just get "Not in scope" when using words and letters. What am I doing wrong? Here's my code: merge :: Ord a => [a] -> [a] -> [a] merge [] ys = ys merge xs []...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ShellExecuteEx returning 42 in hInstApp when expecting a 31 (No file association) When using ShellExecuteEx in Delphi 7 to open a file using a verb, I always seem to be getting 42 back as a result in hInstApp, even though I'm expecting to get a failure and a 31 result, as there is no file association. I am moving fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problems with custom delegates This is one of my first times trying to write my own delegates. I am using iOS5 Beta 7 and writing my delegate function. What it should do is that a table (MyTableController) loads a list of TV Channels. This is a dictionary containing the key "logotype", which is a URL to the logotype...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: string "==" in java check the reference, why this code return true? Possible Duplicate: If == compares references in Java, why does it evaluate to true with these Strings? String comparision with logical operator in Java public static void main(String[] args) { String a = "ab"; final String bb = "b"; Strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to read data from bluetooth barcode scanner to android device using bluetooth ? In my project i have to read barcodes using barcode scanner through bluetooth. i.e; i have to establish a connection between android device and barcode scanner through bluetooth. Can any one tell me how to read values from barcode...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: floating point number Possible Duplicate: extracting mantissa and exponent from double in c# How do you separate the fraction and the exponent in a floating point number? In C++, I was able to use a "union", but unions are not allowed in C#. union {fix lc; long double cv;} ldblun; A: BitConverter.DoubleToInt6...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: static img filename link in database-text, or "replace" function in database / asp.net.( together with urlrewrite) A site I am currently working with allows users to upload images onto a page together with some text they write. like a blog or logbook. I use tinymce to let them edit the text and add images. due to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a FxCop (Code Analysis) custom ruleset by combining existing rules Please let me know , how can I develop a FxCop (Code Analysis) custom rules assembly by combining existing rules such as that custom rules assembly will include rules from "Microsoft Basic Correctness Rules" and "Microsoft Security Rule...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Developing a CMS from scratch or using Zend Framework? I want to ask if it is better to develop a CMS from scratch, making a good CMS core framework, or should I develop my CMS with the Zend Framework. I have experience in working with Zend Framework, but feel like it will not have a good success because of the larg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Server.MapPath in jQuery JavaScript when deploying on Hosting Server I am using WebMethod on my ASPXpage and I call it from jQuery on the same page like this: $.ajax({ type: "POST", url: "Mypage.aspx/GetSomeData", contentType: "application/json; charset=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity Framework (4.0) - Adding new records with Foreign Key We have a table "Issues" with a foreign fey to the "Contacts" table". Ideally when a new Issue is added the user should select the Contact from a drop down. However, in some cases the contact may not already exist, so the user can add minimal new contact d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Cocos2d Xoom Image Pixelation Issue I am working with Android Cocos2d Ref. (http://code.google.com/p/cocos2d-android-1). All the things working fine with Standard Device, Samsung Tablet with (1024*600 Resolution). Problem starts with Motorola Xoom (1280*800). Is the Cocos2d not supporting Image Resolution hi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: inject into before serialization wcf I want to use IDispatchMessageInspector and BeforeSendReply method to change replay before return to client but it is too late cause message are serialized then. It is another wcf interface or other way to change data returned by service but not serialized yet? I want to use data...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Routing in Symfony I have two links: http://www.mypage.com/phone/show/id/1 and: http://www.mypage.com/phone/show/id/2 I would like makes links for this http://www.mypage.com/linksone and http://www.mypage.com/linkstwo Is it possible to do that with Symfony routing system? linksone: url: /linksone param: { mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is ajax faster than targetting in iframe I have used both ajax as well as targetting in iframe. Can anycody tell me which is faster. A: From this ajax plugin: malsup form, you can try both ajax form, then decide which one better suits you and iframe for the same form, here is an example: $("#your-form-id").ajaxFo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Facebook Connect open the Facebook App i am trying to implement the facebook connect on my iphone App. after the first confirm the app stay in the facebook app and dont return to my app. i call the dialog methood from the view controller with a button but i want to post a message about the app when the user logs in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to stop double automatic conversion on overflow? I have a code in which i am extracting strings from environment using getenv, parsing them into numbers using strtod. If user enters, 213.123. Then 213 and 123 will be individually fed to a long type. long a1 = 213; long a2 = 123 The problem i am facing is, if us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JUnit assertions : make the assertion between floats I need to compare two values : one a string and the other is float so I convert the string to float then try to call assertEquals(val1,val2) but this is not authorized , I guess that the assertEquals doesn't accept float as arguments. What is the solution for me i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: FormsAuthentication with enabled slidingExpiration is not returning a cookie in each request. I have a web application with FormsAuthentication and with slidingExpiration="true" in my web.config is not returning a cookie in each request, but when I see the HTTP transactions, I cannot see the webserver returning the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Simple if statement question for record not found I've got the following statement: @all_comments = Comment.find(@task.id) The problem is, if there are no comments it throws a record not found error. How can I get this to fail silently, so it just returns nothing? A: what you are trying to do can never work. The l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Web Content-Management System ... Typo3, Joomla, ... isn't there any better solution out there? I tried many Content-Management Systems ... still being frustrated. I guess this topic comes up every once in a while. Here is it again. Typo3 is too complex, Joomla is only based on articles and doesn't support complex t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I generate unique usernames on a shared database concurrently? I need to generate account names automatically. They will be used in user software that will access my service, so they are not necessarily pretty looking. I guess any alphanumeric string long enough will do. Assume I already have an algorithm tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Have problem with multi-line string in javascript This works: alert('foo\ bar' ) But this is causing syntax error: t='test'; alert('<tr><td><b>' + t + '</b></td>\ <td></td><td>') error is: SyntaxError: unterminated string literal They two should be the same thing, why the first one w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Implementing multifile upload from stratch I want to implement a multi file upload function for my website. When I googled for tutorials on it, I found many plugins but nothing which can guide me about how to develop it from scratch. The project I am working on is for my learning purpose so I don't want to use any p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML5 Boilerplate Build script - HTML in subfolders and relative links to CSS/JS problem My project is using HTML5Boilerplate and contains subdirectories with HTML files that reference /js and css/ in the main root folders. Example: /article/xxx/index.html /article/yyy/index.html These .html files have relative path...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Embed thirdparty JAR using BND I have an OSGi bundle that is built using ANT and the classic BND tool. My bundle uses a library (JAR) internally, which is not available as a bundle within my OSGi container (Apache Felix). So, I am trying to embed it within my bundle, for access at runtime. How can I embed such a li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Aria-selected attribute for row selection in a grid aria-selected attribute is used to indicate that a row in a grid is selected, When I use the jaws keys to navigate to selected row in the grid, its not being read as selected. Any clue/suggestion to make this work right? I am using the latest FF and Jaws 12 A: Acc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to release CGImageRef correctly? My Code like this: CGImageRef ImageCreateWithFile(NSString *filePath) { if(NULL == filePath) return NULL; NSData *data = [[NSData alloc] initWithContentsOfFile:filePath]; if(NULL == data) return NULL; CGImageSourceRef isrc = CGImageSourceCreateWithData((CFDataR...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Django-Admin.py not displaying models 'Each object given an Admin declaration shows up on the main index page' This line refers to the fact that a simple class Admin: pass declaration in a django model automatically generates the change and add interface to the Django admin homepage...is this functionality still a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to make `fill-paragraph` stop at the end of a sentence? It is sometimes desirable to start each sentence in a paragraph on a separate line. For instance, this makes it easier to diff large text documents, because a change in one sentence will not affect the entire paragraph. Some markup systems (e.g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to add mysql JDBC driver to Eclipse so it can be used by SQL Explorer? I would like where am I supposed to install MySQL JDBC driver in Eclipse so it can be detected and used by SQL Explorer. Just to be clear, if possible, I would like to copy the MySQL J connector to somewhere inside Eclipse. Also a solution wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Default initialisation creating an Array of struct vs class objects I understand that struct is value type and class is reference type in .Net. I would like to know if there is any better solution here. Example, public struct Holder { public double Value { get; set; } public Holder() { this.Valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7554328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }