text
stringlengths
8
267k
meta
dict
Q: How to find cookies which begin with string "word" and extract information from string with char # I have cookies with values in it, and between values I put # so I can later extract data from cookies. Now I need a way to search for cookies which begin with some word let say "word", and when I find that cookies I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Describe the page rendering process in a browser? First of all, I am not interested in the entire request-response process as addressed by this question What is the complete process from entering a url to the browser's address bar to get the rendered page in browser? I want to know what goes on inside a browser, on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: VS debugger do not works as expected When I debug my ASP.NET app and execution breaks at break point I can't read type variable using Debug Watches. Why? I get error type The name 'type' does not exist in the current context The code works fine, the problem only in debugging, I can't read all variables while ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it better to give an NSMutableArray or to create an NSArray from it? This is a question that's been bothering me for a while. I want to send some data in an NSArray to a viewController, and sometimes I need to create a NSMutableArray and populate it element by element. If I send it to the viewController, it will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to execute custom action in Alfresco before download a file? I want to store in the repository an unchanged file, but change its content on dowloading due to user's role. To do this I just created my own action that changes content of the file, but found that Alfresco does not provide an appropriate rule to be e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: which SWT component use to implement file browser/explorator in icons, not list, mode how to implement a file browser which has explorator windows/nautilus(Linux) like functionality. I'm looking for a concept which component I should use as a base to create something like right side of this application: http://www.v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unusual gaps while using JSeperator - Java I have been working on a Swing GUI and getting some unusual and unwanted gaps after adding JSeperator, Any idea how to remove them? Or any other option to how to achieve this nicely! Visual Description Gaps are apparent before JLabel "Speed" and after JSlider. Related Code...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: iPhone if file exists issue From all of the examples I've seen, I do believe I'm doing this right. Here is my code: NSString* documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]; NSString* thisImage = [documentsPath stringByAppendingPathComponent:image_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PowerShell Select weirdness I have two select statements here. The "headings" from the first (message, username,timegenerated) are being used for the second (username,timegenerated). Please look at the echo statement to see that the tables\outputs are being merged into one. Can anyone explain why? This needs to be r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C#: Retrieve output parameter of non-parametrized stored procedure query? I have this stored procedure CREATE PROCEDURE [dbo].[TestProcedure] @param1 int = 0 ,@param2 int = 0 ,@total_sales int = 5 OUTPUT AS BEGIN SET NOCOUNT ON; SET @total_sales = @total_sales * 5 SELECT * FROM SomeTable ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamic cell access My question may seem quite simple but I haven't found the answer yet. In excel, I would like to access a cell with a dynamic row number. Example 1 : cell A(1+2) Example 2 : cell B(ROW(A1)*10) What is the syntax for this ? Thanks. A: Use the INDIRECT function: =INDIRECT("A" & (1+2)) =INDIRECT("B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Easiest way to compare two revisions of a single file - not a repository - in Mercurial history? I want to compare an individual file - not see all of the changes in one revision of a repository versus another revision. The way I'm doing it now is hg clone https://me@bitbucket.org/me/ C:\me.123 -r 123 Then I use a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Analytics _trackPageview AJAX requests 100% bounce rates I have a form (made up of a few stages) that is loaded via ajax, and as I move between stages I want to track it in Google Analytics as a PageView. I have this working ok, but I am getting an overall bounce rate below 100% (~30%), which is fine. But whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Default setting for "Build Action" and "Copy to Output Directory"? I noticed when I'm making a new ASP.NET non-MVC2 Webapplication project. In the file properties for either .aspx or .cs files, there are 2 settings that I'm wondering what are defaults for. The reason I'm asking is because there's a couple of files I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to put advertisement to my android application? I am new to integrating advertisement into my android application. I don't know how it's going to work with Android Devices and how to integrate it into my Project. But just because of the requirement, I have to put the advertisement to my project. I would need det...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Rounding Problem with Python Possible Duplicate: Python rounding error with float numbers I have a rounding Problem in Python. If i calculate 32.50 * 0.19 = 6.1749999999999998 But this should be 6.175. If i round 6.1749999999999998 with 2 decimal places it correctly shows 6.18. So i can live with that. But if i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Action behaving like Func in VB.NET Today I've witnessed some very strange behavior in VB.NET. The code I am talking about is the following: Option Strict On Option Explicit On Module Module1 Sub Main() Dim thisShouldBeSet = False DoSomething(Function() thisShouldBeSet = True) If Not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Maintaining UserTransactions across session Working in a servlet, Websphere Application Server allows you to store UserTransaction objects in the HttpSession and retrieve it later, previously with a wrapper class, but now automatically: http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=%2Fcom.ibm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any way to find out mapped drive in Java? I want to find out a given drive path is mapped drive or normal drive in my Java code. Is there any API already available for that? A: You could probably use WMI for this, either use a WMI library for Java, or call wmic.exe. Looks to be a fairly simple query, Selec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: get email ids from the given string using javascript I have a value (a) in my textbox. I want to get the email ids only from the given string using Javascript (I don't want to use any JS Frameworks). (a) xxx@gmail.com (Blig fun), yyy@gmail.info (LOl) I need the output like xxx@gmail.com yyy@gmail.info A: Try ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inner Join in mysql SELECT FirstName from tbl_User INNER JOIN tbl_Organisation on tbl_user.tbl_organisation_OrganisationID=tbl_Organisation.OrganisationID WHERE tbl_organisation_OrganisationID = '23' I want to get a column(OrgName) from tbl_Organisation. how can I do that with the above code. A: Simply w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: impossible to delete contacts I'm trying to delete all contacts by code in Android 3.0 using this code private void wipeContacts(Context c){ int count = 0; ContentResolver cr = c.getContentResolver(); Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); while (curs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Programmatically set print page left, right, top, bottom margins How to programmatically set the printer (left, right, top, bottom) margins, paper size liek A4, A3 etc.. in asp.net web applications. A: You cannot control a user's printer. Printer settings are firmly in the domain of "user controlled". If you want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are self-calling functions in JavaScript? From what I have heard, the following is a "self-calling function": func(){}(); How is it different from the following? func(){} func(); A: I assume you meant what is the difference between (I): function(){}(); and (II): function func(){}; func(); or even (III): va...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What was used before Fragments? I wanted to use Fragments for displaying different activities on one screen on a tablet, but realised that my tablet's API level is only 8 while Fragments require API level 11. My question is thus, what was used before Fragments were introduced? My assumption is that each activity wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Remove/ignore white-space or ink from a symbol/it's glyph This symbol: ▴ (HTML code, ▴). Try selecting it, as you'll see, it as every other symbol has whitespace around. Is there a way to remove this whitespace, so the symbol is simply like if it would've been a drawn image? I tried using CSS's clip property,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it normal to throw an exception over soap webservice server to the client? I am writing a webservice server (c# soap) to my system and I wonder if it is ok to throw new RequestDataNotValidException("Email not valid") to the client? * *I know that c# and java clients will handle it very good, but PHP for exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What happens when new ClassName() is called..? I know that in simple words an Object is created. But i will better make it clear it with a scenario, class A { public A(String path){ } } class AB extends A{ public AB(String path){ super(path); } } class B{ public void foo(){ AB a =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Widget for turning on/off camera flashlight in android I am developing a widget for turning on/off camera led of phone. I have made a widget that can work like toggle button (on/off). Behavior is like follows : Sometimes the led light remains on when i enable the widget. But it doesnot turn on/off the camera led but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: ZipArchive::filename, how is it supposed to work? I thought ZipArchive::filename would represent the path to the actual zip file, but for every zip file I open with ZipArchive::open(), ZipArchive::filename gives me an empty string. Example: $zip = new ZipArchive(); $zip->open( '/some/path/to/zipfile.zip' ); var_dump...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fire Parent event based upon child control event in WPF I have a user control that contains button as follows <UserControl x:Class="MyNamespace.myuseercontrol> <Button Name="uxRemove" Grid.Row="2" Grid.Column="5" VerticalAlignment="Center" HorizontalAlignment="Right" Width="70" Content="Remove" C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSmutableArray with dictionnarie value how to count specif value? I have a mutablearray with dictionnairies. i would like to count how many dictionnary have a specific value ? NSDictionary *question = [self.tabQuestionnaire objectAtIndex:indexPath.row]; [question objectForKey:@"theme"] A: -(NSInteger)countValue:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Enable auto-complete in Emacs minibuffer I'm trying to turn auto-complete in the minibuffer: (add-hook 'minibuffer-setup-hook 'auto-complete-mode) What I get is auto-complete working in the first instance of minibuffer, but no longer. That is the full minibuffer-setup-hook after loading: (auto-complete-mode turn-on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C# - How to generate a list of file names and sub directories in a directory with creation date I am trying to generate a list of all the files present in a directory and its sub-directories along with their creation date. The date and file name to be separated by "::" I tried the below code but its taking time when...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I connect to sftp using linux command from Perl #!/usr/local/bin/perl use strict; use warnings; system("cd $PATH /usr/bin/sftp mysite.com <<!EOF put sample.txt bye !EPF"); When i complile tha application, it asking the pasword, how to pass the user/password in the code itself, what i want is, my script sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Glassfish Java error when deploying WAR I have two Java SDKs installed. How do I find out which one Glassfishv3 is using? I am getting several Java EE errors when I try to deploy WAR files. Below is an example of an error when I try deploying a WAR: Error occurred during deployment: Exception while loading the app ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Configuring Keystore/Truststore for 2-way SSL Java RMI in sandbox started from javaws I'm trying to configure a Client/Server app after setting up 2-way SSL using the java SSLRMIClientSocketFactory and SSLRMIServerSocketFactory. I know that to set the keystore and truststore on the client I need to set -Djavax.net....
{ "language": "en", "url": "https://stackoverflow.com/questions/7515353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Optimal performing query for latest record for each N Here is the scenario I find myself in. I have a reasonably big table that I need to query the latest records from. Here is the create for the essential columns for the query: CREATE TABLE [dbo].[ChannelValue]( [ID] [bigint] IDENTITY(1,1) NOT NULL, [UpdateRe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: SlickGrid Columns - Difference between id and field A simple question i cant workout. In a column definition whats the difference between the field property and the id property...Fx.. columns.push({ id: "officeId", name: "Office Id", field: "officeId", width: 40 }); When would they be different/why two? Thanks? Tim ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: In cassandra 0.8.2 sstableleader how to use -i or --ignore option? I am trying to load sstable with cassandra utility sstableloader But they suggested running this with the -i or --ignore option to avoid some nodes. While trying this option, I am getting a too many arguments error; has anybody tried this? A: It's a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bindings not applied to dynamically-loaded xaml I'm using XamlReader successfully to load a xaml file and create a FrameworkElement to work with. The xaml I'm loading has binding expressions in it such as: <TextBlock Text="{Binding DataContextTextProperty}" /> If I place the FrameworkElement I get back from XamlRea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Jquery trigger key.Code event how to trigger keyboard specif key.Code event with jQuery? I woul like to trigger specifically backspace keyboard event A: var e = jQuery.Event("keydown"); e.which = 8; // some value (backspace = 8) $("input").trigger(e); A: <body onkeydown="return inspectKeyCode(event);"> function...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: TapRecognizer in View and Scrollview (to drag and drop images in a view) Iphone-I created a view and a scrollview. The scrollbiew have images inside their view. I'd like to implement a method which makes it possible for the user to drag images on a view from scrollview list? plz help me! A: There is a very good exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: How to set checked boxes when using CHOICE_MODE_NONE I have a listview with checkboxes that has type CHOICE_MODE_NONE, because I want to make each item tri-state. It works fine using setChecked in onItemClick, to check and uncheck the items as required. But when starting up the view, I want to set some item...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to capture camera devices on Windows using Libav? Is there any way to capture frames from as many camera types as DirectShow do on Windows platform using Libav? I need to capture a camera output without using DirectShow filters and I want my application to work with many camera devices types. I have searched the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding value to list stored in session and then using as datasource for repeater I have two repeaters on my page. The first repeater has a LinkButton in it, with a commandname and commandarguement. When the linkbutton is clicked the value of commandarguement is supposed to be stored in a Session containing List. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to sort an array with numbers in iphone? I need your help. I have stored selected indexpath values in an NSMutableArray from UITableView. I have stored these values in NSString type and i want to retrieve like NSString to int datatype. But, I want to sort this array by (0,1,2,3,4,5,6,7,8,9,10,11,12,13....)this w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: accessing/handling bluetooth wireless keboard input(key press) in my ipad application i have already done much googling on this neither i found a tutorial/way to accomplish this nor find that it could not be acheived(so that i can assist my client ,it's not possible) we have requirement to integrate a bluetooth wire...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sort a list of nontrivial elements in R In R, I have a list of nontrivial objects (they aren't simple objects like scalars that R can be expected to be able to define an order for). I want to sort the list. Most languages allow the programmer to provide a function or similar that compares a pair of list elements tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: SharePoint 2010 custom breadcrumb, change only HTML I have a requirement for changing the way bread crumbs looks in sharepoint. Please note that the data source will still be sharepoint but i need to generate the html little differently than the one displayed by sharepoint. for example, if you are in a custom list,s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GWT - Unable to find type 'com.myapp.launcher.client.LauncherInitializer' multi-module architecture I have a project with the following structure: com.myapp.gwt: Basic.gwt.xml Launcher.gwt.xml - inherits Basic.gwt.xml Module1.gwt.xml - inherits Basic.gwt.xml com.myapp.gwt.ui.basic.client: AppActivity...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error when removing a TitleWindow via PopUpManager I am having issues to remove a PopUp form my application. In fact I have a title Window with a component in it. In the component I have a Button, which when clicked should remove the TitleWindow (the PopUp). I am getting the error : TypeError: Error #1009: Cannot a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to render reports by code (C#) in CRM 2011 ADFS or Online-deployments? How can I render reports by code (C#) in CRM 2011 ADFS or Online-deployments? A customer is moving their solution to a "private cloud", that is partner hosted using ADFS 2.0 and claims based authentication only. However, they have an applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Decrypt data only for authorized client I have an asp.net mvc web application with some customers. A new customer tells me that its data should be crypted on its client and then sent to server (that will store the data into database). When the client will request the data, they will be read from db and decrypted on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is my Android background color not visible? I'm trying to figure out one simple thing: how to set a background color in Android view. Here is the code in an Activity: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); View v = new View(this); setContentView(v); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Evaluating math expression on dictionary variables I'm doing some work evaluating log data that has been saved as JSON objects to a file. To facilitate my work I have created 2 small python scripts that filter out logged entries according to regular expressions and print out multiple fields from an event. Now I'd li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UTC time resets to 2000-01-01 (ruby). How do I prevent the time from resetting? I'm using a task and the spreadsheet gem to read in an excel spreadsheet into my database. One of the columns I'm reading in is "start_time." To do this, I'm forming an array of values, then passing in each of these array values, one by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Returning a 401 Unauthorized from WCF Web API in an MVC 3 App I'm using the WCF Web API (the latest version, which I think is 0.5, obtained from the VS2010 Ultimate integrated package dependency GUI). I've got a simple API class exposed and in each method I'm making a call that performs authorization against the use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: new problem in xcode 4 When we open a new project in xcode and then run that, this will run without any error. but if we close the application in simulator ( by duble click on the home button and keeping MouseButton on the applicaton and hitting the red circle) and click on the desired application icon again, this m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IE shows my website as an empty page on first visit I have a wordpress site, work great in all browsers except IE8. It shows the site as an empty page on the first visit. However, if mouse over a link or image tooltips are shown. If I click refresh page the page starts to work.
{ "language": "en", "url": "https://stackoverflow.com/questions/7515410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement a check for update on Mac OS X I'm trying to create an internal app for my company. I want to provide some kind of "automatic update" feature that give the user a message (with install option) once a new version is available. I know that for windows there is a technology named ClickOnce. Is there so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Export an EmailMessage from EWS that can be opened in MS Outlook I'm writing an application that monitors an Exchange mailbox using EWS. It saves the attachments of the incoming mails to a network folder. These files are then used by a 3d party application. Now I've been asked if it is possible to not only save the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: heatmap.2() overwrite colnames I am using the function heatmap.2 in R. I created an heatmap with the following conditions: heatmap.2(tada1, Rowv=FALSE, Colv="FALSE", dendrogram='none', scale="row",trace='none',col=redgreen(3)) My problem is that the column of the heatmap contains 596 names. I cant see this names ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to use one ANTLR grammar that targets multiple languages? I am developing a language service in Visual Studio using an ANTLR grammar for a custom language. However, the grammar is filled with C++ code to handle preprocessor directives and for efficiency reasons for the compiler. Language services for...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jqGrid extend configurations from other jqGrid I will have many jqGrid tables at my application. However it is not easy to write every configuration of it again and again (i.e. viewrecords: true, sortorder: "desc", multiselect: true, multiboxonly: true, ) How can I instruct a basic grid and extend and overwrite its...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ newbie: writing a function for extracting i vectors from a file. How do I get i/unkown number of vectors out of the function? I am writing a function for getting datasets from a file and putting them into vectors. The datasets are then used in a calculation. In the file, a user writes each dataset on a line un...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Integer Partition in Java Here is my code to do this. It works for the string representation, but not the ArrayList<ArrayList<Integer>> one. public static void partition(int n) { partition(n, n, "", new ArrayList<ArrayList<Integer>>(), new ArrayList<Integer>()); } public static void part...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Profile Manager Lion Server error My Lion Server (10.7.1) worked perfectly until this tuesday. Yesterday when I went to profile manager's page, sometime it works and sometime not. Also, if I do the enrollment of a device sometimes works and sometimes not (I received a timeout). I discovered that port 5223 does not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MVC3: Portions of Model Not Reconstituted on Postback Portions of my models are not being correctly reconstructed on postback. Models public class DemographicsModel { public List<QuestionModel> Questions { get; set; } } public abstract class QuestionModel { [HiddenInput(DisplayValue = false)] public int...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to align text around a bottom right image using a spacer div (not working in Safari)? I have a fixed height div and want to align an image to the bottom right corner with the text (of an unknown/variable length) to wrap around it. I'd ideally like to avoid using Javascript and the best solution so far appears to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Eject sdcard when playing video on internal storage cause "media server died" I am developing android applications and firmware for a hardware device, the device have internal storage at /mnt/sdcard. When insert external sdcard, it is mounted at /mnt/sdcard/extsd, and /mnt/sdcard/udisk for external usb disk(thumb dr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a favourite list iphone I am making an app that has two tabs, one of which is a "favourite" tab. In the other tab called "search", I have a list of results displayed in a table view, when you tap one, you get to see the detail of that particular result. What I'm trying to do here is, there is a button in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does the Google+ Hangouts API support filling app fields on the runtime? I am trying to build a app using the hangout API, starter app. Does the Hangouts API have support for data fields to be added on runtime? For example, a. If we need to add team members to our app b. Or when we do 'Create Application' (https://a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: to search for consecutive list elements prefixed by number and dot in plain text The text looks like this: "Beginning. 1. The container is 1.5 meters long 2. It can hold up to 2lt of fluid. 3. It 4 holes." There may not be a dot at the end of each list element. How can I split this text into a list as shown below? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make two vertical DIVs be the same length? I have the following HTML: <div id="body"> <div id="left">xx</div> <div id="right">yy aa <br> <br> <br> aa </div> </div> and the following CSS: #body { background-color: yellow; } #left, #right { float: left; } #left { background-c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert MailMessage to Raw text Is there any easy way to convert a System.Net.Mail.MailMessage object to the raw mail message text, like when you open a eml file in notepad. A: I've implemented logic in MimeKit to allow you to cast a System.Net.Mail.MailMessage into a MimeKit.MimeMessage. Once you do that, you can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Jsoup vs groovy XmlSlurper? I am looking at parsing some xml content for my application (based on groovy) and I am stuck at this point where I have to choose between JSoup and groovy's native XMLSlurper. RSS Feeds parsed are of medium size not exceeding more than 25 items. So the size of the content being parsed is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Insert comma before last three digits of a mysql_fetch_array result? is it at all possible to do this? for instance if i had $row['price'] and the value of this was 15000 I would like it to show as 15,000 but I dont have a clue about how to go about this? thanks for any help. A: So, you want to FORMAT your data? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# ShowDialog() throws error because of importing C++ DLL This C# program works fine without using showdialog() but it creates "system access violation" exception when i tried to use showdialog(). Weird!! C# Code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using Sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to select data from multiple tables with LINQ (entities) I have two tables and corresponding LINQ entities * *product *order order has a fk_product_id in the database which is linked to pk_product_id in table product How can I write a method that returns data from both tables, so that I can hook it up to a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: excel vba macro - extract value from where clause In columnA of excel sheet 'Input' I have the following (with each line being on a new row in the sheet): update my_table set time = sysdate, randfield1 = 'FAKE', randfield5 = 'ME', the_field8 = 'test' where my_key = '84' ; update my_ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: reloadData - UITableView I have a problem in displaying the data in a table, call the method [tv reloadData] when Tebel is updated but when I select a row it will appear blurred, as if the previous data had not been removed. I think the problem is in the class that stores the data brought by my SQL query, but I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: make the element in the div align vertically middle This is the live example: http://jsfiddle.net/NjnAF/ The div#con is the search result panel,I want the search item displayed in the list manner with the icon and text. Now I can not make the icon align middle vertically and make the text the "1" "2" just in the cen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Re-evaluating a var in python Consider the following pseudo-code: class Atrribute(object): def __init__(self): self.value = 0 def get(): self.value = random(10) def func(var): lambda var: return var+1 1) myFunc = func(Attribute().get()) 2) myFunc() 3) myFunc() Now, when I call myFunc() in l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How would I change the default loaded view controller in Xcode? How would I do this? Is it simple enough to explain clearly? If not, a tutorial would be nice. I checked the web and this site and still couldn't find exactly what I was looking for. A: The default XIB file loaded when your application start is MainWin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to organise classes, packages How do you decide what a package name should be and what class should go into what package ? I'm working on a project where I am constantly adding/removing classes and not really sure if I need a new package, or should add it to an existing one that im not currently aware of. Do you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Maven project with native dependency and copying files I have the following scenario: mylib is a library (for which I have the sources, so I'd like to put them into a Maven project mylib:mylib for example). This library has a jar dependency for which I only have the jar, and it is not to be found in the Maven reposi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Request Processing Model of HTTP Intermediaries Does anyone know of an overview or comparision table of the common HTTP intermediaries (caches) such as Squid, Varnish, TrafficServer,...? I am looking in particular for information about their request handling approach (sync vs async, multi-process, multi-threaded etc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF POST method doesn't get called I've created a WCF REST service and initially used .Net Framework version 4. The service has two methods, one returns a plain string with the service status. The second allows a file to be uploaded. Both methods were working fine. I was asked to see if the project could be moved ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Netsuite with Mule ESB How do I obtain the modified records of employees for a certain period of time? How to get list of role? how to delete record of role and department from employee? I'm using the Mule Cloud connector to NetSuite. Thx.
{ "language": "en", "url": "https://stackoverflow.com/questions/7515511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rails 3 syntax error in development when line is split into multiple lines in controller When I was developing my project on my local file I had this line in code which worked correctly: @json = Location.qty_of_deliv_from(params[:from_rc]) .qty_of_deliv_to(params[:to_rc]) When I deployd with passenger I get a syn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Select statement Where time is *:00 I'm attempting to make a filtered table based off an existing table. The current table has rows for every minute of every hour of 24 days based off of locations (tmcs). I want to filter this table into another table that has rows for just 1 an hour for each of the 24 days base...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: svcutil.exe generates errors while wsdl.exe runs through without I'm looking into generating a web-service conforming to the WSDL found at: http://assets.cdn.gamigo.com/xml/connection-service/1.0.10/account.wsdl When I run with svcutil.exe like this: svcutil.exe /language:C# /out:GamigoServices.cs http://assets.cdn....
{ "language": "en", "url": "https://stackoverflow.com/questions/7515515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CSS/HTML scrolling text without scrollbars all! I need to make effects with like on the picture. I can make text shading (transparent imgage on top and bottom of a text) but I have no idea how to make scrollable text without scrollbars and clipping (overflow: hidden). Have eny idea? I have only one idea - add image...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is Android's Visualizer class's handling of media volume inconsistent across different devices? I have made a music visualizer app for Android. While developing on my HTC Legend (running Android 2.2), I noticed that setting the "media volume" of the phone had no effect on the output of the Visalizer class, i.e. I al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to do a generic call to function based on a Type object? how do you execute Get, when all you have is: T expressed as a Type object i.e. Type type=typeof(int); and arguments param1 and param2? public void DoCall(){ var type=typeof(int); // object o=Get<type> ("p1","p2"); //<-- wont work (e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Location of VB.NET Windows Service My.Settings - settings I have a VB.NET solution built in Visual Studio 2010. It consists of a class project, a service, and a setup project. I have successfully created a setup, and run the setup from the "Release" directory of the setup project (outside of Visual Studio). It insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Constructor initialization order and reference passing Hi I have a question about the constructor initialization order. Given below struct B {} struct A { B& b; A(B& b) : b(b) {} } struct C { B b; A a; C() : b(),a(b) {} } struct D { A a; B b; D() : a(b),b() {} } I know that C is vali...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Azure BLOB storage - Pricing and speed "Within the data center" I am quite sure I know the answer, just want to make sure I got this right. From Azure In Action : If I use the CloudBlobClient from a WCF service that sits in my WebRole, to access blobs (read/write/update) , so : 1) Does read/write/update charge as t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: whats faster, count(*) or count(table_field_name) in mysql? Possible Duplicate: COUNT(*) vs. COUNT(1) vs. COUNT(pk): which is better? I want to retrieve the count from a select query. What is faster: count(*) or count(table_field_name)? I want to know which way is faster for performance. A: The difference is Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7515531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }