text string | meta dict |
|---|---|
Q: Business Objects XI 3.0 Dashboard error via Infoview I'm testing the latest Business Objects Edge Trial version, however when I'm logged in to the Infoview as the Administrator, when I click to create or organize a dashboard, I get one of the two following error messages...
Cannot forward after response has been com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Overwrite Line in File with PHP What is the best way to overwrite a specific line in a file? I basically want to search a file for the string '@parsethis' and overwrite the rest of that line with something else.
A: Your main problem is the fact that the new line may not be the same length as the old line. If you n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What is the best way to print columns from different tables on the same row using the Axapta reporting tool? It seems like each body section in an axapta report can only print columns from a single table(consistantly). For instance:
I have a report that has the following tables: SalesLine, InventTable and CustTable... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's the best way to send a lot of checkboxes to the client in ASP.Net? I have the following situation:
A user will define a certain filter on a page, and on postback I will query the database using that filter and return a bunch of matching records to the user, each with a checkbox next to it, so he can choose wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multiple definitions of a function template Suppose a header file defines a function template. Now suppose two implementation files #include this header, and each of them has a call to the function template. In both implementation files the function template is instantiated with the same type.
// header.hh
templat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235616",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: WCF and System.Configuration namespace I received an error when an referenced .NET Framework 2.0 assembly tried to execute the following line of code in an IIS hosted WCF service:
Error Message:
exePath must be specified when not
running inside a stand alone exe.
Source Code:
ConfigurationManager.OpenExeConfigur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Configure EasyPHP to use CGI I'm trying to modify my EasyPHP to run in CGI mode.
According to this link: http://www.easyvitools.com/phpserial/php_ser_reference.html
I have to add in this line:
LoadModule php5_module "C:/Program Files/EasyPHP 2.0b1/php5/php5apache2.dll" to httpd.conf
However, everytime I do that, Eas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235631",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Spatial Data Structures for moving objects? I was wondering what is the best data structure to deal with a lot of moving objects(spheres, triangles, boxes, points, etc)? I'm trying to answer two questions, Nearest Neighbor and Collsion detection.
I do realize that traditionally, data structures like R trees are use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Is there a concise catalog of variable naming-conventions? There are many different styles of variable names that I've come across over the years.
The current wikipedia entry on naming conventions is fairly light...
I'd love to see a concise catalog of variable naming-conventions, identifying it by a name/descript... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Substitute member of variable within string in Powershell I have the following string expression in a PowerShell script:
"select count(*) cnt from ${schema}.${table} where ${col.column_name} is null"
The schema and table resolve to the values of $schema and $table, respectively. However, an empty string is supplied... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to use std::signaling_nan? After looking at another question on SO (Using NaN in C++) I became curious about std::numeric_limits<double>::signaling_NaN().
I could not get signaling_NaN to throw an exception. I thought perhaps by signaling it really meant a signal so I tried catching SIGFPE but nope...
Here is my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a possible "race condition" when using Asp.Net MVC TempData across a redirect? When using TempData, my understanding is that it will keep whatever you put in it around for only one request. So when using TempData to retain data across a redirect (in order to use the Post-Request-Get pattern), isn't it possi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: how do I add a font in gVim on windows system I wanted to add a UTF-8 font in Gvim but I could not find out how to do this.
I tried to follow the step on this manual but it still did not work.
http://www.inter-locale.com/whitepaper/learn/learn_to_type.html (vim section halfway the page)
Can anyone tell me how to add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: What is the java signal dispatcher thread? I was looking through a thread dump of a java process, and notice some threads blocked by signal dispatcher.
What is signal dispatcher? What does it do?
A: I found an article about this on IBM developerWorks. When the OS raises a signal to the JVM, the signal dispatcher t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Quick method to convert classes implementing same interface How, in Java, to quickly (or generically) convert one class that implements an interface into another class that implements the same interface?
I mean, if they're a POJO one class setters should take the other class getters as arguments.
Is there a Pattern ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to change SQL user-defined data type? I have a bunch of tables using user-defined data type for PK column. Is it possible to change this type Using SQL Server 2005?
A: I would suggest that it is always possible to refactor poor or outmoded database designs, it simply depends on how much work you are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to configure IIS 6.0 to use both default content page and wildcard application maps In the filesystem I have
/file.aspx
/directory/default.aspx
I want to configure IIS so that it returns the appropriate file (add the aspx extension) or directory (default content page) as follows:
/file -> /file.as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert jquery slide effect to mootools I have a script that slides a div down from behind the menu, when people click on the tab. However its in jquery and I want to use mootools (lots of reasons I wont go into here). However im stuck with mootools 1.1 at present. But for some reason my attempt is not working :(
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: System.Windows.Forms.WebBrowser.Refresh showing previous page My WinForms application has a tab with a System.Windows.Forms.WebBrowser control. There are several controls that set the WebBrowser's .Url property, and when the form repaints it calls the WebBrowser's .Refresh(WebBrowserRefreshOption.Completely) method.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which merge tool should I use with Mercurial in Windows? I'm just starting with Mercurial and one of the things that I should do is select a merge tool. I was thinking to use WinMerge for that purpose, but I can't find the way to select this in particular. There are references for all the other merge tools around, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Opening an RSA private key from Ruby I think I know how to create custom encrypted RSA keys, but how can I read one encrypted like ssh-keygen does?
I know I can do this:
OpenSSL::PKey::RSA.new(File.read('private_key'))
But then OpenSSL asks me for the passphrase... How can I pass it to OpenSSL as a parameter?
And, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you throttle the bandwidth of a socket connection in C? I'm writing a client-server app using BSD sockets. It needs to run in the background, continuously transferring data, but cannot hog the bandwidth of the network interface from normal use. Depending on the speed of the interface, I need to throttle thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Cancel libcurl easy handle Is there an easy way to cancel a curl_easy_perform from another thread?
A: You have to use the callback functions (write/read/progress) to perform the cancel. The other thread needs to set a flag and the callback function checks the flag and returns the proper value to cancel the operati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: i want a java editor with embedded compiler and work under linux and did not require a a big amount of ram I want a Java IDE with a compiler for Linux and that does not require a a big amount of RAM.
I have 256 MB of ram, so my options are limited
A: In my first programming courses, we used BlueJ as our "IDE". Real... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Is there an MD5 Fixed Point where md5(x) == x? Is there a fixed point in the MD5 transformation, i.e. does there exist x such that md5(x) == x?
A: My brute force attempt found a 12 prefix and 12 suffix match.
prefix 12:
54db1011d76dc70a0a9df3ff3e0b390f -> 54db1011d76d137956603122ad86d762
suffix 12:
df12c1434cec7850... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "121"
} |
Q: When deciding on a feature, what do you do? Do you primarily think of reasons TO implement it, or reasons NOT TO implement it? What are the advantages of each?
A: This fine Joel Spolsky post basically says:
*
*Make a list of possible features.
*Vote to filter out the worst features.
*Assign a cost for each fe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Vbscript detect whether UAC-elevated How can my vbscript detect whether or not it is running in a UAC elevated context?
I have no problem detecting the user, and seeing if the user is within the Administrators group. But this still doesn't answer the question of whether the process has elevated privs or not, when ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Learning about low-level graphics programming I'm interesting in learning about the different layers of abstraction available for making graphical applications.
I see a lot of terms thrown around: At the highest level of abstraction, I hear about things like C#, .NET, pyglet and pygame. Further down, I hear about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: Indent multiple lines quickly in vi It should be trivial, and it might even be in the help, but I can't figure out how to navigate it. How do I indent multiple lines quickly in vi?
A: 5== will indent five lines from the current cursor position.
So you can type any number before ==. It will indent the number of line... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2374"
} |
Q: Using iText to convert HTML to PDF Does anyone know if it is possible to convert a HTML page (url) to a PDF using iText?
If the answer is 'no' than that is OK as well since I will stop wasting my time trying to work it out and just spend some money on one of a number of components which I know can :)
A: I have ende... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: How do I stretch a background image to cover the entire HTML element? I'm trying to get a background image of a HTML element (body, div, etc.) to stretch its entire width and height.
Not having much luck. Is it even possible or do I have to do it some other way besides it being a background image?
My current css is:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: iterative version of recursive algorithm to make a binary tree Given this algorithm, I would like to know if there exists an iterative version. Also, I want to know if the iterative version can be faster.
This some kind of pseudo-python...
the algorithm returns a reference to root of the tree
make_tree(array a)
if... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Document/Image Database Repository Design Question Question:
Should I write my application to directly access a database Image Repository or write a middleware piece to handle document requests.
Background:
I have a custom Document Imaging and Workflow application that currently stores about 15 million documents/d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: VC6 and odd WINVER message during compile I get the following message in a VC6 project compile:
OTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Software that "Phones Home"; good? bad? Evil? What notice does one give? How to? PHONE HOME
Everybody wants to now and then. ...What about software when it grows up and becomes a mature product? Shouldn't it be an adult and live in its new home quietly? Or, should it show some affection from whence it came?...
I've ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: F# int64 to int How can I convert an Int64 to an Int32 type in F# without using the Microsoft.FSharp.Compatibility.Int32.of_int64?
I'm doing this because interactive doesn't seem to work when I try:
open Microsoft.FSharp.Compatibility
With FSharp.PowerPack added as a reference it says:
error FS0039: The namespace... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Declarative and programmatic SWFLoaders What's the difference in terms of security between declarative and programmatic SWFLoaders? In the ff. code, loader1 throws a security exception while loader2 does not.
public someFunction(source:String):void
{
var loader1:SWFLoader = new SWFLoader();
loader1.load(source)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Has Object Prevalance (Prevayler, Madeleine) been used in a Production System? Has Object Prevalance mechanisms been used in an actual Production system? I'm referring to something like Prevayler or Madeleine
The only thing I've found is Instiki, a wiki engine. But since they started they've switched to SQLite. (The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why is AllowPartiallyTrustedCallers not the default? For a .NET assembly to allow anything other than fully trusted callers the assembly must be signed and attributed with AllowPartiallyTrustedCallers.
But even with this in place the CLR still (fortunately) checks code rights to ensure that the partially trusted cal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Interpreting Visual Studio 2005 Threads Window I created a simple .NET windows application in Visual Studio 2005 and on just entering the main form load event my threads window is as in the following image:
http://img519.imageshack.us/my.php?image=threadshh4.jpg
My questions are
1)Why are there so many threads in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I make a function happen 50% of the time in vb6 Making a small app, and I want a function to execute 50% of the time. So if I were to dbl click the exe half the time the function would execute, and the other half it wouldn't. I can't seem to find anyway to easily do this, the one solution I tried seemed to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to lookup django session for a particular user? I am writing an application where I will be accessing the database from django and from a stand alone application. Both need to do session verification and the session should be the same for both of them. Django has a built in authentication/session verification, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Linq DataContext class not accessible in my MVC after I save the dbml I just downloaded MVC and I am going through a tutorial. Everything goes fine until I try to declare a DataContext object.
My dbml is named db.dbml (tried another on named test.dbml) and when I try this:
public dbDataContext db = new dbDataContex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are you an agile/pragmatic developer in a waterfall organization? If so, how do you deal with things that just don't "feel" right such as:
*
*not writing unit tests
*not having a continuous build
*not refactoring
*not having a team coding standard
*not pair programming
*not doing iterations
*no daily standu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Raise OnMenuItemClick without ViewState? I have a (derived) Menu control, that displays a rather large list of items from a custom data source. I need to disable ViewState on the menu to avoid the very annoying "Can't select a disabled or unselectable menu item" when some other control causes the current selection t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VistaDB Connection Issue Programmatically using SQLConnection and ConnectionString I'm getting an error connecting to a VistaDB using a connection string in the web.config file.
It works fine using a SQLDataSource AFTER I specified the ProviderName. On another page I'm only connecting in code and
Here is the code f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling a jQuery function inside html return from an AJAX call I am working on a web page that is using jQuery. I have an Ajax call that gets data from the server and updates a div. Inside that data there is a jQuery function, but the function is not being called after the data is loaded into the page. I have the pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Copy and Modify selected text in different application I have a windows application running at the backend. I have functions in this applications mapped to hot keys. Like if I put a message box into this function and give hot key as Alt+Ctrl+D. then on pressing Alt, Ctrl and D together the message box comes up. My a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How Code Color is Set in StackOverflow? The most favorite feature of StackOverflow for me is that it can automatically detect code in post and set appropriate color to the code.
I'm wondering how the color is set. When I do a Ctrl+F5 on a page, the code seems first be black text, then change to be colorful. Is it do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: When have you come upon the halting problem in the field? When have you ever personally come upon the halting problem in the field? This can be when a co-worker / boss suggested a solution which would violate the fundamental limits of computation, or when you realized yourself that a problem you were trying to solve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/235984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: What's a Turing machine? What is a Turing machine and why do people keep mentioning it? My IBM PC is all I need to do my computation! Why does anyone care about these machines?
A: The reason that Turing Machines are a big deal has to do with the study of classical Computing Science or Theory of Computation type stu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: UNIX vs Windows memory deallocation My understanding is that in unix, when memory is freed, the memory doesn't get returned back to the operating system, it stays in the process to be used again for the next call to malloc.
On windows, I understand that the memory actually gets returned to the operating system.
Is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to realize a diff function? How can I implement a diff function, such as Stack Overflow's question revision history?
A: You have here a javascript example of the implementation of a diff algorithm.
Based on:
P. Heckel, A technique for isolating differences between files
Comm. ACM, 21, (4), 264--268 (1978).
The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unmanaged DLLs in C++ I've been reading many a tutorial/article on unmanaged DLLs in C++. For the life of me, however, I cannot seem to grasp the concept. I'm easily confused by the seeming disagreement about whether it needs a header file, how to export it, whether I need a .lib file and what have you.
So, let's as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Context information in Tomcat5.5 I am facing this peculiar problem. My webapp, works fine on my localhost. Its a JSP/Struts-Tomcat-MySQL app. However, when I host it on hostjava.net (shared tomcat), it is unable to connect to the database.
After some debugging, I have identified the problem, to be with JNDI lookup f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Code documentation for delphi similar to javadoc or c# xml doc I need a code documentation tool similar to javadoc or c# xml doc for delphi code. What is the best tool? I prefer a technology, which is in the future compatible to the Microsoft sandcastle project.
A: Take a look at SynProject, an Open Source tool wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: PHP Script Version Checking/Notification How can I check the version of my script against an online file to see if it's the latest version?
For clarification, I'm talking about a script I wrote, not the version of PHP. I'd like to incorporate a way for the end user to tell when I've updated the script.
A: Per comme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why split the
A: The solution Bobince posted works perfectly for me. I wanted to offer an alternative method as well for future visitors:
if (typeof(jQuery) == 'undefined') {
(function() {
var sct = document.createElement('script');
sct.src = ('https:' == document.location.protocol ? 'https' : '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "283"
} |
Q: Parsing C++ to generate unit test stubs I've recently been trying to create units tests for some legacy code.
I've been taking the approach of using the linker to show me which functions cause link errors, greping the source to find the definition and creating a stub from that.
Is there an easier way?
Is there som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What online collaboration sites do you know? Basically I need a hosted solution, where one can create an account for a project and the distributed team members can interact through that site during the project implementation. I know a lot of such software but not a hosted one.
A: I think Basecamp is the most popula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Considerations when developing an integrated product for Microsoft Office suite I have a product idea that requires integration into the Microsoft Office suite.
Are there any licensing/limitation issues to be aware of for me to proceed?
A: Depends...
If your product uses their published APIs and you don't ship any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding the Unicode codepoint of a character in GNU Emacs In XEmacs this is done by the calling the function char-to-ucs on a character. GNU Emacs does not seem to have this function. In GNU Emacs, characters seem to be ordinary integers. Running C-x = on a latin character reveals that the Emacs codepoint is diff... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Receiving MessageQueue msgs without reading them from the receiving Queue? I am using the System.Messaging.MessageQueue to send and receive multicast System.Messaging.Message’s on my LAN – this works fine.
However, I have a requirement to receive the msgs without using a message queue.
As the MessageQueue uses the P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to convert (not necessarily programmatically) between Windows' wchar_t and GCC/Linux one? Suppose I have this Windows wchar_t string:
L"\x4f60\x597d"
and
L"\x00e4\x00a0\x597d"
and would like to convert it (not necessarily programmatically; it will be a one-time thing) to GCC/Linux wchar_t format, which is UTF-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I iterate over the words of a string? How do I iterate over the words of a string composed of words separated by whitespace?
Note that I'm not interested in C string functions or that kind of character manipulation/access. I prefer elegance over efficiency. My current solution:
#include <iostream>
#include <s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3314"
} |
Q: "Cannot add array to BooleanQuery" error with ferret on rails I'm trying to get a simple search form working in my RoR site. I've got the following code:
(in note_controller.rb)
def search
@results = Note.find_with_ferret(params[:term]).sort_by(&:ferret_rank)
respond_to do |format|
format.html
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How best to resize images off-server I have a site that users upload images to. Those images are resized to various dimensions. I currently do that on my server, but was thinking of processing that on AWS or something similar. Is that a good idea?
A: I've been using EC2 and dedicated servers for similar tasks, and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best practices for using version-controlling on Cocoa projects I recently started using Git as my version control system for some Cocoa projects I'm working on and wondered if there are best practices for working with version control systems on Cocoa projects.
There is the obvious "build" directory which I exclude f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Could you recommend any open source projects where the source is extensively tested with unit tests? Programming is learned by writing programs. But code reading is said to be another good way of learning. I would like to improve my unit-testing skills by reading, examining real-world code. Could you recommend any o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I get the current directory in a web service I am using System.IO.Directory.GetCurrentDirectory() to get the current directory in my web service, but that does not give me the current directory. How do I get the current directory in a web service?
Thanks
Stuart
A: HttpContext.Current.Server.MapPath("~/") wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: .NET Does NOT Have Reliable Asynchronouos Socket Communication? I once wrote a Crawler in .NET. In order to improve its scalability, I tried to take advantage of asynchronous API of .NET.
The System.Net.HttpWebRequest has asynchronous API BeginGetResponse/EndGetResponse. However, this pair of API is just to get a H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I sort a std::vector by the values of a different std::vector? I have several std::vector, all of the same length. I want to sort one of these vectors, and apply the same transformation to all of the other vectors. Is there a neat way of doing this? (preferably using the STL or Boost)? Some of the vectors h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: LZH Compression Libraries I'm looking for a LHarc de/compressing library, with source if possible.
A: I found a few a while back
PASCAL source code (never looked at the validity of it)
http://www.bsdg.org/SWAG/ARCHIVES/0040.PAS.html
Java Version
http://homepage1.nifty.com/dangan/en/Content/Program/Java/jLHA/jLHA.ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I put preformatted text into a FitNesse fixture table cell? I want to be able to put preformatted text (i.e. containing line breaks) into a single cell of a FitNesse fixture table. Is there a way to manipulate the FitNesse wiki markup to do this?
A: One way to do this is to define a variable with the multi-l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Windows Mobile - Compact Framework program as a service? What is the best way to have my C# Compact Framework program running in the background on a Windows Mobile device ? I need to respond to different events, such as a text message arriving with a specific content. I would like not to start up any UI when the pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.Net web server control that generates HTML and Excel I am developing a web application that contains a great deal of reporting. The reports are fairly basic, but some have multiple datasets or embedded charts. One of the key requirements is that each report can be exported to Excel. The Excel version of the r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I fit a curve to a histogram distribution? Someone asked me a question via e-mail about integer partitions the other day (as I had released a Perl module, Integer::Partition, to generate them), that I was unable to answer.
Background: here are all the integer partitions of 7 (the sum of each row equals 7).
7... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236195",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Syntax coloring a file with a non-standard extension in Visual Studio 2008 I'm probably missing something very obvious here. I have files with the extension .st that contain (mostly) C++ code. I want the C++ in there to be highlighted when I open it with Visual Studio. I go to Tools->Options->Text Editor->File Exten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why does a h1 tag display different in a div, when a doctype is set? I have a div with a <h1> tag in a div, with no margins. If I define any doctype, a white space appears above the div.
If I remove the <h1> tags, or remove the doctype definition, there is no space (as there should be. Why?
Example HTML:
<!DOCTYPE H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Are there any web based email clients written in python? I need to integrate a email client in my current python web app.
Anything available?
L.E.: I'm building my app on top of CherryPy
A: For others who might find this thread, check out Mailpile. I haven't used it yet, it is a python-based mail client, and I am s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java - Abstract class to contain variables? Is it good practice to let abstract classes define instance variables?
public abstract class ExternalScript extends Script {
String source;
public abstract void setSource(String file);
public abstract String getSource();
}
The sub class, ExternalJavaScript.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Is there a Windows Forms native way to flash a form's title bar? Is there a correct way in Windows Forms to flash a titlebar without having to drop to P/Invoking FlashWindow?
I'm using .NET 2.0 for compatibility and size reasons, so maybe I just missed the method because it's in newer versions of the .NET framework.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I choose a multicast address for my application's use? How should I choose an IPv4 multicast address for my application's use? I may need more than one (a whole range perhaps ultimately) but just want to avoid conflicts with other applications.
*
*Packets will be entirely contained within an administrative... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: .NET: Select concrete classes using config file (This question specifically in C#, but applies generally to .NET)
I have a largish application that has a fairly good design, and is broken into major sections over interfaces (this was done to assist parallel development).
We now have a primary set of concrete classe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236235",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rows in their own columns depending on their value I have a select query that currently produces the following results:
Description Code Price
Product 1 A 5
Product 1 B 4
Product 1 C 2
Using the following query:
SELECT DISTINCT np.Description, p.promotionalCode, p.Price
F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Finding the difference in rows in query using SQLite I have an SQLite table that contains prices for various products. It's a snapshot table, so it contains the prices on 5 minute intervals. I would like to write a query that would return the difference in price from one row to the next on each item.
The columns are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can I do SQL Server 2005 merge replication through an SSH tunnel? Our usage case is a database responsible for accounts, sessions, licenses, etc. — it needs to be polled upon client startup, so high reliability is crucial. As such, we'd like to replicate across different servers in physically separate networks, just... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ASP.NET MVC - Including JS file I am playing around with MVC and have started setting up an existing site we have built in standard .Net Forms.
I am only including a JS file and as all the requests are being routed via .Net it is trying to compile it.
It is the standard compilation error you would see with invalid c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I automatically calculate axis scale and intervals? Does anyone know where I can find an algorithm that given a set of values (dates) for an axis I can calculate a reasonable scale and tick interval?
A: The tick interval is going to be dependent on your display area. You'll need to take the width of your g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Convert PHP Function to JavaScript <?php
function toconv(string)
{
$gogo = array("a" => "b","cd" => "e");
$string = str_replace(
array_keys( $gogo ),
array_values( $gogo ),
$string
);
return $string;
}
?>
How can I implement that in JavaScript?
A: And to make it in a way, wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem with Ajax.Request using JSon and Prototype I am using the following function to load a PlayList of Songs from 'PlayListJSON.aspx' but somethings seems wrong,evrytime OnFailure is getting called, I am unable to debug it further. any help would be really gr8.
Player.prototype.loadPlaylist = function(playlistId... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can garbage collection coexist with explicit memory management? For example, say one was to include a 'delete' keyword in C# 4. Would it be possible to guarantee that you'd never have wild pointers, but still be able to rely on the garbage collecter, due to the reference-based system?
The only way I could see it pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to make icon with pink background transparent? I'm using Visual Studio icon library (VS2008ImageLibrary), there are some BMP files with a pink background. How can I make the pink background become transparent? What software can I use to do this? Any free one?
Thanks
A: I used IrfanView's batch conversion tool.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which is the best way to compare the integer part of two non-integer numbers? I need to compare the integer part of two doubles for inequality and I'm currently doing this:
int iA = (int)dA;
int iB = (int)dB;
if( iA != iB )
{
...
}
but I wonder if there's a better approach than this.
Thanks.
If I used Math.Tru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When I calculate a large factorial, why do I get a negative number? So, simple procedure, calculate a factorial number. Code is as follows.
int calcFactorial(int num)
{
int total = 1;
if (num == 0)
{
return 0;
}
for (num; num > 0; num--)
{
total *= num;
}
return tot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236335",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET library or asp.net application for Amazon S3 I want to have a web based admin to upload, delete files and folders in Amazon S3 on ASP.NET website.
I am pretty sure something like this already exist, has anyone seen it?
A: Have you tried this one? http://www.codeplex.com/ThreeSharp
A: LitS3 works great
A: C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ASP.Net MVC - handling bad URL parameters What's the best way to handle a visitor constructing their own URL and replacing what we expect to be an ID with anything they like?
For example:
ASP.Net MVC - handling bad URL parameters
But the user could just as easily replace the URL with:
https://stackoverflow.com/quest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: error handling when taking user input I am a beginner in c++ and I have a small problem:
my code displays a simple menu to the user providing three options:
cout << "\nQuadratic equation: a*X^2 + b*X + c = 0 main menu: ";
cout << "\n <r> Give new coefficients";
cout << "\n <c> Calculate equations solutions";
co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Developing applications for Nokia 5310 EDIT:
Is there any other phone systems that allow connecting into the native messaging system to read input in the composer?
A: There is absolutely no way to do this in standard J2ME.
Symbian phones will allow you to write C++ code that comes close to doing what you describe.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is your convention to distinguish between object methods to be called by the outside, and object methods to be called by a subclass? I know most of the ins and outs of Python's approach to private variables/members/functions/...
However, I can't make my mind up on how to distinguish between methods for external... | {
"language": "en",
"url": "https://stackoverflow.com/questions/236359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |