text
stringlengths
8
267k
meta
dict
Q: time_t conversion format question I am trying to make an easily accessible TimeDate variable, but am having problems with conversion. In time.h, how would I convert time_t (seconds since 1/1/1970), into the current local timezone (compensating for daylight savings time if applicable), so that: time_t Seconds; Becom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using hyphen or underscore as word separator for files under Linux I get always confused when I have to give a new name for a new data or executable file under linux, to use underscore or the dash to separate words in the name. My question: Are there any standard or guide to follow to know when to use this or that? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to convert String to double in JSP I'm extracting some results in the table in JPS like this : <tr> <td>${item[0]}</td> <td>${item[5]}</td> <td>${item[1]}</td> <td>${item[2]}</td> <td>${item[5]}</td> <td>${item[6]}</td> </tr> Now I'd like to ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Returning a Json file with Nancy for use in Jquery I have a file that contains some JSON with an extension of .json. I am using Nancy to serve the file as follows: Get["/schema/{file}"] = parameters => { return Response.AsFile(Directory.GetCurrentDirectory() + @"\sitefiles\schema\" + parameters.file as String); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prevent Jenkins from Installing Artifact to Local Maven Repository Jenkins is installing the most-recently built artifact to the local Maven repository, even when the job is executed with a goal of only clean package. This caused an issue when someone accidentally committed an updated version of a shared library wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android Preferences: Incorrect default values DESPITE "setDefaultValues" I have a similar problem like this, so I proceeded according to the proposed solution and added this line of code to onCreate: PreferenceManager.setDefaultValues(this, R.xml.settings, false); Unfortunately the problem still occurs, if the user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Creating pdf report from a excel document using iTextSharp I need to create a PDF Report using iTextSharp. I have an excel sample,which i need to create an exact replica of it in PDF format and use it in that report.The page layout shouldn't be altered. How am i going to achieve it using c#??? Thanks in advance... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apply TreeView bindings to non-expanded notes I want to use a hierarchical TreeView which I will populate programmatically. My XAML file is as follows: <Window.Resources> <HierarchicalDataTemplate DataType="{x:Type local:MyTreeViewItem}" ItemsSource="{Binding Path=Children}"> <TextBlock...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Determine the shape of multiple selected cells within a data grid I'm using the Infragistics UltraWinGrid to present some data. I need some Excel copy/paste functionality. That's the easy bit. * *What I want to do is determine the shape of the selection, and ensure it's a rectangle of adjacent cells. If it's not,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can text be resizable using jquery-ui? Can html text in p tag is resizable using jquery-ui or without p tag in a div tag is resizable? I have done resizing the image using jquery ui from following example but text is not getting resized http://jqueryui.com/demos/resizable/. A: You may use resize event handler. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Nested Set Model: Query node childs only 1 level below AND all parents above I am using Nested Set Model with MySQL to create hierarchical tree model. I have successfully managed to get Node and all its Childs 1 level below (I need to get only 1 sub-level) However, I would like to have not only all Childs 1 level be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MongoDB C# map an Item i´m using map/reduce to find the max Revision of an Document. var map = "function() {emit(this.DocName, this.Revision);}"; var reduce = "function (key,values) {return Math.max.apply(Math, values);}"; QueryDocument Query = new QueryDocument("DocName", stFName); var mr = docs.MapReduce(Query...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ANTLR for Writing JAPE Grammar I am using GATE to process texts written in natural language. I have to extract height, weight, bp etc from the text and store it in structured form. Now, these things(i.e height, weight etc) can be written in many forms which is unknown to me. Writing JAPE grammar for all the differen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jsoncpp stop making it write based on elements alphabetical order I am using Jsoncpp to write a Json::value to a string using the Json::FastWriter. string s; s.append("me?json="); val["firstname"] = firstname; val["lastname"] = lastname; val["x"] = me->myPos.X; val["y"] = me->myPos.Y; val["z"] = me->myPos.Z; val["lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Virtual Memory size on Linux I'm trying to understand in depth the virtual memory management on OS Linux. I don't really understand how the OS determine the size of the VM for a process. I know that an 32-bits x86 OS can give up to 3 GB of vm adress space... Is it always true ? In my case, i have about 110 MB physic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: String is not empty but not appearing when using var_dump Currently I am trying to return a publicly available XML resource, though when I use var_dump($resource) it returns string(4390) " ". I am using CURL to retrieve the resource, and it successfully returns other resources. There's clearly something there (as yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the best way to code this correlated query? (Select Prices that may contain NULL following a Priority) Lets imagine you have a portfolio to value containing 4 assets that needs to be priced. The SourceID dictates the priority that the PriceSource should be given and the lowest SourceID should be retrieved. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HTML form, character sets, and the accept-charset attribute Is there a default character set used by HTML forms? Or is there a default accept-charset attribute that is used? We're experiencing some problems with characters and character sets in our online forms. The HTML pages are set to use the character set ISO-88...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: asking about android:installLocation on manifest so i learned the syntax for the installLocation for the android manifest, in the i typed the android:installLocation as an attribute and it has an error, but when i remove the android: part and just leave the installLocation everything works out, my minsdk is 7 targ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Very strange PDO->bindparam behaviour php The query below is running well and runs quite fast for what it does. However it is displaying some very strange behaviour as outlined below. However in PHP it seems to decide by itself which ids it will work for. I am certain that the code is correct. I am using PDO in PHP ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LinQ Query Where Condition I am trying to import data into a new database, but some of the columns in the old database are null. In one of my methods, I am using the query below to get the records, like I said already there is a column in the rows which has a null value for some records. Guid nameGuid= new guid('CCE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: DHCP server for Windows with NTP option Does anybody know about a DHCP server app for Windows 7 Professional 32-bit, with the posibility to configure the NTP server address? I found these apps: http://tftpd32.jounin.net/tftpd32.html http://www.dhcpserver.de/dhcpsrv.htm Great apps but I can't find any option to add t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery Post does not work in asp.net mvc 3? I just copied some code from an asp.net mvc 2 app which works. Now i am trying it in asp.net mvc 3 and it does not call the save method on the controller? controller: [HttpPost] public JsonResult save(string inputdata) { return Json(new { Result = string.F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCF custom binding I am using custom binding in the sevrice side in C#. I want binary Encoding in HTTP. <bindings> <customBinding> <binding name="myOwnBinding"> <binaryMessageEncoding></binaryMessageEncoding> <httpTransport/> </binding> </customBinding> </bindin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I identify the edited row in GridView? My client wanted the GridView to display fields inside TextBoxes, and DropDownListBoxes only. He wanted the flexibility to update the Record just by clicking on the Update button after altering the values in the cell. He wanted the current editing GridViewRow in some di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Replication with SQL Server 2008 Web edition I need to use replication between my databases. But me hosting provides only Web Edition of SQL Server. In web edition replication is not supported. May be anyone have some suggestions? Thanks A: If you are savvy with programming then you can accomplish a very slim form...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to create a 4x4 flexbox grid? I'm attempting to create a 4x4 flexbox grid. Each of the four boxes should have the same vertical height, but stack two per row from left to right. Is this possible? (Resize your browser between 960 and 640 to see my attempt: http://www.joshuasortino.com/index-new or view...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Jenkins: settings for Gerrit Trigger problems I've installed the plugin Gerrit Trigger on Jenkins cos I need to start automatically the building when a developer in the team pushes something on the repository (relative to a specific project). I followed the settings here: https://wiki.jenkins-ci.org/display/JENKINS/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Python: get datetime of last hour I want to get the date time object for last hour. Lets say the sys time is "2011-9-28 06:11:30" I want to get the output as "2011-9-28 05" #{06 - 1 hour} I used: lastHourDateTime = date.today() - timedelta(hours = 1) print lastHourDateTime.strftime('%Y-%m-%d %H:%M:%S') Howe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: How to disable back button of windows phone after one click I have a problem in my app is that when the user hit back button multiple times the app become crashed.Is there any way to handle this problem ?Is any way to disable back button after the first click from a page.so further click can be avoided.The exception...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Force youtube embed to start in 720p There are a few methods suggested for doing this online, but none of them seem to work. For example: http://blog.makezine.com/archive/2008/11/youtube-in-720p-hd-viewin.html That article is about making it start in 720p, but it doesn't even work on their own video. Does anyone her...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Rails 3.1, memory leak for missing local partial variables (Ruby 1.9.2-p290) If I render a partial like so: = render :partial => "event_news_item", :object => event, :variable => true And then reference variable in the partial a memory leak is triggered. It seems rails goes into a recursion. I have to then quickly ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: reorder cells dynamically through code(without dragging cell) with the animation I have sorted data coming from server and I am displaying it on tableview, however, there is a another functionality on cell, that If I do that functionality, cells should be rearranged accordingly. I want to have animation like reorder...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get a JPA-persisted String[] column by ResultSet#getString() in JDBC? I want to store multiple checkbox values in a single DB column. I don't want to store in a seperate table with @OneToMany. This is the JPA entity: @Entity @Table(name="COOK") ... @Column(name="ARRAY_FOOD" ) private String[] arrayFood; ...ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Default Value at Method - compile error : compile-time constant private static Vector2 DefaultMulFactors = new Vector2(0.5f, 0.5f); private static Point DefaultShifts = new Point(0,0); public static Vector2 Function(Vector2? mulFactors = MyClass.DefaultMulFactors , Point? shifts = MyClass.DefaultShifts ) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Edit profile" form is not populated using FOSUserBundle I have User entity with properties like name, address, and I want these fields to be editable on "edit profile" page. Sounds easy, but I couldn't make it work following official documentation. My form is not populated with the User data, though I have configur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create and validate check box programmatically using Java in Android I need to create a number of check boxes programmatically using Java, check if one of them is checked and when I click Next Button the control will move to next page. If none of them is checked a toast message has to be displayed. Please suggest as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Encrypting video sent from Android device to server We have developed an Android application that streams H264 & MJPEG video from the android device to a server through internet connection, using HTTP protocol both for authentication and video. Right now, the authentication part is encrypted using RSA. Now we are lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASPX post back problems with combobox I've created a simple ASPX page that lists records in a GridView. The records are a list of incidents and one of the columns is the ID of the person who reported the incident. The initial page shows all records but I would like to provide a filter for the ReportedBy column. I've...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Disabled cell's button click event fire I have a table in which there is a button in one cell. Now when I am disabling that cell, the cell gets disabled but on clicking upon that cell, button click event is happening. So instead of disabling the cell, I disabled the button. Now everything working fine, but I wanted ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to set the default HTML5-Video volume? HTML5 videos always start at 100% volume. How can I make them start at 50% volume? A: Assuming you're good with mixing JS into your HTML, you can leverage one of the events, such as loadstart: <video onloadstart="this.volume=0.5" ...> A: You can affect the vo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Highlighting entire table row if validation fails I am working on JSF2.0 and Richfaces. I am having an requirement where I need to change the style of the form field(entire row) if the validation fails. I am using the following code to display field label and text box. <h:panelGrid columns="2"> <h:outp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582386", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Looking for OCaml IDE I like F# but sometimes I need something light and cross-platform and without .NET for sure. I tried to use OCamL many times but seems like I just can't start it. * *Installed IDEA, added OCamL plugin -> Doesn't work *Installed eclipse ODT plugin -> Can't launch even config OCamL compiler -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Help with creating a Parcelable class I am trying to create a Parcelable class. The class extends TableRow: import android.content.Context; import android.os.Parcel; import android.os.Parcelable; import android.widget.TableRow; public class AcmTableRow extends TableRow implements Parcelable{ private int index; pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: strdup or _strdup? When I use strdup in Microsoft Visual C++, it warns me: warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details. Thus it seems _strdup is correct. But when I use _strdup in GCC (Fedora Linux OS), the comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Can I use Mercurial to allow different users access to different parts of a project? We're using SVN, but it seems to be getting a little out of date and heavy for our liking. We have a big project that we need different team members to get access to different parts of. Can we set up Mercurial is a way that certain ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rotate a vector about another vector I am writing a 3d vector class for OpenGL. How do I rotate a vector v1 about another vector v2 by an angle A? A: You may find quaternions to be a more elegant and efficient solution. After seeing this answer bumped recently, I though I'd provide a more robust answer. One that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: CSS @font-face not working in IE8 I have tried reading multiple articles on how to deal with custom fonts in IE, but they never seemed to work for me. I tried converting the fonts to EOT, but that didn't seem to work either. I am not sure what I am doing wrong, so I will post my code @font-face { font-family: "Kla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Conflict between Mootools and a pure JS script I am stuck with a pure JS script that should be included in Joomla (1.7, Mootools 1.3.2) and raises a conflict with this library while working perfectly outside it. Examples : * *no Mootools http://jsfiddle.net/2W87v/ *with Mootools http://jsfiddle.net/2W87v/1/ Fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: replace text with image, Data from .net web service android Possible Duplicate: replace images in data from webservice android can any one tell me how to display a image instead of a text. Text coming from web service. Eg: I send "hi android". I need to replace text "android" with "icon.png" image. How can i ach...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: StatLight hangs when run from TeamCity as single command I'm running TeamCity 6.5 on a Windows Server, with a couple of build agents on the same server (all running as the system user as services). I had been building SilverLight projects and running the StatLight (v 1.4.4147) tests previously under Jenkins with no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using ViewModel as WPF DataContext Disposing problems Just starting out using WPF / MVVM and have a question regarding using a viewmodel as the datacontext for a wpf window. I'm using a view first approach and my view looks like this; <Window x:Class="TestContext.TestForm" xmlns="http://schemas.microsoft.com/win...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to recognize objects or patterns in one image? suppose I have two images one contains circle and other contains square,I just want to give input as this images. program should recognize which one is circle and which one is square. how i can implement this using c# language? A: There are a few image recognition ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Upgrading Plone 4017 to 4018 I really need some help with Plone. I am experiencing some issue upgrading from 4017 to 4018. All the Plone websites say "The site configuration is outdated and needs to be upgraded." When I press Upgrade I get the following error: "Starting the migration from version: 4017 End of upgrad...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get physical path corresponding to a network share on local computer I want to be able to get the physical path (C:\somepath...) corresponding to an UNC path to a network share on the local computer (\\mycomputer\somepath...). I've tried doing this using ManagementObjectSearcher as described here. This works fine w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP Count function with Associative Array Could someone please explain to me how the count function works with arrays like the one below? My thought would be the following code to output 4, cause there are 4 elements there: $a = array ( "1" => "A", 1=> "B", "C", 2 =>"D" ); echo count($a); A: You can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Calling property changed on a bound element My view model implements INotifyPropertyChanged for properties that it makes available to my view. It makes available a collection of objects that do not implement INotifyPropertyChanged. My collection is bound to an ItemControl in my view, with an ItemTemplate used to di...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i increment a global variable while reading my specific tag using xslt2.0? This is my xml Document. <w:document xmlns:w="w"> <w:body> <w:p> <w:r> <w:t> Para1 </w:t> </w:r> </w:p> <w:p> <w:r> <w:t> Para2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Weird JSpinner behaviour I encountered the weirdest behaviour of swings JSpinner. The spinner looks like this (the component in the middle is the spinner): As you notice, it has no text and no buttons and it behaves like a disabled JTextField. I tried setEnable(true), but nothing happend. The JSpinner is on a tran...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery Autocomplete plugin working with older versions of the browsers but not new ones? i am using jquery Autocomplete plugin it is working fine in older versions of the browsers but in new version of the browsers it is not showing all the suggestions. i am using JSON to parse the data.is there any compatibility pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multi-column Select box Im looking for a multi-column select box that is searchable. I have found Flexbox (http://www.fairwaytech.com/flexbox) which does almost everything I need except it limits searching only to the {name} column. I'm needing something that will search over all columns shown. Im looking for somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Strange hibernate error in weblogic(10.3.4) console I have followgin configuration files, and I got following exception while getting Hibernate session. Is there a problem or missing property in hibernate.cfg.xml? persistence.xml <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is there a good open source project to learn generics and to avoid dataset? in my company we are using datasets continuously for data related operations but i want to learn how can we use the generics in c sharp so i want to know is there any open source project which have used generics beautifully and customizab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Backbone Sync with a mashup of models in Rails I have a rails controller which sends a mash-up of models as a global json object. Something like this { dogs : { species: {}, ...}, cats : { food: {}, ...}, foxes : { }, ..., ... } On my client side, I have all these entities neatly segregated out into diffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: trinidad 2 and myfaces 2.13 I have started a brand new web application, using myfaces 2.1.3, tomahawk 20-1.1.11 and trinidad 2.0.0. I followed the developers guide and got facelets, jsf and the tomahawk stuff to work. But the trinidad tags keep throwing this: java.lang.ClassNotFoundException:org.apache.myfaces.trini...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: why is my element not targeted when reload through AJAX I'm using object literals on my project. I'm targeting selecting with jquery. It works fine the first time but when the part I'm targeting is reloaded with AJAX I can't target those element anymore. But I look into firebug they're there... I'm even doing consol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any feedback or advice on multiplayer platform for Android games? I'd like to add multiplayer mode for an Android game (a turn by turn game). So I'm looking for a multiplayer platform. The most important feature I'm waiting for such a platform is to let users do some matches against random users on the Internet. Cas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Detect Location using Bluetooth Accesspoints I would like to detect location of bluetooth enabled devices automatically using bluetooth accesspoints. Is it possible? If so, how can I do it? A: Bluetooth devices have unique MAC addresses so I think this would be possible but has a number of constraints: * *You w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom HTML attributes and jQuery I am often needing to store little pieces of reference in a page element, most of the time a <div>. I couldn't find too much documentation on how valid it would be to create my own attributes. What do you suggest is the most valid way of doing this or can I even do this? If so, can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: jQuery Mobile - IE casching problem Im using jQuery mobile to make a small project. You can say its a signup system for a weekly event, and then the event is reset each week (through some scripts running on a server). I have had problems with IE before, since it has the most wack cashing properties ever, and therefo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Kill MySQL query on user abort When running a long query from PHP, [how] can I kill the query if the user presses stop in their browser? Take into consideration that I cannot call any other PHP functions because PHP is blocked while waiting for MySQL. Also I cannot make any more requests to the server (via Ajax) bec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Conceptual question related to Model–view–controller on iOS The question deals with an application which uses many views in a UINavigation controller Style. In the background there is a process which load and cache data, the process is rather extensive, which can take quite some time, that said it is designed to run...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Concatenate strings using preprocessor in C How to concatenate two strings (one of them is stored in a variable) in C using preprocessors? For example how to do this? #define CONCAT(x,y) x y //ecmd->argv[0] is equal to "sometext" myfunc(CONCAT("/", ecmd->argv[0]), ecmd->argv[0]); //error: expected ')' before 'ecmd'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: some problems with IntegerType in cassandra Why I am getting such symbols "N���" from the column with IntegerType? in cassandra-cli.bat it is showing normally, as integer. I'm using phpcassa...maybe I need to convert this value, like I'm doing with UUID UUID::import($uuid)->string but with other certain function? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Removing duplicate rows from a table id lat long speed date address 1 22.92138131 72.44103313 3.96 km/h 2011-09-26 National, Gujarat, India 2 22.92138145 72.44103413 13.96 km/h 2011-09-26 National, Gujarat, India 3 22.92138134 72.44103423 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Using autotools to generate application specific *.conf files I'm new to using autotools so forgive me if this sounds a little bit basic but googling didn't show up much. How would I go about generating a custom conf file with autotools. Seeing as configure based on m4 contains the necessary macros and generates the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How could I run this python script on my webserver? TorBulkExitList.py I have a web server that can run python scripts, but I have no experience at all with python. I uploaded the file (TorBulkExitList.py) to my server inside the cgi-bin folder and I tried calling it in the browser but it's giving me a 500 Internal ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python UDP server on ubuntu not working I am trying to run this script on a ubuntu 11.04 box: http://taoofmac.com/space/projects/ReGrowl Its a small script bound to UDP port 9887 designed to relay Growl packets. I can send the script Growl packets from the local machine and it works exactly as expected. However, whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does gdb temporarily give pages write permission? I was debugging a seg fault in a Linux app that was caused by a program trying to change a static constant array structure (so the data was in the read-only section of the ELF and subsequently loaded in a page that was then given read-only permission). While in GDB ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: getting value from JSON in iPhone through JAVASCRIPT I am building an application to find the route between two places.Also, i have to give the details of checkpoint between the route.In this case, I'm struggling. Through JSON i got the different checkpoint like this "<b>NH 75</b>\U3092\U9032\U3080<div class=\"g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Table's td with specified height doesn't work the same way on different browsers I have a table and I need that every cell have the same fixed height and width. So I have: th, td { min-width: 110px; width: 110px; max-width: 110px; min-height: 60px; height: 60px; max-height: 60px; } a td is j...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java and Type Safety The MDN JavaScript guide states the following when doing a comparison between Java and JavaScript: Type safety means, for instance, that you can't cast a Java integer into an object reference or access private memory by corrupting Java bytecodes. Sure, regarding the first part of the above sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Set the size of a UIViewControllers view How does one set the size of a UIViewController view so that the view behind it is visible? Or will setting a UIViewControllers view to clear, allow for the view below it in the display stack to be visible? A: * *Size of view is set using its frame property. *You can play ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Submitting a form results in 404; when this is refreshed, original form redisplays Sorry for a vague title but it's hard to be more specific. Platform used: Eclipse Helios, Tomcat 6, Maven 2.2.1 Background/ Problem: I am doing a pilot for a conversion from JSF 1.2 to JSF2. The server starts fine and loads the conver...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using generic std::function objects with member functions in one class For one class I want to store some function pointers to member functions of the same class in one map storing std::function objects. But I fail right at the beginning with this code: #include <functional> class Foo { public: void doS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "238" }
Q: Understanding C++ member function template specialization I have the following class: #pragma once #include <string> #include <iostream> class testclass { public: template <class T> T item(const std::string& key) { std::cout << "non-specialized\n"; return T(); } }; For the item method I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Dynamic ContextMenu In CodeBehind I just want to add ContextMenu for several objects that I create dynamically, but The only way I found is to create ContextMenu in runtime like this: ContextMenu pMenu = new ContextMenu(); MenuItem item1 = new MenuItem(); MenuItem item2 = new MenuItem(); //I have about 10 items ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Java EE WebApplication on Tomcat6 Crashes I have a web application (J2EE+Tomcat6+MySQL+Struts2+Hibernate) running on a Linux Cent-OS. Sometimes(usually After about 3-4 days) it becomes inaccessible and I see a blank white page! Both "/etc/init.d/httpd status" AND "/etc/init.d/tomcat status" say they are running fine...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XSL tansform result of DOMXpath->evaluate in php I have: $XML = new DOMDocument(); $XML->load('demo.xml'); $xpath = new DOMXpath($XML); $elements = $xpath->evaluate($_GET["xpath"]); $XSL = new DOMDocument(); $XSL->load('xml2json.xsl', LIBXML_NOCDATA); $xslt = new XSLTProcessor(); $xslt->importStylesheet($XSL); e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I route a request to a specific action in a specific controller in MVC2? In my MVC2 application I have an AccountController class inherited from Controller. I want to achieve the following: when a user tries to open Account/Payments/NewPayment AccountController.ExecuteNewPayment() method should be invoked. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: lock free containers and visibility I've seen some lock free implementations of stack... My question is regarding the visibility, not atomicity. For example do elements(not pointers) of lock free stack must be at most 64bit? I think so, because you cant guarante visibility. Real example: can this struct be safely in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Build executable jar from multiple maven modules I have problem with building the single executable jar from multiple maven modules. So here is the situation: I have three maven modules: app -> persistence -> domain. I have parent pom.xml too. I added to this parent pom maven assembly plugin: <plugin> <groupId>o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS + Opacity change on Hover + Flickering I am trying to achieve a very simple thing: change opacity of a table row on hover. Unfortunately, it doesn't work very good, because if I hover in and out very fast, sometimes the opacity change is too slow and it seems like the colors are flickering. This flickering doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to protect directories I have uploaded different Microsoft Word documents to the directory http://www.mywebsite.com/documents/ Now the problem is that when I browse to this url you can see all my documents in a list but they need to be hidden and only aproachable by a given link (for example http://www.mywebsite...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Php $_POST method to get textarea value I am using php to get textarea value using post method but getting a weird result with that let me show you my code <form method="post" action="index.php"> <textarea id="contact_list" name="contact_list"></textarea> <input type="submit" name="submit" value="Send" id="s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How can we Create a lightbox gallery with sql images I am using asp.net 4.0 and all my images are stored in database using admin CMT. I want to create a image gallery to display all thumbnail images in a list and lightbox effect for big images. lightbox works fine if we have a physical location of the image, but in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JPA2 and hibernate - why does merge store child entities whilst persist does not? I have the usual parent - child OneToMany relationship: @OneToMany(mappedBy = "mapType", cascade = CascadeType.ALL, orphanRemoval = true) public List<Child> getChildren() { return children; } I have fairly standard use cases: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to PLINQ an existing LINQ query with Joins? I'm using LINQ to compare two DataSets with each other to create new rows and update existing. I've noticed that the complete comparison lasts ~1,5 hours and only one of the two cores is busy(Task-Manager is 50-52% CPU Usage). I must admit that I'm completely new to pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How does this forces singleton? In some code, I saw singleton template template<typename T> class Singleton { public: Singleton(T& instance) { assert(!sfpInstance || (sfpInstance==&instance)); sfpInstance = &instance; } static T& getInstance() { assert(sfpInstance); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MySQL using stored procedures Someone told me using stored procedures could be bad for database performance, that is better to have the query inside the code and call database. For me is better to have a stored procedure since if I have to make a change in the database I don't have to recompile the whole web...
{ "language": "en", "url": "https://stackoverflow.com/questions/7582600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }