text
stringlengths
8
267k
meta
dict
Q: Will Widget Support in WP7? I want to develop an application for WP7 using HTML,CSS and Javascript something Similar to Nokia WRT(Web Widget) Will this Support in WP7? .Will the app require signing ? Can I use Metro style for WP7? A: Windows Phone 7 (and 7.5) applications are written either using the XNA framework...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Will Facebook migration affect my application? I have a Facebook application installed on a Facebook fan page which is a tab that displays a flash banner. That is all. I am installing SSL on my domain. Do I need to change anything else? Should I update to OAuth 2.0 or that is not necessary for such a tab? A: There ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Passing NSMutableArray between classes with method Okay, so i hope im on the right track with this. So this is my first class's .h file, im just declaring the method here: -(NSMutableArray *)get; Now lets jump into the .m file of that first class, this is the method: -(NSMutableArray *)get { return testArray; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: android editText is cursor visible? Is there any way to know if on a edit text is visible or not the cursor? I need to know so I can adapt a delete method. Thanks A: public static final int getSelectionStart (CharSequence text) Since: API Level 1 Return the offset of the selection anchor or cursor, or -1 if ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: key search in php multidimensional associative array $array = array( 'the-1'=> array('name'=>'lorem','pos'=>array('top'=>'90','left'=>'80'),'zindex'=>2), 'the-2'=> array('name'=>'ipsum','pos'=>array('top'=>'190','left'=>'180'),'zindex'=>1), 'the-3'=> array('name'=>'lorem ipsum','pos'=>array('top'=>'20','...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP regexp for checking letters except W, w, P, p I need a regexp pattern, that checks if string contains letters excepting W, w, P, p. $pattern = ''; // I need this pattern preg_match($pattern, '123123'); // false preg_match($pattern, '123123a'); // true preg_match($pattern, '123123W'); // false preg_match($pattern...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Screen orientation in tablet I am using the same code for both tablets and mobile, and I want to write an app for Xlarge screens with landscape. I wrote one condition but when I am rotating into portrait it generates an exception. I have declared the condition: final boolean isPortrait = getResources().getConfigurat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validation in MVP pattern I am creating a program which utilizes MVP architecture. Please tell me which is the best place to write the validation. Someone told me that the code in presenter should only contains logic to handle events raised from the GUI and format values collected from the model so that view can d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Disable auto focus on edit text I have an edit text: <LinearLayout android:id="@+id/linearLayout7" android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_weight="1" android:id="@+id/editTex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: jQTouch - unable to find proper documentation/reference I'm learning jQTouch from scratch. What is the best way to learn it? I don't seem to be able to find any proper documentation, does that mean the best way is to dig into the css itself? And keep trying? A: It really depends what "proper documentation" means to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using map function in python If you have the following code, how exactly is it following the documentation: map(function, iterable,...)? x = sorted(map(int, dat[0].split())) Is int a function and if so, why isn't it expressed as such? A: int is a constructor so it's callable so you can use it with map A: In your...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i change number of days in a month for Fullcalendar? The problem is Persian (Iranian) months are different from Georgian months, for example 7th month of year is Mehr in Iranian Calendar and is 30 days, but July is 31 (7th month of Georgians). Is there a way to change Date() object (change number of days) in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET: DDD and ASMX, avoid multiple namespaces on proxy classes I am new to DDD and at the moment I try to refactor a project towards a domain driven architecture. The project has a client and a server side (ASMX webservice). Now I created a class libary called "Domain" which is referenced by the client application a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get information about key container through certificate public key in CryptoAPI? In C# I can do this by using public static CspKeyContainerInfo GetKeyConatinerInformation(X509Certificate2 certificate) { if (certificate == null) throw new ArgumentNullException("certificate"); ICspAsymmetricAlgori...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: asp.net : how to send a array from client to server web method In ASP.NET, I have collected a list of selected items from a checkbox in an array at the client side. Now I need to pass the array from client to server's ASMX web method. How do I do this? A: Client-Side Web Service Calls with AJAX Extensions Calling ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find Control using javascript inside an ASP:Login control I have an ASP Login control box on the page which is customized. Inside the Login control we have Username and password textboxes. I want to find username and password controls with a javascript function. var Username= document.getElementById("<%=UserName.Cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Samsung Galaxy S II (Android 2.2.3) with MS Exchance Mail Account Zimbra Server In my Samsung S2 I have a Microsoft Exchange Mail Account and use a Zimbra Mail Server. The standard email app doesn’t render my html mail. I get all the html source code with the mail text. The synchronization with my calendar and mai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Emacs revert-buff (s-u): what is s-u? The emacs help page for the M-x revert-buffer command says that it is bound to "s-u". What the heck is s-u? I know M-x is Meta-x (usually alt-x), and I know that C-x is Control-x. But what is s-u? A: On Mac OS X 10.6.8 (Snow Leopard) with Emacs: 23.3.1, s-u corresponds to Cmd-u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Google visualization API - Bar Chart / Line Chart - Custom Tooltip How to format the tooltip text of Google Visualization Api based Line and Bar Charts. I want custom text and images in the tooltip. Thanks A: Just drop this code into Google's Visualization playground as an example I'm using bar chart and editing th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CakePHP: False positive authError with ACL I have set up a working ACL system with CakePHP inside my company's existing site. Access restriction works perfect, groups and single users that don't have the right to visit a specific portion of the site get an authError message explaining that they don't have the proper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why DHTML behavior not work in IE8 if document.write is executed in ? We have a 3rd party web application which works on in IE6, but not works in IE8. The sample code is like below, the "message from .htc" message will popup in IE6, but not popup in IE8. test.html <html xmlns="http://www.w3.org/1999/xhtml"> <head> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Uniformely distribute as many items as possible among a set of carriers Problem: * *there n boxes b_1, ... b_n *box b_i has weight w_i and cost c_i *there are m persons p_1, .... p_m *person p_i has strength s_i and money m_i, and so she/he can carry a number of boxes such that the sum of their weights is less...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows Service + read from database I am new To windows service. I need a windows service that reads an entry from a table from database. I have a CONSOLE APP where I add new project WINDOWS SERVICE. I already have a method that access the database, and other methods. I can put a thread on start that reads the dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not working properly while using S7GraphView I want to draw a line graph in iphone and am using S7GraphView for it.But when I compile my app it is showing so many errors like: "CGContextSetFillColorWithColor", referenced from: -[S7GraphView drawRect:] in S7GraphView.o "_CGContextFillRect", referenced from: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do Clojure programmers use Macros? My understanding is Clojure's homoiconicity exists so as to make writing macros easier. Based on this stackoverflow thread, it looks like Macros are used sparingly, except for DSLs in which higher-order functions are not to be used. Could someone share some examples of how mac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How an interface can replace a class? I created a Method called GetStudentMarks(). The return-type of this method is generic List<StudentMark>.The code works well even when i replaced the List<StudentMark> with generic IList<StudentMark>. How can an interface replace a class while interface contain only the declarat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: avoid auto release of NSMutable array..... iphone app I have a NSmutablearray after i read datas from it, i cant read the same data(index) again Error: "EXC_BAD_ACCESS" in interface NSMutableArray *ticketList; @property (nonatomic, retain) NSMutableArray *ticketList; assigning value self.ticketList = [NSMutableA...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone App: not resuming audio session in AVAudio Player In my iPhone App I am Playing music using AVAudioPlayer. when my App runs in background that time also it is running for tht I wrote this code in AppDelegate on -- application didFinishLaunchingWithOptions audioManager= [[AudioManager alloc] init]; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the input for PushEndPointDemo? I can run the sample code. It shows PushPointEndDemo EditText and Register button. Now the problem is I don't know what I give in that box to register through the emulator.
{ "language": "en", "url": "https://stackoverflow.com/questions/7593939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to do Font Smoothing for AWT/Swing Application? I need to do font smoothing for a AWT application on Windows System. On doing googling I came to know that I can set following VM argument in Eclipse. -Dawt.useSystemAAFontSettings=gasp But this is not yielding any positive results. If anyone is having a better id...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: specifying newline type during xml serialization with LSOutput I am serializing an org.w3c.dom.Document (stored in the variable _document) to a text file (represented by the variable _file) using the snippet below. It works fine. The file produced by the snippet has Unix-style newlines ('\n', 0x0A). However, this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: noob: android button I have two button b1 and b2 .If button b1 is pressed then perform a query q1 else if button b2 is pressed then perform an another query q2. if(b1_click) { mCursor=//query } else if(b2_click) { mCursor=//query } Please tell me how can i implement this.How to implement b1_click method or any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I watch a file system directory to see when files are added to it? In c# winforms application, I want to choose a directory from network and after that, when any body put a file in it, I want to see a message such as "A file added." for example I can get filepaths. string[] filePaths = Directory.GetFiles(@"c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How is Pagination done in iPhone or Xcode? I would like to know how PAGINATION is done using a "SWIPE". Got a page with the name "Account Details" and this "Account Details" page should have around 4 PAGEs within that Account Details of 4 more accounts. These has got the information about the BANKING account detail...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which Android Platform/API is required to develop honeycomb tablet android applications? I want to create an Android app for the Honeycomb tablet. What Android Platform/API Level is required to do so? Thanks in advance. A: I would use the 3.0 because this is the first Honeycomb release. You should not have backward...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: RegEx to split camelCase or TitleCase (advanced) I found a brilliant RegEx to extract the part of a camelCase or TitleCase expression. (?<!^)(?=[A-Z]) It works as expected: * *value -> value *camelValue -> camel / Value *TitleValue -> Title / Value For example with Java: String s = "loremIpsum"; words = s.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: Insert into table with Identity and foreign key columns I was trying to insert values from one table to another from two different databases. My issue is I have two tables with a relation and the first table is having an identity column also. eg table first(id, Name) - table second(id, address) So now both the table...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get "closest" Key in Visual Basic Dictionary In Visual Basic I have a Dictionary which holds a Date as a key and a custom class as value (I will use a String in the example). I keep track of a list where a date is saved with a value. For example, lets say I have a dictionary with the following values: Dim dict As Di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why Clojure/Lisp Programs are faster than other dynamic languages? Based on language shootouts in a past few years, Clojure and other Lisps consistently perform better than most other dynamic languages. Why is that so? Is it because of its homoiconicity? Edit: I did not know that Clojure is compiled into bytecode ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: C# IComparer is returning unexpected result when comparing same strings I have a situation where all of my list members have same ID (Id is string and not Integer). As part of business rules I need to sort the list in ascending order. My original implementation is quite similar to below. I was expecting to get uncha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: generating Localizable.strings creates strange output When I use genstrings -o en.lproj *.m it generates the Localizable.strings file with entries in this structure: /* this is the text: %@ ID: %02X */ "this is the text: %@ ID: %02X" = "this is the text: %1$@ ID: %2$X"; Please notice that it makes from %@ ->...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sometimes my icons in my list view are not showing My problem is that I have implemented a custom arrayadapter, that fetches images from an url and sets them to an imageview. It works, sort of. Sometimes some of the images are not showing up. Somtimes it's only one image, somtimes it's three and in no apparent order...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Processing my own escape characters using Regular expression First of all I have to apologize for my poor English, Please let me explain my case, Assume that I have 2 text boxes for a user to input. On the server side, I want to combine the two strings as a single string delimited by ',' character. For example, If a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Confusion with Entity Framework versions I am having hard time understanding the Entity Framework versions released by Microsoft. I have a base entity framework version of 4.1 which didn't support enums by itself. After the June 2011 CTP was released I was excited to use it so that I can get LINQ support for enums. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7593997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retrieving the intent values from another class My question is a bit basic. I've been learning to code on JAVA and android. Here I am a bit confused on how to call the values that I have sent via an intent. In my first activity this is the intent that I am using. Intent intent = new Intent(MainActivity.t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to get phone number from my Contacts on android programing i have EditText and button on my form. how to do this: when i press the button i want to open all my Contacts, and when i pick one - i what that his phone number will be in the EditText thanks in advance A: use this links May be it's useful for you. ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fetching column data using IRow::GetColumns (OLE DB)(MSSQL) In my application I am trying to read data from a VARCHAR(4000) column. Since the column is 4000 bytes, I have an application buffer which is big enough to handle it. But at the moment I have only 10 bytes of data in the column. After doing IRow->GetColumns...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to open thumbnail wrapper of the image gallery automatically when the page loads ? (jQuery) I need to tell you that i'm very new to jquery and still learning, please don't laugh at this. I wanted to have an image gallery on my website and found this beautiful gallery that uses jquery. Here is the link for it: ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: to get link clicked in javascript/firefox-adon Below is a code snippet for a Firefox add-on whose part of the job is to get the navigation details of the user (from which page to which page etc), but the code I used doesn't seem to work: window.document.onunload = function() { alert(document.location....
{ "language": "en", "url": "https://stackoverflow.com/questions/7594019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Grant application access to UAC protected registry section I have a legacy USB device driver which reads and writes data from and to the Windows registry to HKEY_LOCAL_MACHINE/SOFTWARE/COMPANY/PRODUCT. I am not able to change this so I need a workaround because I noticed that on Windows Vista and Windows 7 with UAC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting String to float in ios Hello friends I Have a float type variable ,which contains a total price of specific item,so first I have converted into NSString..below is my code float total; [grandTotal setText:[NSString stringWithFormat:**@"$%.2f"**,total]]; so here grandTotal is of type UILabel..where I want...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Horrible "Callback chains" in winforms application I'm working on a winforms application that is very complicated, and has massive callback chains being passed around all over the place. As an example loosely based on this code, there could be a "Manager" class, that spawns a class "SetUpWorkerThreads" class, which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generate colors with JavaScript I want to add functionality to my application that randomly generates a color scheme based on some color, for example #0080C8. So, when I click a button, it takes the base color and generates a list of colors, each generated with its own parameter, for example, lighten by 20% for one,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display image if flash is not installed I have a simple aspx web page that includes a flash video. I'd like to replace the video with a jpeg for those browsers that don't support flash. Does anyone know of an example showing how to do this? Here's the flash div from my aspx: <div id="flash"> <object classid="cls...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: can we use `:method => :post` parameter in `link_to` tag to hide parameter from URL? In the API for link_to, you can see, you can pass an arguement, :method => :post. In Rails 2, it creates a form with POST verb and submits the form on clicking the link. But, can this be used to pass hidden fields to the form withou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make a jquery tooltip dynamic How can make a dynamic jQuery tooltip with .mousemove, as that when mouse enter on words Tooltip1 Or Tooltip2 Or Tooltip3 show contents same tooltip. Here is a sample of my html: http://jsfiddle.net/JGx52/4/ <ul> <li class="style"> <div class="tooltip" style="bottom: 406px; left...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP content management system which tracks content through git Are there any content management systems which use git for tracking content and support markdowns? I have heard of git-blog and WiGit , any other suggestions would be appreciated. A: Take a look at Phrozn: http://www.phrozn.info/en/ - it's pretty much a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SQLite: Order by 'insertOrderinDB' i need to know how to make a select with the insert order in DB without making any index field by my own . May be this posible? And , the insertion order in a transaction is linear-mode? (first insert sentences -> first insert ) DB CREATION: private static final String CREATE_TABLE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to create a histogram in Python for a corpus import nltk from nltk.book import * from nltk.corpus import brown corpus_text = brown.words() word_freq = FreqDist(corpus_text) word_hist = dict() for k,v in word_freq.iteritems(): if key in word_hist: word_hist[v] = word_hist[v] + 1 else: word_his...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Highlighting table rows only on the first 3 app uses I want to highlight -color-my app's new rows when i release a new update or when i add a new row. Also, i want to keep them highlighted only when the user uses my app at least 3 times. How can i do it? Thanks in advance A: Store in the NSUserDefaults a value for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Combining two separate ADTs into one Hey guys I'm trying to get started on my CS assignment (second year C paper). In this course we have created a Binary Search Tree ADT and also a Red Black Tree ADT. We have to combine them into one more general "Tree" ADT which will either choose to be a Red Black Tree or A Binar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get multiple data from webservice using SOAP in android Im getting single data from web service using SOAP in android and displayed well.But when i need to retrieve multiple set of values from web services..How could i do that?For ex.from a webservice.,im getting 10 set of student records with fields stu.Name,stuReg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML , Display IDs of every Text boxes , when I make focus At my web page, I have several text box controls (eg. Input type="text" ...) What I would like to do is display every ID for every text box whenever or whatever text box i make focus event. I already try this. alert($("*:focus").attr("id")); But it return u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stay in same column while navigating up and down in a vim editor I have set nowrap so that I can view a file properly. So what happens is that when navigating up or down in the file, if there is an empty line in between, vim takes me to the beginning of that line. I lose the view that I had previously, and I get it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using an alpha transparent mask on a QWidget? Is it possible to assign an alpha-transparent mask to a QWidget? I know how to set a mask using setMask but it seems it only supports black&white masks. Is it possible to make it support a true alpha channel? i.e. currently I have a PNG like this: and a widget like this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Extend HttpServlet implement ServletContextListener Is it a good practice for a class to extend HttpServlet and implement ServletContextListener? public Myclass extends HttpServlet implements ServletcontextListener { } What are the pros and cons of doing this? A: Some thoughts: * *You will have at least two ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android : some problems when converting drawable image to byte array I want to convert an image in my app to a Base64 encoded string. This image may be of any type like jpeg, png etc. What I have done is, I converted the drawable to a Bitmap. Then I converted this Bitmap to ByteArrayOutputStream using compress meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an SDK out for Windows Run Time (WinRT)? Is there some kind of SDK out for WinRT.? Can we develop applications for it now? Is VS2010 usable for developing or will some other IDE be shipped? Also, is C++ necessary to develop performance-oriented apps in WinRT, or will the C# applications give equivalent perf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS Break line when content overflows   I am wondering how to break a line with css when content reaches the width of a div, as I am making a blogging system.  -Matthew A: Use CSS property word-wrap: break-word.
{ "language": "en", "url": "https://stackoverflow.com/questions/7594079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to send mail from mysql using stored-procedures? Is there any mail packages available in mysql? I am using phpmyadmin tool to manage mysql Db. I want to send email using stored-procedures in mysql. A: No there is not and You should not do this because it can affect mysql performance. My advice is to write a si...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WP7 MediaElement Unable to Reposition the stream I am using MediaElement for video playback in my app. I have added controls for play, pause, rewind and forward. In the forward button's event handler, I am trying to forward the video clip for 5 seconds. the code I have used to do that is given below. if(myMediaEle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the absolute path of the contact URI? I am getting uri as content://com.android.contacts/data/592 . I need to convert this in to absolute path . How to achieve this.Thanks in advance. A: contacts are not stored in files , they are stored in a database , you can use the content resolver to get that contac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the command to make Sublime Text my core editor? So I'm trying to set up GitHub for the first time ever and I want Sublime Text to be my core editor, how exactly do I do that? Sorry if this is a noob question, I am a noob :/ A: As this ranked highly when I was searching Google for Mac instructions, here is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: SSRS 2008: How to repeat on new page one row of table header I have table with 3 rows of header, and I needed repeat on new page only second row, first and third is not needed in the pages, excepts first page. If I set the properies "RepeatOnNewPage" in the second row only, SSRS show the error: "The TablixMember mus...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: RESTLet 2.0.9 - query regarding multiple @Get and @Post annotations? I am new to RESTLet and using 2.0.9. What I want to do is have multiple methods with @Get & @POST annotation. I have access to the VO classes (value objects) and so I don't need to use JSON or XML representation. I have used the excellent tutorial...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GWT + Spring hosted mode not working I have a following problem, probably somebody can help me? I had an Spring MVC application, quite basic one, with a few simple jsp pages. Also I had an Spring Security integrated with it. Now I need to add some GWT widget to one page. No problem so far, I've added <div> to the pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sitecore global url to specific url Currently I am facing the following problem: A website, which I have to make for a company, has different locations. But the content of a few pages is for all locations the same. Now I have created a global folder with the items for all the locations. But now I am facing the follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: dynamic bind to a resource but in a state animation I have defined a visual state in which a button has a glow effect. But I want to have a variable BlurRadius in that state. My approach was adding a resource and change that resource in code behind. But changes doesn't affect the visual controls. here is xaml code :...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pointcut for usage of operator "==" with specific types is it possible to write an AspectJ pointcut that matches the usage of a specific operator with a specific type? Some background information: I'm working on a project where we have to use a legacy Java library (pre 5.0, before the enum keyword) which comes with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inserting non-default tab stops into a RichTextBox Is it possible to write code to insert a non-default tab stop into the document of a RichTextBox? For example, the equivalent of the MS-Word right-tab or decimal-tab? Thanks, Firoz
{ "language": "en", "url": "https://stackoverflow.com/questions/7594111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Screenshot from form I want to get screenshot of screen under my form, so I hide it first and show after capturing. But on my Windows 7 form is not completely minimize, so I get form on screenshot. How can I be sure that my form is competely minimize? WindowState = FormWindowState.Minimized; Bitmap screenshot = Scre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: float format variable with integer value in string I was facing with one minor issue, and I'm wondering: Why? here we have some string: [NSString stringWithFormat@"%.3f/%.3f/%.3f/%i", 1.0, 1.0, 1, 1]; in this case, result is 1.000/1.000/1/abra-kadabra like 34875689. Why it's happens? Of course, I know, when we cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: String Uppercase in java pattern Everyone, I've been try to solve this since yesterday. What is the representation of pattern that contain (A-Z)* and (\\p{Punct})* and (0-9)* and (\\s), and all char of the pattern were Uppercase. i.e, * *PATTERN {001} *OTHERS PATTERN (002-005) edit : just moment ago, i g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: subclassing a singleton What is the recommended way, if any, to subclass a singleton? For example, I would like to make a subclass of AVAudioSession that adds a couple properties and makes the singleton its own AVAudioSessionDelegate. Right now, I am overriding sharedInstance to allocate my own class, then call my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why md5 always changes on a certain file? I have this task that needs investigation as to why the md5 value of a file keeps changing. Example: * *I need to generate the diagnostic file of a certain machine. *After generating the file, it produces a .zip file, say, Diag.zip which contains all the information/file...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create Google Calendar Quick Add feature in Java? I am working on a school project that requires a little bit of Natural Language Processing. We have to implement a feature that is similar to Google Calendar Quick Add feature in Java. http://www.google.com/support/calendar/bin/answer.py?answer=36604 I have do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: System.Windows.FrameworkElement.Style got an exception when i call a silverlight xap in sharepoint. Hope anybody can help me out this problem. Here the exception: Message: Unhandled Error in Silverlight Application Set Property 'System.Windows.FrameworkElement.Style' threw an exception. [Line: 84 Position: 335]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to move a Textview dynamically on the screen? (framelayout) I have a app that shows the camera view on the screen on a FrameLayout. The screen is in fixed LandScape mode. I need to write a textView with dynamically determined coordinates of the screen. The coordinates are determined in percentages, for example :...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to duplicate form content in jQuery? I have form: <form action="" method="post"> <div id="fields_1"> <input name="field1_1" type="... <input name="field2_1" type="... <input name="field3_1" type="... <input name="field4_1" type="... </div> <a href="#" onclick="duplicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reliable way to know user's last connected DateTime? I'd like to add a bit of functionality to my site, which shows "new stuff" since the last time the user was on the site. My site is ASP.NET MVC/C#/Razor based. What's a reliable way to get/set that DateTime? Update: sorry I didn't include this originally... I'm no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ghost table border in FireFox 6 when setting the border-width to 2px Compare the following two examples in FireFox 6: * *http://jsfiddle.net/utKw9/7/ *http://jsfiddle.net/utKw9/9/ The only difference is the border-width changed from 1px to 2px. But this results into a ghost border displayed across a "row-span" c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: consume web service to fill local db Hi I am trying to fill my local db on app star from .NET web service but not working... need help public class MitsAndroidApplication extends Application { private static String SOAP_ACTION = "http://tempuri.org/"; private static final String NAMESPACE = "http://tempu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: function call with '$' as parameter I have a script which contains the following piece of code: (function ($) { // ... })($); Can anyone explain how to read it? A: * *Create an anonymous function *Let it take one argument which will be called $ *Call the function immediately *Pass it one argument which is wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Whats wrong with this print order have a look at this code: #include<stdio.h> #include <unistd.h> int main() { int pipefd[2],n; char buf[100]; if(pipe(pipefd)<0) printf("Pipe error"); printf("\nRead fd:%d write fd:%d\n",pipefd[0],pipefd[1]...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I send actions to a UIImage Subview, delegated from a UIAlertView Essentially I have a UIAlertView that pops up. When a user selects a button it calls itself, and based on the button index it brings up a UIImageView subview. My question is, because the UIImageView takes up a good portion of the screen it lays...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Display PDF in IFrame when button is clicked in JSF I already coded one but it opens a new tab, what I want is to display the pdf inside the Iframe (the same page where the user inputted the data) when a command button is clicked. Thanks for the help! A: You can use the rendered attribute to render content conditio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cmd run automatically -> shell commands to view a sqlite database for android I want to run a 'adb shell' -> to view a sqlite database for android. I need to run commands automatically in a CMD file. But I only can get access to the shell #,not to sqlite3 sqlite.cmd (file) cd "C:\android-sdk-windows\platform-tools...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Calling HTTPS from HTTP through AJAX for login I know its violates the Same origin policy, and that is why it is not possible through simple ajax request. I could use JSONP. But using JSONP for login doesn't sound secure ( no post only get ). So is there a more secure way of implementing login into https through aj...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Python: Conditional elements in array A question from a complete Python novice. I have a column array where I need to force certain values to zero depending on a conditional statement applied to another array. I have found two solutions, which both provide the correct answer. But they are both quite time consuming f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7594204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mobile jquery page transition issue I'm new to jquery mobile. Recently, I was working on mobile jquery + phonegap for ipad. I found various issues especially with page transition. I google out and found an issue here as well https://github.com/jquery/jquery-mobile/issues/455 but couldn't found any way out. Using a4....
{ "language": "en", "url": "https://stackoverflow.com/questions/7594210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }