text
stringlengths
8
267k
meta
dict
Q: Storing custom objects in NSUserDefaults I am trying to save an object in NSUserDefaults but i have not been successful in it. Scenario is that, I have an object syncObject of class SyncObjct. I have implemented following methods in SyncObject class - (NSMutableDictionary*)toDictionary; + (SyncObject*)getFromDiction...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to optimise/scale-proof this algorithm? My website currently displays content in order of rank with a similar algorithm to this: rank = points/age The only problem is as there is more and more content added it won't be practical to generate a content rank for every piece of content on every page request. We can'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the name of a data structure that acts like a shift register It has a predetermined finite size, and when you 'push' a new value on, it becomes the new 'head' and all other values are moved down the line. The last value in the list is discarded. I know of several different ways to implement this, that's not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why sometimes my application stops working and gives Program received signal: “SIGABRT” error? I have four views in my navigational based application. MainView, AddView, ShowView and DetailView. MainView has a NSMutableArray. When i click on button add, then i go to AddView and then i add an object in NSMutable arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OnItemClickListner is not working android i am using listview in android with ratingbar as well as check box, here is my problem,if i am setting onitemclick listner to the listview, it is not working? Please any one can help me.. Thanks in advance. A: Yes, I see the exact same thing. If you remove the checkbox and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: serializing NLog LogLevel Datatype through a WCF Web Service I have a wcf WebService with a method which takes LogLevel type (part of Nlog) as a parameter, the LogLevel is build in type comes with a framework for logging called NLog, Problem is WCF doesnt know how to marshal the loglevel parameter i guess cause it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I read an image from a URL in Android? I want to read an image from a this URL photo and I'm using the following code public static Bitmap DownloadImage(String URL) { Bitmap bitmap=null; InputStream in=null; try { in=networking.OpenHttpConnection("http://izwaj.com/"+URL); Bitmap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conditional Rate Limiting (Nginx or Webapp)? I am implementing a REST API which requires throttling. I know that, ideally, you would place this logic in nginx. However, I have some unique constraints. Namely, I have one class of users who should NOT be rate limited. It would not be useful to implement a rate limit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing nothing to an AsyncTask in Android How do I instantiate and call and class extending AsyncTask if I am passing nothing to it? Also, I am setting a textview in the UI to the calculated result. Thanks, Ben A: Example implementation for Async without params and result Bitmap in onPostExecute result /** * My A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Get maximum HorizontalScrollView scroll amount I'm adding floating arrows to my HorizontalScrollView which will let the user know that there are more item's outside of the current view. What I need is how to tell if the View has been scrolled to it's maximum. You would have thought the method getMaxScrollAmount() wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: (New to ViewStates) What is the best way(s) to save a dynamically generated control into the viewstate? I am creating a web application in Asp.net and I'm still fairly new. I'm just starting to wrap my head around the basics of the ViewState. In my application, people are searching through a database and I give them...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reading a text file using BufferedReader and Scanner I need to read the first n lines of a text file as lines (each line may or may not contain whitespace). The remainder of the text file contains an unknown number N of tokens that are whitespace-delimited (delimiters are a mixture of space, tab, and newline charact...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PHP test for corrupt (but apparently fine) images I have a simple image upload script that uses SimpleImage.php (http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/) to resize and save 2 copies of an uploaded image. There isn't a massive amount of validation, just checking that it exists and that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Persisting interfaces using JDO/Datanucleus I have the following class: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true") public class TclRequest implements Comparable<TclRequest> { @PrimaryKey private String id; @Persistent(types = { DNSTestData.class, POP3TestData.class...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to copy or match only selected elements from an XML input with namespace and then remove the namespace at the same time Given below is my XML input. How do I copy or match selected elements that I want to reflect in my XML output using XSL. The general idea of the logic should be to specify only the elements I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jqueryUI datepicker and allowing non-dates? How would I use the jqueryUI "datepicker" if I want my input field to allow non-dates (or invalid dates)? I have a server-side script which can handle a normal date as input, or an asterisk to mean "latest date available" (amongst a few other special codes). It would be ni...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use property injection in unity and asp.net mvc3? I would like to use property injection in an MVC3 application. I have configured Unity 2 as a DI container and everything works just fine by constructor injection but I can't figure out how to use property injection. I marked properties with the [Dependency] a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I write an ADL-enabled trailing return type, or noexcept specification? Imagine I'm writing some container template or something. And the time comes to specialize std::swap for it. As a good citizen, I'll enable ADL by doing something like this: template <typename T> void swap(my_template<T>& x, my_template<T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: Objective-C – Message a view controller from application delegate I want to download some data in the application delegate in - application:didFinishLaunchingWithOptions: After I have downloaded some data I want to set this data to an NSArray property in a view controller. If I have a synthesized property of NSArray...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I use HierarchicalDataTemplate to display XML Elements and Attributes? I'd like to display arbitrary XML in a TreeView, with expanding and collapsing nodes, showing both the element name and the set of attributes and their values. I think I can do this with HierarchicalDataTemplate . I've seen the hints to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: gcc optimisation effect on structure size Say I have a large struct, which includes other struct, etc. Would gcc -os or any other gcc optimisation switch change the way it's stored in memory? I.e. would it pack the structure so as to squeeze out some extra space? thanks, A: No, in order change the native platform a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript - How to remove all extra spacing between words How can I remove all extra space between words in a string literal? "some value" Should become "some value" Also, " This should become something else too . " Becomes "This should become something else too ." Do not worry about mov...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: open picture in new tab, same as if do right click - View Image in firefox (WatiN) I need to open image in new tab exactly as it's being done by clicking right button on it and then selecting View Image in firefox. Copying pic url and using browser.Goto doesn't give me the result i need due to some tricky javascript...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I check condition while mapping in SSIS? i want to create one ssis package which takes values from flat file and insert it into database table depending upon there companyname. for example: I have table fields: Date SecurityId SecurityType EntryPrice Price CompanyName 2011-08-31 5033048 Bond...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JEditorPane and source of HTML element I have (still) problems with HTMLEditorKit and HTMLDocument in Java. I can only set the inner HTML of an element, but I cannot get it. Is there some way, how to get a uderlying HTML code of an element? My problem is, that the HTML support is quite poor and bad written. The API ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delphi menu choice My question is how to catch which menu item was pressed in some form? For an example : I have a form with a button. When I pressed the button the menu of the application will be on focus and the child form wait to choose a menu item. After I choose one the child form show a message with the name o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: List to Dictionary conversion using Linq Can somebody suggest me what Linq operator should I use to write an elegant code to convert List to Dictionary of list? Eg. I have a list of person (List<Person>) and I wanted to convert that to dictionary of list (like Dictionary<string, List<Person>> using the person's...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rails 3, Facebook, Koala: NoMethodError: undefined method `closed?' for nil:NilClass seems I get this error from Koala when I'm trying to connect with the graph api: NoMethodError: undefined method `closed?' for nil:NilClass It is exactly the same problem I had before with Omniauth which can be read here: https://gi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the proper way to store an array into a database table? I have an array of 50+ elements that dictates how many hours were worked for a given week. What is the proper way to store this information into a database table? My initial idea was to use a delimiter, but the text is too large (280 characters) to fit....
{ "language": "en", "url": "https://stackoverflow.com/questions/7635978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: character module blues: bad memory address on close and read I'm making a simple fifo style character module. I'm struggling to get it to behave. Here's what's happening: I'm getting close failed in file object destructor: IOError: [Errno 14] Bad address When i try to close a file object that I'm using to talk to m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to pass session parameter from jquery to ASHX handler Below is my Jquery code and I would like to pass Session paramater e.g. Session["ID"]. Jquery calls ASHX page All below parameters are working fine and the session parameter has a value, but how can I pass session paramater from Jquery? So below code "paramat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript Regex (x,y) Match multiple I am newbie to Javascript. What regex will be used to match the following expression type. Please note that there could be spaces between digits. (3,2), ( 2,3),(5, 4) I am trying as (\d+,\d) but this is not working for multiple pairs of (x,y). A: See the RE below: \s* means: "...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting data off the Clipboard inside a BackgroundWorker I have a background worker and in the DoWork method I have the following: var clipboardData = Application.Current.Dispatcher.Invoke(new Action(() => { Clipboard.GetData(DataFormats.Serializable); })); Why does this always return null even though I know there...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Vaadin LoginForm layout - HTML I'm facing problem trying to set horizontal layout to LoginForm of Vaadin. The only solution for which I have an idea is overriding getLoginHTML() class so that it return the proper code. I've added style="float:left" which worked for me in normal html. The changed part of code look...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL statement - dynamically merging columns from different tables into a single result set I am not sure this is possible with SQL (say we are executing on DB2) - infact I would say it is not, but thought I would ask some folk who are more experienced in SQL than I am to comment. I have described the problem and wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7635998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I delete several items from an object, which is copy of another object, without affecting the one of which is derived? help me please to use the function "RemoveAll" or maybe there should be another implementation. I have an object (services) which contains a list with items. I make another object (anotherS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python split string in moving window I have a string with digits like so - digit = "7316717" Now I want to split the string in such a way that the output is a moving window of 3 digits at a time. So I get - ["731", "316", "167", "671", "717"] How would the approach be? Straightforward way is to put in for-loop and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Array diff with multilevel array I have this this multilevel array : $productpacks . Example $productpacks[0][0] is 4355 . Now, I have another array that is simple : $codescart[] . Example $codescart[0] is 4355 . I am trying to differ those two like this (it does not seem to work) : foreach($productpacks as $pack) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Richfaces 4 rich:inputNumberSpinner: not getting "set" in backing bean I have done JSF work before, but am new to RichFaces. To test my set up and environment, etc. I have tried to make just a simple little app where the user enters two numbers, clicks a button, and the app returns the sum and product of the numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Start application from browser Possible Duplicate: how do I create my own URL protocol? (e.g. so://…) I was wondering if it is possible to start an application using a browser url. Just like origin(origin://), itunes(itms://), Trackmania(tmtp://) ... I supose a registere setting needs to be changed for this. But ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ant builds running through maven issue So I'm building a project with maven, and in this maven pom we have a reference to an ant build script. The maven pom triggers this ant build to build a project (an install of alfresco with mysql database and tomcat server packed up with it). The issue seems to be when you try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I create getter and setter for vector in C++? I declared vector<test*> test1; as a private, and I'd like to create getter and setter for this. I tried, void setV(vector<test*> test1) { test1 = test1; } vector<test*> getV() { return test1; } It works, but it works very strange. Is there another way...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to configure a Git Work-flow like this? "Only one user can push to the central server(bare repo)" I will work with one designer that does not know anything of Git. I need to setup an Work-flow where I need to give permission to the code that the designer uploads to the central server. I'm a newbie in Git. How ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Application failed codesign verification When I upload my app to the App store I am facing the issue below: Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate I did all of the changes below: * *cleaning project, *cleaning all, *de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I correctly update a progress bar for an operation of unknown duration within an Eclipse wizard? I have implemented a wizard for my Eclipse plug-in, showing several pages. One of these pages needs some lengthy initialization, that means it consists of a SWT table, which needs to be populated by information c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to update PDF metadata with CAM::PDF How can I add/overwrite the title and author metadata of a PDF using CAM::PDF? A: I'm the author of CAM::PDF. The library doesn't support this sort of edit, but you can do it by digging into the internals like this: #!perl -w use strict; use CAM::PDF; my $infile = shift || d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I change the project directory in App Engine Launcher? I have a project (a version of which has already been deployed) in the App Engine Launcher, and I would like to change the project directory, as I have since moved the project files to a new directory. But, when I click to edit the project, the option to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio 2010 crashes at startup, even in safe mode I have Visual Studio 2010 Premium in a virtual machine (VM) and all was working fine until today, when I uninstalled Office 2010 Trial, installed Office 2010 Professional, and created a snapshot of my VM. Now when I open Visual Studio, the interface appears fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Radio buttons using wxpython I'm Building a gui using wxpython.. i have buttons and radiobuttons in it, and i wanna to do such tasks based on what the current values of the widgets in the gui .. the insert button has a multiple if statement one of these if statement is to check whether a radiobutton is selected. i d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: import statement to create a session object in android In android, I want to create a session object. I saw a statment in one of the post as follow; public static Session mySessionObject = new Session(); where can i get the import statment? I simple want to have a client base login that manages session. Thank you, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: why is read-only sqlce is very slow on windows phone 7? i am developing an app on windows phone 7 (wp7) using sdk 7.1. i am using the natively supported sqlce database. the database only stores 1 table with 5 "string" columns. however, there are nearly 90,000 records. the table is indexed (specified using the Index ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can i have a single NSMutableArray in my multiple views application? I have a navigational based application which has multiple views. Is it possible to use one single NSMutableArray for the whole applicaiton? Can i add objects to that NSMutableArray in one view and then remove object from the same NSMutableArray fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extracting events from Google Calendar Today I created code: // Create a CalenderService and authenticate CalendarService myService = new CalendarService("exampleCo-exampleApp-1"); myService.setUserCredentials("j...@gmail.com", "mypassword"); // Send the request and print the response URL feedUrl = new URL("https:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: _InterlockedCompareExchange64 compiler intrinsic on Windows XP? Based on the Microsoft documentation InterlockedCompareExchange64 is not available as a Windows API call until Windows Vista. See http://msdn.microsoft.com/en-us/library/windows/desktop/ms683562(v=vs.85).aspx. However, it seems like the _InterlockedCom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Flash stage dimensions when exporting for iPhone AND iPad In the Flash CS 5.5 AIR settings for iOS, in the General tab of a panel, there's a menu that lets you specify the target device: * *iPhone; *iPad; *(both) iPhone and iPad; What happens if I specify the third? That is: I can't understand if I can use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c# save directory between sessions Not really done this before so I wanted a few pointers. In my app, users are able to pick a folder that the application looks in when it is started to pick up some input files. What is the best way to save this information between sessions. the old fashion way I would have done ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: regular expression no characters I have this regular expression ([A-Z], )* which should match something like test, (with a space after the comma) How to I change the regex expression so that if there are any characters after the space then it doesn't match. For example if I had: test, test I'm looking to do someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Something like an operation filter in WCF REST? I am looking for something like the AuthorizeAttribute in MVC, something I can use like this: [WebGet(UriTemplate = "data/{spageNumber}")] [WebCache(CacheProfileName = "SampleProfile")] [WcfAuthorize] public IEnumerable<SampleItem> GetCollection(String ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Predict consequences of installing LESS, CSS3PIE on a high-load project I faced situation of global site redesign (not appearance, but code architecture and underlying technologies). Website has about 135 000 visitors everyday. And it's crucial to make right decision now. I had no experience of using LESS and CSS3P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Facebook php in codeigniter adds PHPSESSID to URLs? I started using facebook php sdk with codeigniter but since then the urls on my website all have a 'PHPSESSID' added to the end. I created a config file containing the app id and secret and used the following code to load the library. $this->load->library('fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert sql timestamp to yyyy-mm-ddThh:mm:ss.sssZ I need to convert a SQL Server timestamp format (stored on Timestamp java data type) into this format yyyy-mm-ddThh:mm:ss.sssZ (it's the date format parsed by Alfresco) How can I do it? thanks for your time! Andrea A: Try this SimpleDateFormat: SimpleDateFormat sdf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to obtain language independent values from Android Geocoder I am working on an application where i need to know the users location: country, state/province, and city/town. Then I want users to interact in some way based on their location: country, state/province, or city/town. However the geocoder gives me these...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JBoss 7 application, start/stop from ui? I am running an application on a Jboss 6 server and using mbeans to start/stop my app without redeploying/restarting server. I was testing on JBoss 7 and saw that there were no mbean support. How do I create that functionality now? I've yet to find anything on this. A: There...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What SQL Server database and table does Sharepoint 2010 use to hold "Issue Tracking List" data? Trying to track down this table, I've spot checked some 160 tables and have not been able to find the table that stores data for this list. I have these databases created by Sharepoint 2010: Application_Registry _Servic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery animation on window load on an infinite loop? I need a hand making this code below working. I've had it working so that when the user hovers over the image it animates up, then down when losing focus, but now I want it to run on window load on an infinite loop. $(document).ready(function(){ $(window).load...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: html, displaying a link as normal text I was wondering if you could display a link as normal text. <a id="" href="" target="_parent"><img src="" width="121" height="20" alt=""> <div style="position:absolute;left:163px;top:1px;font-size: 12px; display: block"> <font color="white">Log in</font></a> I'm trying to over...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Installing memcached for a django project From the django docs: After installing Memcached itself, you'll need to install a memcached binding. There are several python memcached bindings available; the two most common are python-memcached and pylibmc. The pylibmc docs have their own requirements: -libmemcached 0.3...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: ssh gateway in python - colors available? I am using python bindings for libssh2 to connect to SSH2 server programmatically. The received output should be forwarded to a remote server and displayed there. The code below works correctly, but it displays the result in monochrome. How can I display the colors or at le...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change font size in form combo box in MS Excel I need to change the font size in an Excel combo box because the default font size is way too small. Is there a way to do this? This is the code I use for my macro: Option Explicit Sub DropDown4_Change() Dim comboValue As String Dim Key1ColumnIndex As Integer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linux kernel: skbuff structure - routing information.. I have a doubt, pls clarify. Suppose I have a System connected like the below, A -> B -> C -> D I need to send a packet from A to D, so when a packet moves out of A, it should update the routing information somewhere in the packet or in the skbuff so that packet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL query BOOLEAN MODE Case Sensitivity My search is case sensitive, but I want it to be case insensitive. In MySQL I have my database and table set to utf8_general_ci. The search is still case sensitive. I have been doing some research and it seems the reason behind this is BOOLEAN MODE in my query. Is there a wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jquery repeat animation This code seems to break the remainder of my code? function sam() { $("#animate").children("#box") .animate({ left: '+=1100'},8000, 'linear', function() { $("#animate").children("#box").css("left", "0"); sam(); }); } setInterval(sam()); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unable to instantiate Action, com.hcl.hips.action.KaList, Possible Duplicate: Unable to instantiate Action, com.hcl.hips.action.KAListproduct, defined for 'KAListproduct' in namespace '/'com.hcl.hips.action.KAListproduct Unable to instantiate Action, com.hcl.hips.action.KaList, defined for 'KaList' in namespace ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Drag from NSOutlineView never accepted I'm trying to implement dragging from an NSOutlineView and although the drag starts OK it is never accepted by another app. The pertinent code is: - (BOOL) outlineView:(NSOutlineView*)pOutlineView writeItems:(NSArray*)pItems toPasteboard:(NSPasteboard*)pBoard { CItem* theIt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access list items from JavaScript I want to access model items by index from JavaScript into a Play Framework template: <script type="text/javascript" charset="utf-8"> window.onload = function() { var cl = ${colors.size()}; int i = 0; for (i=0;i<cl;i++) { labels = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: passing array post values jquery ajax to php I spend my all day in searching of this solutions but i didn't find any proper way to do this. i am beginner with jquery need code help. i have a dynamic table in a form which will send bed details to php. its diagram is like this. numbers below user choose from select dr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Differentiate single Dialogs with DialogInterface.OnClickListener We have two AlertDialog objects AlertDialog dialog1, dialog2; both dialogs are created via AlertDialog.Builder. How can we recognize which dialog is source of event in DialogInterface.OnClickListener ? with single dialog we can do this: AlertDialogIn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Ext.NET DateField - formatting reversing itself We have a weird situation where an Ext.NET datefield is 'switching' formats if we input values in a certain style. Specifically, if I input '01/12/09', when I blur the field, it will appear as '12/01/2009'. If I then focus the field and remove the '20' so the format re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What will return this function? (Math.random()) What range of Numbers? Seriously, I got headache trying to figure it out -_- public function gerRandom(i:uint):uint { return Math.round(Math.random()*i); } Whole numbers from 0 to i including? I need these. A kind of a noob question, but whatever :D A: Will r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do server-sent events actually work? So I understand the concept of server-sent events (EventSource): * *A client connects to an endpoint via EventSource *Client just listens to messages sent from the endpoint The thing I'm confused about is how it works on the server. I've had a look at different examples...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: Function overload resolution trouble Over the weekend, I had specific problem with function overload resolution that I can't seem to solve. The code below is a distillation of the problem: #include <iostream> using namespace std; template<typename T> void f(const T& t) { cout << "In template function." << endl;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jQuery 'this' legacy scoping I'm trying to back-port a slideshow I wrote in jQuery 1.6 to work in Drupal, which you may or may not know is "locked" to jQuery 1.3 at present (I know, it's retarded). I'm having a problem with scope though, as jQuery 1.3's $(this) model isn't as robust or helpful as it is in more moder...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to identify Delphi StringList object is created or not I have declared variable of TStringList in private section. In a button click event I want to access that TStringList object. sVariable:= TStringList.Create; sVariable.add('Test1'); Now whenever i click on that button each time its newly created and memory ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MATLAB does not prompt me when saving a file that is being debugged When saving a file that is being debugged, MATLAB would typically ask me if I wanted to proceed and warn me that saving the file to disk would exit the debug mode. Recently MATLAB stopped showing me this warning. At the moment, if I type Ctrl-S to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best API to combine C++11 async/futures with Windows asynchronous IO? Especially the upcoming Windows 8 (with Metro) will require that any IO is programmed asynchronously. In C#/.Net there seems to be special await and such like constructs for that and the JavaScript API will have its own mechanism for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Trouble popping a view within a tab bar and nab bar I have a UITabBarController, which is the second item in a UINavigationBarController. Within the UITabBarController are a couple of views, one of which is a UIViewController subclass called AccountViewController. Got that? Login View Controller -> UIViewController ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: typo3 - building a simple functionality I am building a fairly simple website based on typo3. I'm new to the CMS but I've read almost everything I could find about it - tutorials, wikis, documentation. I'm stuck with designing a functionality for the administrator to be able to create records with predefined attribu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: accelerometer sensor avaiblable in locked screen / screen off mode? it seems that there is a bug in froyo with respect to the onSensorChanged method when the phone goes to lock screen mode, i.e. there are no values coming from the accelerometer. I read about this issue in this topic Now, the topic does mention a wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validation problems when using jQuery and Ajax to post back form in partial view I am having some challenges with validation in my ASP.NET MVC3 project when using jQuery and AJAX to post back data from a partial view. Adding validation to the NoteText field within my partial view results in "$('#noteAdd').submit" ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use sass-rails helpers in Ruby? From the Github page it would seem that one can use the Sass helpers (asset_path, asset_url, image_path etc.) in Ruby but I can't figure out how. I need to set the default_url for a Paperclip attachment and want to use one of my assets from the asset pipeline for that. A: You ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Minimum and maximum length in a regular expression I'm using the following regular expression to validate emails: ^\w+([-.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$ Now I want to modify this regular expression to validate the email length using {5,100}. How can I do that? A: ^(?=.{5,100}$)\w+([-.]\w+)*@\w+([-.]\w+)*\.\w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why System.out.println() not working in Netbeans 6.8? I am facing one problem in Netbeans 6.8, the output window of Netbeans not showing the output from project which i used as system.out.println(). How to solve this issue with Netbeans 6.8? A: * *Ensure that you are running the right project, many a times we ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flash size on publishing post by Graph API I use Facebook Graph API to post on user's wall. I also attach Flash application ("source" parameter) to it. $data = array( 'name' => 'Test name', 'message' => 'Custom message', 'picture' => 'http://www.example.com/image.png', 'link' => 'http://www.exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: extra css is not loaded. any suggestions? I've added the following to my <head>: <link rel="stylesheet" type="text/css" media="all and (min-width: 481px) and (max-width: 1024px)" href="<?php bloginfo('template_directory'); ?>/css/tablet.css" />` For the main page which is header.php, it is working fine. But if I go...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Please assist me with this simple script I am new to JavaScript and would like to ask for some help with my simple script. What I am trying to do is to retrieve and display the values of all list item elements in the unordered list with the help of the (for) loop. I was able to get the script display all list items ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Writing Javascript to Response.OutputStream Currently, I have a controller action that outputs a PDF (as a Response.OutputStream.Write()) and this is working just as it should. However, I am interested in outputting another script section along with the PDF to "automatically print" (or simply perform a window.print...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++ class operator overloading It's possible to overload the not operator for a class: class TestA { public: bool Test; const bool operator!(){return !Test;} }; So that... TestA A; A.Test = false; if(!TestA){ //etc } ...can work. However, how does the following work? if(TestA) //Does this have to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++ Interview: vtable for a class with a pure virtual function I was asked this interview question today!! (it was a really awkward telephonic interview..): What is the difference between the vtable for a class with virtual functions and a class with pure virtual functions? Now, I know the C++ standard doesn't s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Show a div with the layout like a dialog I need to format multiple containers (div) in a web page to look like a jquery-ui dialog. The divs should automatically change if I change the theme. So far I'm applying a jquery-ui tab to the div, but this don't have the same title bar and I need to add a lot of html for eac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic monitoring of log file I need to monitor a log file for a pattern. The log file continually gets written by an application. * *The application can add new log statements while my program is reading it. *The log gets rolled over when it’s >200 MB or at end of the day, so my program should handle change in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7636234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }