text
stringlengths
8
267k
meta
dict
Q: Oracle - Insert one row per hour between two times Given two times, how do i insert one row per hour in the Oracle table? Start Time: 3.00 PM End Time: 6.00 PM Name: 'Asdfg' Expected Data to be generated: Name StartTime EndTime ASDFG 3.00 4.00 ASDFG 4.00, 5.00 ASDFG ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Problem with data file of Rocket Framework For a windows form application I want to use Rocket Framework from http://rocketframework.codeplex.com. I downloaded Rocket Framework V 1.0.2. After that I located the datafile inside 'Release V 1.0.2\Release V 1.0.2\MainForm\DB'. Now I need to make a database in MS SQL Ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can the Volume Shadow Copy service be used in Windows 7 by a non-administrator I'm trying to use the Volume Shadow Copy service on Windows 7, and have had a look at the MS vshadow code and AlphaVSS. These appear to provide enough detail to do what I need, but I can't make anything work unless in Administration mode ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Indexing FTP document with solrj I want to index some documents with solrj API's but the URL of these documents is FTP. How to set username and password for FTP acount in solrj? A: UpdateRequest - stream.url does not support authentication We had to add a custom patch to add authentication to it @ https://issues.ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does the ESP referring to the address in a stack jumps 4h each time? Why doesn't the Extended Stack Pointer (ESP) jump 1h in each PUSH or POP operation? A: That's because PUSH pushes one whole register to the stack. On 32bit machines, that's four byte's worth of data. PUSHQ would change RSP by 8 in x86_64 becau...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: XPath to find nodes with text + all their descendants & siblings that match certain criteria Background: I'm trying to improve on a Greasemonkey script I found. The script marks prices in foreign currencies and can translate them into the currency of your choice. The main problem: How to make the script handle when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CSS3 Box Shadow not working in Chrome? I'm working on a design for a small page with css3 features being used. For some reason I can't get -webkit-box-shadow working on this page (and just this page). I can't seem to figure out where I went wrong. http://kin.remuria.net/flipfinder/test/ Anyone have any ideas what mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set converter properties for each row/item of h:dataTable/ui:repeat? I have created a custom ISO date time Converter: public class IsoDateTimeConverter implements Converter, StateHolder { private Class type; private String pattern; private boolean transientValue = false; public void setType...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Python decode text to ascii How to decode unicode string like this: what%2527s%2bthe%2btime%252c%2bnow%253f into ascii like this: what's+the+time+now A: in your case, the string was decoded twice, so we need unquote twice to get it back In [1]: import urllib In [2]: urllib.unquote(urllib.unquote("what%2527s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Cannot add a nested relation or an element column to a table containing a SimpleContent column Hi iam write this code " XmlTextReader read = new XmlTextReader("http://msdn.microsoft.com/rss.xml"); DataSet ds = new DataSet(); ds.ReadXml(read); ListView1.DataSource = ds.Tables[4]; List...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Flowplayer jQuery Tools not functioning in IE 7/8 I've noticed an issue which has recently cropped up regarding Flowplayer's jQuery Tools, which do not appear to be functioning in IE 7/8. Please reference here. Works great in Safari/Firefox/IE9, - and was in IE7/8 until recently. Is anyone aware of a conflict bet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity Framework complex query i'm trying to learn Entity Framework and I need some help to build my query. I have a Post class like this : public class Post { public int PostID {get;set;} public string Title {get;set;} public string Content {get;set;} public PostStatus Status {get;set;} public I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET Site Authentication Cookie sharing I've got 2 MVC3 Internet websites. One (Site1) uses Windows authentication and is in the Local Intranet Zone. The second (Site2) is publicly available and uses Forms Authentication. Both sites are in the same Domain, but have a different sub-domain. I want to share authen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moving a Asp.net WebApp on SQL Server To MySQL what are the potential Issues? The WebApp makes use of Asp.net membership, And roles with session. it also uses LLBLGen Pro as a datalayer. My Question is what are the potential issues that might make this not work ? A: A few of the potential issues that come to mind:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML5 Canvas and Line Width I'm drawing line graphs on a canvas. The lines draw fine. The graph is scaled, every segment is drawn, color are ok, etc. My only problem is visually the line width varies. It's almost like the nib of a caligraphy pen. If the stroke is upward the line is thin, if the stroke is horizo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How is ASP.NET finding my class library? I have been asked to update a class library DLL that is being used by an ASP.NET application that someone else created. However, when I looked at the folder structure for the ASP.NET app, I found that the DLL existed under two different folders, and it looks like the app use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Http HEAD returning different Last-Modified dates on different servers for same resource, why? We have a Java process that fetches resources over HTTP. I discovered that one resource was not pulling correctly even after a client had modified it. Digging into it I found that on the server the process is running the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bit parity code for odd number of bits I am trying to find the parity of a bitstring so that it returns 1 if x has an odd # of 0's. I can only use basic bitwise operations and what I have so far passes most of the tests, but I'm wondering 2 things: * *Why does x ^ (x + ~1) work? I stumbled upon this, but it seem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Android Web Request Title grab Could you please help me grab the titles from this page : http://golfnews.no/golfpaatv.php , for example ? By titles I mean the Bold text next to the hour scheldule . I need to grab each text and then put it on the device's screen. That's my code : package com.work.webrequest; import ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure ACS Popup or In Page Redirect, What's better? What to get more opinion on something I'm working on right now and what do you think is better in this situation. Right now I'm building a login using the Azure ACS, and I wanted to know which would be better. Option 1 When a user clicks the login they want to use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need to fax HTML via .NET code I have 1 HTML page in a StringBuilder that consists of a number of tables. After each table I put a page break for printing purposes. Now I need to fax this HTML page. After each page, a break page should be faxed on another page. I need to do this in either VB.NET or C#. How can th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: override on non-virtual functions The C++11 FDIS it says If a virtual function is marked with the virt-specifier override and does not override a member function of a base class, the program is ill-formed. [ Example: struct B { virtual void f(int); }; struct D : B { void f(long) override; // error: wrong ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How to set custom list view item's height...? I have a custom list view which contains two text views and on button. I have customized the button style. In the list view each row is not fit to show my button properly. I want to change the list item's height. How can i do that..? This is my list view. <ListView andro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to encrypt a string using node.js? I need a node.js equivalent of the following Ruby code: require 'openssl' digest = OpenSSL::Digest::Digest.new('sha1') signature = OpenSSL::HMAC.hexdigest(digest, 'auth secret', 'some string') I tried the following in node.js, but the Ruby signature is different fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How Blocking IO Affects A Multithreaded Application/Service In Linux Am exploring with several concepts for a web crawler in C on Linux. To decide if i'll use blocking IO, multiplexed OI, AIO, a certain combination, etc., I esp need to know (I probably should discover it for myself practically via some test code, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tinymce initizlising textarea with <> tags Tinymce editor is not rendering editor properly when the content is something like <textarea><p>&lt;sample data&gt;</p></textarea> i.e. <sample data>. When I initialize a TinyMCE editor here, I dont see anything as it looks like it assumes <sample data> is an HTML tag. Pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Asp.net MVC 3 view engine error I am trying for custom error handling at global level in Application_Error. Exception ex = Server.GetLastError(); Server.ClearError(); AssortmentDefinitionLogManager.LogException(ex); Context.RewritePath("/Error/Error"); IHttpHandler httpHandler = new MvcHttpHandle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: End to end profiling of web/J2EE and client applications Is there a good tool to do end to end profiling of a system that uses J2EE and has clients? I realize that you can easily profile the server and the client seperately. However, I do not know of any tools that'll give you information about the effect of the ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: HCL color to RGB and backward I need an algorithm to convert the HCL color to RGB and backward RGB to HCL keeping in mind that these color spaces have different gamuts (I need to constrain the HCL colors to those that can be reproduced in RGB color space). What is the algorithm for this (the algorithm is intended to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: UML Event Tables: Differences between Event & Trigger, Intermidiate Responses Suppose the event/use-case "Buy Online", in the event table, the entry may look like * *Event: Customer buys products online *Trigger: Same as Event? *Source: Customer *Use Case: Buy Online *Response: Confirmation Code, Validate Cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Duration set up with CATransform3DMakeTranslation my first question on stack overflow :) I want to make a y axis translation on a CALayer. I got a big background : 320x4000px. The translation is working with the following code : NSNumber *deplacement = [NSNumber numberWithFloat:([app.session.progression floatValue] ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Excel 2003 Links Paths not including drive I have an Excel 2003 Spreadsheet which reference other add-ins. The add-ins are installed in the same location in all PCs at C:\program files\MyPlugins\ Now I moved the spreadsheet to a Network Drive P: When I try to open the spreadsheet from the P: drive it is giving me an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: distributing own python, cross-linux I have the following problem. I need to distribute our own version of python with some magic in it. In order to do this, the process is the following: * *I build the python interpreter (on a redhat linux) *install it somewhere *tar.gz the whole thing *when it's time to make...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Video event listener not working properly (Google Chrome extension - Javascript) I am trying to track when video stops, pauses, etc in Google Chrome extension. This is example page (html5 video): http://www.kaltura.org/apis/html5lib/kplayer-examples/Player_Themable.html This is the code: var player = document.getEle...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: EF return parent entity only I'm having an issue when trying to serialise an entity. An error is being through saying that the query may result in a circular query. Ideally I just want to pull out the entity with no relationships attached. I've seen some examples where you can set the relation accessor to Internal b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: tab control with datagridview is not working in winforms I have a form 1 with 2 datagrid view controls and tab control with two tabs. When I click on the datagridview cell I want to load something into two tabs. First Tab I want to display the selected datagridview row values in text boxes in first tab.... this was...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show annotation AFTER the pin is dropped? I have been checking a couple of related posts regarding the callout behaviour. I know didAddAnnotationViews could bring annotation view along with the pin when it starts dropping. But what I actually want is show the annotation AFTER the pin is dropped onto the map, just li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rendererAdd function for Spark DataGrid? Like we have rendererAdd function/hook for a Spark List which is dispatched when an itemrenderer is added to the container ? Do we have any similar method/hook at DataGrid level also ? Thanks in Advance A: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Positioning of a pop up All divs change position horizontally if you make the browser window larger. Is there way to prevent this happening? Any help greatly appreciated. Thanks A: I see you're using jQuery on the page, why don't you try the jQuery UI position utility: http://jqueryui.com/demos/position/ This allow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this.init = function() called every time file is loaded? I can't find a definitive answer if an init function is called automatically when the file is loaded. Is this a built-in part of JS/Jquery, or am I missing where it's getting called from in some location of another file? If it is being called automatically...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to add another layout to display in OnActivityResult()? I have an app that has a user take a picture and have it uploaded to a website. I have this code right now: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update a TClientDataSet with changes made to the DB without it knowing? I have a simple TClientDataSet component that I use to populate some data-aware components. However, if I insert data into my database using this dataset, I can't seem to find a proper way to sync it back into my TClientDataSet component....
{ "language": "en", "url": "https://stackoverflow.com/questions/7530670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing gridview from a non GridView event I have a button outside a gridview called "UpdateAll", i need to be able to click on such button and find an item template "DropDownList" and update the database with that value for each record, I am not sure how to go about this any ideas? public void UpdateAll_Click(o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom Tab Disappears on Click? In my Android application I have three tabs in TabHost. Tab number 2 and 3 loads some data that will take around 4-5 seconds to load. When I click on any of these tabs, the tab disappeared until the data got loaded. Is there any reason for that? How can I handle this disappearing tab ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use setInterval and clearInterval for a simple slideshow jQuery i managed to get a simple slideshow working that has two main "features": * *automatically sliding to the next image *showing the desired image on clicking the according indicator the interval is set to display the next image after 5 seconds....
{ "language": "en", "url": "https://stackoverflow.com/questions/7530677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript variable scope issue with jquery click event I am trying to assign a series of objects stored in an array to jquery click event handlers. The problem is , when the event fires, I only ever references the last object in the array. I have put together a simple example to show the problem: function dothis() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting Primitive int array to list I am trying to solve the following problem. There are two arrays A of size n and B of size n+1. A and B have all elements same. B has one extra element. Find the element. My logic is to convert the array to list and check if each element in B is present in A. But when I am usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C# interfaces with same method name I dont know if what I'd like to do is simply not possible: or I'm not thinking about it in the correct way. I'm trying to construct a repository interface class which accepts a generic type and uses this as the basis for the return on most of its methods, ie: public interface IRep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: CGContextDrawPDFPage Leak 100% I try to Draw a pdf with CoreGraphics, everything work fine but in instrument there is a 100% leak on : CGContextDrawPDFPage(ctx, page2); I release with CGPDFDocumentRelease(); everytime i use CGPDFDocumentCreateWithURL(); There is any solution to release : CGContextDrawPDFPage ? - (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change background color on elements with the same color I'm trying to create a simple theme system here. I have few elements with red background color. I also have a button that will change the elements background color to green. I'm trying to code but I couldn't figure out how can I select and change the bg color ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I force IE users to install Google Chrome Frame Plugin I am using google visualization for charts, which doesn't render very well in IE8, and doesn't work at all in IE6. I added google chrome frame, and if the user installs the plug-in google visualization works flawlessly. Is there a way that I can force IE use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you draw an arrow at the end of a bezier curve in SVG / raphael? I have a curve generated by this: var path = ["M", x1.toFixed(3), y1.toFixed(3), "L", arrow_left_x, arrow_left_y, "L", arrow_right_x, arrow_right_y, "L", x1.toFixed(3), y1.toFixed(3), "C", x2, y2, x3, y3, x4.toFixed(3), y4.toFixed(3)].join("...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Should I port my WebBroker projects to Indy Long ago I started some "web applications" using Delphi 2007 and WebBroker (TWebModule). At the time I assumed you needed a webserver such as Apache or Microsoft IIS in order to create any sort of website. Additionally I don't use most of the Apache features (except for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Question about ASP.NET gridviews I have a gridview. Is it possible to modify the gridview so that I can have multiple rows in the column headers? For example, the following code generates the table in the picture below. <asp:GridView ID="productsGridView" Runat="server" DataSourceID="productDataSource" AutoGenerateC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Connection string from SqlException "network-related or instance-specific error?" Some of my sites are reporting the following error: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not acces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Animation when changing ContentTemplate I have a window where different controls had to be displayed over time. I searched for a solution with using the mvvm pattern and ended up with this <ContentControl Content="{Binding}"> <ContentControl.Style> <Style TargetType="ContentControl"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Node.js "new Socket" create a Unix file socket? I've been working with node.js for the past couple of weeks and I need to implement the FAST-CGI protocol. The problem is that when I create a UNIX socket (via "new Socket") I need to get the filename, or file descriptor. But socket.fd is null (default parameter)....
{ "language": "en", "url": "https://stackoverflow.com/questions/7530709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I preserve html as is when using Javascript's innerHTML everything is working fine, decodeURIComponent(xmlhttp.responseText) comes back as html from parsing script as checked with alert, no errors in the console, but replacing the html to the editor with retHTML.innerHTML =decodeURIComponent(xmlhttp.responseT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AbstractFactory with generic types in Java: a design problem I have the following 2 interfaces accordingly to abstract factory pattern: public interface GenericObjectInterface<T extends Number>{ public T getResult(); } public interface AbstractFactoryInterface{ public <T extends Number> GenericObjectInterfac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pass a Control to a Method I'm trying to create a method that will custom validate any TextBox control passed to it. Here's what I've got so far: A Custom Validator protected void CustomValidatorDelLN_ServerValidate(object sender, ServerValidateEventArgs args) { CustomValidator ThisValidator = sender as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Js searching object with a key I have a json string which is resulted by an ajax call which looks like this [ { "name":"sourabh", "userid":"soruabhbajaj", "id":"11", "has_profile_image":"0" }, { "name":"sourabh", "userid":"sourabhbajaj", "id":"12", "has_profile_image":"0" }] The page on my web app uses "id...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c++: How to init members of std::pair in constructor I have the following class: typedef std::pair<boost::asio::ip::tcp::socket, boost::asio::ip::tcp::socket> socket_pair; class ConnectionPair { private: socket_pair _sockPair; public: ConnectionPair(boost::asio::io_service &ios); } How do I init t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive I'm trying to up load my site and I'm getting this error message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. <compilation debug="true" targetFramework="4.0"> The site works fine on m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "431" }
Q: Maven multi-project dependency management for checkstyle plugin I'm trying to use the maven-checkstyle plugin for a multi-module project here is my projec structure |pom-root | -- my-checkstyles | |-- pom.xml | |-- checkstyles | |-- checkstyles.xml | -- my-war | |-- pom.xml | -- my-ejb | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error while implementing KMLViewer in my project I have included the class KMLParser.m of Apple's KML Viewer in my project.The problem that I have is that when I try to build the project i get two errors like these: _CLLocationCoordinate2DMake,referenced from: _strToCoords in KMLParser.o _CLLocationCoordinate2DisVal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a cookie outside of a web-browser (E.g., With VBScript) A very random request - and trust me, I wish I didn't have to do it either. Essentially, a customers users are using a website that plays up with some other technology we roll out. We've exhausted all other routes in getting things to work properly, so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding functions to GUI in Matlab I used simpletab.m from MatlabCentral to make simple tabs in GUI Matlab, now I wanted to add another function so that the result of the added function is displayed when I press the GUI tab buttons. For example I want to add a function to every tab, when I press "tab 1" that function...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Devexpress - AspxCallbackPanel controls have no values after postback I am having some issues with some DevExpress controls which are sitting inside an AspxCallbackPanel. At the point of clicking the "Submit" button, everything has a value (Text boxes, combos etc) - once I check the server side code I find that ever...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# add event handler literal code block Is it possible to add a literal code block as an event handler in C#? Something like: Timer t = new Timer(1000); t.Elapsed += new ElapsedEventHandler({ Console.WriteLine("Tick"); }); You can do this in PowerShell, so I thought there might be some way to do this in C# too. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: what does kernel do behind the scene I would like to know the exact sequence of steps that the OS does, when I type simple command like "ls -l" in any directory. What actually happens behind the scene ? I would like to know what kernel does behind the scene while executing even a simple command like this. A: You co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RegEx Replacement in JavaScript I have a piece of code which replaces tokens in a string. I have the replacement values stored in an array. Essentially, I would like to analyse the string and replace it by array key. For example, I want to replace any instance of [my_forename] with replacements['my_forname']. The ke...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GXT: How enable paginator? I have working proxy: proxy = new RpcProxy<List<EmpDTO>>() { @Override protected void load(Object loadConfig, final AsyncCallback<List<EmpDTO>> callback) { EmpDTO empDTO = new EmpDTO(); empService.findByExample(empDTO, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where do I put classes on CLASSPATH? I complied Ref.java into ref.class and put it in the directory as specified below. I'm having a devil of a time figuring out how to use CLASSPATH. If anyone can point out my (probably stupid) error, I would be most happy. I have a class "Ref.java" as below: package utility.myap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Keep running a SQL procedure while browsing elsewhere in the application I am facing a technical issue on a web-app development : Here is the goal : By clicking on a button, the user launches a SQL/Oracle procedure that takes about 5 to 10 minutes to come to an end successfully. The procedure is composed of 4 steps ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add OpenGL libraries to software package I have developed a scientific code package (for collisional/gravitational N-body simulations). It does not require any libraries to run. People can download it and simply type make to compile it. I want to keep it that simple. I added OpenGL as an option to visualize the simu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is this control possible in windows application(Winforms) please check the image below I would like to know if this kind of control is possible in windows application(Winforms). I tried grid-control but couldn't achieve this. Basically Col Name is populated from database. Detail Column is not populated from DB,it's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get the index of the values of one vector in another? I would guess this is a duplicate, but I can't find that so here goes... I'd like to return the index of second in first: first = c( "a" , "c" , "b" ) second = c( "c" , "b" , "a" ) result = c( 2 , 3 , 1 ) I guarantee that first and second have unique values, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Sencha touch vertical scroll content in a horizontal carousel I want to have a horizontal carousel where the content of each panel is able to scroll vertically. Currently the content is chopped off at the bottom of the screen and I am unable to scroll down the content. I use this code for the carousel: Pages.Portfol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Switch to another running process Can someone please explain how I would go about switching to another running program via C#? For example if i create a new application with a button event - i would like to use the button to say call an open application like internet explorer or word. I know how to start applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Border Radius / Overflow Problem in Chrome I have a site that uses a lot of border-radius for layout. The issue is compared to a working version (Firefox) in the screenshot below (also I did NOT design this awful thing). All the code follows the same format for border radius: border-top-left-radius: 25% 54%; borde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: image magick center on canvas and color I am running a script to crop an image,, set the correct dpi and resize it slightly smaller.. this first command works perfectly convert tmp_image/o_1316646627.jpg -strip -crop 1676.404494382x1200+0+0 -quality 100 -units pixelsperinch -density 239.48635634029 -resample 239.486...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Something unclear with operator delete I am new to C++ and I have something unclear: #include <iostream> using namespace std; double* foo(void) { double* b = new double[100]; return b; } int main() { double* a = foo(); delete [] a; return 0; } Is there something wrong with this code? I mean w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is it possible to add button on FormLayout I need to display button in the middle of the dialog that uses FormLayout However when I'm adding button to such dialog, it added near standard dialog buttons (OK/Cancel etc.). I do not need to add buton there, I do need to add button in the body of the dialog? I guess my p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: has_many :through and getting associated items This is a follow-up to this question has_many :through usage, simple, beginner question Basically, I'd like to have a function in my Invoice class that gets all the LineItems but the following is not working: so: > @i=Invoice.find(1) # good > @i.products ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should validation be on business models or view models? I am trying to figure out where to put validation in my N-Tier Asp.net MVC application On the one hand I feel like validation should be in the business layer with the business objects themselves. This means that when validation rules change I only have to chan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to use "Passive Mode" with FtpWebRequest We have a process in place to upload a file nightly to a partner FTP site. They now require a passive connection and our uploads now fail. Is it possible for the .NET 4 FtpWebRequest to implement a passive connection instead of an active one? If so, can someone...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Do you uniquely id all of your models? I'm using backbone.js. I get an event from the server that needs to update a particular instance of a model in a collection of models. Should I set the id attribute to achieve this, how do I target a model by its id? Thanks A: yes, every model should have a unique id. when you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JNI crashes when calling CallVoidMethod I'm trying to call a java method from native C code in an Android Application. This sounds quite simple with the usage of JNI, but my code always crashes when finally calling the method itself. Here's my code: Native C Code: JNIEXPORT void JNICALL Java_com_path_to_my_package_r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Why is my SSIS text logfile formatted in this way? I have configured logging in my SSIS package by using the Text File log provider. The connection string for the provider is the name of a file in my local file system. The package completes and writes data to the log, but it is formatted in a way that I did not ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Routing on IIS6 With Decimal In Route I have a route in my MVC3 project that works perfectly fine locally when run through the debugger and through IIS7. However, our servers are IIS6 and when I move my application out I am getting a "The page cannot be found" error. My guess is it has to do with the decimal in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create a toggle button with 3 options...? I want to create a toggle button with 3 options. I don't want to use radio button or check box. I want to create like this.... How to create this...? Thanks in advance...! A: Create the artwork for the left/middle/right buttons and create three separate buttons next...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how do I give a link name to an html table row? I have a table with each row explaining something (an input command). In another place, I am saying from this state with that input command, you go that other state. What I want to do is to link the that input command to the appropriate row of the table. Imagine someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: MVC3 jQuery.validate not working when submitting form I've been working in MVC3 using the built in jquery validation. Client validation did appear to be working when tabbing through the fields except when I submitted the actual form. Below are my include scripts: <script src="@Url.Content("~/Scripts/jquery-1.6.2.min...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get a list of persistent objects stored in database I should insert a list of objects in a database using a workflow for each object, the inserting process could take several time and waiting for some external input so I have to save persistent state in db, and it works correctly. Now I need to show pending objects ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find out where a thread has been blocked In java, i have 2 threads started at the same time. However, i noticed the thread 2 is being blocked but i do not know where. Is there a way in java to find out where a thread has been blocked/waiting? thank u. A: You could use jstack to get the stack traces for all threads....
{ "language": "en", "url": "https://stackoverflow.com/questions/7530843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Aptana 3.0 JS Code Assist not working with namespace that begins with karma We are using Aptana 3.0 to develop our JS application. We are using the dojo toolkit. In the toolkit there is a utility to generate docs, called docscripts. It generates an xml file. We have been able to get Aptana to recognize the file, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing Strategy pattern with Reflection I'm trying to implement the strategy pattern using reflection, i.e. instantiate a new Concrete Strategy object using it's class name. I want to have a configurable file with the class name in it. We have a database manager that will make changes available during run-tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Application installation problem on iPhone with developer account I am installing application on iPhone using developer certificates. When i install application it do not go ahead after default page. and if i exit the application and then i open application from iPhone then it works fine but the problem is that i ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cant get jQuery ajax POST to work If I set type to 'GET' in the code below it works, but I cant get it to work with 'POST'. ajaxPostTest.html... <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $.aj...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: moving back to the position of a div is not correct jquery I have a div and then move the div by using drag function of Jquery. after dropping the item, I made it such a way that if I click on the item, it will be back to the old position. I saved the initial position of the div: offset() and then set it again. I ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7530863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }