text
stringlengths
8
267k
meta
dict
Q: Uncheck a checked checkbox with jquery in asp.net I have several checkboxes inside an UpdatePanel of asp.net Let's say, I have 3 checkboxes in that panel. Each time, one checkbox is checked, the previous checked checkbox will be unchecked. I have tried like this: <asp:CheckBox ID="CheckBoxExport1" CssClass="checkbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prolog - Variable as operator I have an operator stored in a variable Op and two integers are stored in X and Y. Now, I want to do something like (Z is X Op Y), but this syntax seems not to be correct. Does anybody know if there is a way to do this in Prolog? Thanks for your answers A: you can do it by building the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: NetBeans: how to add ScrollBar to JPanel I am developing a small desktop application in NetBeans. On my UI, I place a JPanel and put a single JLabel on it. The content of this JLabel is generated dynamically, so if the content is very large then it goes out of screen.So is there any way in which I can specify a fixe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Rewriting url to hide index.php and to make query nice I had developed project with custom MVC architecture. And I am new to Apache world, so I would appreciate help with this matter. On a Web I had found lots of tutorials, but no one like mine interests. I have URL like this: http://knjiskicrv.comoj.com/index.php?p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add children to wrap panel I'm adding rectangles to a wrap panel like this: For i = 0 to 20 wrapPanel.children.add() next I would like to use this loop because I don't want to specify the limit: Do wrapPanel.children.add() Loop But how can I break the loop when the wrap panel is filled? For example the loop would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update small portion of view in Backbone or Spine The common pattern in Backbone/Spine is to re-render the whole view from scratch when something happens. But what do you do if you only need to update a small part of it (highlight, select, disable, animate etc)? It doesn't make any sense to re-render everythi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Updating UI / runOnUiThread / final variables: How to write lean code that does UI updating when called from another Thread I have been reading up on the UI updating when I found out that, like WinForms, Android need to do UI updates on from the main thread (too bad, I was hoping someone could once and for all solve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android resources not found on some devices We have an application(with moderate amount of strings) which we translate to 27+ languages. We make 2 builds of the application. These 2 builds only differ in the name of the package. So basically we first do a build of our application with package name lets say com.andro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: ListPicker always crashes when ExpansionMode is set to FullScreenOnly How should I make my list picker open in full screen mode? When I set ExpansionMode to FullScreenOnly it crashes. I tried creating blank project and doing the same but it also crashes. <toolkit:ListPicker Height="100" HorizontalAlignment="Left" Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what's the key sequence when enumerating an object in javascript? I already know how to enumerate an object in javascript. My question is what's the key sequence while enumerating.Is it by A-Z or time ordered? code var a = { "a":"" ,"b":"" ,"c":""}; for (var k in a) { console.log(k);...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mapping private property entity framework code first I am using EF 4.1 and was look for a nice workaround for the lack of enum support. A backing property of int seems logical. [Required] public VenueType Type { get { return (VenueType) TypeId; } set { TypeId = (int) value; } } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: WorldWind Java on a Netbeans Platform TopComponent I'm trying to add a layer to WorldWind Java (version 1.2) situated on a Netbeans Platform TopComponent (using netbeans 7.0). The TopComponent is in Editor mode, and for WWJ I use WorldWindowGLCanvas which is the single swing component on the TopComponent and it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery hover event over iframe/flash in IE6-9 not working? See the example below: http://jsfiddle.net/sPvYk/3/ For the purpose of this demo the close button is visible, but in real life it's hidden out of view until you hover over the upper right corner. So pretend it is not there. Move your cursor to the upper righ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Invoking print method from webservice How to call a print method of print document class from webservice. The application must be hosted in IIS. I have tried implementing but the print method executes when running on development port but upon hosting in IIS , it does not prints.
{ "language": "en", "url": "https://stackoverflow.com/questions/7619963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can i format numbers in a php array? Im putting values into an array. example values: 14 15.1 14.12 I want them all to have 2 decimals. meaning, i want the output of the array to be 14.00 15.10 14.12 How is this easiest achieved? Is it possible to make the array automatically convert the numbers into 2 decimal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Want a simple quick way to make ticks of a 3D plot longer I know there are many ways even some good packages available, but I find these methods are mostly too complex for me. So, what's a simple quick way to make ticks of a 3D plot (actually, a plot generated by RegionPlot3D) longer? I don't care about code effien...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Use copy from windows diplaying the status form with delphi, what i can display the form that display when i start a copy? Thanks very much. A: You should use the SHFileOperation function. procedure TForm1.Button1Click(Sender: TObject); var shfileop: TSHFileOpStruct; begin shfileop.Wnd := Handle; shfileop.wFu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sort views in a NSMutableArray I am using a NSMutableArray to get all the subViews of a specific superView, everything works, but the log says: superView contains ( "<UIView: 0x68795c0; frame = (20 172; 238 115); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0x689aad0>>", "<UIView: 0x6e67d90; frame = (143...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to proceed with these types of project? I am going lead a project, where I have Asp.Net webapp with SQL Server 2008 database and a WCF Service with REST to expose the data of the database to clients like winform app, java apps, android apps etc. I want to use LINQ to Sql in my project. Earlier i have experience ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to implement 64-bit integers using a 32-bit compiler? Although there are already a lots of such questions on stack overflow regarding this (almost near to what I want to know). But none of those got the answer that would have solved the case. My question basically is about following: Is it possible ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Show deafult autocompletion results when MultiAutoCompleteTextView gets foucs In MultiAutoCompleteTextView i am displaying auto completion results from my sqlite database. Means i have set custom adapter for MultiAutoCompleteTextView. Now I want to autocomplete default results when MultiAutoCompleteTextView gets foc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to format NSDate to NSString? I have an date string which looks like this: 2011-10-01 08:45:34 +0000 How can I format it with NSDate? Thanks :D A: you can try this method in NSDateFormatter - (NSDate *)dateFromString:(NSString *)string an example dateFormatter = [[NSDateFormatter alloc] init]; NSLocale *en_U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do we style custom login buttons without fb:login-button after fbml is deprecated? Can you help me figure this out. Are my assumptions correct here : * *fb:login-button will be deprecated in 2012 along with all fb: tags. *The alternative to fb:login-button is use a html button tag (or similar) and some javas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: setting properties and delegates -- when to use self? I'm working through the NSXMLParser sample code and I have a couple of questions about how delegates and properties are set, particularly in the AppDelegate. In the interface, the AppDelegate is declared to follow the NSXMLParserDelegate protocol, but it doesn't...
{ "language": "en", "url": "https://stackoverflow.com/questions/7619994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL silent install (using NSIS) not working properly I am trying to make a custom installer that silently installs MySQL but I am encountering the same problem for days. After installing the MySQL server, the initialization fails thus, when I try to type the password it closes instantly(meaning that the password w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you tell pyximport to use the cython --cplus option? pyximport is super handy but I can't figure out how to get it to engage the C++ language options for Cython. From the command line you'd run cython --cplus foo.pyx. How do you achieve the equivalent with pyximport? Thanks! A: Here's a hack. The following c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Need to make my code faster. Storing results of repeating statements in array of Boolean My project deals with historical and real time data analysis. Contains several complex algorithms (over 800) at its last stage. Overall the analysis stages are roughly as follows: * *Basic formulas calculation->results stora...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to run command in the process which is executed with admin rights? I want to create a self signed certificate and install it using through c# program. I use makecert to make certificate i run it as administrator and i pass command in the ProcessStartInfo.argument but the command doesn't executes what is the prob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to validate using Javascript an input tag of type text in an html form that the content of it will be Arabic/Englsih/Number? How to validate using Javascript an input tag of type text in an html form that the content of it will be one of the following:- * *Arabic or English Characters ONLY -OR- *Arabic and E...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Accessing Facebook Cookie data through Java (without php-sdk) I am using the server side flow for FB authentication (as mentioned on http://developers.facebook.com/docs/authentication/) and I am able to get the authentication token successfully. Now I want to implement this - 1) The server side is able to identify t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is non static members inside public static class thread safe? Can you check this function for me. Is it thread safe or not to be used. I am trying to understand how exactly public static classes are working. This function will be used to get userId of visitor from database by username. So many concurrent call may ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lazylist Layout I created my own Lazylist which originally created by Fedor here(Lazy load of images in ListView). I am trying to make my own custom Layout which looks like the image below. Is there anyway to accomplish this? A: modify your item.xml like this way <RelativeLayout android:layout_height="55sp" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RCurl, error: connection time out I use the XML and RCurl packages of R to get data from a website. The script needs to scrap 6,000,000 pages, so I created a loop. for (page in c(1:6000000)){ my_url = paste('http://webpage.....') page1 <- getURL(my_url, encoding="UTF-8") mydata <- htmlParse(page1, asText=TRUE, e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Function to stop a setInterval call leaving the width style static The code below (found here) shows a kind of progress bar that moves very fast towards the right side re-starting non stop. This is done by changing the element's width within a setInterval. How can I build a function that freezes the progress bar mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to implement business layer validation to the Linq2Sql classes I am aware of the business layer validation for the model classes in general n-layered architectures model classes, by using validation attributes. Now, I just i want to know if its applicable to Linq2Sql classes, as if I manually add some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Update only first record from duplicate entries in MySQL Problem SOLVED! Update: Not quite right what I need, lets do example on simple table with fields ID,NAME,COVER I have got 100 entries with 100 names, some of the names are duplicated, but I want only update first one from duplicates. Trying to update all the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Call onchange handler function I have this OnChange function: $("select[id^=type]").change(function(){/*...*/}); The question is: How can I call this from the following function: $("#all_db").change(function() { /*...*/ $("select[id^=type]").each.trigger("change"); //I have tried this }); A: $("select[id^...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to share an object with the entire project? For example, if I create an UILabel in an class, how can I use it wherever I want to? I already know how to share between two classes. But I need to call the value of an object in all my classes. Is it possible? A: Is a singleton what you want? Basically a singleton ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to install SolrNet.NHibernate? I tried Install-Package Solrnet.NHibernate on a new console application but it failed with this error: Attempting to resolve dependency 'NHibernate.Core (≥ 2.1.2.4000)'. Install-Package : Unable to resolve dependency 'NHibernate.Core (≥ 2.1.2.4000)'. At line:1 char:16 + install-pac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: field :published_on, :type => Date; not showing in MongoID + Devise I have created Model "House". I followed this tutorial. I created my scaffold and I go to my model after I add: field :published_on, :type => Date; Then I see the calendar in views for update the views like tutorial, but when I update the DATE in n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: where is the bugtracker of Git? I was searching for the bug tracker for Git but I didn't really found it on their homepage and their issue tracker on GitHub is disabled. A: Git bugs should be reported to: git@vger.kernel.org as indicated on the Git Community page. The mailing list archive can be viewed and searched...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: testing a model mixin in Rails 3.1 I'm upgrading to Rails 3.1 and have a problem with testing a module that we include in several ActiveRecord models. We previously used a test model, like this: describe FundTransfer do class TestFundTransfer < ActiveRecord::Base include FundTransfer # stub db columns ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: using the .val attr in jquery Basically when i type something in the textarea, i can change the font either by inputting a size in a input box with id font_size or clicking the 64px button, once the font changes and i click done, i appended the value of what's in the textarea to the image in the div with an id imag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sencha Touch Panel setActiveItem not working I am building an app with Sencha touch. I have my viewport as a Carousel and inside that carousel there are 2 panels. The second panel in that viewport is also a container for 2 nested panels. App.views.Viewport = Ext.extend(Ext.Carousel, { fullscreen: true, indic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to pass model (and anything else) from view to partial view The overload for @Html.Partial takes a model, so in the "primary" view I put in this.model: @Html.Partial("_GenericIndex", this.Model ) I tried just putting @Model in the partial view to see if anything showed up, but I got nothing. So, how do I use t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Git, Mac OS X and accented characters On MacOSX with Git, there is a problem with different UTF8 representations of filename encodings. (Similar problems also exists in SVN.) There is a patch for this here. I wonder if there is any bug report (in their bug tracker which I haven't found yet) with any discussion about...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: getting the saved password in android I am creating an android device in which there ia a login activity. how to check whether a certain id and password is saved in android device earlier and if it is saved then when the user has entered the emailid the password should get automatically set in the password field. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Use of exec command in process creation Possible Duplicate: exec and fork() I want to know what exec command is doing. Fork creates new memory for child process right(With parent data) and when execs is called wha it is doing? Whether overwriting datas in the newly created memory or Parent process memory. A: As...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Zend Framework - wrap dt dd in dl From another question in Change HTML output of Zend_Form does anyone know how I can produce the following html output? (Wrap each dtdd sets with dl) <form> <fieldset> <dl> <dt>label etc</dt> <dd>input etc</dd> </dl> <dl> <dt>label etc</dt> <dd>input ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: change transparent image color dynamically i have to change image color dynamically using php i used the following code $imgname = "source.png"; $im = imagecreatefrompng ($imgname); if($im && imagefilter($im, IMG_FILTER_COLORIZE, 27, 133, 85)) { echo 'Image successfully shaded as per color.'; imagepng($im, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Nested Prolog functions rotate(X):- write('convert -rotate 90 '),write(X),write(' o.jpg'), writeln(0). beside(X,Y):- write('convert -scale 50%%x50%% '),write(X),writeln(' 0111.jpg'), write('convert -scale 50%%x50%% '),write(Y),writeln(' 01121.jpg'), write('convert +append '),write(X),write(Y),writeln(' o.jpg'). abo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Modeling Identifying states & Modeling Validation in State Machine Diagram I am wondering what might I consider as States when I am asked to model state of a Booking Process (eg. Booking a Movie Ticket Online). I did something like It looks abit bloated mainly because of the validation. Should I even have a Valid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Retrieve Applications Requests (apprequests) through FQL? From the Requests Dialog document: Graph API To retrieve a single User ID from a single Request ID using the Graph API, issue an HTTP GET request to the request_id: https://graph.facebook.com/[request_id]?access_token=USER_ACCESS_TOKEN Is this request a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the "Rails way" to deal with a large number of controllers? In my Rails application the controllers are starting to pile up (> 30). Would it be Java, I'd started to create sub-packages long ago, but I'm a little hesitant here. I already have a User and an Admin namespace but I'm not sure if it is good to crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How close BackgroundWorker thread when application is deactivated? I create thread with BackgroundWorker, and in the loop I check every time if CancellationPending is true or not, like this: public MainPage() { InitializeComponent(); bw = new BackgroundWorker(); bw.WorkerReportsProgre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How should I use multiple UIViews to represent areas on screen? I am building an ipad app that has two basic regions on the screen: * *A dock on the left hand side contains "things" that you can drag onto the right side *A free-form canvas on the right hand side Under the presumption that the dock and the canv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: get List from Page to User Control i have a custom class List on my page code behind: public List<Category> Categories = new List<Category>(); now, i have also a user control on that page which is supposed to display that list. how can i access the list from the usercontrol, or, can i create a list directly in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Integrating a Bookmark App with a Social Networking Site I have a perfectly functional bookmarking app. As of now, it's non-exclusive; when I press "save" bookmark it sends the url to a general table in the DB. I need to figure out how to integrate this with an online community, so its user specific and each time a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the reason for perfomance difference for substring search using "index()" vs RegEx in Perl? I am assuming there might be an efficiency difference between: if (index($string, "abc") < -1) {} and if ($string !~ /abc/) {} Could someone confirm that this is the case based on how both are implemented in Perl (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Hibernate: SELECT in UPDATE I need do something like that: session.getTransaction().begin(); session.createQuery("update Pack p set p.book = (select b from Book b where ...) where p.id = :id") .setLong("id", pack.getId()) .executeUpdate(); session.getTransaction().commit(); And have error: Exception...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: c++ win32 get system volume accelerator is it possible to detect which keys are used for a system volume accelerator in win32 using c++? For example: if the user presses fn + key up (and this is also the key combination to change the system volume), i would like to detect this event and response to it. A: This is h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ListView subitems font not working I have a listview in which I want to apply different font in different cells according to some condition. But I'm unable to do this. I tried these types of codes to add item. ListViewItem entryListItem = listView_Standard.Items.Add("Items"); // Set UseItemStyleForSubIt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Display or hide an XML tag within a table I am trying to do a basic if/else statement to display or hide content within a table. It's also important to note that this content is being fed from an XML document. I am looking for an XML tag called . I have the following code and cannot figure out how to make this work....
{ "language": "en", "url": "https://stackoverflow.com/questions/7620121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RCurl, error: couldn't connect to host I use Rstudio server, and the packages RCurl and XML. I tried to scrape a webpage, but after having done it once successfully, I got the error message: Error in curlPerform(curl = curl, .opts = opts, .encoding = .encoding) : couldn't connect to host when trying to get the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript refuses to return anything getGood = function(v,x) { $.getJSON('json/products.json', function(data) { $.each(data, function(key, val) { if (v.toLowerCase() == key.toLowerCase()) { $.each(val.products, function(ckey, cval) { if (x.toLowerCase() ==...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open Graph: Facebook crawler name and ip’s to white list I am prepping up for the open graph release. One of the features from open graph is to crawl the site’s meta data and pull relevant info for the timeline. My sitemap.xml runs into gigs and is protected by rate limiting and ip whitlisting for popular crawlers l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Record Internal Sound using iPhone SDK I am making an app that requires internal sound to be recorded. Any solution? A: The is no public iOS API that will allow you to record all internal sound that an app or the device can make. Only certain types of internal sound can be recorded, for instance sounds produced by...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Firefox adds 1px on my submit button I'm trying to design my form via CSS. Problem is that I need a "standard" submit and a hyperlink which is styled like a button with CSS. My CSS currently looks like that: form .buttons input[type=submit], form .buttons a { padding: 0; margin: 0; } form .buttons input[typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can I develop Lego Mindstorms in Scala? Is there a Java SDK for Lego Mindstorms? Can I compile Scala code to JAR and run it in Lego Mindstorms? A: Likely no, but difficult to say. Mindstorm JVMs aren't complete JVMs, though they're not bad. That said: Even assuming all the classes you needed were available, Scala ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to set camelCase to code generated by code templates in Flash Builder 4.5? I'm trying to change the default event handler code generator, so that it generates the name of the function as onComponentidEventname For example: <s:Button id="myButton" click="onMyButtonClick(event)" /> The code template I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Passing a function to a variable I'm trying to pass a function to variable (req): var req; $('#complete-field').bind('keyup', function() { var url = prefixUrl + escape($('#complete-field').val()); req = function() { if (window.XMLHttpRequest) { if (navigator.userAgent.indexOf('MSIE') != -1) { isIE = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shorter Scala Script header It's possible to write shell scripts in Scala by starting a text file with: #!/bin/sh exec scala "$0" "$@" !# To ease script creation, I would like to write an executable called scalash (perhaps a BASH script) allowing to shorten Scala script header to just one line: #!/bin/scalash Is i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How can I draw an animated view in android? I created a custom view from scratch. Extended View and overrided onDraw(). When comes down in animating the view i generate a custom animation using offsets. eg. while(!isOnTop){ mOffset++; //draw the component a a it higher using the offset if(position == 0) isOnTop==...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Can i automatically send SMS (Without the user need to approve) I'm rather new to Android. Im trying to send SMS from Android application. When using the SMS Intent the SMS window opens and the user needs to approve the SMS and send it. Is there a way to automatically send the SMS without the user confirming it? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: iPhone:How can I store UIImage using NSUserDefaults? I cannot save image using nsuserdefaults and crash my app and I also used custom class UserInfo which used -(void)encodeWithCoder:(NSCoder *)encoder { NSData *imageData = UIImagePNGRepresentation(categoryImage); [encoder encodeObject:categoryName forKey:@"n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: fired event when user allow the app This event is fired when user login FB.Event.subscribe('auth.login', function(response) { // }); But i am just looking for the event that is fired when user allows the app from auth dialog ? A: FB.Event.subscribe('auth.authResponseChange', function(response) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tinyMCE alert what you just wrote In the tinyMCE init editor, How can i in setup do: ed.onKeyDown.add(function (ed, evt) { // alert the character you just typed }); Say if you type "a" a alert should come up with "a" A: The evt.keyCode property contains the code of the pressed key, so you can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pause and Resume Subscription on cold IObservable Using Rx, I desire pause and resume functionality in the following code: How to implement Pause() and Resume() ? static IDisposable _subscription; static void Main(string[] args) { Subscribe(); Thread.Sleep(500); // Second value s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Get actual date into seconds on iOS SDK I'm making an app where I need to get the actual date ([NSDate date]) into seconds since 1970 (timeIntervalSince1970). But I don't manage to get it working, how should it be done? A: NSTimeInterval seconds = [[NSDate date] timeIntervalSince1970] Note that NSTimeInterval is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Activity variable increment while calling again I have 2 activity * *Tranning Activity *Question Activity i have set one integer variable in question activity like :: int a=0;at the end of activity i jump from Question part to Training part.i call from question part to training part 5 time.But confusion is tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ZF disable optgroup lable in select To show a list of categories, I use the 'select' in a form. I insert the categories from the database. When I look through the select list I get something like this: 0 art The optgroup has a label with a number value. I want to remove the label from it so I have just in the list...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How should I resolve my appspot backup failure? I'm trying to make a backup but it won't: 2011-10-01 09:22:43.706 /remote_api 302 5ms 0cpu_ms 0kb 213.89.134.0 - - [01/Oct/2011:05:22:43 -0700] "GET /remote_api HTTP/1.1" 302 0 - - "montaoproject.appspot.com" ms=6 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.000032 $ python ./app...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting first field in a combo box to null I have a databound ComboBox on my form. Is there any way that I can make the first field blank. I can do this with a DropDownList in the HTML part of .Net but is there a way to do it for a ComboBox? Thanks A: This is the code I used to overcome the problem... ComboBox1.Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use shared location of assemblies by multiple applications I've just took over a bunch of windows services (on server no. 1) and web applications (on server no.2) on two servers. All those application use a great deal of the same core libraries. I would like to start fixing that mess and make my life easier. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In the Unix/Linux shell programming:the difference between > and >& int main(void) { char buf[] = "standard err, output.\n"; printf("standard output.\n"); if (write(STDERR_FILENO,buf, 22) != 22) printf("write err!\n"); exit(0); } Compile using: gcc -Wall text.c Then running in the shell: * *./...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Writing JUNIT for servlet? I am using glassfish application server. I need to write the junits for some servlet. My question here is how can i create simulated container, mock request and response with core java libraries or i need to use some kind of tool here ?Any pointers would be helpful? A: As hvgotcodes note...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: postback for one row in a gridview I put the gridview inside an UpdatePanel. the gridview contains number of columns: <UpdatePanel> <GridView> <asp:TemplateField HeaderText="View"> // column1 <asp:TemplateField HeaderText="View"> // column2 <asp:TemplateField HeaderText="View"> // column3 <GridView> </UpdatePanel> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenGL mipmapping: level outside the range? I'm going deeper on OpenGL texture mipmapping. I noticed in the specification that mipmap levels less than zero and greater than log2(maxSize) + 1 are allowed. Effectively TexImage2D doesn't specify errors for level parameter. So... Probably those mipmaps are not accessed ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get iphone device type? I want to get iphone device type if it is iphone 2 or 3G or 4 in xcode 4.0. Is there any way to get it? If it is, please tell me. A: Caleb is right, you shouldn't check for device type, but for functionality. For example, you can check whether the device supports multitasking like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I convert a hex color in an NSString to three separate rgb ints in Objective C? I may be making something incredibly simple incredibly complicated, but nothing I've tried so far seems to work. I have NSStrings like @"BD8F60" and I would like to turn them into ints like: r = 189, g = 143, b = 96. Have found wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Lazarus error - how to store result of integer in textbox? I'm trying out a very simple program in LAZARUS to multiply two text box values and store the result in a third one. This line is what I'm using. txtA.Text = IntToStr( StrToInt(txtA.Text ) + StrToInt(txtB.Text) ); Unfortunately I get an error stating it's i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails Geocoder - Still learning I'm sure it's a simply issue due to me not fully understanding how bits fit together in Rails... I've followed the rails cast but I'm having trouble implementing it into my app (I've had it working stand-alone). The error I get is undefined method `nearbys' Here's what I've got: us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Invalid label WCF Rest Service Jsonp response I'm trying to get json from wcf rest service and I getting json, but with *invalid label* , I've tried the callback wrapper but still getting the same error message here is the code <html> <head> <script src="js/jquery-1.5.min.js"></script> <script type="text/javascript"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to implement busy loop? What is the best way to implement the busy loop ? correct me if i am wrong ? while (1); // obviously eats CPU. while (1) { sleep(100); } // Not sure if it is the correct way ? A: To do an infinite wait, for a signal (what else) there is the pause() system call. You'll have to put ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: OpenGL Extensions in Qt 4 it's possible enable/use OpenGL (specific version) in Qt 4 (on Desktop) or I have to use glew, etc? A: Rather than Glew you can include gl3.h, it's probably the simplest and most pain free way and works with compatibility mode as well as core. It's also well worth checking out GLXX it's a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hibernate search and JPA with JTA transaction I want to use the Hibernate Search full text search capabilities. I have a simple Java EE application. I annotated the entity classes and here is my persistence.xml: <persistence-unit name="library"> <jta-data-source>jdbc/webrarydb</jta-data-source> <class>net.hc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cannot create any C++ project I have Visual Studio 2010 Ultimate on Windows 7 Enterprise running on a x86 box. I cannot create any C++ project from VS although I can create C# project. On the new project dialog I press OK button and nothing happens. I don't get any error but no solution or project is created either....
{ "language": "en", "url": "https://stackoverflow.com/questions/7620245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: How can I create a box? I'm lloking for something that looks like a text box except I don't want the user to be able to type inside the box. How can I do it ? A: disable EditText view by android:enabled="false"
{ "language": "en", "url": "https://stackoverflow.com/questions/7620249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get Main Window (App Delegate) from other class (subclass of NSViewController)? I'm trying to change my windows content, from other class , that is subclass of NSViewController.I'm trying code below, but it doesn't do anything. [NSApplication sharedApplication]mainWindow]setContentView:[self view]]; //code in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: how to search in eclipse inside the documentation of local java/android/j2me I want to get information about selected text when I press F1. But always it returns information about to using eclipse. You can look at the screen capture below. A: You can't get API information by pressing F1, but you can use javadoc v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7620253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }