text stringlengths 8 267k | meta dict |
|---|---|
Q: Advantages of PHP CLI? What are the benefits of PHP's CLI over other scripting languages/environments such as VBScript or even windows scripting?
A: One use would be as a scheduled maintenance task that is related to a web application. You will be able to use the libraries and functionality from the web app.
I gue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376638",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: powershell command to restore remote database Does anyone know the powershell commands to restore a remote database from a local file?
A: Based on your comment, there are no PowerShell-specific commands. You'll need to use New-PSDrive to map a drive to the server, use Copy-Item to copy the database over to the serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Inheritance design using Interface + abstract class. Good practice? I'm not really sure how to title this question but basically I have an interface like this:
public interface IFoo
{
string ToCMD();
}
a couple of absract classes which implement IFoo like:
public abstract class Foo : IFoo
{
public abstract s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376642",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Setting ajax url for jQuery in JS file using ASP.NET MVC When doing a Ajax call to an MVC action currently I have my javascript inside the View, not inside its own JS file.
It is then very easy to do this:
var xhr = $.ajax({
url: '<%= Url.Action("DisplayItem","Home") %>/' + el1.siblings("input:hidden").val(),
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Question about concurrently handling write and readonly access to file In a web application, is there a widely accepted way for handling locked files?
For example, a user has write access to a file so what would be the best way to let all other users access the file but with read only rights only.
Furthermore, if th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET MVC: Problem setting the Authorize attribute Role from a variable, requires const I am having a problem setting the Authorize attribute Role value from a variable. The error message says it requires a const variable. When I create a const type variable it works fine but I am trying to load the value from th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Find the Minimum Positive Value What's the best algorithm to find the smallest non zero positive value from a fixed number (in this case 3) of values or return 0 if there are no positive questions?
My naive approach is below (in Delphi, but feel free to use whatever you like), but I think there's a more elegant way.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Connecting to the Internet in a Mac Application The last GUI programming I have done was with Visual Basic, which included objects like Winsock and Inet to easily connect to the internet and retrieve the source from webpages.
I just got started into XCode, and was wondering if there is a similar component. I see tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: To "look-up table" or not? I'm currently designing a database for a project. Now I'm debating with myself whether I have to create a look-up table for example 'civil status' data which can only contain fixed values like Single, Married, Separated, Widow/Widower. I'm pretty sure that no other values will be added in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: automated testing with Watir (or WatiN or similar): Disambiguating Select Elements Problem: I am looking for a way to run a test that is able to disambiguate between select controls that have the same value in more than one place.
Example:
I am trying to choose the third "monday" from a select control
ie.select_lis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to load default settings with KConfig on kdelib? I've a question about KConfig usage. I'm able to write and read settings in my .kde4/share/config/_appname_rc configuration file like that
KConfig basicconf;
KConfigGroup conf = KConfigGroup(basicconf.group("Settings"));
conf.writeEntry("filepath",QString("/pat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IList vs IEnumerable for Collections on Entities When I have entities in my domain with lists of things, should they be exposed as ILists or IEnumerables? E.g. Order has a bunch of OrderLines.
A: Most of the time I end up going with IList over IEnumerable because IEnumerable doesn't have the Count method and you c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "150"
} |
Q: Question about integrating java and flex I have a flex web app and want to integrate it with Java.
The app will have a very small database (2-3 tables), and some routine logic like sending mail.
According to this link (http://learn.adobe.com/wiki/display/Flex/2b.+Code+Files), I would need to also have a .jsp file. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why shouldn't I run my non-web server software on port 80? Considering there are so many draconian firewalls in the world, is there any reason I shouldn't run server software on port 80 to guarantee greatest possible accessibility? It seems that the most common firewall exception is to allow outbound connections on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Getting innertext of HTML tags using Regular Expressions I'm having trouble capturing this data:
<tr>
<td><span class="bodytext"><b>Contact:</b><b></b></span><span style='font-size:10.0pt;font-family:Verdana;
mso-bidi-font-family:Arial'><b> </b>
<span class="bod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem summing a total in XSLT Template I am having a problem trying to simply sum some values using XSLT. I a template online and have modified it for my needs. (link text)
No matter how I try, I cannot get the template to sum the numbers. I either end up with a total of "0" or a concatenation of the numbers I wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Firefox does not render stylesheet immediately? I'm not sure if this a settings problem or an HTML problem, but on a page layout I'm working on, Firefox does not render the stylesheet immediately. Meaning for maybe half a second I can see the unstyled page, then the stylesheet kicks in and it renders as I expect.
Al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Zend Framework on nginx The Zend Framework based site I have been working on is now being migrated to its production server. This server turns out to be nginx (surprise!). Naturally the site does not work correctly as it was developed on Apache and relies on an htaccess file.
My question is... anyone have any exper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Migrate Software Deployed on Linux VM? I've got some software I created deployed on a Linux VM. I'd like to deploy a second copy of the software on a second virtual machine. Ideally, I'd like to just clone the VM volume, fire up a second copy, change the IP address, and that's that. It there anything else to it, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What are the best practices to use to pass a web application from development staging to production? Our Development environment has many layers and is complicated to replicate or even backup effectively. Basically the File system (ie. /usr/appdir/webapp...) has other applications serving our web application, those... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Giving PHP object-type arguments a default value I'm writing a PHP application with testability in mind, so my classes always ask in their constructors for the "collaborator objects" they depend on, in respect to the Dependency Injection pattern.
That way, I'm able to pass in mocks or test implementations in my unit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Small tools/scripts that help you so much? On top of my head, especially for C/Linux developer:
*
*ack
*git-bz
*colorgcc
*colordiff
*moap and prepare-ChangeLog
Is there some tool/script you couldn't work without, but that you feel others don't know so much?
For instance, I just found:
*
*cppcheck
A: On Wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: CSS hierarchy classes and IDs I am building a menu using XHTML,CSS, and jQuery and I ran into a problem with my CSS.
Here is my test page, and here is my css.
What I am having problems with is that my .subMenu class is inheriting the properties of my #menu, the background colors and sizes are the same. I am looki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java NullPointerException when traversing a non-null recordset I am running a query on Sybase ASE that produces a ResultSet that I then traverse and write the contents out to a file. Sometimes, this will throw a NullPointerException, stating that the ResultSet is null. However, it will do this after printing out one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a "share this" for Facebook which isn't a pop-up? I want to add "share this on Facebook" to a page. I've got this working just fine using this URL format:
http://www.facebook.com/sharer.php?u=my.url.here
but the problem is, that's designed specifically to be a popup window, so
*
*the page looks weird at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IntelliJ Python plug-in I've been using IntelliJ IDEA at the day job for Java development for a few weeks now. I'm really impressed with it and I'm looking to extend it for other programming languages that I tinker with, starting with Python. I found this plug-in, pythonid. I figured I would look for some input on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: in sqlite3, can a select succeed within a transaction of insert? I begin a transaction, which is to insert several records into a table. Can I select the latest inserted record out of the database before the transaction commit?
A: Yes, during or after the transaction you can use the last_insert_rowid() function.
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: ASP.NET - Ajax requests with jQuery I've got this textBox which triggers off an ajax request using jQuery:
<asp:TextBox ID="postcodeTextBox" runat="server" Text='<%# Bind("POSTAL_ZIP_CODE") %>'>
$(document).ready(PageLoad);
function PageLoad() {
$(container + 'parentProjectTextBox').change(GetProjectName);
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Identifiers for Delphi's $WARN compiler directive Delphi has a $WARN compiler directive that allows one to selectively enable or disable specific warnings. The Delphi 2009 help file describes the syntax:
{$WARN identifier ON|OFF}
But it only lists the identifiers for 6 warnings.
I'd like to have a complete list of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: What is VHTML? How it works? Where can I find information about it? The code below continues many lines until it ends with a expected /veotherwise /vechoose. I started working on a development firm a little ago where they use this html version called vhtml. I have search the web but it brings different definitions... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Newlines escaped unexpectedly in C#/ASP.NET 1.1 code Can someone explain to me why my code:
string messageBody = "abc\n" + stringFromDatabaseProcedure;
where valueFromDatabaseProcedure is not a value from the SQL database entered as
'line1\nline2'
results in the string:
"abc\nline1\\nline2"
This has resulted in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where to initialize a java Properties object? I inherited an application which uses a java properties file to define configuration parameters such as database name.
There is a class called MyAppProps that looks like this:
public class MyAppProps {
protected static final String PROP_FILENAME = "myapp.properties... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376798",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ORMs that generate database structures from classes I have looked at NHibernate and EntitySpaces and they both seem to work differently.
In EntitySpaces, you define the database tables and table relationships and the classes are generated for you.
In NHibernate, you define the classes and the table relationships are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to Turn this recursive haskell function into a map call? This is my code:
type HoraAtendimento = (String, Int, Int)
htmlHAtendimento :: [HoraAtendimento] -> Html
htmlHAtendimento [] = toHtml ""
htmlHAtendimento ((da,hia,hfa):[]) = toHtml da +++ "feira "
+++
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Trailing/leading zero count for a byte I'm using Java and I'm coding a chess engine.
I'm trying to find the index of the first 1 bit and the index of the last 1 bit in a byte.
I'm currently using Long.numberOfTrailingZeros() (or something like that) in Java, and would like to emulate that functionality, except with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Delphi issue with sharing Image Lists across forms I've been sharing image lists across multiple forms in Delphi for years now. I have a TImageList on the main form of my app and then I have other forms that have components where I set the Images property to the image list from the main form (e.g. MyMainForm.MyImage... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Expire Output Cache ASP.Net MVC I am using the standard outputcache tag in my MVC app which works great but I need to force it to be dumped at certain times. How do I achieve this? The page that gets cached is built from a very simple route {Controller}/{PageName} - so most pages are something like this: /Pages/Ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: MYSQL installation with a .NET winforms app I have a C# application that's utilizes MYSQL. I'm at a beta release point and need an installation package that includes my application, along with MYSQL. So basically, I need to install MYSQL and perform a restore from within my .NET install package.
Any help would be gr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Collapsed selection in Opera I am not able to get the selection object's start and end offsets in Opera (v9.50) when the selection is collapsed (i.e. just point and click instead of highlighting text). This is my simple test code, which works in FF and Safari but does not work in Opera.
<html>
<head>
<script type=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Stacks in ImageMagick to Selectively Blur Part of the Image I'm trying to annotate some text onto a base image with a dropshadow. I don't like the results I get from using the -shadow option, so I'm putting down the text, blurring it, then putting down the text again in white, a few pixels offset from the shad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Accessing same ehcache from 2 different war files I have 2 different webapps (package into different war files) which needs to share some data via a cache (ehcache). I want to test out this idea with you to see if it works.
My idea is to create a service that bootstraps/accesses the ehcache and package that inside a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I add a context menu to a ListBoxItem? I have a ListBox and I want to add a context menu to each item in the list. I've seen the "solution" to have the right click select an item and suppress the context menu if on white space, but this solution feels dirty.
Does anyone know a better way?
A: This way the m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Trouble with jQuery selector using ASP.NET MVC I'm new to both ASP.Net MVC and jQuery and what I'm trying to do is make a form that either adds a new RockBand or updates an existing RockBand based on if the rockbandid is an empty guid or not. I figured now is a good time to get rolling with jQuery. So the first st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP - Where is the best place to initiate a database class? I recently took my Db initiating code out of the __construct of my Page class and placed it just after I initiate the Page class. I removed it from within the Page class because I want to be able to access it from anywhere (other classes for example). It al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the difference between the scalar and list contexts in Perl? What is the difference between the scalar and list contexts in Perl and does this have any parallel in other languages such as Java or Javascript?
A: Scalar context is what you get when you're looking for a single value. List context is what you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's the easiest way to detect compilation failures, missing packages, etc in a Perl application? I have a Perl application someone else wrote and I'm trying to make it run on my local machine. But I keep getting an error in one of the modules, which appears to be based on a missing module somewhere. What are some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Determine Free Disk Space Allowed By Sandbox On iPhone I am looking for a way to determine how much free disk space there is available to my application.
I have tried using NSFileManager's fileSystemAttributesAtPath with NSFileSystemFreeSize, but this is giving me the total free space on the iPhone and not what is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C#, sp_executesql and Incorrect Syntax I'm calling the code below.
On the line (IDataReader dr = cmd.ExecuteReader()) sql barfs with an Incorrect syntax near 'CompanyUpdate'.
using (SqlCommand cmd = new SqlCommand("CompanyUpdate"))
{
cmd.Parameters.Add("@CompanyID",SqlDbType.Int);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: CStringList in MFC I was coding with 2 CStringList objects. Each has its own data, for eg one has name and other the phoneno, and both are in sync, i.e, if there is a phoneno there is a name and viceversa.
Now, i have 2 combobox in which i show the names and the respective phonenos. The name combobox is sorted, hen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: updating column based off of parent information I am a beginner at SQL Server and I have a question about how best to do this.
I have a table that looks like this:
ID Parent Level
1 NULL 0
2 1 1
3 1 1
4 2 2
5 2 2
6 3 2
7 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are there any decent Perl plugins for Eclipse? I'm using EPIC, but it seems to have some drawbacks. Are there any other Perl plugins for Eclipse?
A: There does not seem to be any other serious eclipse plugin for Perl out there, aside EPIC.
Regarding the problematic behaviors, did you check the question Why does the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Where do theses values come from in this haskell function? Let's say I have the following function:
sumAll :: [(Int,Int)] -> Int
sumAll xs = foldr (+) 0 (map f xs)
where f (x,y) = x+y
The result of sumAll [(1,1),(2,2),(3,3)] will be 12.
What I don't understand is where the (x,y) values are coming from. Well, I kn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WOrflow Foundation Cancellation Handler Cancellation Handler works good for Composite activities like CAG, Parallel activity.
I need to know what are the activities will be cancelled in Cancellation Handlers.
I have codeactivities in my parallel activities The activites are reseted in this case
A: Activities can on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Lightbox beyond the browser I'm working on a new project, a web application, where I need to focus the user on a particular task. Therefore I want to eliminate all other "System Generated Noise", like Browser Menus, Buttons, Address Bar, OS Task Bar and so forth. I have seen implementations like Lightbox, but this m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: View the data that LoadPostData event is loading in ASP.NET What's the best way to view the data that LoadPostData event is loading to the controls in ASP.NET?
A: It's actually really simple. The NameValueCollection that get's passed to this method of EVERY control that implements the IPostbackDataHandler interfac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using C/C++ static libraries from iPhone ObjectiveC Apps Is it possible to have a C static library API, which uses C++ internally and hide this from users of the library?
I have writen a portable C++ library I wish to statically link to an iPhone application.
I have created an Xcode project using the Max OS X 'stati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Convert haskell Int with leading zero to String Suppose I have a variable of type Int = 08, how can I convert this to String keeping the leading zero?
For instance:
v :: Int
v = 08
show v
Output: 8
I want the output to be "08".
Is this possible?
A: Its 8, not 08 in variable v. Yes, you assigned it 08 but it recei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there web service (API) standard or best practice for developer teams? If you are going to start the development of an API for your web application. Is there any kind of guidelines, best practices or standard to build web services. I have seen a few discussions in this topic and I will like to get more informat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Is there any way other than instanceof operator for object type comparison in java? I remember reading in some Java book about any operator other than 'instanceof' for comparing the type hierarchy between two objects.
instanceof is the most used and common. I am not able to recall clearly whether there is indeed ano... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why is Apache mod_rewrite not behaving as expected I want to redirect URLs from an old site that used raw URL requests to my new site which I have implemented in CodeIgniter. I simply want to redirect them to my index page. I also would like to get rid of "index.php" in my URLs so that my URLs can be as simple as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/376998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: need help-variable creation in Python (continuation) That was helpful kgiannakakis.
I'm facing a problem as below:
a = ['zbc','2.3']
for i in range(0,5):
exec('E%d=%s' %(i,a[i]))
This results in:
Traceback (most recent call last):
File "", line 2, in
exec('E%d=%s' %(i,a[i]))
File "", line 1, in
NameE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: DevExpress ASP.Net Component on Mono I'm a happy user of DevExpress components, though currently I'm still on a linux web host.
In another thread I've spoken about my plans to move to a Windows environment so that I can use DevExpress's ASP.Net components. For some time now DevExpress's stand has been that their co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Test if executable exists in Python? In Python, is there a portable and simple way to test if an executable program exists?
By simple I mean something like the which command which would be just perfect. I don't want to search PATH manually or something involving trying to execute it with Popen & al and see if it fai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "355"
} |
Q: sql server replication - get last synchronization date from query Does anyone know the query the last synchronization date from sql server (2008).
It is the same information displayed in replication monitor, but I want to be able to get that date from a query.
A: I created a view like this to get last date by the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Enum.ToString() not working in tooltip I have a Linq Query where I do the following:
query = context.Select(a => new
{
Course = (CourseType)a.CourseCode,
CourseDetail = sting.Format("Course: {0}\r\nCourse Detail: {1}", ((CourseType)a.CourseCode).ToString(), a.CourseDetail)
});
enum CourseType{
Unknown = 0,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Silverlight Datagrid: Changing cell styles, based on values I have some data. I want to go through that data and change cells (for example - Background color), if that data meets a certain condition. Somehow, I've not been able to figure it out how to do this seemingly easy thing in Silverlight.
A: This is slightly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: remove the right click menu in flash 9 Is it possible, using actionscript 3 to disable the right click menu?
Any help greatly appreciated!
A: I don't think you can do this in AS3 (Adobe probably never put support in there because it would prevent the user from accessing the security settings).
There are ways to do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: jQuery rollovers using multiple ids and classes I'm building a photo gallery and what I would like to do is make it so that as the user rolls over an image (let's say for the purposes of this question it's a picture of an apple), all the other images of apples on the page also show their "over" state.
Any and all h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why would one want to use ruby over python or vice versa? I wanted to know, while deciding which language or technology to use for implementing an idea; a design, what are the factors involved in making a decision? Specifically talking about popular scripting languages, why would one choose to use ruby over python o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: using ThreadPools to search through object lists I have these container objects (let's call them Container) in a list. Each of these Container objects in turn has a DataItem (or a derivate) in a list. In a typical scenario a user will have 15-20 Container objects with 1000-5000 DataItems each. Then there are some Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .htaccess - Rule being ignored I use this line in my .htaccess file to automatically add a trailing slash if not present
rewriteRule ^(([a-z0-9\-]+/)*[a-z0-9\-]+)$ /$1/ [NC,R=301]
This works fine, until I use these lines to redirect all requests to not files or dirs to index.php
RewriteCond %{REQUEST_FILENAME} !-d
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Days Unavailable I need a simple SQL to accomplish the below:
Problem:
When a petrol bunk runs out of fuel, the admin makes note of the DateTime (RunOutDate) when it ran out of fuel and notes also the DateTime (ResupplyDate) when the fuel supply was back on.
I need to create a report on how many days the bunk ran ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can i view the mapping configurations passed to the NHibernate by the castle activerecord? Is it possible to view the mapping configurations / mapping xml files passed from activerecord to nhibernate?
A: you can set the isDebug flag to true in the ActiveRecord section of your configuration file.
With this flag ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSON parameters auto. convert to lowercase when ajax request made to MVC action method? Would anybody know why my parameter is being "converted" to lowercase when it hits my ASP.NET MVC controller action?
I can only assume it is being converted as looking at data value just prior to the ajax request it is in correct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MOSS 2007 content import failure I have received a content export of a MOSS 2007 site which I need to get replicated in my environment but I am having problems importing it using stsadm.
The export was done using stsadm though a command similar to:
stsadm -o export -url http://localhost -filename C:\Export
I'm usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to have global settings defined in a solution in VC++? I have a number of solutions with a large number of projects in them. I would like to be able to define global settings for the solution that are used by all projects. For example an include directory. I want to be able to change the include directory in one... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: F# Floating point ranges are experimental and may be deprecated I'm trying to make a little function to interpolate between two values with a given increment.
[ 1.0 .. 0.5 .. 20.0 ]
The compiler tells me that this is deprecated, and suggests using ints then casting to float. But this seems a bit long-winded if I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How long does it take for you to be comfortable with Haskell? I'm an OK C/C++ programmer. I find Haskell very intriguing. But it seems to me, that although it's relatively easy to write clean Haskell code, as it mimics math (which I'm very comfortable with) pretty well, it's very hard to write clean code in Haskell ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Another way to display an XPS document using WPF I would like to ask if there are any other alternatives, aside from DocumentViewer, for displaying an XPS document in a WPF application? A ready-to-use control or class in .NET if possible.
This is because DocumentViewer is a little slow when you are scrolling throug... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do you do generic programming in Haskell? Coming from C++, I find generic programming indispensable. I wonder how people approach that in Haskell?
Say how do write generic swap function in Haskell?
Is there an equivalent concept of partial specialization in Haskell?
In C++, I can partially specialize the generic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: GDI+ Dithering Problem I have a C++ application that uses the Win32 API for Windows, and I'm having a problem with GDI+ dithering, when I don't know why it should be.
I have a custom control (custom window). When I receive the WM_PAINT message, I draw some Polygons using FillPolygon on a Graphics device. This Graphi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Connect to iSeries with OdbcConnection: password prompting I want to connect to DB using the iSeries Client Access driver. I use the following connection string:
DRIVER=Client Access ODBC Driver (32-bit);QUERYTIMEOUT=0;PKG=QGPL/DEFAULT(IBM),2,0,1,0,512;LANGUAGEID=ENU;DFTPKGLIB=QGPL;DBQ=QGPL
XXXXXXXX;SYSTEM=XXX.XXXX... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Newest Microsoft Chart and ASP.NET MVC Recently ASP.NET developer launched its newest control, Charting control. (Microsoft Chart). Does this compatible with ASP.NET MVC, or its only compatible with ASP.NET WebForm ?
A: They are compatible with MVC
| {
"language": "en",
"url": "https://stackoverflow.com/questions/377100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I open the Settings application from my application? In an iPhone app I'm working on, the user needs to enter some configuration via the settings application before my app will be able to connect to a server and run. Right now when the user first launches my app, I display an alert explaining that the user sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I change the mouse cursor when the left mouse button is down? In Delphi 2007, in a mouse move event, I try to change the mouse cursor with:
procedure TFr_Board_Display.PaintBox_Proxy_BoardMouseMove(Sender: TObject;
Shift: TShiftState; X, Y: Integer);
begin
if left_mouse_button_down then begin
if so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Nested Select statement? Hi I'm very new to sql but have been passed a job in which I need to query the db(MS SQL 2005) I need to return all workers where a HeadID is given.(tables below)
So I need to get all the managers that match the HeadID and then all the workers that match those managers by ManagerID. How woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are some other languages that support "partial specialization"? Partial template specialization is one of the most important concepts for generic programming in C++. For example: to implement a generic swap function:
template <typename T>
void swap(T &x, T &y) {
const T tmp = x;
y = x;
x = tmp;
}
To spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Mono on the iPhone? Has Mono been ported to the iPhone yet? I'd love to write .NET apps for the iPhone, and learning Objective C isn't an option for me.
A: We are developing a Cocoa Touch binding called MonoTouch and a full-AOT toolchain that will allow building native iPhone apps using Mono and MonoDevelop. This w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: ASP.NET MVC Routing Question I must be dense. After asking several questions on StackOverflow, I am still at a loss when it comes to grasping the new routing engine provided with ASP.NET MVC. I think I've narrowed down the problem to a very simple one, which, if solved, would probably allow me to solve the rest of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Inversion of Control in Compilers Has anyone out there actually used inversion of control containers within compiler implementations yet? I know that by design, compilers need to be very fast, but I've always been curious about how IoC/DI could affect the construction of a programming language--hot-swappable syntaxe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best way to use .NET classes from Visual Basic 6? At my workplace I'm stuck with Visual Basic 6, but after reading the answer to
"How do I sort arrays using vbscript?" I got my hopes up, that at least some of the missing VB6 features can be supplemented by .NET features. (Different kinds of collections, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Do I need a new .snk keyfile for each version of a strong named library? If I strong name a class library with a .snk file, do I need to replace this .snk file with a new if I create a new version of the same library?
A: No. The class library assembly is signed with the public key from the SNK file.
You can use the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to convert documents to PDF on a Linux/PHP stack? I want to display documents on my website. The server is hosted on a Debian machine. I was thinking I can allow the upload of support documents then use a Linux app or PHP app to convert the doc into PDF and display that in an HTML page. Are there any APIs or bin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Rails - Multiple top level domains and a single session/cookie I've been struggling with this for quite awhile and haven't been able to
find a solution. I need a user to be able to view multiple top level
domains with a single login.
My understanding is that this needs to be set in environment.rb and
called with bef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Divide the content of a text document into categories, and view a partial text When I go over a text document ,I divide the content into different categories by highlighting sentences with different colors.
I would like to have the ability to create a set of categories , and then go over the text and mark a sentence... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get MS Access DB Author, Last Modified Date, Last Modified By etc using vb.net I am trying to get all the properties of MS Access DB using vb.net like Author, Last Modified Date, Last Modified By etc..
A: These are extended properties. I think that this thread Read/Write 'Extended' file properties (C#) will ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: What does CreateFile("CONIN$" ..) do? I was hacking away the source code for plink to make it compatible with unison.
If you don't know, unison is a file synchronization tool, it runs an "ssh" command to connect to a remote server, but there's no ssh.exe for windows; there's plink, which is very close but not close ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Difficulty with GridView PostBack Events In the RowDataBound OnClick event handler, its printing 'Hi' when I click on any row. But I want it to only print 'Hi' when I click on the 15th row. How can I implement this?
My code:
protected void dtvExDetails_RowDataBound1(object sender, GridViewRowEventArgs e)
{
if (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377153",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL expression problem Below is my table, a User could have multiple profiles in certain languages, non-English profiles have a higher priority.
+----------+--------+----------------+----------------+
|ProfileID |UserID |ProfileLanguage |ProfilePriority |
+----------+--------+----------------+----------------+
|1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MonthCalendar.SelectionRange databinding example How do you perform databinding against the MonthCalendar.SelectionRange property? Given the property is of type 'SelectionRange' which is a class I am not sure how to go about it. Any examples would be much appreciated.
A: Well, there don't seem to be any obvious eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/377163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.