text stringlengths 8 267k | meta dict |
|---|---|
Q: How to "include" a file? Here's the code I have in the html file to "include" the file "vmenu.php"
<div id="apDivVistaMenus">
<?php
include 'vmenu.php';
?>
<!-- Begin Vista-Buttons.com -->
<!-- End Vista-Buttons.com -->
</div>
The menus used to be between the comments below the php include request. But ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: javascript "include" strategies Duplicate of: Use javascript to inject script references as needed?
Javascript doesn't have any directive to "include" or "import" another js file.
This means that if script1.js uses functions/objects defined in script2.js, then every html page that includes script1.js must include sc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the ideal font for OCR? Does anybody have any experience with different fonts for OCR? I am generating an ID then trying to scan it with tesseract. At the moment I am just T&E'n different fonts, but this seems pretty inefficient. I've tried the OCR* family of fonts, and various others such as Arial and Georg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How to create MFC applications with VS express08? How do you create MFC applications with Visual Studio express '08?
A: Visual C++ 2008 Express Edition does not support MFC. You need at least the Standard or Professional edition of Visual Studio. Refer to this page for a comparison of the various editions.
If you w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Interesting usage of tar... but what is happening? I saw the following interesting usage of tar in a co-worker's Bash scripts:
`tar cf - * | (cd <dest> ; tar xf - )`
Apparently it works much like rsync -av does, but faster. The question arises, how?
-m
EDIT: Can anyone explain why should this solution be preferab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to create a Flash 9/ActionScript 3.0 wizard dialog I need to create a wizard for a Flash 9/ActionScript 3.0 application. The wizard would be a set of dialogs/windows for each step and the buttons "back/next/cancel" for navigation through the wizard. Within the Adobe CS3 authoring environment there does not seem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't connect to HTTPS site using cURL. Returns 0 length content instead. What can I do? I have a site that connects using cURL (latest version) to a secure gateway for payment.
The problem is cURL always returns 0 length content. I get headers only. And only when I set cURL to return headers. I have the following f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: LDAP: why would the following use of DirectoryEntry return no members for a large global security group? The following code works for 90+ % of global security groups, but for one very large global security group, it returns an enumerator, but no member objects of the group, even though the group has many thousands.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need tips on how to prioritize and schedule a bunch of work items It took me some time, but I've finally managed to write down all the tasks that need to go into Version 1.0 of the software product I'm working on.
The list is almost 1000 items long.
We are a 3-person team, and we've somehow managed to get this far ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The filestream of sql server 2008 The FILESTREAM feature of SQL Server 2008, allows storage of and efficient access to BLOB data using a combination of SQL Server 2008 and the NTFS file system.
When insert a row on a table which contains varbinary column with filestream attribute, the file (data) is stored directly ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how do you diagnose a kernel oops? Given a linux kernel oops, how do you go about diagnosing the problem? In the output I can see a stack trace which seems to give some clues. Are there any tools that would help find the problem? What basic procedures do you follow to track it down?
Unable to handle kernel pagin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What ever happened to Aspect Oriented Programming? I remember that in the late 1990s and early 2000s Aspect Oriented Programming (AOP) was supposed to be the "Next Big Thing". Nowadays I see some AOP still around, but it seems to have faded into the background.
A: That tends to happen with every "next big thing." L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Validating Date Range Produced By jQuery UI DatePicker I am using the date picker provided by jQuery UI to select a date range that ends up in a single text input with something like 11/11/2008 - 12/05/2008. What would you recommend as far a validation (jQuery/JavaScript) on the client side as well as code for vali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL Multi-Table Join I need to modify the following MySQL statement to include information from a third table... but I suck at joins.
select
ss.*,
se.name as engine,
ss.last_run_at + interval ss.refresh_frequency day as next_run_at,
se.logo_name
from
searches ss join search_engines se on s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Virtual machines of the future I'm looking for some resources regarding the virtual machines of the future (Like jvm or clr)
What are they going to look like? Will they provide a concurrent runtime, more powerful metaprogramming models?
I'm looking for articles, research projects, or pure speculation, anything that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I hide the next/today/previous navigation in jQuery DatePicker and turn off animations? How do I hide the prev/today/next navigation in jQuery DatePicker?
I'm happy with just the Month and Year drop down boxes.
Also how do I disable the animations?
@tvanfosson - I already tried hideIfNoPrevNext but that only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Handling nmake errorlevel/return codes I have an nmake-based project which in turn calls the asp compiler, which can throw an error, which nmake seems to recognize:
NMAKE : fatal error U1077: 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe' : return code '0x1'
However, when I call nmake from with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I change colors for the F# interactive shell In my current color scheme, the F# interactive shell is unreadable within Visual Studio. I've been through all the color settings, and I can't find the settings it is using.
How do you change the color settings for the F# interactive shell within Visual Studio?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How does DB2 Express compare to Sql Server Express? I have only just found out about DB2 Express. I had a quick look and was unable to find a load of information about it but would be interested in hearing how people have found it compared to SQL Server Express (particularly 2008) in terms of
*
*Ease of deploymen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I include a common file in VBScript (similar to C #include)? VBScript doesn't appear to have a way to include a common file of functions.
Is there a way to achieve this?
A: You can create a (relatively) small function in each file that you want to include other files into, as follows:
sub includeFile (fSpec)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: Session Timeout ASP.Net I'm trying to increase the timeout on all sessions. The site is hosted with Godaddy, and it is written in Flash (client side of course) and asp.net on the backend. I've added this to my web.config,
<sessionState timeout="720">
</sessionState>
Is that really all that I need to do? I'd pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Clever tricks to find specific LINQ queries in SQL Profiler Profiling LINQ queries and their execution plans is especially important due to the crazy SQL that can sometimes be created.
I often find that I need to track a specific query and have a hard time finding in query analyzer. I often do this on a database wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why does the compiler choose bool over string for implicit typecast of L""? Having recently introduced an overload of a method the application started to fail.
Finally tracking it down, the new method is being called where I did not expect it to be.
We had
setValue( const std::wstring& name, const std::wstring& valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Question How to invalidate/refresh the VS IDE designer for C#? I have CustomForm inherited from Form which implements a boolean property named Prop. The forms I'll be using will inherit from CustomForm. This property will do some painting and changes (if it's enabled) to the form. However, this is not working as it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is primitive assigned a memory address? I am trying to understand the process of declaration and assignment of a primitive type at the back stage.
*
*int i;
*i = 3;
For 1), on the memory stack, it assigns a space for storing an int type value named i
For 2), it assigns the value 3 to the space preserved above
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Which C++ Library for CGI Programming? I'm looking at doing some work (for fun) in a compiled language to run some simple tests and benchmarks against php.
Basically I'd like to see what other people use for C++ CGI programming. (Including backend database, like mysql++ or something else)
A: Another option is the C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to set an application as the default program of opening a certain type of file programmatically? There's an executable file generated from my program in MFC and I want to use it as the default program to open the .jpg files. That is to say, each time I double click a .jpg file, my program will run.
I tried to a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's the best way to expose multiple objects to a view in ASP.NET MVC? I'm kind of new to ASP.NET MVC and to the MVC pattern in general but I'm really digging the concept and the rapidity with which I can compose an app. One thing that I'm struggling with is how to expose more than one object to a view. I use a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL query in PHP: got nothing with printing the array I have a query that selects all appropriate record in a table 'hotels' and then for each hotel looks for booked room of certain type in table 'booked_rooms' and all of that for certain period.
So first I'm taking out all hotel_ids from 'hotel_table', based on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I use a database and PHP sessions to store a user's shopping cart? How can I use a database and PHP sessions to store a user's shopping cart? I am using CodeIgniter, if that helps.
Example code would also be nice.
A: I would recommend that you look at the CodeIgnitor Session Class.
Additionally, you could l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Difference between [UIImage imageNamed...] and [UIImage imageWithData...]? I want to load some images into my application from the file system. There's 2 easy ways to do this:
[UIImage imageNamed:fullFileName]
or:
NSString *fileLocation = [[NSBundle mainBundle] pathForResource:fileName ofType:extension];
NSData *im... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "65"
} |
Q: Python float to Decimal conversion Python Decimal doesn't support being constructed from float; it expects that you have to convert float to a string first.
This is very inconvenient since standard string formatters for float require that you specify number of decimal places rather than significant places. So if yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: Is the default behavior with Fluent NHibernate to lazy load HasMany collections? when I am setting up my fluent mappings, what is the default for collections? Do I need to explicitly set them as lazy-load, or is that the default?
A: Note this is changed as of current day to be inline with NHibernate standards which... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can you speed up Eclipse? How can you make the experience with Eclipse faster?
For instance: I disable all the plugins I don't need (Mylyn, Subclipse, …).
Instead of using a plugin for Mercurial, I configure TortoiseHG as an external tool.
A: Make sure that you're using the Sun JVM to run Eclipse.
On Linux, pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1298"
} |
Q: Help with writing a SQL query for Nested Sets I'm storing a tree in a DB using nested sets. The table's fields are id, lft, rgt, and name.
Given a node ID, I need to find all of its direct children(not grandchildren) that are themselves leaf nodes.
A: The article Managing Hierarchical Data in MySQL gives a great... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Timeout jQuery effects I am trying to have an element fade in, then in 5000 ms fade back out again. I know I can do something like:
setTimeout(function () { $(".notice").fadeOut(); }, 5000);
But that will only control the fade out, would I add the above on the callback?
A: Ben Alman wrote a sweet plugin for jQuery... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: Shared Purpose tables in database design ( how would *you* implement a question/answer facility ) I have long considered the design of a database that involves shared table purposes to be somewhat a trait of smelly code, and progressively increasing proliferation of smelly-code related problems.
By this I mean, peop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Core 2 x87 Floating Point Performance I'm working with some number crunching code that, by its nature, is floating-point intensive and and just plain slow. It's research code, so it can be tailored to one architecture, and is running on a Core 2 Quad box. My understanding is that, for the Pentium 4/Netburst archit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: rspec: How to stub an instance method called by constructor? class A
def initialize
@x = do_something
end
def do_something
42
end
end
How can I stub do_something in rspec, before the original implementation is called (thus assigning 42 to @x)? And without changing the implementation, of course.
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Need help joining table I have a function that exports a table to CSV and in the query I set which fields will export.
Here is the query:
SELECT lname, fname, email, address1, address2, city,
state, zip, venue_id, dtelephone, etelephone, tshirt FROM volunteers_2009
The field venue_id is the the id of the venue whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Misunderstanding of Long data type in VBA From the help for the Overflow Error in VBA, there's the following examples:
Dim x As Long
x = 2000 * 365 ' gives an error
Dim x As Long
x = CLng(2000) * 365 ' fine
I would have thought that, since the Long data type is supposed to be able to hold 32-bit numbers, that the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Determining video codec via YouTube data API? Is it possible to determine whether a particular youtube video is encoded with H.264 or FLV through the YouTube data API? If so, how?
I can start a file download and check how the video stream was encoded (programmatically, of course), but I'd like to use the YouTube da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is this a bug with PHP array accessing? I ran into this bug where an element of an array, if its index is the string "0", is inaccessible.
It's not a bug with unserialize, either, as this occurred in my code without invoking it.
$arr = unserialize('a:1:{s:1:"0";i:5;}');
var_dump($arr["0"]); //should be 5, but is NU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: "import wx" fails after installation of wxPython on Windows XP I downloaded and installed this version of wxPython for use with my Python 2.6 installation:
http://downloads.sourceforge.net/wxpython/wxPython2.8-win32-unicode-2.8.9.1-py26.exe
When I run Python and try to import wx, I get the following error:
C:\Progra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I use the change_form.html template in django? I have my models and I would like to make use of the Django change_form template to edit my data.
Currently I have created my own template that works fine but lacks some of the basic stuff that change_form template might have, like fields validation.
Please give ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can SQL Server Express be used to effectively administrate a SQL Server Standard/Enterprise installation? We have a number of MS SQL Server 2005 installations (both Standard and Enterprise editions) on our webservers. From time to time I need to administrate them from home. Right now I'm using Remote Desktop to conn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ANTLR v3 C# namespaces Hopefully this is a really quick one ;) I have written a lexer / parser specification in ANTLR3, and am targeting the CSharp2 target. The generated code works correctly, but I can't get ANTLR to put the C# output into a namespace.
The relevant section of the Grammar file is as follows:
gramm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why would one mark local variables and method parameters as "final" in Java? In Java, you can qualify local variables and method parameters with the final keyword.
public static void foo(final int x) {
final String qwerty = "bar";
}
Doing so results in not being able to reassign x and qwerty in the body of the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: MySQL code fails to display category name (WordPress database) Why does this code fail to display the category name "Apples" using the current WordPress taxonomy system? The Category names are stored in the $wpdb->terms table (wp_terms).
<?php
$ra_category_id = 3;
$ra_category = $wpdb->get_results("SELECT name FR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How is this MySQL query vulnerable to SQL injection? In a comment on a previous question, someone said that the following sql statement opens me up to sql injection:
select
ss.*,
se.name as engine,
ss.last_run_at + interval ss.refresh_frequency day as next_run_at,
se.logo_name
from
searches ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: i need a C# library about strict HTML validation and filtering i need a C# library about strict HTML validation and filtering
A: I don't think any such thing exists, but it doesn't seem like it would be that hard to do a validation API that utilizes the w3C validator behind the scenes.
What kind of filtering are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing that a website is using Kerberos authentication How do you go about checking that an IIS website is successfully using Kerberos and not falling back on NTLM?
A: One way I found to test in code that you are using Kerberos is that that the HTTP_AUTHORIZATION header for NTLM always starts with the following:
N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How safe is Greasemonkey? I've never actually used greasemonkey, but I was considering using it.
Considering that GreaseMonkey allows you to let random people on the Internet change the behavior of your favorite websites, how safe can it be?
Can they steal my passwords? Look at my private data? Do things I didn't wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What is the coolest AI project you've heard of? As I learn more about Computer Science, AI, and Neural Networks, I am continually amazed by the cool things a computer can do and learn. I've been fascinated by projects new and old, and I'm curios of the interesting projects/applications other SO users have run into.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Profiling Qt application that uses plugins I have a medium sized application written in c++ using Qt. I wanted to profile things to see where my least performant code was so I compiled everything with -pg.
However, my application makes use of a lot of plugins using the QTPlugin mechanism (boils down to a dlopen and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Zebra Striping with PHPTAL? I'm trying out PHPTAL and I want to render a table with zebra stripes. I'm looping through a simple php assoc array ($_SERVER).
Note that I don't want to use jQuery or anything like that, I'm trying to learn PHPTAL usage!
Currently I have it working like this (too verbose for my liking):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a good NumPy clone for Jython? I'm a relatively new convert to Python. I've written some code to grab/graph data from various sources to automate some weekly reports and forecasts. I've been intrigued by the Jython concept, and would like to port some Python code that I've written to Jython. In order to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Using SQL Server 2008 and SQL Server 2005 and date time I've built a entity framework model against a 2008 database. All works ok against the 2008 database. When I try to update the entity on a 2005 database I get this error.
The version of SQL Server in use does not support datatype 'datetime2
I specifically di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "118"
} |
Q: Lazy loading and eager loading behaviors in the same class I have a framework that loads a lot of child collections from a non-database source. I recently got a use case where the resource is on network drives, and it is taking forever to get the collections loaded. I still need to support the eager loading scenario... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Pros and Cons of developing .Net Solutions in Vista instead of XP i am changing my hardware which currently runs Win XP and i am wondering if i should also upgrade my OS to vista. so my question is, what are the most common issues/advantages you find while developing in VS2008 on Vista. with out taking into conside... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What tools do you use to profile (native)C++ on Windows? How do Window's programmers profile their native C++ code?
On Unix/Linux you have gprof [thanks Evan] & valgrind (I personally used this one, although it's not a real profiler), and recently I'm on Mac and Solaris, which means I moved to dTrace. Now when I've ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is Flex ready for prime time? I'm working on a project that currently has zero users but we would like to scale up to potentially hundreds. Currently we are running on a MySQL database with AMFPHP interacting with Flex. We used Flex because of its robust graphic features (important to this project) and because the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP-No out put for Large number of records I have an ASP page which will query records from a DB Table and do some processing and then Render an HTML table in the browser.My table has more than 16000 rows in it. When i am running the prigram with select top 2500 StudId,StudName from StudentsTbl, It is working fine.B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: upgrading Biztalk 2004 to Biztalk 2006 R2 I have a client running a 1/2 dozen or so orchestrations running on Biztalk 2004 (that I wrote) that they use to exchange cXML documents (mostly too send orders) with their suppliers. It has a ASP.NET 1.1 front end. It uses the SQL adapter to store the parsed cXML. I gets & ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determining database from which function in separate utility database is being called I have several databases, one of which contains utility functions called from the other databases. Is there a way in the utility functions to determine which database a function is being called from?
A: Did you try: SELECT db_nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you set a permanent size for a JPanel inside of a JFrame? My current problem is that I have a JFrame with a 2x2 GridLayout. And inside one of the squares, I have a JPanel that is to display a grid. I am having a field day with the java swing library... take a look
Image
Java is automatically expanding each JLabe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C#: How to detect arguments typed into console application? How would I go upon detecting input for a console application in C#?
Let's say for example I want the console application to start up by writing:
Welcome To Food Hut
(cursor to type stuff here after the first line)
I would want the console application to de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Problem compiling MySQLdb for Python 2.6 on Win32 I'm using Django and Python 2.6, and I want to grow my application using a MySQL backend. Problem is that there isn't a win32 package for MySQLdb on Python 2.6.
Now I'm no hacker, but I thought I might compile it myself using MSVC++9 Express. But I run into a probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Rename SQL Server Schema How can I rename a schema using SQL Server?
A: If you have a large number of objects in a schema, you can use something like this to generate all the changes automatically (it only does tables and views, so before you run it, you might need to expand it to SPs, UDFs, etc.)
USE SandBox
DEC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: How to design code for testability I have been looking at using TDD and implementing proper testing (only just started to learn how much better it makes your life) in any of my projects that I create in the future. So for the last couple of days I have been floating around on SO trying to learn about how to design ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Bit mask in C What is the best way to construct a bit mask in C with m set bits preceded by k unset bits, and followed by n unset bits:
00..0 11..1 00..0
k m n
For example, k=1, m=4, n=3 would result in the bit mask:
01111000
A: I like both solutions. Here is another way that comes to my mind (probably... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to load viewController from a nib file I have a Tab bar bases project (along with navigation control), inside a particular tab there is a tableViewLoaded , when i click on the table rows it shoud open another view , ie it pushes another controller , i have a view controller in the MainWindow.nib for this view al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Greasemonkey\JavaScript Copy to Clipboard button I am trying to write a JavaScript script to add to greasemonkey that adds a button after an element. The onClick for this button should copy the parents element text to the keyboard. I have seen plenty of examples that copy already selected text to the clipboard such ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Ghostscript PDF -> TIFF throws an untrappable exception, when consuming files with asian fonts Ghostscript curls up and dies, throwing an exception to stdout which I cannot catch and log. I am pretty sure it gets sick when I give it asian fonts. Has anybody backed into this problem and solved it?
A: It may be that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the meaning of "..::." in C#? I saw this signature on the ListView class:
public ListView..::.ListViewItemCollection Items { get; }
When I saw that, "What?!"
I searched "dot dot colon colon dot" and "..::." on Google with no result.
A: That's not C#; that's JScript. In C#, it would be:
public ListView.Lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: how can i write a sql query that finds rows where one column is a substring of another column I wish to find all rows in a table where one column is a substring of another column.
In other words, suppose I have a table (called people) with two columns: firstname and lastname, and I want to find all people like "rob ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you find a description of the DateTime class in the PHP documentation? Sounds easy, but I can't find where this built in class and others exists in the documentation. I use functions but want to know what there is on the OO side.
A: It's not a URL or anything, but you can get a fair idea using Reflection:
Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Unit Test a missing .NET ConfigurationSection If I have code like this:
public XALServiceConfiguration CreateInstance()
{
var config = ConfigurationManager.GetSection(ConfigurationSectionName) as XALServiceConfiguration;
if (config == null)
throw new Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XML Parsing in C# I want add the new node as parent node of the old nodes in XML using C#. for example node have the following XMl file:
<bookstore>
<books>
<author>
</author>
</books>
</bookstore>
like that now I want add the new like below:
<bookstore>
<newnode>
<books>
<author>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Filter TCP Packets in C# I am writing an application where all the request to the internet should go from it like in firewall. so that i can block the request for a particular website. In my case the program will be running on the same machine. I have tried the promiscous method but using that we can only capture al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: system transaction .net remove exception from session I am new to asp.net. I am working on an application that is doing system transactions. At some point in code an exception is raised and the code bombs out. It bombs out when clicking on a particular row record in a grid list. However after the user sees the ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DHCP Setting in Mac OS X Are there any command line interfaces to the DHCP settings in Mac OS X? I have found that inside System Profiler, the Network tab provides a lot of useful information, but I have not found any documentation about any command line equivalents.
A: You can also use:
ipconfig getpacket `interfa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: how to post data to a site database in an iphone application? I want to create an iphone application that is able to post the data to a website database which is using MySQL. Can anyone give some hints?
A: You'll need to use NSURLConnection and NSURLRequest to send the data to the server.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/316577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Optimizing a batch file which prints 30,000 lines of text into a file I have a batch file that does this.
ECHO A41,35,0,a,1,1,N,"Mr ZACHARY KAPLAN">> test.txt
There are about 30k similar lines. It takes the batch file about 5 hours to run.
Is there a way to speed this up?
/Jeanre
A: Try this:
Put an ECHO OFF at t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you wait for input on the same Console.WriteLine() line? I want to pose a question such as:
What is your name? Joe
How would I accomplish this using Console.WriteLine to also wait for the response on that same line instead of it being broken into:
What is your name?
Joe
A: Use Console.Write instead, so t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: subdomains w/o TLD How do i set up a subdomain w/o a TLD? i have this set under my main config
<VirtualHost *:80>
ServerName bbs.67.777.777.777 #fake bc my server can easily be hacked ATM :(
DocumentRoot /var/www/phpBB
</VirtualHost>
when i goto bbs.serveripaddress i get a Address Not Found error. if i put ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to count lines of code including sub-directories Suppose I want to count the lines of code in a project. If all of the files are in the same directory I can execute:
cat * | wc -l
However, if there are sub-directories, this doesn't work. For this to work cat would have to have a recursive mode. I suspect this m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "92"
} |
Q: How to match Tagged items based on "similarity" I have a real question.
I have a database with the schema as follows:
item
*
*id
*description
*other junk
tag
*
*id
*name
item2tag
*
*item_id
*tag_id
*count
Basically, each item is tagged as up to 10 things, with varying counts. There are 50,000 i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adjusting XML config files from a script I'm working on automating the configuration of several JBoss servers, which involves editing a substantial number of XML files.
I'd like to script all these changes as much as possible. But the "standard" tools (sed, grep et al) do not work well with XML. Without necessarily ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316600",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is the WebBeans (JSR-299) Conversation Context tied to JSF? I am reading through the Public Review Draft of the Web Beans specification (JSR-299) and I am wondering why it is so 'tightly coupled' to JSF?
Especially the Conversation Context seems only be specified for JSF.
I understand, that it is a goal of WebBe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MP3 Encoding in Java I need an OpenSource API in Java, which can encode *.wav and *.au formats to MP3 and vice-versa.
I have evaluated Java Sound API and LameOnJ, but they do not meet my requirements and are not stable, respectively. Please suggest one that is free and platform independent.
A: There may not be an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I read from a version resource in Visual C++ I have a version resource in my resources in a C++ project which contains version number, copyright and build details. Is there an easy way to access this at run-time to populate my help/about dialog as I am currently maintaining seperate const values of this info... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Is file_exist() in PHP a very expensive operation? I'm adding avatars to a forum engine I'm designing, and I'm debating whether to do something simple (forum image is named .png) and use PHP to check if the file exists before displaying it, or to do something a bit more complicated (but not much) and use a database ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Dynamically updated graphs on a web page - howto? I need to understand a good way to design a web page with dynamically updated graphs. It should be something close to what stock market graphs look like (e.g. Google Finance), although with a bit more complicated functionality, which is not the point. Naturally I am ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C#: What is the appropriate C# manner to read argument/parameters in Console applications? What is the appropriate method to read arguments from command line? I've read of using strings args[] but I can't come to grasp the concept of how to do it properly.
Example Commands:
/animal dog -c white -s medium
/car civic ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSV Parsing with double quotes I am trying to use C# to parse CSV. I used regular expressions to find "," and read string if my header counts were equal to my match count.
Now this will not work if I have a value like:
"a",""b","x","y"","c"
then my output is:
'a'
'"b'
'x'
'y"'
'c'
but what I want is:
'a'
'"b","x",... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Intellisense support for JQuery in vs 2008 isn't working I've followed every steps in here, but still, the Intellisense for JQuery simply isn't working, any ideas?
A: I got the problem solved. It turns out that I didn't reference the JQuery script file properly.
A: When I added the update for jquery intellisense ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I add a 'test service' page to a WCF Webservice in VB.Net I am building a Web service using WCF as a way to provide access to data within my VB.Net application.
When building web services hosted on IIS, there is a helpful test page as part of the service that allows the webservice to be invoked with paramete... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you sell continuous integration to clients? I know that using continuous integration improves the quality of my code base, and speeds up releases, but what is the best way to convince clients that they want it on their next project?
A: Say exactly what you've said in the question:
*
*Speeding up releases ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: apache low memory error mod_python(?) is eating a lot of ram (about 9mb per worker process). If i open several TRAC pages at once many of them will have an error due to no ram (64mb virtual limit). if i limit the worker threads to 3 i can get by alright. Problem is if no one is accessing TRAC i have A LOT of ram bei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/316666",
"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.