text stringlengths 8 267k | meta dict |
|---|---|
Q: Follow up: How do get some of the object from a list without Linq? I have a question about this question. I posted a reply there but since it's been marked as answered, I don't think I'll get a response to my post there.
I am running C# framework 2.0 and I
would like to get some of the data
from a list? The li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: "URL Rewriting"/Routing with .net 3.0 and IIS 6.0 I wonder what the best approach is for a situation where I want to have the user type in
http://myserver/something/20
and get redirected (301 or 302) to
http://someotherserver/applications/something/modules/default.aspx?id=20
For .net 3.5 and IIS 7 I found some solu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PHP5 and Microsoft Live Search 2.0 I'm trying to use Live Search 2.0 but even a simple example doesn't seem to work. Microsoft only has example code for 1.1 and they're not giving out AppIDs for that version.
Here's what I'm trying with:
<?php
$server = new SoapClient('http://soap.search.msn.com/webservices.asmx?wsd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL Server Agent: How to "sleep"? In a scripting step in a scheduled task in SQL Server Agent 2005, I need to trigger a webscript that is running on a different server. I'm doing this:
Dim ie
Set ie = CreateObject( "InternetExplorer.Application" )
ie.navigate "...to my dreamscript"
' Wait till IE is ready
Do Whil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I make arbitrary font files available to Java? I'm using a third-party library which accesses fonts through the GraphicsEnvironment: getAllFonts() call. This includes fonts in font registries belonging to both the JRE and the operating system.
But on client machines that connect to our server I will likely n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which is better: Distinct or Group By Which is more efficient?
SELECT theField
FROM theTable
GROUP BY theField
or
SELECT DISTINCT theField
FROM theTable
A: In most cases, DISTINCT and GROUP BY generate the same plans, and their performance is usually identical
A: You can check the Execution Plan to look ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Custom Timed Subscription Schedules in SSRS I see that in the SQL Server Reporting Services 2005 Report Manager there is the capability to schedule reports for specific times (i.e. every weekday at a particular time).
What I would like though is more control -- i.e. every weekday, but only between certain dates of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Will Expression Blend relieve me from having to learn xaml? I don't mind learning xaml and I'm sure I need to be familiar somewhat, but when I was first trying out Silverlight 1 with javascript it looked like a tremendous amount of overhead. I decided to wait until tools matured and asp.net was added. Well, asp.ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Find PID of a Process by Name without Using popen() or system() I've a process name and I've to send a kill() signal to that process but I need its PID to call kill(). I would only like to use:
popen("pidof process_name");
as the last thing. Is there any other way to find out the process' PID? One way I could think... | {
"language": "en",
"url": "https://stackoverflow.com/questions/374997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Error in Regex for String I have simple regex
"\".*\""
for me its says select everything between " and ", but it also catches
"text") != -1 || file.indexOf(".exe"
for me its two strings, for regex its one. how can i make regex to see that its two strings?
P.S. I'm using Java.
A: Regular expressions are "greedy". ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Utilizing the GPU with c# I am trying to get more processing power out of my grid.
I am using all cpus/cores, is it possible to utilize the GPU with C#.
Anyone know any libraries or got any sample code?
A: Could I recommend XNA Game Studio as a possible avenue for exploration? It is obviously geared up for writing ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: refactoring the OrderBy expression I would like to be able to refactor out the OrderBy clause in a linq expression.
Here is an example of a refactor of the where clause
before:
results = ctx.ActiveUsers
.Where(u => u.CompanyID != 1 &&
(u.LastName.ToLower().Contains(searchString)
|| u.Ema... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can I embed Strawberry Perl in a VC++ 6.0 compiled application or use Inline::C with the compiler mismatch? I am looking at embedding perl 5.10 in a large C++ application compiled with VC++ 6.0. This leads to two questions.
1) Is it a bad idea to simply use Strawberry Perl as a dependency rather than compile my own... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to send clip names using LiveAPI (of Ableton Live) When an audio or midi clip is played (triggered), its name needs to be sent using OSC to another application.
LiveAPI is an interface which allows one to explore and automate Ableton Live using python scripts.
The code to do this must be written in a python scri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why do I get an "unexpected regex" error with my code? The goal is to take the current working directory split it at /clients/ and see if the user is in
[something]/clients/[their username]/[something]
for example, the goal would be for input:
cwd = "/volumes/raid0/www/clients/mikey/test_folder/"
$session->username ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How would I go about backing up the Windows Application Log at a regular interval? I'm working with an application that logs to Windows Application Log regularly (viewable through the Event Viewer administrative tool), and I'm looking for a way to back it up on a daily basis. This is important because we sometimes d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you measure code block (thread) execution time with multiple concurrent threads in .NET Right now we just use something like this
stopWatch.Start();
try
{
method();
}
finally
{
stopWatch.Stop();
}
Which works fine for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: A couple of questions on the architecture of Ruby I am primarily a fluent .NET developer (as can be seen from the amount of posts and threads I make about .NET), but I thought it would be good to learn RoR.
In doing so, I have a few questions about the architecture of the language (Ruby) and the framework (RoR):
1) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Database Bejewelled Puzzle- How does this solution work? I'm interested in the programming challenge presented by the game Bejewelled. It seems like a simple game but programmatically it's more complex that it looks.
In my search for hints on how the board is evaluated, I came across this QUIZ put on by the good fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Asp.Net Horizontal Submenu How do I create an asp:Menu that has a horizontal submenu rather then a vertical one while keeping the top menu horizontal?
A: You may want to look into using the CSS Friendly Adapters. The Menu adapter will render the asp:Menu control using semantic HTML (in this case an unordered list) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you manage software serial keys, licenses, etc? My company is trying to find a tool that will track serial keys for software we have purchased (such as Office), as well as software that we write and sell.
We want software that will allows us to associate a particular computer with the software on that compute... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: RoR: has_one "or the other"? (Or, polymorphism without the inheritance.) Hey all, I have something of an interesting requirement for my project. I need a has_one relationship where it is either one class or the other, but without inheritance. I could get away with inheritance if it is the only way, but the two ass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there a way to search a SQL Query with Month Numbers, and not Month Name? I am trying to use the actual numerical value for the month on a sql query to pull results. Is there any way to do this without having a function to change the numbers to actual month names, then back to month numbers? The following code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET : Possible to create a UserControl that include inside markup content? I'm trying to achieve something google isn't able to give answer. I'm trying to create an asp.net usercontrol that when I put content into it's open close tag will include it for me to be still able to acess it's content by ID from the Pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Flex: when hiding components in flex When I set a component to visible=false the component hides, but how do I get it to take no space (get the container it belongs to to resize??)
<mx:HBox width="100%" height="100%">
...
</mx:HBox>
<mx:HBox width="100%" id="boxAddComment" visible="false" >
<mx:TextArea id="tx... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I change the State in an itemRenderer based on an action in another itemRenderer? I have a DataGridColumn with an ItemRenderer that extends the Box component. The default display is a Text component. When the user clicks on the text component, I change the State to add a PopUpMenuButton child, and make the Te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I match a quote-delimited string with a regex? If I'm trying to match a quote-delimited string with a regex, which of the following is "better" (where "better" means both more efficient and less likely to do something unexpected):
/"[^"]+"/ # match quote, then everything that's not a quote, then a quote
or
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375104",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Screen-scraping a windows application in c# I need to scrape data from a windows application to run a query in another program. Does anyone know of a good starting point for me to do this in .NET?
A: You may want to look into the WM_GETTEXT message. This can be used to read text from other windows -- it's an archai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Convert style-laden HTML tables to PDF, in .NET 1.1 I have colleagues working on a .NET 1.1 project, where they obtain XML files from an external party and programmatically instruct iTextSharp to generate PDF content based on the XML data.
The tricky part is, within this XML are segments of arbitrary HTML content. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Configure velocity to render an object with something other than toString? Is there a way to configure Velocity to use something other than toString() to convert an object to a string in a template? For example, suppose I'm using a simple date class with a format() method, and I use the same format every time. If al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multi-threaded file transfer to a FTP server I am writing a client for a backup server.
My client schedules some folders for backup. (ex: every friday at hour X).
I am using for scheduling cron4j (a port of Linux cron to java).
Everything works nice until i schedule at the same time multiple upload jobs, then due to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Strange reload effect in Firefox I have a page generated by php which includes two drop-down lists (SELECTs) which contain a lot of items (about 2,000 each). The page is fine, but when it loads in Firefox, there's a delay during the load, and then it seems to refresh the entire page. If a user tries to click on anyt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I extract part of a string in t-sql If I have the following nvarchar variable - BTA200, how can I extract just the BTA from it?
Also, if I have varying lengths such as BTA50, BTA030, how can I extract just the numeric part?
A: substring(field, 1,3) will work on your examples.
select substring(field, 1,3) fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Programmatically combining images in PHP I'm a big fan of Yahoo's recommendations for speeding up websites. One of the recommendations is to combine images where possible to cut down on size and the number of requests. However, I've noticed that while it can be easy to use CSS sprites for layouts, other image uses a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to pass method result as parameter to base class constructor in C++? I've trying to achieve something like this:
class Base
{
public:
Base(string S)
{
...
};
}
class Derived: Base
{
public:
int foo;
string bar()
{
return stringof(foo); // actually, something more complex
};
Derived(in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add new records to private Outlook distribution list I need to read records containing name and email from a file or database and add them to an existing Oulook distribution list (from the private contacts, not from the GAL).
I just saw examples of reading from OL using LINQ to DASL which I have working for mail and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the difference between these 2 function syntax types As the title says, whats the difference between
MyFunction = function() {
}
and
function MyFunction() {
}
Nothing?
Duplicate: var functionName = function() {} vs function functionName() {}
A: The first form is actually a variable with an anonymous fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get the time a file was last modified in Python? Assuming the file exists (using os.path.exists(filename) to first make sure that it does), how do I display the time a file was last modified? This is on Linux if that makes any difference.
A: os.stat()
import os
filename = "/etc/fstab"
statbuf = os.stat(fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Is there a way configure NetBeans to block indent with the Tab key? I started using NetBeans for Python development, and so far it looks pretty good. One thing that bothers me is that when I highlight a few lines of text and hit the Tab key, it doesn't do what almost every other editor does, but rather just adds fou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to load XML data in jqGrid I am using jqGrid of which I downloaded from here http://www.trirand.com/blog . I followed the tutorial word by word to test out the grid. Now the alterations I did is that the page from which the grid gets the data is in asp.net instead of php.
The problem is that the grid loads f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Animate ListBoxItem from one ListBox to another ListBox I would like to create a visual effect when an item in a listbox is double clicked. So far I have drag and drop functionality where the item is visually attached to the mouse and can be moved to a drop target. From that functionality I am able to animate the it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Maven : OSGI, bundles and multi-modules projects I'm currently developing an OSGi based application (using Equinox) by trying to mavenize a web tutorial I've found on OSGi+Equinox. In this project, there are bundles depending on other bundles (quote-service depends on quote).
The compile phase does succeed, but the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ASP.net: Cache problem when logout I can't find any post regarding the cache on logout so I'm going to ask this question. If there is a similar question. Please let me know.
I have a Logout page that basically call FormAuthentications signout method then redirect the user to the login page. It work fine but the prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to design Hbase schema? suppose that I have this RDBM table (Entity-attribute-value_model):
col1: entityID
col2: attributeName
col3: value
and I want to use HBase due to scaling issues.
I know that the only way to access Hbase table is using a primary key (cursor). you can get a cursor for a specific key, and i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Ruby classes inheritance or whatever problem my ruby (on rails) class looks like:
class Foo
def self.method1
someAction
end
def self.method2
someAction
end
def someAction
//doSmth
end
end
any ideas how to make this work or achieve the same behavior some other way?
thanks!
A: If some_action is ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: jQuery not parsing JSON properly I have a problem. I built a script to make a request to an internal link that sends back a response. This is what the script looks like:
jQuery.get(callUrl, function(data) {
console.log(typeof data);
jQuery.each(data.items, function(i, item) {
console.log(i);
});
}, 'json'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Visual Studio - Publish to multiple locations? Is there a way to automatically publish a website to multiple locations at once?
Our website is load balanced across multiple servers, so when I want to publish I have to do it to each server individually.
Thx,
Trev
A: Perhaps with some build scripts, such as MSBuild? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Do you know a managed equivalent to '@eax'? In the unmanaged development world, you could observe the DWORD return value of a method by typing '@eax' into the watch window of the debugger.
Does anyone know of an equivalent shortcut in managed code?
Related point: I have learned that VS2008 SP1 supports $exception as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to get control index in WinForms? I have a Panel with a collection of controls in it. How can I get the index of a specific control when iterating through them? I'm using foreach to iterate, but there's no Index property. Should I use for x = 0... and return x when my match is made, or what?
A: You could use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I get BerkeleyDB for ActivePerl 5.10? I'm trying to find out where a BerkeleyDB PPM is for ActivePerl 5.10. Anyone have a clue where to find this, or how to build it?
I had found a lead here. They claim BerkeleyDB 0.33 had built ok for Perl 5.10. They provide a link to the PPM, but not to the supporting zip ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I display a free floating panel for an input form using PopupControlExtender? I'm currently playing around with the PopupControlExtender in the ajaxToolkit and can't quite get the functionality I want.
I'm trying to display a free floating "help" panel for an input form.
Once the user presses the help button... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A clean way of generating QueryString parameters for web requests I came across a problem in my current application that required fiddling with the query string in a base Page class (which all my pages inherit from) to solve the problem. Since some of my pages use the query string I was wondering if there is any cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to resize a java applet when the browser is resized? I have a java applet that is embedded in html using the object-comment-embed method. I would like to resize the applet whenever the browser window is resized. I have found solutions around the internet, but they all work based on the deprecated applet tag.
Als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: RadioButton in 1st row of DataGrid causing problems - Adobe Flex I have a DataGrid with RadioButtons in one column using itemRenderer. The DataGrid resides on a TitleWindow which is created and popped-up everytime the user clicks a button. The dataProvider for the DataGrid is an ArrayCollection, and the RadioButtons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375254",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CLR stored procedure calling .NET class instance I codded a CLR stored procedure (listed below)
The line of code where the exception is thrown was added just for the
purpose of having the exception logged in EventLog
I deployed the assembly and created the stored proc in database
However when I execute the stored ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: unaligned memory accesses I'm working on an embedded device that does not support unaligned memory accesses.
For a video decoder I have to process pixels (one byte per pixel) in 8x8 pixel blocks. The device has some SIMD processing capabilities that allow me to work on 4 bytes in parallel.
The problem is, that the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL query for finding representative rows in a table Let's say I have a payments table like so:
CREATE TABLE Payments (
PaymentID INT,
CustomerID INT,
Value INT,
PaidOn DATE
);
INSERT INTO Payments
VALUES
(1, 1, 5, '2000-01-01'),
(2, 1, 10, '2000-02-01'),
(3, 2, 10, '2000-01-02'),
(4, 2, 10, '2000-01-20')... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JTable selection change event handling: find the source table dynamically I've implemented my own event handler and added it to the selection model of the table:
table.getSelectionModel().addListSelectionListener(event);
And implemented the method for "event" (mentioned above):
public void valueChanged(ListSelectio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the syntax for an Anonymous type in VB? i am trying to set the htmlAttribute property but i cant figure out the correct syntax
here is how it works in c#
<%=Html.Password("myPassword", 50,"",new { style = "width:100px" })%><br />
what would be the vb.net version of
new { style = "width:100px" }
?
A: The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Minimum CompSci Knowledge Needed for Writing Desktop Apps Having been a hobbyist programmer for 3 years (mainly Python and C) and never having written an application longer than 500 lines of code, I find myself faced with two choices :
(1) Learn the essentials of data structures and algorithm design so I can become ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Microsoft equivalent of the nm command I've long used cygwin's nm command for all my .lib symbol debugging needs, but recently I thought about referring to it in a SO answer and realized that most Windows developers don't have cygwin installed.
So what is the Microsoft equivalent to nm, i.e., what command will list ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Determine if aspx page was opened by a window.open() command Is there a way to determine in the child page's code behind that is was opened by the window.open() javascript command from the parent page?
The pop-up page contains a user control that is used by other pages that are not spawned from a window.open() comma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Silverlight Scrollviewer With Only Buttons I am using a ScrollViewer as part of my Silverlight application. It has a horizontal orientation, and I would like it to appear such that only the scroll buttons appear, but not the scroll bar itself. Something like this crude ASCII rendering:
----------------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I execute a given function on every element of a complicated data structure in Perl? I want to decode all the HTML entities in a complicated data structure. Basically I'm looking for a "super map()" function. Here's what I have so far:
sub _html_decode {
my $self = shift;
my $ref = shift;
if (re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Should I use the Model-View-ViewModel (MVVM) pattern in Silverlight projects? One challenge with Silverlight controls is that when properties are bound to code, they're no longer really editable in Blend. For example, if you've got a ListView that's populated from a data feed, there are no elements visible when you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Why can't Nginx POST to my Perl backend? EDIT: So I just found out that GET methods indeed work, but POST methods however do not work! That might be significant.
So I am on Debian Etch, running Nginx. Nginx does not normally serve cgi/pl files so I have followed a guide to get my backend working.
http://technotes.10... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: NHibernate - Composite-Id on relation - Where ID of parent is not same composite Say I have these table in an Oracle database
Person:
PersonId <- PK ID (int, from sequence)
PersonFirstNameID <-- int
PersonLastNameID <-- int
PersonSecurityID <-- int
PersonDetails
PersonFirstNameID -CompositeKey
PersonLastNameID -Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ThreadPool and GUI wait question I am new to threads and in need of help. I have a data entry app that takes an exorbitant amount of time to insert a new record(i.e 50-75 seconds). So my solution was to send an insert statement out via a ThreadPool and allow the user to begin entering the data for the record while... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XNA - Keyboard text input Okay, so basically I want to be able to retrieve keyboard text. Like entering text into a text field or something. I'm only writing my game for windows.
I've disregarded using Guide.BeginShowKeyboardInput because it breaks the feel of a self contained game, and the fact that the Guide alway... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Drop Down Box Not Fully Displayed (All Browsers)
This would be my issue I have a drop down that's not displaying fully. I'm not sure even where to start so here's the HTML surronding the drop down and I'll provide the CSS also.
HTML
<div id="add_item">
<ul class="vert">
<li>
<ul class="horz">
<li class="n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does acrobat encode annotations added as sticky notes to pdfs? We have been reading and writing Sticky Notes/Annotations/Comments to pdfs via an activex control in our application for a number of years. We have recently upgraded to Delphi2009 with Unicode Support. The following is causing problems.
When we cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: AppleScript: adding mounted folder to Finder Sidebar? I have a simple Apple Script that mounts a folder:
mount volume smb://machineip/folder
This runs on start up since Mac OS X 10.5.5 doesn't have the concept of mapped drives like Windows. The script doesn't go as far as I'd like though. I get the machine IP add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error java.lang.NoClassDefFoundError on org.springframework.webflow.util.RandomGuid I am sorry, my question is stupid, but I am not able to answer it, as a java illiterate. I run a tomcat (5) on CentOS5 (for a CAS server), and when I try to open this URL http://192.168.1.17:8080/cas-server-webapp-3.3.1/login I get t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Modifying the window opened by JavaScript's "window.open()" function Here's my scenario:
I have a page containing several links; each link is meant to open another window containing a pdf. The catch is, I can't have that window directly go to the PDF because I do not want to make it apparent to the end user the PDF... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET Viewstate validation - ASP.NET 1.1 vs. ASP.NET 3.5 we're in the process of migrating our web app from ASP.NET 1.1 to ASP.NET 3.5. Our app runs on multiple servers through DNS round robin, so every browser request may end up on a different server. We do have a in our web.config to prevent validation errors.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Forms App Collections I'm using .Net 2.0 and this is driving me crazy but there's probably some easy thing I'm not doing that I am now too confused to see.
I have an application that has a bespoke collection of objects in it, only the main form should be able to change the contents of that collection and all othe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: getting value from other column besides the valuemember column in Infragistics ultracombo I am fairly new to using infragistics controls (started yesterday). While they are (very) impressive they do add another layer of complexity, which I am muddeling through. So I am asking what I feel to be a fairly simple issue:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Most efficient way to randomly "sort" (Shuffle) a list of integers in C# I need to randomly 'sort' a list of integers (0-1999) in the most efficient way possible. Any ideas?
Currently, I am doing something like this:
bool[] bIndexSet = new bool[iItemCount];
for (int iCurIndex = 0; iCurIndex < iItemCount; iCurIndex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Ignoring superscript in title tags I work on a database driven website. Most pages' titles are the names of partners we have, and served from a database using php.
For example one page might be called "Experian". The problem is that some of the values for partner names don't work because the values are things like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: AJAX delete - using jQuery I have a simple cart page that displays items that are in someones cart, and having it display via an ASP while from my table. I have a column where a user can delete an entry. I have the ASP working properly, now I am trying to add some AJAX in to it. I have the following code:
$("img.del... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Flex: Using NumericStepper as an itemEditor in a DataGrid I am trying to make one field in a datagrid editable with a numeric stepper. My current attempts look like they are working, but the dataProvider is not actually being changed.
Based on what I have read in a billion different places, the syntax should be
< ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upload an image with wmd? Is it possible with the wmd editor to add a button to let the user upload an image to the web server and place the corresponding img markdown in the textbox? If not, will another good inplace editor do it? Context: I'm using asp.net mvc, C# and I am a true beginner with javascript.
A: A br... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Many threads or as few threads as possible? As a side project I'm currently writing a server for an age-old game I used to play. I'm trying to make the server as loosely coupled as possible, but I am wondering what would be a good design decision for multithreading. Currently I have the following sequence of actions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: SQL Server - Strange Divide By Zero I'm executing the following query:
Select guiPolygonID, dbo.fn_Yval(p1X, p1Y, p2X, p2Y, 4.003318)
From [vPolygonSegments]
Where dbo.fn_Yval(p1X, p1Y, p2X, p2Y, 4.003318) > 0
The important parts of function fn_Yval (all params are of type float):
set @m = (@p2Y - @p1Y)/(@p2X - @p1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Office documents prompt for login in anonymous SharePoint site I have a MOSS 07 site that is configured for anonymous access. There is a document library within this site that also has anonymous access enabled. When an anonymous user clicks on a PDF file in this library, he or she can read or download it with no pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Spring MVC and JSP framework What is a very good jsp framework to use with Spring MVC.
Are the only candidates SiteMesh and Tiles, and others?
A: Have you looked at Tapestry yet?
http://tapestry.apache.org/
A: Sitemesh and Wicket are other good options.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/375395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Any way to use a custom diff tool with cleartool/clearcase? I'd like to use my own diff when working in a clearcase snapshot view.
As far as I can see, there is no way to specify a diff tool when running "cleartool diff", so I was thinking I could run something like "mydiff <predecessor file> <modified file in my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Programmatically close aspx page from code behind What is the best way to close an ASPX page from the code-behind?
I have a button event handler that I want to close the page after the user has clicked an ASP.NET button on the page. I have tried to programmatically add a JavaScript method that contains a window.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: How to identify the current view which is on display If I have 3 different views which are defined in 3 corresponding functions, namely:
- (UIView *)getView1 { /*...*/ }
- (UIView *)getView2 { /*...*/ }
- (UIView *)getView3 { /*...*/ }
These are added to self.view when a particular view is required.
My question is,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java equivalent to PHP's preg_replace_callback I'm in the process of moving an application from PHP to Java and there is heavy use of regular expressions in the code. I've run across something in PHP that doesn't seem to have a java equivalent:
preg_replace_callback()
For every match in the regex, it calls a funct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: A non-blocking read on a subprocess.PIPE in Python I'm using the subprocess module to start a subprocess and connect to its output stream (standard output). I want to be able to execute non-blocking reads on its standard output. Is there a way to make .readline non-blocking or to check if there is data on the stream... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "604"
} |
Q: How to restrict client control area in a custom WinForms control I have a custom control that uses a designer I've inherited from ParentControlDesigner to allow child controls to be dropped. I'm not using any internal designers, just straightforward single-parent stuff.
This control draws a "header", so I'm trying ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java hprof question What is the difference between using -agentlib:hprof=cpu=times vs -agentlib:hprof=cpu=sample when running a java class? I know that cpu=sample causes the jvm to sample the call stack at regular intervals, but what does cpu=times do?
A: hprof=cpu=times causes the profiler to count the number of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to concatenate two strings in sql and pad one string with 0's? I have two fields in a table. One contains values such as BTA, BEA, REA. The other contains values such as 1,2,63,103.
I want to combine the 2 fields so they look like this BTA001, BTA002, BTA063, BTA103.
Notice how if the numbers are not 3 charact... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's the efficiency and quality of this shuffling algorithm? This recent question about sorting randomly using C# got me thinking about the way I've sometimes shuffled my arrays in Perl.
@shuffled = sort { rand() <=> rand() } @array;
The proposed solution in the mentioned question is Fisher-Yates shuffle, which w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What are all these Visual Studio 2005 files for? I just (re-)joined a company to work on some C++ projects. I'm looking at the files and I'm trying to figure out what all the Visual Studio related files are. Many I suspect are orphans from previous versions of the IDE.
I've listed all the file extensions below and a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: SQL bitwise operations I'm hooked on bitwise for a new security paradigm I'm creating called VMAC. Variable Matrix Access Control. I want to do logical implication on to bit strings. Just trying to avoid echoeureka (reinventing the wheel).
*
*Before I reinvent the wheel, is there an established shortcut to em... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can't instantiate a COM object written in C# from VBA (VB6 ok) Using VS 2008, here is my COM object
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace TestCom
{
[Guid("9E5E5FB2-219D-4ee7-AB27-E4DBED8E123E")]
[Cla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: PL-SQL: getting column data types out of query results Trying to make a generic PL/SQL procedure to export data in specific XML format, e.g. Excel XML. Let's say the procedure accepts a string with the SELECT query to EXECUTE IMMEDIATE.
This requires access to data types of each column of the resulting rowset, whic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I form polygons from lines I have a bunch of 2-dimensional lines, whose start and end points are known. The lines might occasionally cross each other, or one line might end in the middle of another line. I need to form polygons from this mesh of lines. If necessary, I can ensure that the left side of all lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/375471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.