text
string
meta
dict
Q: Familiar with SilverStripe? What are your opinions/impressions? I'm trying to pick a good CMS that isn't a portal. All of my research as lead me to believe SilverStipe is the best option. I'd like some opinions/impressions. Thanks for any thoughts you have. edit: I've decided to try it out. I'll post my own answe...
{ "language": "en", "url": "https://stackoverflow.com/questions/249328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Translate SVN path to local file system path in Python I'm writing a utility in Python that will attach changed files in Subversion to an email and send it when a subset of folders that are under source control in SVN have been changed. I am using the pysvn library to access the repository. I have a copy of the fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/249330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remote desktop client to connect to Linux from Vista x64 I am looking at connecting to a openSuse 11.1 Beta 3 virtual machine from my Vista 64-bit development workstation. I found UltraVNC Viewer to be the only option for this purpose. Is there any other clients that I can use to connect from Vista to openSuse/other...
{ "language": "en", "url": "https://stackoverflow.com/questions/249332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make a scrollable element stay "at the bottom" while adding content I am building a utility page for a web app that I am working on. I have an element that I want to use as a "console" of sorts. I get entries for the console via Ajax calls (using prototype's Ajax.PeriodicalUpdater). The problem I'm having is that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to disable array bounds checking in opensource Java? Now that Java is open source, one of the first things I would like to do is to disable array bounds checking for certain blocks of code, where I'm dead sure I cannot go offbounds and where performance heavily matters. Now, I'm not a compilers/grammar expert, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/249347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Scheme code to solve a quadratic equation? I wrote this scheme code to compute one solution of the quadratic equation ax2 + bx + c = 0 (define (solve-quadratic-equation a b c) (define disc (sqrt (- (* b b) (* 4.0 a c)))) (/ (+ (- b) disc) (* 2.0 a))) However, someone told me that this procedure is hard to und...
{ "language": "en", "url": "https://stackoverflow.com/questions/249348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: unions declaration C code I have seen some declaration of a union inside a struct as follows. Example code given below. My questions is does it help in any memory savings(typical use for which a union is used for)? I do not see the benefit. typedef struct { int x1; unsigned int x2; ourstruct1 ov1; o...
{ "language": "en", "url": "https://stackoverflow.com/questions/249350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are there any CSS standards that I should follow while writing my first stylesheet? I am currently working on my first website. I have no idea where to start on the CSS page, or if there are any standards that I should be following. I would appreciate any links or first-hand advise. A: You can save yourself a lot ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Detect changes in a filesystem since last scan Programs that index filesystems seem to know which parts have changed since their last index and only rescan that part. How can I determine where the filesystem/files have changed since my last index. Don't care what language you answer in but I'm thinking c and windows...
{ "language": "en", "url": "https://stackoverflow.com/questions/249371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to Calculate Recurring Digits? Given two integers a and b, how would I go about calculating the repeating decimal of a / b? This can be in any language; whatever it's easiest for you to express it in. A: You can do it with long division. Calculate a single digit at a time and subtract to get a remainder, which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Scheme procedure to compute the nth repeated application of a function? Is anyone familiar with this? Write a procedure that takes as inputs a procedure that computes f and a positive integer n and returns the procedure that computes the nth repeated application of f. The procedure should be able to be us...
{ "language": "en", "url": "https://stackoverflow.com/questions/249374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting DataContext with SelectedItem Programmatically How do you programmatically set a DataContext that specifies the selected item of a list? More simply, how do you reproduce this type of binding in code? <StackPanel> <ListBox Name="listBox1" /> <TextBox Name="textBox1" DataContext="{Binding ElementName...
{ "language": "en", "url": "https://stackoverflow.com/questions/249375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to find which character set is used by the database I can access the database either from a .NET program (using ODBC) or through a database management tool (written in Java). If I write a 'é' character to the database from the .NET program, it appears as 'Õ' (capital O with tilde) in the DB management tool. If I...
{ "language": "en", "url": "https://stackoverflow.com/questions/249376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Python with PIL and Libjpeg on Leopard I'm having trouble getting pictures supported with PIL - it throws me this: IOError: decoder jpeg not available I installed PIL from binary, not realizing I needed libjpeg. I installed libjpeg and freetype2 through fink. I tried to reinstall PIL using instructions from http:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/249388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Binary Search in Array How would I implement a binary search using just an array? A: Ensure that your array is sorted since this is the crux of a binary search. Any indexed/random-access data structure can be binary searched. So when you say using "just an array", I would say arrays are the most basic/common da...
{ "language": "en", "url": "https://stackoverflow.com/questions/249392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Comparing Polygons for Similarity What are the usual methods to compare two polygons for similarity? Vertices are in 2D. A: You will find some methods exposed here. * *Turning function *Graph matching *Shape signature by deformation It is used in domains such as image retrieval (p. 52), where turning functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/249411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Single-threading two processes I have two C++ processes (A and B), executing under Windows, where one launches the other. I would like to effectively single-thread their execution. For example: * *Start process A *A creates B *A suspends *B executes some fixed set of operations *B suspends and A is resumed *...
{ "language": "en", "url": "https://stackoverflow.com/questions/249415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does XOR variable swapping work? Can someone explain to me how XOR swapping of two variables with no temp variable works? void xorSwap (int *x, int *y) { if (x != y) { *x ^= *y; *y ^= *x; *x ^= *y; } } I understand WHAT it does, but can someone walk me through the logic of how it...
{ "language": "en", "url": "https://stackoverflow.com/questions/249423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: Whats the reasoning behind the different brace forms? I'm reading through the Zend Framework coding standards, where they state that curly brace after a Class definitions should be on the next line, the "one true brace form". class MyClass { function.... } I usually have the braces on the same line: class Other...
{ "language": "en", "url": "https://stackoverflow.com/questions/249432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Debugging a Direct3D Model I am trying to render a model in Direct3D using DrawIndexedPrimitives. However, I am not able to see it on screen. What are the usual methods used to debug a Direct3D model? I've tried the following: * *Switched off back face culling *Used PrimitiveType.LineStrip instead of PrimitiveTy...
{ "language": "en", "url": "https://stackoverflow.com/questions/249440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Data binding formatting to a DateTime column I have a textbox with the Text property bound to a dataset column with the DataType set to System.DateTime. The FormatString on the Binding is set to dd-MM-yyyy. When the user enters a date it attempts to convert it to a date but can come up with some strange values for a...
{ "language": "en", "url": "https://stackoverflow.com/questions/249448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add new item in existing array in c#.net How to add new item in existing string array in C#.net? I need to preserve the existing data. A: You can expand on the answer provided by @Stephen Chung by using his LINQ based logic to create an extension method using a generic type. public static class CollectionHelper { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "154" }
Q: Prevent long word to add horizontal scroll to html view On Windows Mobile, I am displaying my output in HTML. This includes lots of user-generated strings. Occasionally there are situations where a really large string is part of the output that has no whitespaces or punctuation. Unfortunately the Windows Mobile's H...
{ "language": "en", "url": "https://stackoverflow.com/questions/249460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL: month to month computation I want to compute for month difference of 2 dates which will return a float value. example: date1='4/23/2008' date2='12/31/2008' that will be 7.y months. I want to find the y value. can someone give me the formula to make this in sql codes? tnx.. A: There's no standard sql to handle ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a simple example of floating point/rounding error? I've heard of "error" when using floating point variables. Now I'm trying to solve this puzzle and I think I'm getting some rounding/floating point error. So I'm finally going to figure out the basics of floating point error. What is a simple example of fl...
{ "language": "en", "url": "https://stackoverflow.com/questions/249467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: when would you use uint_least16_t I'm looking at stdint.h and given that it has uint16_t and uint_fast16_t, what is the use for uint_least16_t what might you want that couldn't be done equally well with one of the other two? A: Ah, the link Patrick posted includes this "The typedef name uint_leastN_t designates an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: JavaME: Convert String to camelCase What would be a simple implementation of a method to convert a String like "Hello there everyone" to "helloThereEveryone". In JavaME support for String and StringBuffer utility operations are quite limited. A: Quick primitive implementation. I have no idea of restrictions of J2ME...
{ "language": "en", "url": "https://stackoverflow.com/questions/249470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Subversion hook does not accept certificate permanently I hope someone will be able to answer my question. I have Subversion set up, served by Apache2+SSL, doing web development. I want a post-commit hook that runs svn update on my testing server, so when someone commits, it will automatically update the testing sit...
{ "language": "en", "url": "https://stackoverflow.com/questions/249489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way to implement protocols? Say you are writing an application that must implement the HTTP protocol. Protocols are quite complex and may allow several commands depending on which stage of a transaction they are in. As an example, look at SMTP. An SMTP server must throw an error if the "data" comman...
{ "language": "en", "url": "https://stackoverflow.com/questions/249493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What am I doing wrong with this Scheme evaluation? Evaluate: ((((lambda (x) (lambda (y) (lambda (x) (+ x y)))) 3) 4) 5) This is what I did: * *evaluate ((((lambda (x) (lambda (y) (lambda (x) (+ x y)))) 3) 4) 5) * *evaluate 5 -> 5 *evaluate (((lambda (x) (lambda (y) (lambda (x) (+ x y)))) 3) 4) * *evaluat...
{ "language": "en", "url": "https://stackoverflow.com/questions/249499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Looking for a better way than virtual inheritance in C++ OK, I have a somewhat complicated system in C++. In a nutshell, I need to add a method to a third party abstract base class. The third party also provides a ton of derived classes that also need the new functionality. I'm using a library that provides a standa...
{ "language": "en", "url": "https://stackoverflow.com/questions/249500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why doesn't this Scheme sum-of-squares function work? (define (square x) (display (* x x))) (define (sum-of-squares a b) (+ (square a) (square b))) I tested it, and the sum-of-squares function does not work. Why? A: (display x) evaluates to void (could be seen as nothing). It is a function call that prints ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get contact information on smartphones/ppc with windows mobile 6.0? In a C# application, I want to get a list of the all the contacts of the mobile phone. I have no idea if there is a class that exists already to do it out-of-the-box. If not, I would like how to access those information. A: You need to use the POOM...
{ "language": "en", "url": "https://stackoverflow.com/questions/249507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When using Eclipse with FindBugs can you mark a bug as not a bug and have it removed from the bug list? FindBugs has found a potential bug in my code. But it is not a bug. Is it possible to mark this occurrence as 'not a bug' AND have it removed from the bug list? I have documented quite clearly why for each case it...
{ "language": "en", "url": "https://stackoverflow.com/questions/249536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How to present credentials in order to open file? How do I specify the username and password in order for my program to open a file for reading? The program that needs to access the file is running from an account that does not have read access to the folder the file is in. Program is written in C# and .NET 2, runni...
{ "language": "en", "url": "https://stackoverflow.com/questions/249540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: IIS on Windows XP Is it possible to run more than one website on IIS 5.1 (Windows XP)? I'm able to create multiple websites through adminscripts in IIS, but only one website can be active at a time. Is there is any workaround, trick, or script for this limitation? Thanks, A: As far as I know, you can only have one ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Repeated aplication of functions in Scheme? If f is a numerical function and n is a positive integer, then we can form the nth repeated application of f, which is defined to be the function whose value at x is f(f(...(f(x))...)). For example, if f is the function x + 1, then the nth repeated application of f is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/249557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the advantages to Perforce? What are the benefits of Perforce? I'd love to have some insight as to how Perforce can work better in a given situation than, say, Subversion. If you have experience with both Perforce and Subversion and you don't believe that there are any advantages, or believe that svn has ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/249565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Algorithm to avoid SQL injection on MSSQL Server from C# code? What would be the best way to avoid SQL injection on the C#.net platform. Please post an C# implementation if you have any. A: There's no algorithm needed - just don't use string concatenation to build SQL statements. Use the SqlCommand.Parameters colle...
{ "language": "en", "url": "https://stackoverflow.com/questions/249567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I record what process or kernel activity is using the disk in GNU/Linux? On a particular Debian server, iostat (and similar) report an unexpectedly high volume (in bytes) of disk writes going on. I am having trouble working out which process is doing these writes. Two interesting points: * *Tried turning...
{ "language": "en", "url": "https://stackoverflow.com/questions/249570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Parallel processing of database queue There is small system, where a database table as queue on MSSQL 2005. Several applications are writing to this table, and one application is reading and processing in a FIFO manner. I have to make it a little bit more advanced to be able to create a distributed system, where sev...
{ "language": "en", "url": "https://stackoverflow.com/questions/249573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Syntax of shell\command\open values - %1 vs %l vs %L one of the programs I'm developing at work is reading the registry to figure out how to open files that it is given from another application (we didn't use ShellExecute because we need to process id, and I failed to look at ShellExecuteEx closely enough to see tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/249577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to delete files older than X hours I'm writing a bash script that needs to delete old files. It's currently implemented using : find $LOCATION -name $REQUIRED_FILES -type f -mtime +1 -delete This will delete of the files older than 1 day. However, what if I need a finer resolution that 1 day, say like 6 hours o...
{ "language": "en", "url": "https://stackoverflow.com/questions/249578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "246" }
Q: How do I add fitnesse pages to version-control? What is the recommended practice? Should I add the my sub-folder under the fitnesse folder to version control? Context: working on a single developer rails pet project. I've my rails project under version-control (Subversion) however my fitnesse wiki pages lie unde...
{ "language": "en", "url": "https://stackoverflow.com/questions/249580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Explain Facade pattern with c++ example? I have checked with the wikipedia article, and it seems like it is missing the c++ version of a code example. I am not able to fully appreciate the Facade pattern without this, can you please help explain it to me using C++? A: I've done a search and replace on the C# examp...
{ "language": "en", "url": "https://stackoverflow.com/questions/249581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: High Quality Image Scaling Library I want to scale an image in C# with quality level as good as Photoshop does. Is there any C# image processing library available to do this thing? A: CodeProject articles discussing and sharing source code for scaling images: * *Two Pass Scaling using Filters *Matrix Transforma...
{ "language": "en", "url": "https://stackoverflow.com/questions/249587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "141" }
Q: Programmatically raise user privileges I have been maintaining an installation for a while but I am not really an expert. now I've been asked to come up with a solution for this: Our software is always sold together with a computer as it has to be run in a very controlled environment. The installer needs administrat...
{ "language": "en", "url": "https://stackoverflow.com/questions/249597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VC++ linker errors on std::exception::_Raise and std::exception::exception I am using Visual C++ 2005 Express Edition and get the following linker errors: 19>mylib1.lib(mylibsource1.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::exception::_Raise(void)const " (__...
{ "language": "en", "url": "https://stackoverflow.com/questions/249607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WPF visual state manager in Blend 2 sp1 Can anyone explain to me how to get the visual state manager to work with a WPF application? It's just been added to the new wpftoolkit. I installed it as told, but even the sample doesn't show the VSM. In silverlight it work, but not in WPF. If installed the latest Blend 2 an...
{ "language": "en", "url": "https://stackoverflow.com/questions/249618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to get started on Aspect Oriented Programming on the .Net platform? Please give me some insight on how to get the best start on applying Aspect Oriented Programming to my C#.net applications? A: PostSharp has the added advantage that it does it's AOP by doing IL weaving. In fact it adds code to the Il when/or j...
{ "language": "en", "url": "https://stackoverflow.com/questions/249631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the time complexity of this Scheme exponentiation function? What is the time complexity? Why? (define (mult a b) (define (internal a accum) (if (= a 1) accum (internal (- a 1) (+ accum b)))) (internal a b)) (define (to-the-power-of m n) (define (internal x accum) (if (=...
{ "language": "en", "url": "https://stackoverflow.com/questions/249632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What happens to an applet when browser is closed? Let's suppose I have an applet running within a page in a browser. What happens when the browser is closed by the user? Is the applet notified so that it can perform some kind of close action on its side (closing connections opened to a server, cleaning static variab...
{ "language": "en", "url": "https://stackoverflow.com/questions/249637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Changing Output path of the Unit Test project in Visual Studio 2008 I changed the output path of the test project, because the default path doesn't conform to our projects directory structure. After I did that, Visual Studio 2008 fails to run the tests, because it can't find the Unit Test project assembly. What else...
{ "language": "en", "url": "https://stackoverflow.com/questions/249647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "Application" global variable not recognized I work on a large project in Delphi 5. Today, after merging two branches of the app together, one of the hundreds of units, UnitMain (the main form's unit, would you guess) stopped recognizing the Application global. This is a rather bizarre problem - I could get the prog...
{ "language": "en", "url": "https://stackoverflow.com/questions/249655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I copy built artifact to a directory on remote Windows server in maven deploy phase? could someone provide working example (full maven plugin configuration) how to copy built jar file to a specific server(s) at the time of deploy phase? I have tried to look at wagon plugin, but it is hugely undocumented and I...
{ "language": "en", "url": "https://stackoverflow.com/questions/249657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best practices to test protected methods with PHPUnit I found the discussion on Do you test private method informative. I have decided, that in some classes, I want to have protected methods, but test them. Some of these methods are static and short. Because most of the public methods make use of them, I will probab...
{ "language": "en", "url": "https://stackoverflow.com/questions/249664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "342" }
Q: Flatten a recordset in SQL Server? Say you get a recordset like the following: | ID | Foo | Bar | Red | |-----|------|------|------| | 1 | 100 | NULL | NULL | | 1 | NULL | 200 | NULL | | 1 | NULL | NULL | 300 | | 2 | 400 | NULL | NULL | | ... | ... | ... | ... | -- etc. And you want: | ID | Foo ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing the Foreground colour of a contentpresenter in a listbox I have created the following style for a listbox that will have an image displayed next to some text: <Style x:Key="ImageListBoxStyle" TargetType="{x:Type ListBox}"> <Setter Property="SnapsToDevicePixels" Value="true"/> <Setter Property="Borde...
{ "language": "en", "url": "https://stackoverflow.com/questions/249671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Reporting server: Server Error in '/Reports' Application I am trying to setup SQL Reporting services on windows vista, iis7 but I keep getting this error when I try http://localhost/Reports/Pages/Folder.aspx Server Error in '/Reports' Application. Request is not available in this context Description: An unhandled ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to avoid SQL injection on MSSQL Server from C# code using Linq? What is the best way to avoid SQL injection on MSSQL Server from C# code using Linq? Should you use a function to strip of security issues or is it handled by the framework? A: Errr, you cant SQL inject using LINQ. Behind the scenes LINQ to SQ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQuery won't parse my JSON from AJAX query I'm having difficulty parsing some JSON data returned from my server using jQuery.ajax() To perform the AJAX I'm using: $.ajax({ url: myUrl, cache: false, dataType: "json", success: function(data){ ... }, error: function(e, xhr){ ... } }); And if I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: Why aren't my compile guards preventing multiple definition inclusions? I have a header file x.h which is included by more than one *.c source files. This header file has some structure variables defined. I have put multiple inclusion prevention guard at the beginning of the header file as: #ifndef X_H #define X_H ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "64" }
Q: How can a process intercept stdout and stderr of another process on Linux? I have some scripts that ought to have stopped running but hang around forever. Is there some way I can figure out what they're writing to STDOUT and STDERR in a readable way? I tried, for example, to do: $ tail -f /proc/(pid)/fd/1 but that...
{ "language": "en", "url": "https://stackoverflow.com/questions/249703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Verify sorting in Selenium Has anyone tested sorting with Selenium? I'd like to verify that sorting a table in different ways work (a-z, z-a, state, date, etc.). Any help would be very much appreciated. /Göran A: Before checking it with selenium, You have to do small thing. Store the table values(which comes after ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Run command when bash script is stopped How can i, in a bash script, execute a command when the user stops the script (with ctrl - c)? Currently, i have this: afplay file.mp3 while true: do osascript -e "set volume 10" end But i would like it to execute killall afplay when the user is finished with it, regardless ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Alpha Software v 9 I am not a 'programmer' but want to develop a database application using Alpha Software Platinum v 9. The app would allow users to list classified ads via a web site and browse for items being sold etc. Does anyone have experience with Alpha software and is it really as easy they state on their ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accelerate 2D images in Java *without* disturbing JMenus Already implemented performance boosters : - Get compatible image of GraphicsConfiguration to draw on - Enable OpenGL pipeline in 1.5: Not possible due to severe artifacts So far I am fine, the main profiled bottleneck of the program is drawing an image with s...
{ "language": "en", "url": "https://stackoverflow.com/questions/249718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Efficient way to recursively calculate dominator tree? I'm using the Lengauer and Tarjan algorithm with path compression to calculate the dominator tree for a graph where there are millions of nodes. The algorithm is quite complex and I have to admit I haven't taken the time to fully understand it, I'm just using it...
{ "language": "en", "url": "https://stackoverflow.com/questions/249720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to convert DateTime from JSON to C#? Possible Duplicate: How to convert UNIX timestamp to DateTime and vice versa? I've got the following class: [DataContractAttribute] public class TestClass { [DataMemberAttribute] public DateTime MyDateTime { get; set; } } Here's the JSON: { "MyDateTime":"1221818565" }...
{ "language": "en", "url": "https://stackoverflow.com/questions/249721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How do I remove items from the Site Actions menu in SharePoint? How can I customise the Site Actions menu to remove or rename 'standard' menu items? Where are the site actions menu items defined? A: The site actions menu is defined in the Siteaction.xml in Template\layouts\editingMenu under the 12 hive. The follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/249724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sorting list of URLs by length in Jython I am writing a Jython script to sort a list of URLs. I have a list that looks like this: http://www.domain.com/folder1/folder2/|,1 http://www.domain.com/folder1/|,1 http://www.domain.com/folder1/folder2/folder3/|,1 http://www.domain.com/folder1/|,1 http://www.domain.com/folde...
{ "language": "en", "url": "https://stackoverflow.com/questions/249729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to deploy and debug PocketPC applications in the SDK emulators without using ActiveSync? Im currently working on a PPC application that I would like to test in the PPC emulator "USA Windows mobile 5.0 PC R2 Emulator" without using Active Sync. Somewhere in my back head I think I have been able to just...
{ "language": "en", "url": "https://stackoverflow.com/questions/249747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the application design aspects to be considered when developing a Multi-Tier, High Availability web application? The application is planned to be built using ASP.NET, .NET Remoting & MS SQL Server. High availability is required at presentation layer, application layer and database. Does IIS 7.0 provide any ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I convert a Unix timestamp to DateTime and vice versa? There is this example code, but then it starts talking about millisecond / nanosecond problems. The same question is on MSDN, Seconds since the Unix epoch in C#. This is what I've got so far: public Double CreatedEpoch { get { DateTime epoch = ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/249760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "948" }
Q: How to get my Web Service response XML to validate in Liquid XML Studio? Web Service code (ASP.NET 2.0): [WebMethod] [return: XmlElement("TestMe")] public string TestMe(int value) { return value.ToString(); } The will result in this response: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/249761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to determine if a directory is on same partition Say I have an input file, and a target directory. How do I determine if the input file is on the same hard-drive (or partition) as the target directory? What I want to do is the copy a file if it's on a different, but move it if it's the same. For example: target_...
{ "language": "en", "url": "https://stackoverflow.com/questions/249775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: DataGridView sort and e.g. BindingList in .NET I'm using a BindingList<T> in my Windows Forms that contains a list of "IComparable<Contact>" Contact-objects. Now I'd like the user to be able to sort by any column displayed in the grid. There is a way described on MSDN online which shows how to implement a custom col...
{ "language": "en", "url": "https://stackoverflow.com/questions/249779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Align element under other element through css I have a really simple search form with the following * *Label ("Search") *Textbox (fixed width) *Submit button *"Advanced" link Label, textbox and submit are all on one horizontal line and centered. Now I would like my advanced link to be under the submit button...
{ "language": "en", "url": "https://stackoverflow.com/questions/249780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OS X: Determine Trash location for a given path Simply moving the file to ~/.Trash/ will not work, as if the file os on an external drive, it will move the file to the main system drive.. Also, there are other conditions, like files on external drives get moved to /Volumes/.Trash/501/ (or whatever the current user's...
{ "language": "en", "url": "https://stackoverflow.com/questions/249785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fix possible db corruption? I'm at a client doing some quick fixes to their access application. It was a while I had a go with access, but I'm recovering quickly. However, I've discovered an interesting problem: For some reports, I get a "Record is deleted" error. I've checked the reports, and it seems like t...
{ "language": "en", "url": "https://stackoverflow.com/questions/249786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sharing Files in SVN I am in the process of moving from VSS to SVN and I'm not sure how to share files in SVN. Basically we have the following structure in VSS $MOSS - Components - ComponentA - bin - ComponentB - bin - GAC Mirror GAC Mirror holds a shared copy of all the Dlls from the bin fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/249787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Regex for quoted string with escaping quotes How do I get the substring " It's big \"problem " using a regular expression? s = ' function(){ return " It\'s big \"problem "; }'; A: "(?:\\"|.)*?" Alternating the \" and the . passes over escaped quotes while the lazy quantifier *? ensures that you don't go ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "157" }
Q: How to Round a Time in T-SQL I'me looking for a function that would receive a time and would round it to the next/previous hour / half-hour / quarter / minute. A: Very nice thanks. I used it in-line to round to 15 minutes convert(smalldatetime,ROUND(cast(TDatalog.Time as float) * (24/.25),0)/(24/.25)) AS RoundedTim...
{ "language": "en", "url": "https://stackoverflow.com/questions/249794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How to I dynamically set the expiry time for a cookie-based session in Rails I'm currently using the ActiveRecord-based session store for my Rails app and I have a background process which clears out inactive sessions every 30 minutes. I'd like to switch to Rails' new cookie-based session store but how do I set the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Should I expect problems when communicating via RMI between Java5 and Java6? Basically the subject says it all: We have a couple of components running on Java 5, they're talking to each other via RMI. Should we expect any problems, if we move some of them to Java6? By moving I mean compiling them with -source/target...
{ "language": "en", "url": "https://stackoverflow.com/questions/249798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: using system.thread.threadpool in powershell I am after a example of some code in powershell using the threadpool. my friends at google can not help me. Any example would be great. Donald A: From my experience, using the threadpool in V1 crashes the session. There is a blog post here about creating threads and incl...
{ "language": "en", "url": "https://stackoverflow.com/questions/249809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Bulk Translation Of Table Contents I'm currently performing a migration operation from a legacy database. I need to perform migration of millions of originating rows, breaking the original content apart into multiple destination parent / child rows. As it's not a simple 1 to 1 migration and the the resulting rows a...
{ "language": "en", "url": "https://stackoverflow.com/questions/249818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I avoid multiple CASTs in sql query? I have the following sql query for transforming data but is it possible to save the value of the int in some variable to avoid casting multiple times? update prospekts set sni_kod = case when cast(sni_kod as int) >= 1000 and cast(sni_kod as int) <= 1499 or cast(...
{ "language": "en", "url": "https://stackoverflow.com/questions/249819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: create a balloon popup in taskbar using javascript I need to create a function that will produce a balloon popup in the taskbar using javascript. Is it possible? Whats the shortest and easiest way to do this? or else what will be the available method.. Thanks. A: The closest you could get is to make one fixed to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are there C++ free and fast (maybe standalone) refactoring tools for Windows? At the moment I am working in a pretty big project and I have been been asked to refactor some old code. Most of the refactoring is setting apart a big class into smaller components and functions. I've searched and seen some other question...
{ "language": "en", "url": "https://stackoverflow.com/questions/249827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do you test private methods with NUnit? I am wondering how to use NUnit correctly. First, I created a separate test project that uses my main project as reference. But in that case, I am not able to test private methods. My guess was that I need to include my test code into my main code?! - That doesn't seem to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/249847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "121" }
Q: -[UITextField isFirstResponder] returns false even though field is currently editing In my view controller's -viewDidLoad method, I call [myTextField becomeFirstResponder]; This works like a charm, opens the keyboard and myTextField gets focus. I have a button with a target action (the action is in the same control...
{ "language": "en", "url": "https://stackoverflow.com/questions/249849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: System.UnauthorizedAccessException when running a test in VS2008 When I run selenium tests (written as nunit tests) from VS2008 I am getting: System.UnauthorizedAccessException : Access to the path /bin/Debug is denied. The test is trying to read an entry in App.Config. This file is copied to bin/Debug during com...
{ "language": "en", "url": "https://stackoverflow.com/questions/249851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Restrict adding control on Panel How can i restrict adding controls in Panel in C# window controls? I have to restrict user to add controls in a panel at design time. A: If you want to limit the types of controls or number of controls one can add to the panel you can make your own subclass of the panel and check th...
{ "language": "en", "url": "https://stackoverflow.com/questions/249860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What could cause an ORA-00936 - Missing Expression with the following sql? We're seeing the error message ORA-00936 Missing Expression for the following SQL: Note that this is just a cut-down version of a much bigger SQL so rewriting it to a inner join or similar is not really in the scope of this: This is the SQL t...
{ "language": "en", "url": "https://stackoverflow.com/questions/249865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why doesn't my Path show up when I programmatically add segments to the path in Silverlight 2? I'm creating a Path in Silverlight, and adding elements to it on mouse events. But, although the elements are there in memory, the screen doesn't get updated until something else causes a screen repaint to happen. Here's t...
{ "language": "en", "url": "https://stackoverflow.com/questions/249866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Synchronising twice on the same object? I was wondering if in Java I would get any odd behaviour if I synchronise twice on the same object? The scenario is as follows pulbic class SillyClassName { object moo; ... public void method1(){ synchronized(moo) { .... met...
{ "language": "en", "url": "https://stackoverflow.com/questions/249867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: How do I tell for a php page if someone came by POST or GET? I'd like to have a page in php that normally displays information based on the GET request sent to it. However, I'd like for it to also be able to process certain POST requests. So, how can I tell if any data was sent by POST so I can act on it? A: If you...
{ "language": "en", "url": "https://stackoverflow.com/questions/249868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Creating a REST client API I'm currently looking into options for creating a client API for a RESTfull application. Up until now we have had WCF services to allow all application to connect to the Business Layer and we're growing dissatisfied with it. We already have most of the infrastructure in place for the web (...
{ "language": "en", "url": "https://stackoverflow.com/questions/249874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why MSI CustomAction that sets a reg key needs to be deffered on Vista with UAC? We have a CustomAction that sets some registry key HKEY LOCAL_MACHINE. This wasn't working on Vista with UAC, until we made the action "deferred". The installer worked in other cases. Anyone knows why? We are using WIX to create the ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/249876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }