text
stringlengths
8
267k
meta
dict
Q: Regular expression to get Url without Query string I am looking for a way to parse URL without queryString using Regular expression. i have url like "http://abc.com/csd?/aaa/bbb" expected is like "http://abc.com/csd" Anybody help me on this. A: If you just want everything before the query string: ^[^?]+ A: Regex ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: why terminal mail doesn't work? I've just installed mail sudo apt-get install mailutils And I tried to send mail though a pipeline: echo "message" | mail -s "subject" my@email.com But I don't receive any mails on my inbox. Why doesn't work? Do I need another package? Thanks! A: I Solved! I had to edit this file a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mobile platform communicating directly to database or via web service? I see two ways of going about feeding data to and from a mobile application. First would be to directly connect to the database and perform queries directly. The other option would be to build a REST API and indirectly interact with the database ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to append the cookies values I have four cookie values like $.cookie('line1side1',{ path:'/'}) and $.cookie('line2side1',{ path:'/'}) I want to append this all values and assign it to the one text-box. document.getElementsByName('Custom_Field_Custom7')[0].value= all values of cookie How should I write? A: Thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OpenLayers Vector Features issue in IE We are using OpenLayers Vector Layer with Features in our application. Everything works fine in FireFox, but in IE we are not able to find vector layer on the map. We are using OpenLayers-2.9 version. Is this a bug or else we need to add any patch to to the code? A: What rende...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple Twitter Oauth authorization asking for credentials every time I am making a simple twitter based login/signup system using the tutorial here. I get the oauth_token as well as oauth token secret every time I get the user to login. However, even when the user is already logged in, he is being asked to login ag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Equivalent of time(7) SQL Server 2008 datatype in .NET What is the equivalent of SQL Server 2008's time(7) datatype in .NET? I want to store hours and minutes alone in that column, for this which datatype should I use in SQL Server! A: MSDN gives a mapping between SQL data types and CLR data types - and it suggests...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MAC address to IP conversion While there are many tutorials on IP to MAC address conversion not much is available for the reverse process. I've checked out RARP(which is just the protocol). Is there a method for MAC to IP conversion. Thanks! A: On Linux you can get this type of information using arp command: $ sudo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a unified way to get content at a file:// or http:// URI scheme in Ruby? It appears the Net::HTTP library doesn't support loading of local file via file:// . I'd like to configure loading of content from a file or remotely, depending on environment. Is there a standard Ruby way to access either type the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I combine some UserControls in SilverLight? Maybe it is a simple question, but I can’t find the answer. I have three User controls that are different only with colour. There is code one of them: <UserControl x:Class="SilverlightApplication14.NodePicture" xmlns="http://schemas.microsoft.com/winfx/2006/xam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Market statistics frozen nearly month, what's going on? I have several applications in Android Market and 2 or 3 weeks ago I have noticed that statistics still the same. Just before that I have had several hundreds downloads per week. For sure I reported issue to Google guys, but nothing except standard - we...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jquery Validation - trying to Validate Radio and checkbox bottons and use ErrorPlacemant to display Error Below each group Newbie here I am trying to get Radio buttons and checkbox buttons to validate. Error message should appear under the last it's groups of radio/checkbox The radio buttons requires a selection Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Test if a variable is defined in javascript? How should I test if a variable is defined? if //variable is defined //do this else //do this A: Use the in operator. 'myVar' in window; // for global variables only typeof checks will return true for a variable if, * *it hasn't been defined *it has been ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: CSS Multiple grouped elements with margins Take this HTML: <div> <div class="block">Hello</div> <div class="block">Hello</div> <div class="block">Hello</div> <div class="block">Hello</div> </div> With the companion CSS: div.block { float: left; width: 100px; height: 100px; margin: 1p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Taking the Response from the Printer by using Xon and Xoff how to retrieve the printer response from the Bluetooth printer in android by using X-On and X-Off. I have tried but It is not working. I have tried with the following code but it is not working: CommPortIdentifier portId = CommPortIdentifier.getPortIdenti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bash: Split string into character array I have a string in a Bash shell script that I want to split into an array of characters, not based on a delimiter but just one character per array index. How can I do this? Ideally it would not use any external programs. Let me rephrase that. My goal is portability, so things ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "74" }
Q: How to remember a URL and redirect to the same URL after login and not to the default page I am currently working in cakephp and is facing problem in redirecting a page. By default after login user is taken to a particular page. Now i want to change it a little but dont want to disturb the default functionality. If ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bound ajax calendar extender to specific month and year only I have two calendar extender, Which I want to restrict. When user selects any year from year drowdown list and month from month dropdown list, the calendar extender should show dates for selected month and year only and use is not allowed to selected any o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Import an existing class file in project (Using Eclipse) We all can import an existing Android project into workspace using File->Import->Existing projects into workspace. Is there any such method to include an existing java file( Activity) into a project. For example if I have activity hello.java in project P1. Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sending mail takes long time in localhost I am using Ubuntu.I installed sendmail in my local host using the following command sudo apt-get install sendmail Now I would like to check whether mail goes from my localhost using following php code. <?php $to = "test@test.com"; $subject = "Test mail"; $message = "Hello!...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Is it possible to insert text in an TextView? Appending text in an Android TextView adds the text to the end of the current text. I want to insert some text in a specified location of a TextView without disturbing it's movement while the textview scrolls. Is it possible to insert text? Please help A: You can set Bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Storing 'session values' in MS MVC3 I'm getting started in MVC3 with a jquery/js driven front end. I realise that the paradigm of MVC is not to rely much on the concept of session variables and the like, instead using the actions and controllers to drive the user experience. I have the situation below, what's the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent downloading with htaccess I've searched around but have found no solutions. I have a directory with all my fonts (svg, eot, woff, ttf, otf) in which I'd like to restrict downloading. Is there a way with .htaccess or..? Edit: I am using Wordpress A: Assuming you want the fonts to be useable within a webpage,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ordering input tags in XML::Simple using Perl while printing the output in XML format How to order the input tags in Perl code using XML::Simple module for printing the output in XML format in specified order.. i have tried this use XML::Simple; use Data::Dumper; open (FH,"> xml4.txt") || die (); # ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Facebook Graph API - Search for Work I noticed the "/Search" works only on "Names". How would it be possible to search Facebook user's programmatically, by searching their "Work". For instance, I want to search for all users who work "web development". Is this available? Thanks A: Not at the current time. The Grap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to show Separator line for currently displaying cells in the UITableView using MonoTouch? I have showing 5 to 8 items in the UITableView. But Separator line showing empty cells also. There are no value on that empty cells. Why Separator line showing on these empty cells? I choose the Separator value is Single ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wordpress Custom Search Form within a page I need to add a custom search form within a page, and the search form results should return/highlight items within that page.. ex.. in a page: monkey pig tree when a user searches for 'pig' it'll either display only 'pig' or highlight the word pig. I thought of using custom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding contents inside a pattern? AS3 I have always sucked at regular expressions and now I'm stuck with a problem. I am loading a webpage onto my AIR application now what i want to do is, I want to locate the text inside a certain pattern. See below. <html> <head></head> <body> Blah blah blah.. Blah blah var my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display information from MySQL in a textbox? I an new in creating programs in Visual Studio C#. I want to create a program that reads the information from MySQL and display the selected information in a textbox. What I have here is a code for displaying the information in a combobox. This is the code to displ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Date Picker edition of fields Is it possible to disable the edition of fields in DatePicker? Indeed when I touch on the editable box in the DatePicker, the keyboard appears, and I don't want this. Someone have an idea? Thanks a lot for your response :) A: This is actually really easy. Just use datePicker.setDescen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to emit string into user control from code behind? I have a main aspx page in which there is a list of items. Each item is shown using the user control. Now i am trying to emit string in user control is page receives specific parameter through user control as below. //ASCX code .. <span><%=custString %></span> ....
{ "language": "en", "url": "https://stackoverflow.com/questions/7578993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Browser to browser VoIP calling using SIP? I am trying to call from one browser to another browser. What I have done: * *I set up my asterisk server just like getonsip.com *I wrote a client using pjsua python binding which acts as a server Here is the situation: * *I can call from my browser ( My browser is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: The difference between Task.Factory.FromAsync and BeginX/EndX? I have very similar code when using the standard BeginRead and EndRead methods from the TcpClient and using Task.Factory.FromAsync. Here are some examples.. Error handling code not shown. Task.Factory.FromAsync: private void Read(State state) { Task<...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: The string "ďťż" appears on my page randomly but only in firefox. IE and chrome don't have this problem. Nothing actually prints that anywhere in my code. So far i've found it in only two places one of them being: <li class="spatiu"> </li> <li class="memento_li"> <div id="afisare_alerte"> <script language="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7578999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why margin-top of the top div would apply to ``? Here I posted a demo http://jsfiddle.net/LxYMv/1/. As you can see <body> gets margin-top:10px from the top div, and therefor <html>'s black background leaks out. Does it mean that I can't give the top div a positive margin-top? <?xml version="1.0" encoding="UTF-8"?> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Facebook Connect API Work Flow behind the scene I have visited a site . I have observed that When I am not logged in Facebook it ask for connect to facebook to download file. After that I have authenticated their Application. Now Whenever I logging in to Facebook and open this site it automatically detect that I am ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use SQL Server Integration Services to update production server I have a development server (SQL Server 2008) it has database. i.e. Employee (database) on it, I have tables,stored procedure and data as well. And I have another production server (SQL Server 2008) also it has same database i.e. Employee (databa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: POST not accepting int parameter I have a problem with ASP.NET MVC3. I'm trying to post some parameters to a JSONResult action. It works great when i use GET, but when i use POST, i get an error, because apparently when using POST, it won't accept my integer parameters as such, and say that the parameters dictionary...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this possible to count index posistion of my current node that belonging to the child of using xslt2.0? This is my Xml Document. <w:document xmlns:w="w"> <w:body> <w:p> <w:r> <w:t> Para1 </w:t> </w:r> </w:p> <w:p> <w:r> <w:t> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Query/Filter M2M 'through' object in Django I have the following basic model… class Campaign(models.Model): name = models.CharField(_('name'), max_length=80, unique=True) recipients = models.ManyToManyField('Person', blank=True, null=True, through='Recipient') class Recipient(models.Model): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to disable the GotFocus on textbox? I have a textbox that does something on GotFocus. How can I disable the GotFocus event on this textbox? How to enable it back? Sorry, I forgot - i work on Windows-mobile 6.5 Thanks in advance. A: May be TextBox.CanFocus = false; and then CanFocus = true; ? A: You could alwa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript - keep track of successful ajax requests / returns I am trying to find a way to keep track of successful ajax returns using javascript only not jquery or other libs. What I want to do is to show a loading graphic when the function is fired and clear the graphic when all the results are returned. My func...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to mail with the use of UIWebView? I am using a UIWebView and i have written this code NSString *str = [NSString stringWithFormat:@"Hey, my id is abc@xyz.com"]; [aboutWebView loadHTMLString:str baseURL:nil]; Now In this code I want to detect that id and I want the option that user can do mail to this id I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: making test account admin of a facebook page using graph api? can we make a test account admin of a page on facebook, using facebook graph api? I have created test users for a facebook app, but when i try to access the page using api, it just gives back the real world data, is there a way to read the test data poste...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CoreData One-To-Many I have a core data mode that has 1 to many relationship, but i'm struggling to get the value e.g. Features.h model like this: @interface Features : NSManagedObject @property (nonatomic, retain) NSString * name; @property (nonatomic, retain) NSString * version; @property (nonatomic, retain) NSNu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Null Pointer Exception When want to set the value in Serializable Class I have a problem that I want to set and get Arraylists from a Serializable class but when we want to set an Arraylist into the Same class it returns NullPointerException, I don't know why? Please suggest me for right result. Error Stack: 09-28 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create MySQL prepared statement string without connecting to database How do I create a mysql prepared statement 'string' without actually connecting to MySQL. I want to utilize PDO's bindparam to generate a 'mysql string'. I just need the mysql string. I don't want to do inline variables on the mysql string ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Comparing Latitude and Longitude In my iPad application i am drawing one rectangle on map using overlay. I have lat/long of one edge as well as length and width of rectangle. I have some other lat/longs coming from database. Now how can i get which lat-long from database is inside rectangle? Thanks, A: Solved. fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Releasing an object that can be [NSNull null] or not I have a memory management problem I can't get my head around on iOS. I'm getting data from a SQLite db where some cells can be empty. So to handle this case, I assign [NSNull null] to my recipient if empty, or the value if not: NSString *email = (const char *) sq...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding image in awt I was trying to add an image in one of GridBagLayout cells. But i am not able to achieve it. public class imageInAwt extends Applet{ Panel p; BufferedImage img; public void init(){ setLayout(new GridBagLayout()); GridBagConstraints gbc =new GridBagConstraints(); gb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When will memory used in a function become free ??(C programming) Below is the code The Code: #include <stdio.h> int * num(void); int main(void) { int * num2; num2 =num(); printf("%d\n" , *num2); return 0; } int * num(void) { int num = 20; return &num; } The Question : * *As we kno...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this a good use for "mutable" in C++? I have a class that wraps a file handle: class FileHandle { HANDLE hFile; TCHAR name[256]; public: LPCTSTR getName() const { /*(query system for name)*/ return this->name; } }; I have come up with a design choice: Since I will be querying the file name often, in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generating html tags programmatically I'm not sure if this is the best solution design. But i would like to know how to add code in view to generate tags like div,p,span etc and also define there attributes programmatically. For example i have a list of objects that i pass it as Model and then calculate width of div...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wince 6.0 file system corruption - directories appear to be recursing We have a mature Wince 6.0 R2 custom device that is capable of downloading files via WiFi and storing them in a NAND flash FAT file system partition. This has been running on over 15000 devices around the world for over a year now, but recently o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Groovy char stream pattern matching I have the following code, from the reader stream i want to remove all occurances of Command ran successfully. Please help me suggest any solution String ostream="license_all (47286) Command ran successfully. License a Command ran successfully." Reader reader = new StringReade...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Condition in Two Date field with Two Date Parameters I have an ID field two date fields in table named as From_Date and To_Date. I want to select this dates with date criteria. ID From_Date To_Date 1 2011-05-03 2011-05-28 2 2011-04-29 2011-05-10 3 2011-05-09 2011-05-20 4 2011-04-28 2011-05-09 5 2011-04-29...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to extract data from getJson? How to extract the contents of "data" and load them inside form inputs ? the situation is like this, I have a data displayed, it's being pulled out from a database table. now on that displayed data, I placed an "edit" link. now my problem is, how to use this json thing, in order for...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Paypal Website Payments Pro - Current Exchange Rates? I am just getting started creating a payment form using Website Payments Pro. I will have customers from all over the world. Does Paypal have an option for dynamically calculating real-time exchange rates for transactions? If I post all transactions in USD, do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i fix error?? Error: expected ";" before "factorial"? it says in Line 16 I'm getting an error and do not know how to fix it. My code is as follows: #include <iostream> using namespace std; int main(){ int factorial = 1, current = 2, n; cout << "enter number to calculate factorial of: "; cin >> n; w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retain memory leak in iphone menuitem How to solve memory leak in this: NSArray *keyboard = [[[NSDictionary alloc] initWithContentsOfFile:menuPath] objectForKey:@"Menu"]; [self setMenuItems:keyboard]; [keyboard release]; setMenuItems is defined in header file. @property (nonatomic,retain) NSArray *menuItems; A: N...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Allocating large amount of memory and usage of size_t? In my application ,I am allocating memory to store "volume data" which read from stack of bitmap images. I stored the data in a "unsigned char" and ,during allocation, first I try to allocate continuous memory-block for entire data.if that fails then tries for s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In BlackBerry LED why stops I am adding a custom LED color in BlackBerry programmatically using LED.etColorPattern(int[] pattern, boolean repeat) method. LED start successfully. But when any system event occur and deice goes to start RED color LED (which is default) color for system events, then my custom LED stops,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reset password function in php codeigniter I am trying to write reset password function in codeigniter php and mind mind not clicking where to start and what is the best way to do so pls help my db as like this CREATE TABLE `members` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `email...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: $facebook->api() always fails and throws name lookup timeout exception I m creating FB application using new graph api(iframe). Application works fine but when I call api method it throws exception. Say call to $permissions = $facebook->api("/me/permissions"); OR $fbme = $facebook->api('/me'); always fails a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I do shell scripting in Windows I am a new Unix programmer. I want to practice some Unix programs but don't want to install a Unix system. I want to work only on Windows. Is there any way by which I can run shell programs on Windows? A: You have a number of options. * *You can install cygwin for a Unix like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: IOS, How to add a custom SelectionIndicator to a UIPickerView? I want to add a checkmark instead of the default SelectionIndicator for UIPickerView. I am trying to add an image as subview UIImageView * checkMark = [[[UIImageView alloc] initWithFrame:CGRectMake(0, 102, 13, 13)] autorelease]; [checkMark setImage:[UI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Problem handling keyboard with openGL and SDL in OCaml I've a problem handling keyboards events using SDL (only for keyboard events) and openGL (to display graphics, I'm planning to display 3d graphics). When I use Sdlevent.poll nothing happen and I can't use wait_event because I've to display in real time. I've tri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Session still exist after facebook logout in my application hi i am using facebook graph api for invite friends in my codeigniter application . if i have already logged in to facebook the following screeen is shown if i am not logged in the page redirects to facebook login page , after suceesfuliy login redirects b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why numeric constraint didn't work on Virtual keyboard in LWUIT? I have tested many ways to give the numeric and password constraint in the TextField. But its not working, See the below code. textField.setConstraint(TextField.NUMERIC | TextField.PASSWORD); textField.setInputModeOrder(new String[]{"123"}); Above cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to pass variable between methods in Ruby? Newbie ruby question. I have a class class ReportPage < Page def badge_item(item_int) case item_int when 1..50 then @item= 1 when 50..100 then @item= 50 end def check_completed_items_badge badge_item(50) puts @item end end Sure enough, it puts nil. An...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pass argv[1] by reference I've an issue with passing argv to a function. Basically, I want to pass &argv[1] to the function and work from that. However, I don't understand why the following does work: void fun(char**&argv, const int& argc); int main(int argc, char** argv) { fun(++argv, --a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JGroups Instances communication I have two machines in which the JGroups is running. The Problem I am facing is, once a Instances is created in one of the machines, few seconds later I start the other Instances. Both of them initiate separatly(Same Cluster) i.e they don not join the cluster together. After 10 to 15 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rails 3: How to format a Date in other than English languages? To format a Date in English I do: Date.today.to_s(:long_ordinal) # => September 28th, 2011 How could I format a date in Russian (or any other language) ? A: There is the Internationalization API in Rails that explains how to do that. See for example ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to reset a timer every minute if there is no query to the database? I have a basic server in PHP and from the mobile device I send data and save the server every 1 minute. But when ever my mobile phone loses the connection, I would like to set a counter on the server and if the mobile does not insert anything th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rampart Client throwing exception when trying to consume the service I am trying to invoke a axis2 web service enabled with Rampart security. When I try to invoke the service through the client I am getting the following exception, (I have also included Jaxen Jar in my project) Exception in thread "main" org.apache....
{ "language": "en", "url": "https://stackoverflow.com/questions/7579164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android java development time of acceleration to How can I calculate the time of acceleration to 100kmh? Well, I registered a location listener when the !location.hasSpeed() is true store the time of location into a variable. When the speed is reach of the given speed in this case 100km/h (27.77 m/s) I substract fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the form id on page load jquery How to get form id using JQuery on page load. I am having a form in a page. I need to get that form's id using JQuery . How can I do that.. thanks in advance... A: $(document).ready(function(){ var formId = $('form').attr('id'); }); A: try $(document).ready(function(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why is the address bar not editable? Sometimes in websites when you click on some link a new browser windows appears where there's no back button and address bar is not editable,it's locked (greyed out) so you can't change the URL. Just a box containing some information or text boxes to enter data. I would like to k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Setting the width of a division dynamically I have a jScrollPane on a magento product page which is fetching in options which are displayed as an inline list (see screenshot - http://awesomescreenshot.com/06dlbao6b ). Is it possible to dynamically set a division size depending on the content as some products will o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can I bind values to form inputs Django I am trying to do an edit page where I fill the input boxes with the values taken from the database. Say I have a model Employees and a field name, a form EmployeeForm and an input field name emp_info = Employees.objects.get(pk=1) emp_form = EmployeeForm() I am currently ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Animate background color's saturation or lightness using JQuery I did a search, and I found a function that randomly changes RGB values only, namely http://buildinternet.com/2009/09/its-a-rainbow-color-changing-text-and-backgrounds/ However, I simply want to change a header color's HSL value (either saturation or li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript issue. Need help with a loop and .append I a search result page. This search result page is a table. I can not change the html of the page. This is the html: <table class="product-table"> <tr> <td> <dl> <dt> <h1>Item</h1> </dt> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to save contact along with address, Organization and categoriesin iphone using phonegap Anyone help me.. var addresses = [4]; addresses[0] = new ContactAddress('streetAddress','Die Strasse 45',true); addresses[1] = new ContactAddress('locality','Hamburg',true); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Starting a service: "Error 1053: The service did not respond to the start or control request in a timely fashion" I installed my c# application as windows service, by using the command installutil. It get successfully installed. While starting the service I am getting the following error. "Error 1053: The service d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: facebook comment plugin asp.net i want to include facebook comment box in facebook application built in asp.net i have already tried facebook comment plugin but somehow it does not work and gives all.jss errors can anyone suggest working sample for example my current one looks like. <html xmlns:fb="http://www.facebo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JMeter NaN issue in reports I have used jmeter 2.5 and ANT 1.8.2 and jdk 1.6. Also, I have used latest .xsl file path in build.xml. Issue is iam getting NaN value for Min, Max in html reports. Please let me know any solutions. A: This problem is encountered in newer versions of Java. I faced the same problem and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: fixing child layout/widget position in QT I wanted to know whether is there any way of fixing child layouts within a parent layout. For example... QVBoxLayout *vbox = new QVBoxLayout; // adding pushbuttons/layouts... vbox->addWidget(one); vbox->addWidget(two); vbox->addWidget(three); vbox->addWidget(four); Now this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Switching between activities in a tab gives error the application has stopped unexpectedly. Please try again I am working on android application and I am struck at the below error. Can anybody of you help me out with this error: When I switch between activities in a tab I was able to do it for 2 times on 3rd time I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: String and character sequence error (force close) Android I am facing a problem in solving this issue. I have 30 smiley images. In a grid view I display all the 30 images. So when I select the image based on the position of the image, the corresponding special character will be displayed from SQLite DB. Before I sen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: write into csv file in php I have to create and write into a csv file. Now I tried with the following code: header('Content-type: application/octet-stream'); header('Content-disposition: attachment; filename="data.csv"'); $data = array ( 'aaa,bbb,ccc,dddd', '123,456,789', '"aaa","bbb"'); $fp = fop...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Trouble with ImageView gravity on Java, Android I have this code: <LinearLayout android:layout_weight="0.5" android:layout_width="0px" android:id="@+id/linearLayout2" android:orientation="vertical" android:layout_height="fill_parent"> <LinearLayout android:layout_weight="0.45" and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using the latest (r13) version of Android SDK Manager on win7 64 bit fails to retrieve repository.xml So I've got a brand new PC with win7 64 bit on it. I'm trying to get up and running with android SDK and eclipse. I've done this before on other win7 32 bit machines and never had issues. But now on this new mach...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CommportIdentifier in android We are trying to establish an flow Control from android device to Bluetooth Thermal Printer for that we need to understand the xon and xoff signal sent by printer. We are stuck at getportIdentifier("COM1") its giving exception . Iguess the com1 for bluetooth device is uuid but its not h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL for Qt on Mac I have wasted around 6 hours trying to get MySQL working with Qt following all sorts of instructions from the web. I want to cut my wrist off now! Does anyone have a simple and a verbose explanation of how to install QMYSQL driver into Qt? I have Mac 10.6 and I am a beginner n00b. Your help will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there an interactive way to learn Vim? Years ago I was looking for a way to learn Vim that didn't involve a wall of text, or scrolling through vimtutor without knowing the commands to do so. I wondered if anything else existed for such a purpose. A: http://kikuchiyos-vim-game.herokuapp.com Spiked this mid 2011,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: Converting MVC2 aspx project to use MVC3 Razor view engine I need advice. We have a MVC2 aspx project that we would want to (nice to do, not need to do) upgrade so that we can use the Razor view engine instead of the aspx/webforms engine. In total there is about 200aspx files that would need to be converted. What`s ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get the given date string format(pattern) in java? I want to get the format of a given date string. Example: I have a string like 2011-09-27T07:04:21.97-05:00 and the date format of this string is yyyy-MM-dd'T'HH:mm:ss.SSS. Here I want to find out this date format when I pass string(2011-09-27T07:04:21.97-0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: how to display graphically layout in Eclipse? This error is create when I open graphically layout in eclipse? I make android apps.. java.lang.UnsupportedOperationException Exception details are logged in Window > Show View > Error Log A: You are probably using a Custom View that you created, or some error. Foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how searchview work for listView in android? suppose i have listview content like this. ------------------------------------------------------ TextView TextView -------------------------------------------------- TextView TextView ---------------------------------------------------- TextView ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Interrupt repeater to add advertisement and continue with the repeater Between the comments and blog entries i want to add some stuff to earn some money :D I use <asp:repeater> </asp:repeater> To write out all the blog entries. Is it possible in some way to interrupts the repeater to be able to write out the code...
{ "language": "en", "url": "https://stackoverflow.com/questions/7579235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }