text
stringlengths
8
267k
meta
dict
Q: Setting optional elements in mapping in Biztalk? I have a mapping with a input-schema and a outputschema. If I send a xml-file with two fields that are not provided with the schema the element fields are written out, but with empty values. I would like to that it didn't write the elements at all in the output file. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pushviewcontroller not working because self.navigationController is null I have a big problem: on method didSelectRowAtIndexPath I always get null to self.navigationController. I have a UIViewController that contains a UIsegmentedControl and a subView. On this subView I add the controllers for each segment selected....
{ "language": "en", "url": "https://stackoverflow.com/questions/7632413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set Content-Length when object is passed as response I have JSON object in my ASP.Net app which I pass to response using code context.Response.Write(jsonObject) The problem is that I need to set the Content-Length header to indicate response size and I do not know how to count it. How do I get filesize of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What does this specific C++ code mean? I have this code: Kuvio::Kuvio(Piste& paikka, string& nimi) : paikka(paikka), nimi(nimi) {} Do not care about the words. I'd like to know is that a function definition, a function call or what? I'm not familiar with C++. A: It's a definition of the constructor of class Kuvio ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: overload array operator with templates and pointers The following code compiles (without warnings) on both clang++-2.9 and g++-4.6. However, the g++ binary Seg Faults, while the clang++ binary runs as intended. What is the proper way to access template class data members through pointers when overloading []? Here's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JAXP - debug XSD catalog look up I have a situation where we want to validate an XML document held as a byte stream in memory, against an XSD placed amongst others in a file system. We would like to avoid having the file name explicitly mentioned in the XML file but instead tell the XML parser to use a catalog of o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Constraint-based unit testing framework for Python Is there a constraint-based unit testing framework for CPython (much like my beloved NUnit) or will I have to roll my own? EDIT: This is what I mean by constraint-based: http://www.nunit.org/index.php?p=constraintModel&r=2.6 i.e. instead of: assert(z.Count > 5) it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to avoid error message window we're having an application on server instance and quite rarely, but we have out of memory exception (program is not leaking, just instance is quite small and it operates with quite big amounts of data). That would be not a problem, as we monitor processes on that server inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is this possible in C++? toString(ClassName* class) I'd like to use toString with class argument, but for some reason there is an error. The code is: Animal.h #include "Treatment.h" #include "jdate.h" #include <vector> class Animal{ protected: int id; double weight; int yy; int mm; int dd; d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you use "git --bare init" repository? I need to create a central Git repository but I'm a little confused... I have created a bare repository (in my git server, machine 2) with: $ mkdir test_repo $ git --bare init Now I need to push files from my local repository (machine 1) to the bare repository (machine 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "368" }
Q: How to iterate through known tables and unknown columns to get the MAX date per SSN? I am to create a function to read a table containing some 65 tables and find all columns containing dates, which are stored mostly as int, sometimes as char or datetime. Column names are unknown but I assume ending in '%Date'. I nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to post premium and free version of a game to game center? I build an app with two different version. One with add integrated into it and another with premium version(without add). How to post my app in to game center. A: They have to appear separately on game center if they are two different apps. This is why ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MS Word extensibility: VBA macro versus .Net VSTO? One of my customers asked us to develop a "VBA macro". However, in the 2010s, it seems weird to me to still use such outdated language, and I'm thinking about trying to convince the customer to use VSTO dev instead. However, as I'm new to both worlds, I need help to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to assign height to data table element using jquery when we resize window I am using jquery data table for displaying data. On body onload its sets height using following code <table id="RequestsTable" cellpadding="0" cellspacing="0" border="0" class="display" style="width:100%;"> In script i have write down f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Use of g key in vim normal mode In vim's normal mode, the g prefix is used for a number of commands. Some commands go somewhere in the document, but other commands deal with file encodings and swapping upper/lower case letters. * *ga - show character encoding *10gg - go to line 10 *gg - go to line 1 *gH - star...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: Encoding error while writing data from excelfile to database (mysql) I get this error when writing to database: Encoding::UndefinedConversionError "\xD0" from ASCII-8BIT to UTF-8 After googling around a bit the problem seems to lie in ruby 1.9.2 string handling but no real solution found. I use magic_encoding to fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a C++ implementation of Node.js Net API? Node.js has a very good and well thought Net API. I wonder is there a good C++ only implementation of that API as for example LuaNode do for Lua? A: Take a look at node.native - attempt to implement api similar to node.js core lib, but with c++11 (and evented IO is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Handling Device error with JSON I'm using rails 3 and Devise and i'm trying to restrict some actions to ed in users. REST calls in my application are done using JSON. When i have to be logged in, Device returns this: { "email": "", "password": "" } How can i change this message to contain a custom JSON messa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery UI CSS not overriding I have some anchor icons that inherit from .ui-widget-content and .ui-state-default. The background-position of .ui-widget-content .ui-state-default is overriding the background-position of .ui-icon-play. When the anchor icons only inherit from .ui-state-default, the background-position...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UITabBar standard icons location I want to get standard xcode icons for UITabBar. Does anybody know where location of this icons? Or give link to same, FREE and Retina display icons please. A: You can use the UIKit Artwork Extractor to get the icons, but note that those belong to apple and you would deploy them as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How started with google docs in asp.net? I have a task to implement into web asp.net project (web site) a google docs solutions for manage with documents like word/excel. Now I read about Google Documents List Data API v2.0 on http://code.google.com/intl/en/apis/documents/docs/3.0/developers_guide_protocol.html#Uplo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Query works but equivalent C# query doesn't. . I've got a not particularly complex SQL query that returns exactly what I want when run in Server Mgt Studio, but when I run it in C# the DataGrid comes up blank. (And yes - hostnames sanitized, I don't just have a terrible naming scheme.) Hopefully someone with sha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: modx htaccess links are not working Hello MODx developers, I am using MODx revolution. I have just transferred site from one domain to another. as it was a IP based server i have created virtual host with the same name it had previously. On previous server the files were located at the root but in new server files ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Magento Filter By Relative Value I would like to filter a collection by relative value per that row. For example, SELECT * FROM table WHERE column_1 > column_2 The only thing I know how to do in Magento would be $q = Mage::getModel('table')->getCollection() ->addAttributeToFilter('column_1', array('gt' => ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Create IIS Application from Code I'm working on a web service installation. One of the things I need to do is creating a new virtual directory under the default web site. The problem is I need to set a different application pool for that virtual directory (please don't ask why...these are the requirements and nothin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android spinner prompt text not showing The first year from the data array is shown instead of the text from prompt in my spinner. I tried adding the prompt in XML, but I also tried from code. Furthermore, it gives me a "resource not found error", when adding the spinnerSelector attribute. XML <Spinner android:i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Delphi XE2 background IDE compiler unable to find source path I just bought XE2 version, installed the update 1 ISO, and made my Open Source projects compile with it. In fact: * *I added the source code paths of the library to the general settings IDE (for all platforms I use, i.e. Windows 32 bit and 64 bit up to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: MySQL many-to-many complement set I've been looking all over the net and asking people for guidance but nobody seems to know the right (relatively fast) solution to the problem: I have three tables, classic many-to-many solution: * *entries: id (int), title (varchar[255]), content (text) *tags: id (int), name (v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to create your own properties for element in SilverLight Can someone help me with this question?) In My XAML I have Listbox element. I want to add my user property into it(in my case - ConnectorStyle) My XAML code: <ListBox ItemsSource="{Binding Nodes}" ItemsPanel="{StaticResource CanvasItemsPanelTemplate}" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VoIP + Ruby on Rails web application I have a project written in Ruby on Rails 2.1. There a login & password needed to pass to my site (user & admins i have). Simple web-site. But i want to create button "CALL ME". If i click on this button user can talk with (for example) admins. What i need for this? Maybe some t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Saving client address to response again and again How can I save the client's complete address in asp application? Actually I want to send a response multiple times to same client without new call request by him. I don't want to end the response, when he called first time a service.
{ "language": "en", "url": "https://stackoverflow.com/questions/7632520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Correct behavior of OrderBy I have encountered something that puzzles me and I would like to see your opinion on the matter. It turns out that linq to sql and entity framework threats consecutive order by's differently. The following code is used just for example and I am not claiming it has any sense at all: Linq t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Catch Fault Exception in Silverlight with Channel Factory I am trying to call a WCF service from a Silverlight client using channel factory as per this link. Working with channel factory is something new for me so please bear with me! Everything mentioned in the article works just fine. But now I am trying to implem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL: How to make a query that return last created row per each user from table's data Consider following table's data ID UserID ClassID SchoolID Created 2184 19313 10 28189 2010-10-25 14:16:39.823 46697 19313 10 27721 2011-04-04 14:50:49.433 •47423 19313 11 27721 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PyQt4 Application Launch Alright, so I have two applications that won't launch now, a important one and a test one, the test one used to run, but now it is saying: AttributeError: 'StartQt4' object has no attribute 'filename' So, I have no idea why that is happening, and that only happens when I try to use either th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: git push failed with large repository (MOVE *some commit* failed,aborting (7/0)) We are using https protocol for git (to get synchronized with our wiki username/password), and try to push the local git repository to a bared remote repository with sslVerify = false. It works perfect with small repository but failed w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add new items to combobox which is bound to Entities? Design class which is generated by C# : // // usepurposeComboBox // this.usepurposeComboBox.DataSource = this.usepurposeBindingSource; this.usepurposeComboBox.DisplayMember = "Name"; this.usepurposeComboBox.FormattingEnabled = tru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: JSON Parsing with GSON I have the following Json string.How to parse this kind of Json using Gson in Java?Any help would be appreciated. { "acclst":[{ "accountInfoData":[{ "userId":9, "rid":"1-Z5S3", "acnme":"acc_1234.", "actpe":"Fabricator / Di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Converting screen coords to world coords I'm working on a conversion matrix for a map application I'm currently writing. I have a point in screen coordinates and the points in the target coordinate space, and for some stupid reason I cannot seem to figure out how to find the conversion matrix the converts the points...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sublime Text 2 - How to open a file from open folders using the command pallet? I want to open a file using some kind of fuzzy searching, and I'm pretty sure I've seen this functionality inside Sublime Text, but for some reason I can't find any mention of this anywhere. I want to open the command pallet and be able ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: HierarchicalDataTemplate for very complex layout Im making a herbal database program and I am having troubles setting up HierarchicalDataTemplates for my main data class. Tree layout wanted: * *Glossary * *Category1 * *Letter (Reduces overall list size) * *Entry * *Note1 *Note2 *Herbs * *Botanica...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Referring to a value in a dropdown list in javascript I am building validation for my forms. I have covered the input text fields with the folowing code: function validateForm_id() { var ctrl = document.forms["form1"]["id"]; var x=ctrl.value; if (x==null || x=="") { document.getElementById('id').style.backgroundColo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTTP post and wininet I implement sending POST request by using the wininet library. I tried to use the different flags both in the HttpOpenRequest and in the PostInitWinInetHandle functions. The generated request contains the Cache-Control: no cache header always. Does HTTP protocol allows sending POST request wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to filter anchor tags that were received from the jquery .each() function I have a div that contains allot of anchor tags. Some of them have a img as the in side of the tag. I need to get all of the "a" that have regular text in them not a image tag or any other HTML tag. How can this be done with jquery. To ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to display korean text on Textview? I want to display Korean text in my TextView. It should display proper Korean language but instead it's displaying junk chars. Any one know how to fix this? Thanks in advance. A: Android use a Unicode font, so it can display Korean character normally. You can try change your...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linking Eclipe projects together using 'Deployment Assembly' and 'Build Path' options I have a simple java project with this basic structure: * *IncludeMe * *src *deploy *siteSpecific -> site1 -> site2 -> etc... I also have another project which I check out as a Dynamic Web project. I add it to a tomcat7 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sitecore Import language file feature - does it create language versions? Can anyone tell me what happens if I export a language file, rename all the language nodes to a different language (e.g. from en-US to en-GB) and then import it? Are new language versions of the relevant items created? Or is content only impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to add style on html tag on android heres my code: String tempStr = "The <b>quick</b> brown fox"; tvView.setText(Html.fromHtml(tempStr), BufferType.SPANNABLE); What i want is to add a color to the tag. Tnx in advanced. A: Hi you can use like this. you can set any style which is use in css: String html = "<h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook like box won't work with Facebook connect I have both like box and connect on the same page and I am trying to get the html5 or xfbml code of the like box to work with Facebook connect but it won't. Only the iframe code will work but the thing is I can't customize anything in iframe. Any advice? A: Have yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Memory does not go down when I press GoBack When GoBack I call function Dispose() in private void Dispose() { ImageBrush brushRoot = LayoutRoot.Background as ImageBrush; if (brushRoot != null) { ((BitmapImage)brushRoot.ImageSource).UriSource = null; brushRoot.I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting realtime output from ffmpeg to be used in progress bar (PyQt4, stdout) I've looked at a number of questions but still can't quite figure this out. I'm using PyQt, and am hoping to run ffmpeg -i file.mp4 file.avi and get the output as it streams so I can create a progress bar. I've looked at these questions:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: how to optimize code for automatic Mapping? I would like to use something like AutoMapper for the following code instead of manual mapping. I have two tables User and Role and both mapped with RoleID. now problem is if i am getting records from Users then it will gives me only RoleID instead of RoleName. so i tried...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The best way to read SQL Query using .NET and Oracle How can I get the result of a SQL query calculation? Say, there are two cases" CASE 1 RETURN "Process ok" CASE 2 RETURN "Process failed" This will be returned from the stored procedure. Which is the best way to read this on .net, C# (Windows Forms)? A: it's up...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Emulate limited resource device android I am trying to find a NullPointerException that I get when in my app the phone release memory. I was testing on a Samsung G3, but now that I have change for a GS2 which has more RAM memory, the variable is still there when I minimaze/maximize. Is there any way to simulate my o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass parameters from form submission to specified route in Syfmony2 I have a route in my routing.yml which is as follows: pattern: /admin/clients/{clientid}/projects/{projectid}/review/{id}/comments defaults: { _controller: ShoutAdminBundle:Project:revcomm } requirements: _method: POST Now, on a page (the com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Click event not registered in IE, jQuery on div (jsfiddle) I've got html that looks like this: <h3>Sample</h3> <div class="skjemaHjelp" id="sample"><div><h3>3</h3><p>Content goes here</p></div></div> <input type="text" class="inputWide" name="formSample" id="formSample" value="" /> The class skjemaHjelp is posisio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Netbeans disabled everything & became a simple text editor when I interupted the plugin upgrade process I switched off Netbeans while the plugins upgrade was in progress & then it has disabled everything. How do I get back everything that was available before? I've tried updating once again but it says: Your IDE is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Control rs232 windows terminal program from python I am testing a piece of hardware which hosts an ftp server. I connect to the server in order to configure the hardware in question. My test environment is written in Python 3. To start the ftp server, I need to launch a special proprietary terminal application on my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Updating the version and dumping shared preferences into database I developed an android app ver 1.0 in which i stored the user data in shared preferences. Now I am developing ver 2.0 and I have the following questions about updating it 1.How to detect if version 1.0 is already installed? I mean if it is a pure inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set non-selectable default text on QComboBox? Using a regular QComboBox populated with items, if currentIndex is set to -1, the widget is empty. It would be very useful to instead have an initial descriptive text visible in the combo box(e.g. "--Select Country--", "--Choose Topic--", etc.) which is not shown ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: slideshow and overflow I can't make a div with an overflow to work properly.. the table inside the div with overflow has the same width as the div?! http://jsfiddle.net/bRbyr/ div.slideshow_inner { margin:12px 20px 0px 15px; width:340px; height:440px; overflow:hidden; background:blue; } #slidesh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hiding TaskBar from a process (c#) In my application, I want to hide the windows TaskBar and StartMenuButton when my process is started and want to restore it when it exits. I can do this using: IntPtr startButtonHwnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, (IntPtr)0xC017, null); IntPtr taskBarHwnd = FindWindow("...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dependencies between PHPUnit tests I'm writing a PHPUnit test case for an API (so not exactly a unit test) and I'm thinking about having a test that all other tests will depend on. The tests in the test case make API requests. Most of these requests require a user. The test in question will create that user that the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to disable a Gallery's item? I have a gallery where I have implement a custom adapter extending the BaseAdapter. For some items, I want them to be disabled, and not clickable as well. Overriding the isEnabled(int) method doesn't work. I am still able to click on the disabled items, and then, the gallery centers ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding Windows system sound Playing a system sounds is simple. However, when looking at the ControlPanel->Sounds->Sounds, I see some programs like Itunes and TortoiseSVN have added custom sounds. How to achieve that? I was not able to find anything. Thanks, /Patrick A: Custom sounds are defined in registry under HK...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to keep text inserted in a html after a wrong submission? Suppose I have a form like this: <form action="page.php" method="post"> Section1: <input name="section1" type="text"></br> Section2: <input name="section2" type="text"></br> Text:</br> <textarea name="post_text" cols="100" rows="20"></...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SVN - User responsible for line in source file I pretty stuck with situation in which I need to get user responsible for specific file, line and revision. E.g. I have as input: source name, line number and revision. As output I need get user name. I not so familiar with SVN and looking into documentation might take...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: div buttons not working in internet explorer I'm having trouble making the div buttons on this simple slideshow to work. I've used jQuery and I've tried to stay away from things that don't work in IE (e.g. split). The IE debugger shows that the div with the id "next" is properly placed, and i've found no errors in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot access pdf file from raw resources I created an android pdf reader using MuPdf library. My problem is when I change the uri to access the pdf file from the raw resources, Uri uri = Uri.parse("android.resource/[package]/" + R.raw.[pdf]), i get a java.lang.RuntimeException error. But when i change the uri to ac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How could I use a different strategy for just one commit in a rebase? Given this: master A---B---G---H---I \ branch C---D---E---F Is there anyway to get to the following, but using -X theirs only for the C commit? master A---B---G---H---I \ branch C'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to upload an image using jQuery / AJAX in an ASP.NET MVC website? I'm trying to find a decent way of allowing users to upload a profile photo on an edit profile page. I've tried out Uploadify but this doesn't appear to work under some of the more recent Google Chrome browser releases. Ideally, I just want to off...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Image download from browser I have a problem downloading an image from a web browser. I want to download the image directly, but instead it's opened in the browser. I'm using asp.net. My HTML code: <a href ="http://example.com/file/image.jpg" target="_blank" /> Download </a> A: What you need to do here is to mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: IE8 Opacity Issue I understand that there has been countless of question posted here regarding opacity issues on IE. I have gone through almost everyone of them and have tried almost every available method that I have managed to source to but nothing worked. The strangest thing is that the opacity issue is an isolat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to rewrite a hardware linux driver for android use recently, i am doing a school project on a beagleboard which has android 2.2 ported.the beagleboard is like this. I have to connect a sensor called phidgets 1056 to the board. However, the drivers provider only got linux driver for the board. the linux driver is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Mono.Math.BigInteger is inaccessible due to its protection level So I'm working on a program in C# using ideone and I'm working with Mono for the first time. I'm trying to use the BigInteger class (Mono.Math.BigInteger) but I keep getting errors. Here's me code below. What is going on and how do I fix it? Thanks. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: what is a non-destructive version of set in lisp? I would like to be able to say (defvar x y) and have it bind to the symbol bound to x instead of x, but defvar will only bind it to the symbol x, which is too bad. How can I do this without defaulting to adding it a a property of the symbol? A: You can use the sym...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Infopath 2010 get culture from hosting environment I am looking into localizing the labels of an InfoPath 2010 form with code-behind that will be hosted in SharePoint as a browser form and get the current culture (based on the SharePoint variations) programatically in the InfoPath form. How do I do this? A: You can...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java, configure enterprise application and web application with spring: should they share the spring context? I have an event-driven application based on spring-integration. The application is made up of 4 modules: domain (model objects), persistence (daos), core (biz logic based on spring-integration) services (MDB...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ads.getCampaignStats - Managing advertisements requires the extended permission ads_management, and a participating API key I'm trying to get out some statistics from my campaigns using the ads.getCampaignStats graph api call but I get this error : "error_code": 294, "error_msg": "Managing advertisements require...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delay is not working Why this is not working $('#upload-title').css({ background: '#ffffff' }).delay(800).css({ background: '#00FF72' }); I want that my #upload-title. Is white for 0.5 sec. Thanks for help A: The delay method delays things in the effects queue, and css is not an effects method. You can add the css...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wxTheApp problems: Undeclared identifier using msvc10 Which header file to include for this pointer ? I want to make a simple dialogue box with two buttons "Hello world" and "Close". But for OnClose function I typed wxTheApp->Exit() inside it, and my msvc10 compiler says ,"undeclared identifier: wxTheApp". I include...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add domain restriction to REST CAS In our project we're using jasig CAS solution. Recently we've added RESTful interface. To be 100% secure I want to provide restriction on URLs. Only trusted URLs should be able to send requests to this API. What is the best approach, does CAS support such requirement? So fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OutofMemoryException in vb.net I have a desktop application in vb.net 2003. Here when we load the main screen we find an unhandled exception showing out of memory, but we are able to continue working off the form and retrieving data. It works fine, but the image is not getting loaded. In the main screen we have a ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Clojure look up performance vector vs set I have a small collection of sorted items less than 50 I frequently check if a particular item is in the collection or not, this, (time (let [a [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15]] (dotimes [i 100000] (filter (fn [[k]] (= k 15)) a)))) takes 10 ms if I use a set h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Transport Layer Security in the .NET framework I've been asked a question by the boss and actually I can't find any sort of coherent / comprehensive answer out there! So I turn to you, the wise and all-knowing collective of StackOverflow :) The question of the day is "Does .NET support transport layer security versi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to display a "waiting page" while a CGI is running? I have a cgi script that takes long time (30 sec) to generate the results before printing out the html. I want to show an intermediary page that says "Loading, please wait..." with an animated GIF before displaying the results. Thanks A: Fork the process and k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: data type conversion into SSIS? I have created one SSIS package from flat file I'm getting one price value. But in derived table I'm converting the values into (DT_DECIMAL) as I need to insert it into database. My problem is value 12345.6754. I want to take only 2 digits after the decimal, i.e., I want 12345.67. For...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Actionscript 3 - parsing XML values I have the following XML: <document> <homeitems> <homeitem> <itemURL>URL1.html</itemURL> </homeitem> <homeitem> <itemURL>URL2.html</itemURL> </homeitem> <homeitem> <itemURL>URL3.html</itemURL> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove CustomListViewItem Hy ! My Code: i just want to remove a item in a listview. But that code doesn't work for me. public boolean onItemLongClick(final AdapterView<?> arg0, final View arg1, final int arg2, long arg3) { final Pizza pizza = (Pizza)arg0.getItemAtPosition(a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FCK Editor customization When we click on the anchor tag of fckeditor, we will obtain one pop up asking the anchor name. I need to get same functionality for adding the footnote in my application. Is it possible to customize the fckeditor in this way. Here I need to add one toolbar item 'say footnoe'. when we click ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android send a image and save url Possible Duplicate: Send post data in android How to send a image via http post along with the form data i.e image name etc to a specified url .. which is the url of a aspx. A: Check this code for Sending Image with Title,Caption,Name etc, HttpClient httpClient = new Default...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: trouble traversing the DOM I have some HTML that looks likes this, <dl class="dropdown"> <dt><span>Gender</span><a href="">Go</a></dt> <dd class="shadow_50"> <ul> <li><a href="#"><span class="option">male</span><span class="value">1</span></a></li> <li><a href="#"><sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add to collection existing identificator I have Customer with Orders collection. I have some orders identificators which I need to add to new Customer instance like this: var customer = new Customer(); customer.Orders.Add(new Order() { Id = 1 }); customer.Orders.Add(new Order() { Id = 2 }); customer.Orders.Add(new O...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: view Blackberry log In Android through Logcat we can see application debug output and logs. In Blackberry is there any thing like Logcat? If not then where we can see its debug output. A: In RIM API SDK there is EventLogger class. Use it for logging purposes. A: above answer is good even though you can use system....
{ "language": "en", "url": "https://stackoverflow.com/questions/7632746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make one central message for my jquery validate custom function? I'm using the jquery validate plugin to validate my form. I need to validate that 1 field of a section is filled in. This is the code I used: http://blog.rebeccamurphey.com/2009/04/15/jquery-validation-indicate-that-at-least-one-element-in-a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: internet connectivity status using SCNetwork leaks Trying to build up simple function to get internet status, but getting leaks every time I call this function: + (BOOL) connectionStatus { BOOL retVal = NO; const char *hostName = [@"google.com" cStringUsingEncoding:NSASCIIStringE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove certificate from Store cleanly You can install certificate into certificate store using Wizard in certmgr.msc (Right click install)? Does anyone knows how to "cleanly" remove all the certificate by either using wizard/Code (pref.) /Script ? I want to be able to remove everything (that I have installed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Join 1 or 2 tables using the Max Command Can someone help me join these to tables and extract the PRODUCT_ID, PRODUCT_CODE, PRODUCT_NAME and the LAST_ORDER_DATE as not had much experience with SQL only MYSQL. I'm not sure if I even need the second table or is it possible to use MAX in in just the ODBC_ORDER_LINE_ALL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Will changing the upper case to lower case can shorten the length of string? Will changing the upper case to lower case can shorten the length of string? void lower(char *s) { int i; for (i=0;i<strlen(s);i++) if(s[i])>='A' && s[i]<='Z') s[i]-=('A'-'a'); } A: No, it shouldn't. Some other things to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use custom xml namespace in ePub 3.0? An error comes out by epub which uses custom namespaces in ePubChecker. Is using custom namespaces in ePub 3.0 forbidden? example code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/1999/xhtml"> <html xmlns="h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }