text
stringlengths
8
267k
meta
dict
Q: Constant array of constant objects How do you define constant array of constant objects in C (not C++)? I can define int const Array [] = { /* init data here */ }; but that is a non-constant array of constant objects. I could use int const * const Array = { /* init data here */ }; and it would probably wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: geocoding database provider(sql, nosql) and schema Companies like Yahoo, Google, MS provide geocoding services. I'd like to know what is the best way to organize the backend for such services - what is the optimal solution in terms of database provider(SQL vs NOSQL) and database schema. Some providers use Extensible...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: How can I let the user choose a contact? In my app I need the user to choose a contact (or type a phone number) I want to do it (almost) exactly like in the existing UI for sending SMS (I hope it's the same in all android devices, but if not than spesificly like in the smasung galaxy s (1)) : that is have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UITableView crashes when scroll down I know there's a lot of questions about this topic but I have not be able to solve my problem... Well, I have detected the problem, it's the contactsArray that's global. If I comment that lines, the table works fine. The code is this: @interface ContactsView : UIViewController <U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: set visibility on textBox from form1 to form2 From other Form i want to set visibility for textBoxes on this form but i down't know how to call TextBoxes and set property Visible = false. I try with Enums but i still can't solve problem. I can not cast or do anything. So how can i call textBox From form1 to form2......
{ "language": "en", "url": "https://stackoverflow.com/questions/7633791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Start activity from widget & ignore back stack Let's consider simple DB access application with two activities: * *A - list of entries from DB *B - input form to enter new data to DB, with two buttons: Save / Cancel Application starts with A (list) and from A user may go to B (input form). To make entering new...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert native C++ memory into C# structure? I have the following native function interface in C++: int func1(void* param, int sizeOfParam). In documentation the following example of call is provided: typedef struct { int x; int y; int width; int height; } Rect; Rect rect; int func1((void*)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Query is not retrieving the data from table im trying to integrate a database into my project.This is for first time im implementing a database project.I integrated the database into my project.Database has 3 columns named rowid,col1,col2.Below code i used for acessing the datafrom database.But it is not enetering i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to manage Excel With Delphi 7 using paradox file? How can I open Excel file in Delphi 7 and move the data to a paradox file? A: Using the Ado___ components From the ADO tab. To "connect" with the file use the TAdoConnection then double-click it, in the provider tab you must select "Microsoft Jet 4.0 OLE DB Prov...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check movieClips is visible under mask This was something I looked at a while back but couldn't figure it out. Now returning to give it another go. Basically I want to find out how to check if a movieclip is visible under a mask. I've got a row of thumbs in a movieclip under a mask. Some are out with the the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.net / IIS authentication for static content (for example images) best practices I need to make a website with authentication of static content (images, html files, etc.) I've already build a private section protected with a login form against a users database; but if a user knows the url of a static file of that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: c# Automatic colorcycle for legends in MS Chart I'm loading dataseries into a MS Chart and would like to set the legend/series colors automatically instead of having to choose manually.. Does anyone know of a good way to do that, so colors that are too close doesnt get chosen for the same chart? Thanks! A: Are you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How the jvm process can still be alive after crash in native code (EXCEPTION_ACCESS_VIOLATION (0xc0000005) )? I have a java application which uses JOGL panels to execute some openGL commands (they depend on some JNI dynamic libraries). Sometimes my application crashes and the jvm prompts me the crash report indicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: c# overwriting/saving current file I am doing editor in c#, windows forms. I wish to save 'new content' of file in the same file (usual usage of 'save' option) but I receive IOException, [ the process cannot access the file ' filename' because it is being used by another process. I have method that writes to a NEW...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone Chart: How can we zoom in in Core Plot ? (example code: AAPLot) iPhone Chart: How can we zoom in in Core Plot ? (example code: AAPLot) I am now using Core Plot to draw a Chart by example Code AAPLot CPTGraphHostingView *graphHost; IBOutlet UIScrollView *_scrollview; IBOutlet UIView *zoom_view; APYahooDat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Server Progress in WCF RIA Services Can I send progress updates from the server to the client when using time consuming wcf ria services? A: Of course you can. It's not an out of the box solution anyway... All we know that every call that we make from Silverlight is async, so the client continue to respond regardle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there any SDK available for Iphone so that we can show adds via push notification? In android we have Air push , using which we can send and show add via push notification. Is there any thing similar we have for iPhone. Thanks. A: Yes you can use same Urban Airship for Push Notification for iphone too... A: Ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add a partial class to a edmx and use it as a navigation property to a existing entity? I am going to create a model class of my own as a partial class. How to add this partial class as a navigation property to a existing entity. Help me on this... A: It doesn't matter if you created class yourselves or let...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Turn on full backtrace in Ruby on Rails TestCase Only one line of backtrace is displayed when I run: rake test Output: ... ERROR should get search for keywords (1.93s) NoMethodError: undefined method `features' for #<Transcript:0x00000006243780> /usr/lib/ruby/gems/1.9.1/gems/activemodel-3.1.0/lib/active_model/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Can't Access TextBoxes in other pages of GridView I have an ASPxGridView with a column containg ASPxTextBox <dx:GridViewDataTextColumn Caption="Capacity" FieldName="Capacity" VisibleIndex="4" > <DataItemTemplate> <dxe:ASPxTextBox ID="txtCapacity" runat="server" Text='<%# Eval("Capacity") %>'> </d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: making some items unselectable in dropdownlist using asp.net? Dropdownlist i binded the values but in that dropdownlist just like group means(employee,nonemployee) so that items value is empty(""), so i can use databound event split the two fileds ,that two fields i can apply the color and underline and bould and u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: imagemagick installation error - architecture mismatch I am trying to install ImageMagick via macports but am getting the following error msg: Error: Cannot install imagemagick for the arch(s) 'x86_64' because Error: its dependency bzip2 is only installed for the arch 'i386' Error: and the configured universal_archs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MultiAutoCompleteTextView adds ", " I have a MultiAutoCompleteTextView. When i enter "Sal" it suggest "Salami" , but when i press it in the box stands "Salami, ". How could i prefent that? My Code: void addAutoSuggest () { myDB = this.openOrCreateDatabase(MY_DB_NAME, MODE_PRIVATE, null); ArrayList<String> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What data structure should I use for a simple synchronized LIFO? What data structure should I use for a simple synchronized LIFO? I'm using Android Java 1.6. The problem with Java collections is that there are millions of slightly different classes and interfaces. A: What about standard Stack? It is synchronized. U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Objective-C : Auto Update Label text I am new to Objective-C and i need your help! In the code that you will see below, my labels pick data from a picker view. I would like instead of using a "calculate" IBAction, to have my "chargeLabel.text" updated in real time as soon as the user changes a value in the picker vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: event when adding element into document Adding new html string into the page: document.getElementById('container').innerHTML = '<div id="child"></div>'; Is there an event that let me know when child element is in the document? I have a function, which return some html codeas a string. And when this html will be add...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .net statistics library for forecasting Is there a good .NET statistics library for forecasting? I need it to do the following: Decompose the input dataset with classical decomposition into Seasonal, Trend and Irregular. ARIMA modeling and forecasts. P.S. I had a look at R.NET. Thogh it will hopefully do the above, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: android mapview loading I am making an android app in which i am using mapviews. they are working perfectly on the device when installed from the pc.but when the same build is installed in device through android market, the maps does not load. following is the logcat output. 10-03 15:54:51.784: WARN/System.err(12994...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: asp CompareValidator on 2 dropdowns Scenario: I have the following controls: <telerik:RadComboBox ID="dd1" runat="server" ValidationGroup="g1" InitialValue="-1" /> <telerik:RadComboBox ID="dd2" runat="server" ValidationGroup="g1" InitialValue="-1" /> <asp:CompareValidator ID="cv" runat="server" ValidationGroup="g1"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Add an NSMutableIndexSet to Another? I have an NSMutableIndexSet and I want to add indexes in it to another NSMutableIndexSet in my loop. I've been looking for right functions but unable to find anything. How can I do that? A: Have you tried this: [someIndexSet addIndexes:otherIndexSet]
{ "language": "en", "url": "https://stackoverflow.com/questions/7633882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: need to write compare point method in my class called point . ruby hi i have wrttien this points class in ruby but i need a compare method class to anybody any ideas where to start? class Point attr_reader :x, :y def initialize x,y @x = x @y = y end def addpoint(x,y) # used to add points Po...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Rails devise reset password not working I am using devise in a rails 3 application. I have devise fully working however the 'forgot password' function has decided to stop working. When I enter an email address and click the 'send me reset instructions' button I am redirected to the login page which displays a flash...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android - Radio button selections are not being registered I am trying to use radio buttons but they aren't working. I've got the toast in there at the moment purely for debugging, and it never appears. There seems to be various ways to use them so perhaps I'm just using a poor method. Any advice on what I've don...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting inline ASM to Intrinsic I've been give a task to convert small piece of asm into intrinsic in order to test performance. I ve never developed any code for either one, but I understand asm and c, and reading up on intrinsic syntax. But I cant find info on how intrinsic is dealing with accessing registers. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Serializing Font Object from C# and Deserializing on Java Using @Elad solution at this answer I could serialize and de-serialize a Font using C# but I need to de-serialize it in Java. Is there a way to achieve it? If someone has any good article on doing this for any other object it could be helpful. A: In Elad's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to obtain CN of the certificates in particular store? i want to obtain the CN of the certificates stored in the MY store as i want to verify if the certificate exists or not in that store. I don't know the which method should be used to perform this task. I tried using below code but it doesn't works X509Certifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Sending HTTPPost in Android I am new to android development. What I am trying to do is send some data on a server. i.e. the HTTPPOst. For example I want to send an image or send an XML in the HTTP Post's Body.... Can some body give me sample code or project.
{ "language": "en", "url": "https://stackoverflow.com/questions/7633916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Windows service installer not reading App.Config file I have added App.Config in my project. I have a installer class(ProjectInstaller.cs) which needs to read values from App.config. I am providing the keys . Below is the sample Code : ConfigurationManager.AppSettings["CONFIG_FILE"] I am getting null values as pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Rails timezones VS MySQL timezones In my Rails (3.0) application, I use timezones using the helper time_zone_select(). It generates timezone names like "(GMT+01:00) Paris"... But these names are different from those in MySQL, where the same timezone would be "Europe/Paris". How can I convert Rails timezones to MySql...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Automatic height setting for input tag I'm having a dynamic input box, heigth of which need to be increaed based on the data adding. I tried to put new line after 10 characters in javascript but its not reflecting in input tag. My code is for(var i=0; i < field.length; i++) cityNameLength = cityNames.length; tem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MYSQL: How to use outer aliases in subquery properly? The first query works just fine. It returns one row from the table 'routepoint'. It has a certain 'route_id' and 'geo_distance()' is on its minimum given the parameters. I know that the subquery in the FROM section seems unnecessarily complicated but in my eyes i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to merge resource files from other assemblies in Silverlight / wp7 In my app i need to merge the resource file from an external assembly. Is it possible to do so? If the answer is yes please guide me to resolve this issue . A: Try this: <Application.Resources> <ResourceDictionary> <Reso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get result in javascript from a WCF method returns int? I have one method in my wcf Service class that returns int and I am calling this method through javascript as below: //Interface for Service [ServiceContract(Namespace = "TestService")] public interface ITestService { [OperationContract] int Get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use Google Charts for dynamic Data from database I am planning to use Google charts to display the data available on my server by an ajax request from the client side. But I am not able to figure out how to set the callback method for the Google API as the callback method will be having some parameters to populate t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The connection to the server was unsuccessful.(file:///android_asset/www/index.html) I am developing a android app using phonegap, it calls a website (http://siteaddress.com:8081) to get json encoded data. This is working fine on the emulator, then I built the android package .apk file using phonegap build but when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Jquery check boxes to populate list I am attempting to populate a list of links depeding on what checkbox options are checked by a user. You can see what I have done so far here to give you an idea of what I am doing http://dev.perfectdaycanada.com/filter - the problem I am having is that I cant seem to get the che...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to retrieve items from server after fixed time period? I am returning 7 URL's that I retrieve from a Text document on a remote server. The URL's are links to images that I want to then download and put into a cache. These URL's will change every week. I want to retrieve these URL's from the text document only...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there no use in defining auto increment column as primary key In php myadmin it says it is no use in defining auto increment column as primary key for table. you can remove primary key constrain. (since both do the same job like). Is this true. should I remove primary key constrain? won't it good to have a prim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make dots between numbers in php I would like to make dots between my total value. If i have 425000 i would like it to show as 425.000 Is there a function in php that implodes dots for numbers or how can i do this then? A: Use number_format for this: $number = 425000; echo number_format( $number, 0, '', '.' ); Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it preferred to make a function declaration after the function call in as3? In all the examples I've been going through online for as3, it seems as though the function declaration is always after the function call. Is this preferred to declaring the function before you call it? Ex: myButton.addEventListener(Mous...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change the css class associated with a column based on value of column with javascript I have a grid and for one of the columns i want to dynamically change the css used based on the value of another field in the resultset. So instead of something like <td class='class1'> ${firstname} </td> pseudo-wise I would...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to give userchoice file name in browserdialog box Hi in my windows form application i want to save some data in a folder and when user selcts the browse button it should browse to reqired folder and should consist of a textbox to enter the filename of user choice. How can i achieve this . The below code is not w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to use Flash code completion? At this years Flash on the beach i saw a speaker using small 'code-keywords' that would complete entire sets of AS-code, depending on the keyword. Ex.: He would write @forloop, hit enter/space and a typical for-loop would be written automatically. Unfortunately he never said how to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP - XML conversion I'm new to stackoverflow and after some searching didn't find an answer to my question so I'm hoping someone can help me out. I have to use this web service method that takes three parameters, a string and two xml params. Below's an example of the code I'm using. The web service method throws an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTTP Last Updated I want to write something in .NET that will be given a URI and return the date/time when it was last updated. Is there something easy I can check? I assume there is a last updated property I can hook into? Is this reliable? How does it work with timezones? Thanks A: There is an HTTP-Last-Modified ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633977", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Many setTimeouts for scrolling events I want to show a tooltip when mousewheel scroll even is triggered. Here is the current code: if (window.hideTimeout) { clearTimeout(window.hideTimeout); } handle.qtip('show'); window.hideTimeout = setTimeout(function() { handle.qtip('hide'); }, 1000); This works correctly, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding event clicks to POIs in Android Augmented Reality framework? I'm developing an application based on Android AR framework : http://code.google.com/p/android-augment-reality-framework Can anyone please suggest how to add click to the POIs or icons in camera view to view address of the POIs? A: When a marker i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to insert dot instead of comma in js keypress In my website i have textbox that contains currency amount separeted by dot. Users sometimes press dot on numpad, and that inserts coma in textbox. How can I convert it to dot ? I was trying to do it in keypress event but didn't menage to make it work. A: <input typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display an UIAlert when a UIImageView is touch I have an ImageView and I want that when user press the image view to display a message as an alert. What method should I use? Can you provide me an example ? Thanks in advance.. A: Add a UITapGestureRecognizer: imageView.userInteractionEnabled = YES; UITapGestureReco...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: custom performance counter in c# / perfmon Hi I am trying to to create a custom performance counter for use in perfmon. The following code works pretty well, however I have one problem.. With this solution I have a timer updating the value of the performance counter, however I would like to not have to run this exec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: CakePHP containable and paginate - deep associations not appearing I'm trying to use containable in a paginated query. The code is below, in full. $this->paginate = array( 'conditions'=>array( 'Track.pending'=>0, 'Track.status'=>1 ), 'contain'=>array( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: can XML be send as response to iframe I am trying send xml data as response to iframe which is dynamically generated. i am sending the follwing data as response out.println( "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" + " <response> " + My_data + "</response>" ); when i check using f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to remove the title in Dialog? I created an Activity as a dialog using the code below which I put in my manifest. But the problem is it has Title bar, how can I remove it? android:theme="@android:style/Theme.Dialog" A: if Dialog .............. Dailog dialog = new Dialog(MainActivity.this, R.style.mydialogstyle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: C Structure formula Having problems with the output of this formula: typedef struct { float t, Vx, Vy, Px, Py; } datapoint; datapoint *data; data = malloc(steps * sizeof(datapoint)); data[0].Vx = (20*cos(30)); //30 is changed to radians data[0].Vy = (20*sin(30)); data[0].Px = 0; data[0].Py = 0; ste...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Panel arrangement in wxpython Background As a newbie to python as well as to GUI Programming, I would like to create a wxpython based GUI application. This GUI will run a series of tests The tests written in text files will be running and it's steps should be displayed in the Window. For selecting a particular test...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.net Caching Issue I have cached a dataset which has "StoreId" column. When I want to export the dataset to Excel I suppose to remove the "StoreId" column from the dataset and Exprot. Following is the code for Removing and Exporting to Excel. if (HttpContext.Current.Cache["stores"] != null) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: jQuery and label input <div id="one"> <label for="number">Number</label> <div id="two"> <input id="number" type="text" name="number"> </div> </div> This show me: * *Number *[input] How can I make: * *Number [input] How can I modify this with jQuery? (not modify html) LIVE: http://j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i add textbox value entered by user to label dynamically using jquery? Hi How can i add textbox value on button click to the label like this http://jsfiddle.net/NT4Zr/29/ In above code user can type his hobby and add into the form by using add hobby link. when user press add hobby link the textbox value shou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I save in mongodb Hebrew characters? I work with ruby on rails and want to save in mongodb data with Hebrew characters. How can I do this? thanks, A: MongoDB supports UTF-8 out of the box, which means you simply have to encode your strings into UTF-8. Here's a few links you can peruse: MongoDB & I18n strings I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: perl input multiple files Possible Duplicate: How can I pass command-line arguments to a Perl program? I have a perl script that I need to run on the command line but also provide three input files and one output. I dont want to do a STDIN as I am writing a wrapper script to use the perl script multiple times fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scala Predef unimport Possible Duplicate: How to unimport String “+” operator in Scala? So things from Predef get automatically imported into scala programs. But how can I disable- unimport certain or all imported functions from Predef? As an example if I don't like the '+' operator on String how to disable this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Split payment process on magento? * *How can we split payment process on magento? Suppose i purchased a product from magento store worth of 1000 USD. Im having 500 USD in my credit card and 500 USD in my paypal account. Is it possible to split the payment to purchase this product? Note: Not by recurring payment, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it preferred to import a class (ex. import flash.events.MouseEvent ) instead of the entire contents of a package (ex. import flash.events.*) Is there benefit to specifying which class, function or namespace you intend to use at the beginning of the code? A: the reference says: If you import a class but do not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to do lower() and raise() for QGraphicsItem in Qt? I wanted to changed z-order of graphicsitems in my graphicsscene. I have used QGraphicsWebView as graphicsitem. How can i achieve it ? A: You can use setZValue, isObscured and isObscuredBy. Documentation is precise about these methods.
{ "language": "en", "url": "https://stackoverflow.com/questions/7634023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: It takes time while exporting telerik grid to pdf I am trying to export telerik grid data to pdf/excel. Although telerik provides handy methods to export grid to pdf/excel but it takes lots of time to export the grid to desired format if there are more than 500 rows in the grid. Note: I want to export whole data but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ExtJs - GroupingView style Need to make tpl for Grouping Grid. Now I'm doing a property groupTextTpl. Code in it: groupTextTpl : '{[values.rs[0].data["name"]]} ({[values.rs.length]} {[values.rs.length > 1 ? "Items" : "Item"]})' But I want to display next to the name drop-down lists - references and to move the ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find quickly index of item in sorted list I have a object: public class MyObject { int id; string value; } I also have a list: List<MyObject> list = new List<MyObject>; for(int i=0;i;i<100000;i++) { list.Add(new MyObject(i, string.Format("Item {0}", i)); } And list will be: 1, "Item 1" 2, "Item 2" .... 99999, "Ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Ajax Crawlable Rewrite!!? _escaped_fragment_= I have started down the ajax site path using hash bang currently my urls look like: http://www.domain.com/#!/index http://www.domain.com/#!/studio http://www.domain.com/#!/about from reading google's docs: http://code.google.com/web/ajaxcrawling/ it looks like go...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Simply rearrange/rename array (php) I just don't get it, it's actually so basic, but I just can't make it happen. I've got the following array: Array ( [15] => Array ( [id] => 15 [name] => Name of course [date] => 1300863780 [price] => 0 ) [14] => Array ( [id] => 14 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL if statement conditional join I am trying to do something like SELECT * from accounttable, peopletable, companytable WHERE if accounttable.account_type = company JOIN companytable WHERE companytable.id = accounttable.company_id ELSE IF accounttable.account_type = = person JOIN peopletable WHERE peopletab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to display iphone version,IOS version,name of the the Network Provider in my app? I am developing an iPhone app. In its about page I want to display the iPhone version, iOS version, and the name of the the Network Provider. I want fetch these from the phone itself. How would I do that? Please Help. Thanks in adv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating Gif with Image Transitions using c#, ASP.net I have a requirement where I have many images and need to create a slide show with various image transitions and I should be able to save it as a gif file along with image transitions. I am able to create various transitions between the images in C# but not yet f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to dynamically change jQuery Datatables height I'm using jQuery Datatables. I want to change the height of the table whenever a user resizes the window. I'm able to catch the window resize event which allows me to calculate the new height. How can I assign the new height to the datatable object? A: The curre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How to change received data in Model? I have a typical function in model which is receiving 'time' from table 'Orders': public function get_time() { $result = array(); $result = DB::select('id', 'time', 'description')->from('orders')->execute(); return $result; } The problem is, that 'time' field is sto...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling a function from a PHP file to another PHP file? I created a file called "page.php" with the below code. <!DOCTYPE HTML> <html> <body> <?php require 'form.php'; ?> <a href="#" onclick="call_popup('form_container')">Click this link!</a> </body> </html> And I created...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: iOS phonegap plugin : ChildBrowserCommand (pluginName: ChildBrowserCommand) does not exist I am trying to use ChildBrowserPlugin(from https://github.com/purplecabbage/phonegap-plugins) of phonegap 1.0.0 and X-Code 4. but it gives error. Even I have added key : ChildBrowserCommand string : ChildBrowserCommand in Ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Local installation of gcc on CentOS I would like to know if it is possible to install gcc as a "local installation" on my home directory? Thanks! I am running CentOS 5.5 and exploring the possibility of installing gcc 4.2.* in my home directory btw. ~Susanth A: try this: yum install gcc If you're going to compile ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I filter keyboard number keys I wish to focus a specific Textbox and accept the key press only when the user presses a number key (1,2,3 etc.) otherwise I don't want to focus that Textbox... Senario: I have ListView (having a custom view) in a view. below the list view i have a Textbox. Lets say ListView con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The program created objective c++ is getting crash I am developing a application to get list of installed software in Mac OS X 10.5 or above. The program is created using objective-c++ (c,c++, obj-c). Every time I run the program, it is crashing. int main (int argc, const char * argv[]) { NSAutoreleasePool ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retrieving information from database (1 field/object; no arrays) I'm doing a sort of login page for my website which I'm just testing right now, and this code is after the login. The thing is, I want to retrieve some information from my database, but the code doesn't work (it doesn't echo anything). I checked that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Iterating over a list of Strings in C++, what's going wrong? I'm trying to print out a list of strings thus: std::list<String> const &prms = (*iter)->getParams(); std::list<String>::const_iterator i; for(i = prms.begin(); i != prms.end(); ++i){ log.debug(" Param: %s",*i); } But my program crashes saying Illegal ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Webservice calling EJB creates SSL exception I have a JAX-WS webservice which makes calls to a remote EJB on the same server. Everything runs on Glassfish 3.1.1, and the apps are deployed EARs – one for the webservice, another for the EJB. This works fine locally, but when deploying to a test server, I get typical e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Codeigniter modifying session data I store few data in session as the following: $session_data = array("uid" => "test user", "loged_in" => true); $this->session->set_userdata($session_data); To modify the "uid" I tried $uid = array("uid" => "New user"); $this->session->set_userdata($uid); It did not work so I tri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: System Error 955 when using resolver::async_resolve At times I get the System Error 995 when using the async_resolve method from an tcp::resolver. The code below shows the relevant code lines. #include <boost/bind.hpp> #include <boost/asio.hpp> #include <iostream> class connection { public: connection(boost::a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why doesn't PHP recognise when the date given is after today's date? I want to compare two dates in PHP. One date is the date due, which is provided by the user, stored in a database and retrieved with PHP. The second is today's date. $unixdue = strtotime($query['date_due']); //Converts the database integer to U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to use the XML result of SolrNet in my ASP.NET code behind I found http://code.google.com/p/solrnet/wiki/Stats link. But I cannot understand it properly. I want to use a (min,max) kind of function with a Solr query. My query (display min, max and average price of Round shape and color D and clarity FL and caratw...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make JLabel background transparent again I have a JLabel that changes its background color when the mouse enters it. The problem I have is that I want the JLabel to become transparent after the mouse exits. Is there a statement I can use to accomplish this? A: JLabel is by default transparent and non-opaque, if you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is it possible to get data from web response in a right encoding using (WebResponse response = webRequest.GetResponse()) { using (var reader = new StreamReader(response.GetResponseStream())) { string tmpStreamData = string.Empty; while (!reader.EndOfStream) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android different versions compatibility I have developed an application for android 2.3. Now I want to test it under android 2.1. Do I have to create a new project with target set to android 2.1 and copy all the code across or is there any other method? Also how to make this application compatible with different an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: asp.net wizard control to create registration from Sir Am New to Asp.net What is Asp.net Wizard Control and how it is use to create the registration as steps please any one help me i want complete details of wizard control and how to develop registration from using wizard and how to store data from Wizard to SqlServ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7634117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }