text stringlengths 8 267k | meta dict |
|---|---|
Q: Best solution to protect PHP code without encryption First of all, I'm not looking for miracle... I know how PHP works and that there's not really way to hide my code from the clients without using encryption. But that comes with the cost of an extension to be installed on the running server.
I'm looking for somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: Detecting if two images are visually identical Sometimes two image files may be different on a file level, but a human would consider them perceptively identical. Given that, now suppose you have a huge database of images, and you wish to know if a human would think some image X is present in the database or not. If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: CSS: Basic layout question - keeping nested elements inside each other I keep finding that if I have nested divs inside each other, and one of the inner ones is floated, the outer one won't expand around it.
Example:
<div style='background-color:red; '>
asdfasdf
<div style='float:left; background-color:blue;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PHP mySQL - When is the best time to disconnect from the database? I use lazy connection to connect to my DB within my DB object. This basically means that it doesn't call mysql_connect() until the first query is handed to it, and it subsequently skips reconnecting from then on after.
Now I have a method in my DB cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Why does calling this function change my array? Perl seems to be killing my array whenever I read a file:
my @files = ("foo", "bar", "baz");
print "Files: " . join(" ", @files) . "\n";
foreach(@files) {
print "The file is $_\n";
func();
}
sub func {
open(READ, "< test.txt");
while(<READ>) {
}
clo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Calculate business days I need a method for adding "business days" in PHP. For example, Friday 12/5 + 3 business days = Wednesday 12/10.
At a minimum I need the code to understand weekends, but ideally it should account for US federal holidays as well. I'm sure I could come up with a solution by brute force if neces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "112"
} |
Q: C# 4 and CLR Compatibility Are all the additions to C# for version 4 (dynamic, code contracts etc) expected to run on the current .NET CLR, or is there a planned .NET upgrade as well?
A: C# 4 will require the .NET 4.0 CLR.
A: Well, .NET 4.0 will require CLR 4.0; however, it is a little harder to answer what parts... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Building a scala app with maven (that has java source mixed in) I have an application where I would like to have mixed Java and Scala source (actually its migrating a java app to scala - but a bit at a time).
I can make this work in IDEs just fine, very nice. But I am not sure how to do this with maven - scalac can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "63"
} |
Q: Java TreeMap sorting options? I've been told that the java class TreeMap uses an implementation of a RB tree. If this is the case, how does one do an inorder, preorder and postorder tree-walk on a TreeMap?
Or is this not possible?
A: You wouldn't be able to do this with the TreeMap implemented in the Collections li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I move a site from one url to another? I have an ASP.NET web application hosted on DiscountASP.NET with its domain name registered on GoDaddy. This site is working perfectly and runs great, but I hate the domain name.
So now, I decide to purchase a domain name I like better. How do I set it up so that this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python: Invalid Token Some of you may recognize this as Project Euler's problem number 11. The one with the grid.
I'm trying to replicate the grid in a large multidimensional array, But it's giving me a syntax error and i'm not sure why
grid = [
[ 08, 02, 22, 97, 38, 15, 00, 40, 00, 75, 04, 05, 07, 78, 52, 12, 50, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Can I precompile my ASP.NET MVC application? I tried to precompile my ASP.NET MVC application and deploy it to an IIS6 box (with wildcard mapping), however I am getting an error with rendering partial views (user controls). Its working fine on my dev machine before precompiling.
The error is:
Server Error in '/' A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Regular expression for alphanumeric and underscores Is there a regular expression which checks if a string contains only upper and lowercase letters, numbers, and underscores?
A: The following regex matches alphanumeric characters and underscore:
^[a-zA-Z0-9_]+$
For example, in Perl:
#!/usr/bin/perl -w
my $arg1 =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "780"
} |
Q: How can I create an array of a particular object? Well I'm new to OOP in PHP and am trying to write a site with it. The site is a basic flash games site and has categories to track the games. My first step was to create a basic MVC setup and list all the categories. The problem is I don't know how to create an ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: string to DateTime conversion in C# Stupid questions but cant get my head around it...
I have a string in this format 20081119
And I have a C# method that converts the string to a DateTime to be entered into a SQL Server DB
public static DateTime MyDateConversion(string dateAsString)
{
return System.Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: "the project type is not supported by this installation" error I have installed VS 2008 SP1 on W2k3 OS. After I installed ASP.NET MVC beta and tried creating ASP.NET MVC type project I get the following error.
"the project type is not supported by this installation"
Let me know if you have fixed this issue.
A: I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: How to redirect to (or enforce) SSL connection? I am using Zend Framework(MVC part of it), and need to either redirect user to SSL enabled page or to force SSL from controller somehow and don't quite see how to do that? Maybe someone can share the knowledge?
Thanks!
A: It's easy to do at the web server level.
In A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I enforce a maximum amount of forked children? EDIT: I've tagged this C in a hope to get more response. It's more the theory I'm interested in than a specific language implementation. So if you're a C coder please treat the following PHP as pseudo-code and feel free to respond with an answer written in C.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: php script for member approval by administrator i created a register page n login page 4 members in php n mysql.and also i created a admin account and now i want to do something like if the member register he will be added only when the administrator approves it.please help
A: The knee jerk reaction is to add a boo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Difference between Select Unique and Select Distinct I thought these were synonomous, but I wrote the following in Microsoft SQL:
Select Unique col from
(select col from table1 union select col from table2) alias
And it failed. Changing it to
Select Distinct col from
(select col from table1 union sele... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "155"
} |
Q: MySQL versus SQL Server Express Did the recent purchase of MySQL by Sun and the subsequent buggy releases kill the MySQL brand?
I whole heartedly embraced MySQL when it first came out as I used to be a poor developer and all the RDBMs were too expensive. I have fond feelings for MySQL and their being able to compet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Ruby object printing format Consider the following:
irb(main):001:0> class A
irb(main):002:1> def initialize
irb(main):003:2> @string = "my string"
irb(main):004:2> end
irb(main):005:1> def to_s
irb(main):006:2> puts @string
irb(main):007:2> end
irb(main):008:1> end
=> nil
irb(main):009:0> a = A.new
=> #<A:0x2ea606c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use Mock Objects in my unit tests and still use Code Coverage? Presently I'm starting to introduce the concept of Mock objects into my Unit Tests. In particular I'm using the Moq framework. However, one of the things I've noticed is that suddenly the classes I'm testing using this framework are showing cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: vc++ 6.0 serial communicaton In vc++ i am using MScomm for serial communication,
i received data in this format 02120812550006050.0,
i am not gettng how to read this ,in which format it is,
begning starting frame and at the end ending file, remaing i dont know.
EDIT 1:
it contains date time and data how i can seper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to disable a VoiceXML grammar? I'm writing a VoiceXML application where we have a speech grammar and a DTMF grammar. If the caller is calling from a particularly noisy environment, we need to disable the speech grammar. Is there a way to do this which doesn't involve copying the entire form into another form ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I archive a MySQL databases? I have a MySQL database that I want to archive. What is the best way to do this?
Note: I don't want to just do a backup. I want to do a one time export of the data for long term storage in a way that I can get at on a later date. Particularly, I want to not be tied to MySQL, a dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best practice to maintain site class(es) I am building a web application which uses an externally built class to handle much of the work and rules for the site. Most pages will require access to this class to get the information it needs to display. In the past I would put such a class in a session variable, so it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can Google's AJAX API feeds be custom animated? Has anyone had any luck customizing the feed animation? Ideally I would like a left-right marquee animation.
Any thoughts would be appreciated.
A: Sure. Just use scriptaculous or similar to animate the div where you feeds will be displayed. Also check the examples on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trimming DateTime format to Just Date format in CAML Query I am trying to build a CAML query for SharePoint 2007 environment, to get items from a calendar list. Want to query items with a given 'From date' and 'To date', the calendar list contains 'EventDate' and 'EndDate' in Datetime format. I am only interested in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Moving towards Ruby on Rails from ASP.NET I am ASP.NET developer from last 5 years and still loving it. There are lots of good voices in air about Ruby on Rails. I want to ask to community, Is there any worth trying to learn Ruby On Rails as a ASP.NET web developer on following point of view.
*
*Scalability
*Doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Drag and drop .cs files not using "Add As Link" in Visual Studio Is there a way to use add-as-link when dragging and dropping source files or entire source trees into a C# project?
Currently, dragging a tree of source files onto a C# project will cause Visual Studio to copy all files to mirror tree below my solution... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C# ASP.NET 3.5 content-disposition file download problems I have a sql database that stores some documents.
A user can sign into the application, and view a list of their documents.
When clicking a linkbutton download in a gridview of their docs, I get the file from the database, write it to the file system, and the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Javascript + IMG tags = memory leak. Is there a better way to do this? I've got a web page that's using jquery to receive some product information as people are looking at things and then displays the last product images that were seen. This is in a jquery AJAX callback that looks pretty much like this:
if(number_o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: I need help...........sample project Can anybody give me one sample Asp.Net Project where all the Object oriented concept like class, abstraction, polymorphism, Inheritance and array list has been used for my practice purpose.
I am new to this platform i know all the above mentioned concept but i don't know where an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Encoding C Structs I have a struct defined like follows as part of an object. I'm trying to encode this for use with NSCoder with the aim of saving as well as Undo/Redo functionality.
struct myCol {
float rd;
float grn;
float blu;
float alp;
} toolColor;
So, there are methods to encode e.g. -encodeB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Image.Save(..) throws a GDI+ exception because the memory stream is closed i've got some binary data which i want to save as an image. When i try to save the image, it throws an exception if the memory stream used to create the image, was closed before the save. The reason i do this is because i'm dynamically creati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "121"
} |
Q: I am passsing an xhtml tag ID in onPageLoad('TableID') function Javascripts are in script.js file which I have called in the xhtml file.
But it is throwing error at line where I have calling onpageload function saying " object expected.
However, if I have the scripts on same XHTML file, it is working fine.
A: As sp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Disable drag&drop in solution explorer Is there a way to disable the drag&drop functionality for Solution Explorer?
Why would you ask? I'm using an wacom pen tablet for quite some years and I love
it. But when you use it in solution explorer in combination with a source control
like TFS or AnkhSvn it's a disaster w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Java Database Poller? Are there any JAVA API's for polling a database.
Should be able to
a) Be able to get all the data from a table to start with.
b) Poll it every configurable minutes.
A: In principle JDBC combined with the Timer class should be enough to handle the requirement that you have set forth.
The Timer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Closing StreamReader after ReadToEnd Is it possible somehow to close StreamReader after calling ReadToEnd method in construction like this:
string s = new StreamReader("filename", Encoding.UTF8).ReadToEnd();
Any alternative elegant construction with the same semantics will be also accepted.
A: You could use a usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ASP.NET MVC changed a lot after ScottGu's blogging? I'm reading ScottGu's blog about ASP.NET MVC, and found a lot of code cannot compile or doesn't work as expected.
http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx
http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-fram... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: preg_replace is replacing $ signs I have the following piece of code which replaces "template markers" such as %POST_TITLE% with the contents of a variable called $post_title.
function replaceTags( $template, $newtext ) {
$template = preg_replace( '/%MYTAG%/', $newtext, $template );
return $template;
}
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to change programmatically DataSet SqlCommand CommandText I have a generated DataSet with bunch of tables. In one table I have a custom query that I use to select people that are older than 15 years. I would like to change this query during working program, so that the query will look like 'select * from people ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Client Server Program behind router I am trying to run client server UDP program .
My both machines are in different networks. I have set up port forwarding in my router.
My server has two IP Address :
1) External 200.?.?.?
2) Internal 192.168.0.100
While creating UDP server I need to create a socket which is binded... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Prerequisites Needed to Read Books on Neural Networks (and understand them) I've been trying to learn about Neural Networks for a while now, and I can understand some basic tutorials online, and I've been able to get through portions of Neural Computing - An Introduction but even there, I'm glazing over a lot of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: FileUpload Using Ajax In ASP.NET With C# I need to upload images using FileUpload without postback(using Ajax).I tried many examples.But in all postback is coming or they are using PHP.Can anyone help me to do single file upload or multi file upload using ajax in ASP.Net with C#.
A: SWFUpload
http://demo.swfupload.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is mergeing of these (long) mysql queries possible? Okay, my dilemma is this. I have an admin page that I use to get a summary of the day's submissions to one of my sites. This sumamry page pulls data from several tables, some of which store the actual media data, others store the website urls, ids and owners, and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336451",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Functional testing of a RESTful POST in Ruby on Rails I'd like to write a functional test of a RESTful web service I'm working on in a Ruby on Rails app.
The test is of a POST request where the body of the request is a plain XML doc and not a form. Any pointers on how to do this? The problem I'm encountering is how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can I pass a data string to a programmatically loaded custom user control in C# I've written a Custom User Control which returns some user specific data.
To load the Custom User Control I use the following line of code:
UserControl myUC = (UserControl).Load("~/customUserControl.ascx");
But how can I access str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In a class with two timers, do they execute in two separate threads? In a java class I have two timers
TimerTask t1 = new TimerTask() {.. }
TimerTask t2 = new TimerTask() { ...}
Do t1 and t2 execute as two separate threads? How do you verify it?
A: You need to put each TimeTask in a Timer, which will spawn off the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET equivalent of modern Java web architecture Almost every new Java-web-project is using a modern MVC-framework such as Struts or Spring MVC for the web tier, Spring for the "Service"/business-logic-layer and an ORM mapper such as Hibernate for persistence. What is the equivalent in .NET?
I guess ASP.NET is used ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Free tool or library to convert Tiff files to pdf in .Net Does any one know of a free tool or library to convert multi page tiffs to pdf in Asp.Net 1.1?
A: how about PDFSharp, or iTextSharp? I usually search sf.net first when looking for a free library.
A: LibTiff.Net library and tiff2pdf utility (comes in sourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Rolling my own exceptions I am writing some new code that will throw a custom exception - I want to include an error string and a status code. Which class should be exception derive from? std::exception? std::runtime_error? Any other 'gotchas' to worry about? I'm thinking of something like the following:
class M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Use Apache behind Proxy I want to run an Apache on my local machine since I can only ssh into my server thru ajaxterm (webbased ssh client) which is a pain in the neck. Now my problem is, that I am running this server and have to send the traffic thru the companies proxy which also has user authentication with passw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL SQL query profiling and query cost tools and techniques Working with Microsoft SQL Server I found extremely useful SQL Server Profiler and Estimated Execution Plan (available in Management Studio) to optimize queries during development and production system monitoring.
Are there similar tools (open source or c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What tag libraries you know for Java EE JSP, something like displaytag? What tag libraries you know for Java EE - JSP, something like displaytag ?
A: Looking for an alternative to displaytag I came across jmesa. Haven't tried it yet, tough.
A: JMesa is the successor of eXtremeTable.
A: another alternative is valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best method of tracking users for unique visitor reporting using .NET? I would normally use Google analytics because it is free and simple to implement but on this occasion we need an internally built reporting system. This system needs to be in .NET only because JavaScript is not an option.
My question is how do yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336505",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Identify Bluetooth NetworkInterface from Java? I need to access the bluetooth network interface from Java. All local network interfaces can be reached via:
Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces();
This enumeration will contain ethernet cards, usb networking devices etc and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I handle Microsoft outlook winmail.dat? Any other surprises? Ive decided that I really dont like microsoft and their ways. Please could you give me directions on how to handle winmail.dat in emails, is there a jython library or a java library that will allow me to handle this.
Ive just completed a email proce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a library for notification/alert in .NET? I need to design a notifications framework written solely in .Net. I was wondering is there were some libraries already available to ease in creating rules for the notifications.
PS: Anything other than SQL Server Notifications please.
Note: Notifications as in Em... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Project Euler problem 214- totients, does it make sense? I have been trying to tackle this problem, but I am having difficulty understanding it:
Let φ be Euler's totient function, i.e. for a natural number n, φ(n) is the number of k, 1 <= k <= n, for which gcd(k,n) = 1.
By iterating φ, each positive integer generat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Tiny Fonts on Web Sites My main browsers (FF and Chrome) are both configured for a 12 pixel font. In both browsers the font picker shows a font preview, and in both they are the same size and a comfortable size for reading web sites. My IE doesn't allow me to set font size, but seems to default to something a litt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to display progressbar if waithandle is used Somewhere in the code, a waitHandle is used to perfom some actions. However the thing with waithandle is that the form freezes while waiting for some action to complete. So the following code would not work:
frmProgressBar.show();
int successOrFail = PerformSynchronou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What does this Java error message entail? And how can i fix it? I get this message when trying to communicate with software that communicates with SOAP?
*
*Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
I am using a third par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Filter XML based on another xml using XSLT 1 How do we filter an xml document based on another xml document. I have to remove all the elements which are not there in the lookup xml. Both the input xml and lookup xml has the same root elements, we are using XSLT 1.0.
Ex Input
<Root>
<E1 a="1">V1</E1>
<E2>V2</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I force LWP::UserAgent to accept an expired SSL certificate? I would like to know whether it is possible to force LWP::UserAgent to accept an expired SSL certificate for a single, well-known server. The issue is slightly complicated by the Squid proxy in between.
I went as far as to set up a debugging environmen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Hibernate and Spring transactions - using private constructors/static factory methods We have a Hibernate/Spring application that have the following Spring beans:
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager" />
<bean id="sessionFactory" class="org.springframewo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What does a const pointer-to-pointer mean in C and in C++? I know the rule-of-thumb to read declarations right-to-left and I was fairly sure I knew what was going on until a colleague told me that:
const MyStructure** ppMyStruct;
means "ppMyStruct is a pointer to a const pointer to a (mutable) MyStructure" (in C++)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: How can I use GNU gettext with VB6? I've been using gettext in several private projects and now I want to use gettext to translate strings of a Visual Basic 6 application.
I've checked the GNU gettext packages and it seems that I have to write quite some boilerplate code to get it working with VB6 and I fear that m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why doesn't setting the selectedValue in the Selectlist make that value highlighted in the browser? When I do this:
new SelectList(items, dataValueField, dataTextField, items.First());
I get a SelectList with that item selected (it is inserted as SelectedValue), but not highlighted.
What should I do to get a dropdo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336588",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tool for comparing web.config files Is there a good tool to compare specifically web.config files to find specifically which settings are different values and which file has settings that don't appear in both.
XML comparison should do the trick, or an XSLT might work. There must be a tool for web.config settings out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How can I find the Largest Common Substring between two strings in PHP? Is there a fast algorithm for finding the Largest Common Substring in two strings or is it an NPComplete problem?
In PHP I can find a needle in a haystack:
<?php
if (strstr("there is a needle in a haystack", "needle")) {
echo "found<br>\n";... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: "Step over" when debugging multithreaded programs in Visual Studio One thing that annoys me when debugging programs in Visual Studio (2005 in my case) is that when I use "step over" (by pressing F10) to execute to the next line of code, I often end up reaching that particular line of code in a totally different thre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How to detect Windows 64-bit platform with .NET? In a .NET 2.0 C# application I use the following code to detect the operating system platform:
string os_platform = System.Environment.OSVersion.Platform.ToString();
This returns "Win32NT". The problem is that it returns "Win32NT" even when running on Windows Vista 6... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "292"
} |
Q: Somebody explain me Html.DropDown and it's dearest friend SelectList If you check my earlier questions you may have noticed I just don't get the SelectList and Html.DropDown(). I find it intrigueing that I seem to be the only one in this. So maybe I should try to change my mindset or maybe there are things I don't k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using Linq with stored procedures I want to plan a data access layer and I thought to use Linq.
I read that linq has its problems with performance and that you could use stored procedures with linq.
Should I use stored procedures with linq when planning my data access layer? Is it crucial for the performance? When ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to detect CPU speed on Windows 64bit? I've found the following code from here "http://www.boyet.com/Articles/CodeFromInternet.html".
It returns the speed of the CPU in GHz but works only on 32bit Windows.
using System;
using System.Management;
namespace CpuSpeed
{
class Program
{
static double?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best Nunit test runner out there? Having recently gotten into test driven development I am using the Nunit test runner shipped as part of resharper. It has some downsides in terms of there is no shortcut to run tests and I have to go looking for the Nunit test runner to invoke it using the mouse. It has ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Query on a record set Will a query like this on a recordset work
rs.open "select * from table where vd=1; update table set vd1 = 1 where vd=2 or vd=3;"
or is there anything wrong
thanks
A: It won't work - you'll have to execute them as separate commands
Presumably you've declared rs as a recordset, so you can use t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: caching a tar inside jvm for faster file I/O? I'm working on a java web application that uses thousands of small files to build artifacts in response to requests. I think our system could see performance improvements if we could map these files into memory rather than run all over the disk to find them all the time.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why are errors in classes only trapped at runtime? I have a VB6 class with a method which raises an error:
Public Sub DoSomething
...
err.Raise 12345, description:="Error message"
...
End Sub
This method is called from a form:
Public Sub ErrTest()
On Error Goto err1
obj.DoSomething
Exit Sub
err1:
MsgB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Explicit script end tag always converted to self-closing I'm using xslt to transform xml to an aspx file. In the xslt, I have a script tag to include a jquery.js file. To get it to work with IE, the script tag must have an explicit closing tag. For some reason, this doesn't work with xslt below.
<?xml version="1.0" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Are there any pre-built Javascripts for checking keyboard/mouse activity? I need a Javascript which monitors keyboard and mouse events to track how much time a user spends on the page. Specifically, actively using the page by typing, or moving/clicking with the mouse.
Thought I'd ask if anybody knows of something th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: to use a library dll with LoadLibrary() method on C++ Can I use LoadLibrary method for to import a data of type struct??
excuse me for my English.
thanks.
A: Let me assume some things that are left out in the question:
*
*You have a dynamic library called flubber.dll
*The library exports the function bool GetF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WrapPanel and first line I have items wrapped in wrap panel.
I want to move first line of items down by some offset.
Is it possible?
Thanks
A: Try setting the Margin property of your WrapPanel...
Margin="0, 5, 0 ,0" (Left, Top, Right, Bottom)
HTH
| {
"language": "en",
"url": "https://stackoverflow.com/questions/336686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Free controls for showing OLAP cubes is there a free set of controls to be used for representing the OLAP cubes in aspx pages? something like the ones from Dundas, but free and (if possible) cross-browser.
Thanks,
Lucian
A: We coded a web OLAP viewer in-house (ASP/HTML/JavaScript) and it was incredibly complex, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Highly unusual situation - Thread blocked on a lock which it is holding? This java program I am working on seems to hang on startup, so I tried using jconsole to debug the problem.
As it turns out it is waiting on a call to a method which is declared as -
synchronized void stopQuery()
But here is the crazy part, th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Ogre3d Local reference string popping out of nowhere I'm building an ogre3d tutorial based on this setup
http://www.ogre3d.org/wiki/index.php/SettingUpAnApplication#XCode
I've followed all steps as it says. It compiled perfectly.
But on run this happened:
*-*-* OGRE Initialising
*-*-* Version 1.6.0 (Shoggoth)
Creati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which version is my MySQL Server? What's the query syntax to determine the exact version number of the MySQL server software?
A: select version();
A: Command line:
mysql --version
A: You can use SHOW VARIABLES:
SHOW VARIABLES WHERE Variable_name = 'version';
A: Besides the already mentioned solutions you can s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Reading serial port in Java I'm beginner in Java. I'm reading data from device through serial port. I'm getting data for every one minute, but first reading is coming half, after that data is coming correctly.
Output I'm getting is:
6050.003120815340006050.003120815350006050.0
Correct output should be like this: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How to test JSON result from Ruby on Rails functional tests? How can I assert my Ajax request and test the JSON output from Ruby on Rails functional tests?
A: In Rails >= 5
Use ActionDispatch::TestResponse#parsed_body.
Example:
user = @response.parsed_body
assert_equal "Mike", user['name']
In Rails up to 4.x
Use J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: Debugging a User Control from ASP.NET I have an ASP.NET (2.0) site. I am on my dev box using V Studio 2008 and IIS. I have a separate User Control project that gets called from a javascript function in the default.aspx page. The User Control project is in another solution.
The application is running as expected. The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Runinng SQL script from JUnit In the setup method to a JUnit test case I'm working on I need it to run a sql script on my database before each test case, and then a rollback afterwards.
I have tried using a tokenizer, which added each SQL command to a batch and then executing them. But I can't get working.
So my que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I create a view in a SQL Server database with C#? How do I create a view dynamically in SQL Server using C#?
A: Something like this, obviously your connection code will be different (better):
SqlConnection conn = null;
conn = new SqlConnection("yourConnectionString");
conn.Open();
string strSQLCommand = "CR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Django FormWizard and Admin application I have a series of forms that I need a user to complete in sequence, which is perfect for the formwizard app. However, I've some need of the admin application also and would like to set the whole thing up to trigger several forms within the admin app.
Is it possible/easy to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Left to right expression evaluation In C# is it guaranteed that expressions are evaluated left to right?
For example:
myClass = GetClass();
if (myClass == null || myClass.Property > 0)
continue;
Are there any languages that do not comply?
A: Short-circuiting is described in section 7.11 of the C# 3.0 spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: jquery .html does not work with script This code is not working on IE8 at all. FF3 is executing but the page is blank and seems loading not ending.
My code is:
$("#leaderBoard").html("<script2 language=\"javascript2\"> document.write('<scr'+'ipt language=\"javascript21.1\">alert(1)</scri'+'pt>'); </script2>".replace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336756",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How loader Maps DLL in to Process Address Space I am curious to know How the Loader Maps DLL in to Process Address Space. How loader does that magic. Example is highly appreciated.
Thanks in advance.
A: Okay, I'm assuming the Windows side of things here. What happens when you load a PE file is that the loader (cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Enable ListView multiselect by dragging How do I enable multi-select in a WPF ListView by dragging?
Setting the SelectionMode property to Extended does allow multi-select using Shift and Ctrl, but not by clicking and dragging. Setting the SelectionMode property to Multiple gives a sticky selection which isn't what ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336760",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Request.Write - execute in Head tag. [Action - Templates] I use BaseUserControl, where I have a method
private string typeName
{
get { return GetType().FullName; }
}
private object headOne
{
get { return Context.Items[typeName + "_Head"]; }
set { Context.Items[typeName + "_Head"] = value; }
}
public vo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/336768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.