text
stringlengths
8
267k
meta
dict
Q: getElementsByClassName doesn't work properly at Element nodes Possible Duplicate: getElementsByClassName returns [] instead of asynchronous appended node I face the following problem: <div class="testA" id="test1"> <div class="colorSelector" id="0-0"> <div class="gbSelector" id="1-0"> <ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tricky associative arrays in CodeIgniter I'm trying to make a bar chart for a mobile devices that submit data. Every minute, each mobile device sends a packet of data to the web server - where it's then stored in a MySQL database. Each mobile device is assigned an IP addresses, and each IP address can send data mu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get db path outside of web app folder on server using Asp.Net I published a web app to a server and I would like to access a database file (.mdb) that is also stored on the server in a different location outside of mine. How can I do this in the web.config file of my Asp.Net app? <add name="MyOleDbConnection" connec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where could I find UML diagrams of an open source project? I'm going to start a project for my software engineering course, and I have to do a relatively hard one, something like a browser. Of course I'm not going to build a complete browser from scratch in 4 monthes, but in the first phases I have to give my analyz...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ListView scroll control - scroll to bottom if user isn't scrolling? I have a .NET 3.5 WinForm that has a ListView with the View set in Details mode. It functions as a scrollable list of status items on a long background task. I have the most recent ListViewItem (status entry) added to the bottom. To assure that it i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Rails 3.1 adding an object to an array returned by find_by_sql / can't show in erb file I'm porting a php app to rails so I have a set of sql statements that I'm converting to find_by_sql's. I see that it returns a collection of objects of the type that I called on it. What I'd like to do is then iterate through th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Version Control as a Web Application Couldnt find a Version Control system that I could simply install as a web application on a shared hosting provider. I wish for a simple REST based web application in PHP/Ruby with a backend of MySQL (or something). Simply use GET and PUT to check-in check-out files. * *http...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C - Strange Prototype Argument What's going on in this function prototype? Obviously the void parameter with some sort of typecasting is confusing... int *my_func(my_struct *m, void (*m_op)(my_struct *v, void arg)); A: The second argument to the function my_func is a pointer to a function that returns no value (vo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Request dialog multiple friends I saw this on "Sims Social" , wondering how they do that : screenshot A: It's just the standard app request dialog. You can read about it in the developer documentation for dialogs.
{ "language": "en", "url": "https://stackoverflow.com/questions/7613637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: return null with query string whtn i use ajax-jquery this is my jquery code: <script type="text/javascript"> $(document).ready(function () { $("a").hover(function () { $.ajax({ type: "POST", url:"Dbread.aspx", data: "name=salam", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to override style inheritance? Q: How can I override the font size for custom table classes so that they don't pick up the inherited value? table { font-size: 1.09em; /* other stuff... */ } table.order { font-size: 0.75 em; /* font isn't getting set....it's picking up the 1.09em from the above ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create custom data types in SQL Server 2008? I'm trying to create an unsigned short data type in SQL Server, but so far all I've managed is to get it to not allow any negative values, which wastes half of my storage space. There should be some way to create a custom data type where I manage it myself. I'd lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where can I download AjaxControlToolkit 4.1.50927? I was lead here: http://nuget.org/List/Packages/AjaxControlToolkit/4.1.50927 but I can find no download links. Where can I download this? I've already downloaded NuGet. Now what? A: Nevermind. Once you install NuGet and it becomes integrated into VS2010, you ri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implementing SkipListener to write invalid records to a flat file I am working on setting a spring batch job that does the conventional READ > PROCESS > WRITE operation. However, I am trying to implement a listener which would capture records that are conisdered invalid during the PROCESS phase and write it out to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Real-life examples of Generic Methods in .NET and ASP. NET MVC Could give me some reasonable real-life examples of Generic Methods in .NET for some simple desktop application? Which the scenarios are there available? Thank you! A: The most commonly used generic methods are probably the extension methods in Enume...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove ThreadContext Properties I have set the ThreadContext.Properties and need to update its value during the life-cycle of my code. In the past I have used log4j MDC and had to: MDC.remove(TRACKING); and then add another value by: MDC.put(TRACKING, trackingIdStr); Now that I am using Log4Net, our app uses Proper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: mongodb and sql for document versioning system I'm a computer engineer student and i've got a basically simple assignment but i'd like to make it a little more interesting :). Basically I have to create a simple multiuser, online document versioning system using Java or .NET. Because I'm more a .NET guy I'm gonna us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: COUNT (DISTINCT column_name) Discrepancy vs. COUNT (column_name) in SQL Server 2008? I'm running into a problem that's driving me nuts. When running the query below, I get a count of 233,769 SELECT COUNT(distinct Member_List_Link.UserID) FROM Member_List_Link with (nolock) INNER JOIN MasterMembers with (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: jQuery - Slide down div I have a table cell and what I want is that if the user clicks on the table cell a div collapses (div is in another table cell). $(function slideDown(id) { $("getdiv"+id).fadeIn(); }); The table row (hover function): <tr class="odd" id="div96" onhover="slideDown(96)"><td>ZZZn ZZZ</td></t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Change registry settings for all users I am writing a small program using C# that needs to set set the power settings for all users. This means I will need to change the Hkey Current User, and all the profiles under the Hkey Users hive. I know how to change the power settings registry keys, but I do not know how...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Which boost macro would allow me to do insert variable number of statements in the program Suppose I want to achieve the following example effect : if (i) j--; Now I want to insert that line in my program as many times as I want repeatedly. If I wanted to insert that statement 1000 times then I'd have to copy past...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Breaking out of a JavaScript for statement from within an if statement This is what I want to do: cycle through a complex data structure and if one of the elements meets some condition, return it. But I don't think it's possible to return from within an 'if' that's within my for loop. What's the best practice? Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to implement datcontext per request/thread using factory pattern Using this sample project as a guideline, I am setting up a new project. My project will follow the same basic architecture, only in addition to an mvc project, I will also have a wcf web service project(or possibly servicestack.net) Instead of us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to unit test for backward and forward compatibility? I am working on developing an Plug-In API that uses Java serialization. The idea is similar to SmallTalk's system images. I was wondering how would to best to automate testing for whether changes I am making will break deserialization since some changes seem t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Implementing an interface then calling the Initialize() function this wont be easy to explain clearly but here goes... i have something that works fine in VB but not in C#. i have 2 classes, each class implements a different interface. each interface exposes an Initialize() function that should get called automatica...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Not being able to add a textView to LinearLayout through code I am a beginner of android, and was studying the layout. What i am trying to do is i am trying to add a textView to a LinearLayout through code, and the application stops with the error that the application has stopped unexpectedly. The code is: setCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Text renders inconsistently in Safari (5.0.5) I'm having a hard time resolving this. I'm working on http://movingwineforward.com, but it renders text inconsistently, as you can see in this screenshot: When the page loads, the text in the main menu looks thin (left), and is consistent with every other OS and Browse...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HttpPost Iphone Versus Android 1)On Iphone, - (void) postData:(NSMutableData *)_body withAction:(NSString *)_action binary:(BOOL)_binary { [self stopProcess]; binary = _binary; NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease]; NSString *url = [NSString stringWithFor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Button at Bottom Im not very good in creating android layouts so I am not able to align the button to the bottom in the MainView. Picture: Layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="wrap_content" xmlns:a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I use dirname with PHP on IIS? I have a php program that uses: include (dirname(__FILE__) . "/../src/adLDAP.php"); but when I run it it comes out: C:\inetpub\wwwroot\testphp/../src/adLDAP.php Fatal error: Class 'adLDAP' not found in C:\inetpub\wwwroot\testphp\examples.php on line 12 How do I get the pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Formatting text within UILabel differently I'd like different words in a UILabel to be different colors. Does this mean each word will need to be a different UILabel? I'm guessing yes, though sure would be nice to just put color codes in the label somehow, you know? I guess I'm a bit spoiled by text markup in HTML. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a pure CSS way to have a bar stay on the same place? Similar to some Facebook feature, like the Chat link, that stays constantly at the same place of the page, regardless if you scroll. Is there a simple pure CSS way to achieve this? Here is a very simplistic HTML: <div id='constant-bar'> some background so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wait for random amount of time, then start updating elapsed time in a UILabel (iPhone) I'm trying to implement a button that starts a timer after a random period of time (between 0-10s). While the timer is running it should update a label every 0.005s to show how much time has elapsed. The problem i'm having is 2-fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NMEA sentences - PGLOR, GNGSA and QZGSA I'm writing an Android app that reads and parses NMEA sentences from GPS receiver and using a Nexus S phone for tests. I'm getting GPGGA, GPGSV, GPGSA and GPRMC sentences that are pretty common and very well documented, but in addition, I'm getting next sentences and I'cant fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Determining Pending Finalizer Sources I'm coming into a project that has a known issue. The application hangs on a call to GC.WaitForPendingFinalizers. The obvious solution workaround is to remove the WaitForPendingFinalizers call but unfortunately this is being done for us in a third-party assembly, so removal is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to make a URL in JavaSctipt I currently have this JavaScript: new_string = "<p>Problem name: <a href=\"http://www.problemio.com/problems/problem.php?problem_id=\" + problem_id + ">" + title + "</a></p>"; Where the title and problem_id are variables with a string and an id respectively. How should I approach quo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Memory & Handle Leaks in my ServiceHost I've got a ServiceHost in a service app that communicates with 1700 clients every 60 second. When I start the service, it climbs to about 1500 open handles almost immediately, then continues to add another 300 after about 5 minutes (and continues onward continuously after that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: External (CDN hosted) image request URL rewritten in IE8 on canvas page over https, asks for proxy.php I have a canvas-based app on Facebook wit a lot of images to load, so I'm creating them in JavaScript. var img = new Image(); img.src = document.location.protocol + '//example.cloudfront.net/example_path/example.p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does a false assertion in async test in GHUnit crash the app instead of just failing the test? This question has very few views and no answers yet. If you have a suggestion what to change about this question to get more eyeballs, I'd be happy to hear them. Cheers! I'm using GHAsyncTestCase to test a custom NSOpe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Defining Custom iOS Keyboard Key Variant ~ f/w 4.x+ Some Keys on the iOS keyboard, when pressed and held for a second or so, revile Variants to the character being selected (see link) http://i.stack.imgur.com/4Hh4t.jpg I'm curious to know if there is a certain way to add/remove to these variants - of course with Jai...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: module module class vs. module module::class in Ruby What is the difference between module MyModule module MySubModule class MySubModuleClass ... end end end and module MyModule class MySubModule::MySubModuleClass ... end end in Ruby? A: On the second example you are defining a class, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Drupal - Use existing cck fields in a CCK selectable list field This is for Drupal 6. Field display weights (per node) would solve this problem in Drupal 7, but no back port exists currently for 6. I have a series of node reference fields for a variety of multi-media content on my site that I would like to be able t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: registerDefaults to save a number i created a simple project, with a "+" and "-" buttons that increase or decrease a number inside a label. I wanted to test the registerDefaults method, but if i click on the "home" button, and come back on the project from the simulator (with my app's icon), the number is still the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which is easier, write a Custom OData uri parser or a custom IQueryable provider? I'm wanting to create an OData service that returns data from multiple sources. For this reason I cannot use WCF Data Services with any of the out-of-box providers, plus we really want more control over the data model. I see we have tw...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Iterating through Struct members Lets say we have a struct Struct myStruct { int var1; int var2; string var3; . . } Is it possible to to iterate through the structure's members by maybe using foreach? I have read some things on reflection, but I am not sure how to apply that here. There are about 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: PostgreSQL: top n entries per item in same table | uId | title | amount | makers | widgets | 1 richard 998 xcorp sprocket 2 swiss 995 ycorp framitz 3 ricky 90 zcorp flobber 4 ricky2 798 xcorp framitz 1 lilr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to calculate the area of a layer in centimeters using photoshop I want to calculate the size of a layer area in centimeters using photoshop. Is there any tool to do so rather than the ruler? The layer I need to calculate the size of its area doesn't have a proper shape. Thanks in advance A: Make a selection and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MongoDB sort by subdocument count I have a document which looks something like: { "_id" : ObjectId("4e84f78b26d2046d5d00b5b2"), "parent_id" : 0, "ratings" : [ "20716", "78167" ], "text" : "test" } Is it possible to sort by the count of "ratings...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is this technique to resize the images proportionally used by google chrome new tab? I saw this code in Google Chrome Beta version's new tab where it show the icon if installed tabs. They are using any technique to resize the images. this is html of a icon <div class="app-img-container launch-click-target" tit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: jQuery closest behaviour in IE very slow I have a table with 5000 rows. In each row I have an html element. myElementList is the list of those elements. Now I need to select all the tr's of these elements. I am using the following code. myElementList.closest('tr'); This work great in FF. But when I run the same in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Callback function for JSONP with jQuery AJAX I didn't quite understand how to work with the callback for the ajax function of jQuery. I have the following code in the JavaScript: try { $.ajax({ url: 'http://url.of.my.server/submit?callback=?', cache: false, type: 'POST', data: $("...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Get variables show up in sub-sub directory rewrites, .htaccess, mod_rewrite Here is my .htaccess: Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteCond %{REQUEST_FILENAME} -d RewriteRule ([^/]+/.*) index.php?dir=%{REQUEST_URI} The htaccess lives in test.com/main/.htaccess I can access te...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: pop up when back arrow hit on IE, using javascript I created a button using javascript, which upon hitting would use the history.go(-1) JavaScript function and also pop up a window. hitting the back button on IE already has the built in feature of going back one step into the history, but I also need the pop up to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Traffic Performance Testing Webpages Under Specified Conditions As the title implies, I would like to be able to simulate traffic to a collection of webpages that I have created for loadbalancing and bottleneck issues. I would like to mimic typical HTTP requests relative to the upload/download speed of the user. Fur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using PHP $_COOKIE to manage session vars Due to server settings I am having to use $_COOKIE instead of $_SESSION to manage session vars for a project. On my search form I set an initial cookie but am unclear whether this is helpful or needed? setcookie('NOSG', 'oHai', time()+7200, '/', 'some.org'); Each time the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I use TADOQuery.Parameters with integer parameter types that have to be put in two or more places in a query? I have a complex query that contains more than one place where the same primary key value must be substituted. It looks like this: select Foo.Id, Foo.BearBaitId, Foo.LinkType, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: link color is stuck on active (blue) Hihi, I have a problem with three links in the same div... the ugly default blue link color is blocking the assigned font-color to take over URL: http://nicejob.is/clients/pizzahollin/www/menu.htm Any help would be nice - typical it´s just a typo but I´ve tried everything A: At ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to edit the implode so it will join values with two strings? In the function below a possible output maybe 1 day and 2 hours and 34 minutes My question is how do I edit the implode so it will output 1 day, 2 houts and 34 minutes This is my function function time_difference($endtime){ $hours = (int)date("...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: running Mathematica remotely on macs Here is what I want to do: I want to run Mathematica on another Mac from my Mac (both Snow Leopards). I want to do this because the remote Mac has multiple cores/processors while my local Mac is rather shabby. I would like to have the front end still locally (i.e. the graphical ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check if a user installed the app? I have an app on facebook, which is kind of a competition between users. Each user gains points and the one with most points wins. I keep the IDs of the users in a table in my database. When a user enters the app, there's a script that checks if he is already in the table, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Data Mining situation Suppose I have the data as mentioned below. 11AM user1 Brush 11:05AM user1 Prep Brakfast 11:10AM user1 eat Breakfast 11:15AM user1 Take bath 11:30AM user1 Leave for office 12PM user2 Brush 12:05PM user2 Prep Brakfast 12:10PM user2 eat Breakfast 12:15PM user2 Take bath 12:30PM user2 Leave for of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Creating an Html.ActionLink to a dynamic content page I have functionality on my site to create/edit/delete pages for the front end. Here's my controller: namespace MySite.Controllers { public class ContentPagesController : Controller { readonly IContentPagesRepository _contentPagesRepository; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to submit file, loop only over form elements having name in jqgrid How to implement file upload in jqGrid using dataProxy from http://jqgrid-php.net below? Running code below causes exception Unable to get value of the property 'removeAttr': object is null or undefined at line $(this).data('name', $(this).att...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Binding to Class Item This seems like it should be really basic but I can't seemto get it working. I have a class file called XMLSource as follows: Public Class XMLSource Public Shared BrandItems As New MediaItems Public Class MediaItems Inherits ObservableCollection(Of MediaObject) Implem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PKCS#11 TLS Authentication I am new to PKCS#11 and Common Access Cards but as I understand it, on the card you have the certificates(s) that can be extracted and the private key(s) that can't. I am trying to write an app that communicates with a web server that requires certificates for authentication. The PKCS libr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tetrahedralization visualization Octave Hi does anyone know how to visualize the tetrahedrons in the output of the delaunay3() function in Octave? http://www.obihiro.ac.jp/~suzukim/masuda/octave/html3/octave_151.html In MATLAB this visualization is done with the tetramesh() function but Octave does not have this fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to delete CallLogs from blackberry Device Programatically I use 'CallLogs.deleteCall(position,FolderType);' But it can't delete the record. Please help me to solve this problem. PhoneLogs _logs = PhoneLogs.getInstance(); int len = _logs.numberOfCalls(_logs.FOLDER_NORMAL_CALLS); for (int i = 0; i < len; i++) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Difference between console and winforms applications when running from cmd I have a winforms application that sometimes used from the command line. Here is the code (simplified of course): [STAThread] static void Main() { AttachConsole(ATTACH_PARENT_PROCESS); Console.WriteLine("Hello"); /*Application.En...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: merge changes in a single file from multiple branches I have a git repo with two divergent branches, production and v2. I'm working on a third branch with a collaborator that we're merging into called prod-merge. The idea is that v2 has a ton of feature updates and production was a series of bug fixes/patches. So n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Windows Installer from .Net 2.0 Custom Action to .Net 4.0 Custom Action - BadImageFormatException I'm having a problem with an application that I recently upgraded from .Net 2.0 to .Net 4.0. During installation, the custom action starts to execute and throws an error. === Logging started: 9/30/2011 2:34:09 === Err...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "bundle install" fails when setting :git path in Gemfile I want to update one of my gems from the master source branch instead of from a gem repo. So I put this in my Gemfile: gem "prawn", :git => "https://github.com/sandal/prawn.git" However, now when I run: bundle install or: bundle update I get: Updating https...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: awkward DLL exports section I have a section of C++ code in MSVC2010 that creates a DLL wrapper. The section of code looks something like this... extern "C" __declspec(dllexport) DWORD myDllExportFunction() { return (DWORD)SomeFunction(SomeParameter); } or... _declspec(dllexport) int64 _stdcall myDllExportFunc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Bizarre XML access behavior in .NET WebBrowser between Action Script 2 and Action Script 3 I'd started a discussion about a problem with a SWF file not loading an XML data file when rendered in a .NET WebBrowser control (see here) Further investigation has revealed that if the XML data file is loaded using Action Sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to compare two NSSets based on attributes of objects? I have two nssets. nsset1: person.id = 1, person.id = 2, person.id = 3 nsset2: person.id = 1, person.id = 2 Results should be: nsset1 - nsset2: person (with id 3) nsset2 - nsset1: null These objects with the same id in those two sets are different objects, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: one-to-many relationship with table having composite key This is the full code for mapping of the tables I am doing. But dont know why I am getting java heap space error. I am using Jboss server and the exact error message is java.lang.OutOfMemoryError: Java heap space. package com.mercer.chat.app.dataobject; impo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to read an Excel spreadsheet in c# quickly I am using Microsoft.Office.Interop.Excel to read a spreadsheet that is open in memory. gXlWs = (Microsoft.Office.Interop.Excel.Worksheet)gXlApp.ActiveWorkbook.ActiveSheet; int NumCols = 7; string[] Fields = new string[NumCols]; string input = null; int NumRow = 2; whil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Facebook Credits on an external website I tryed the sample code found here: https://developers.facebook.com/docs/creditsapi/ Even if i added my company address & payment, i still get this error: API Error Code: 1151 API Error Description: Sorry, but this app may not be eligible to accept Facebook Credits. If this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iOS Animate Dashed Rectangle Border I have a UIImageView displaying an image. I want to "highlight" a portion of the image by drawing a rounded rectangle outline. I would like to have the outline drawn with a thick, dashed line that "animates" by continually varying where the "beginning" of the line starts. I though...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: android memory usage and heap usage when I look at my application in a memory utility (like Memory Usage app), it shows my application using 33MB of memory. If while debugging my app, I go into DDMS and look at the heap, it's taking 4MB. So at this point, I'm wondering where the other 29MB is being chewed up by. Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Stored Procedure - Search an array of strings in a field and display the count of occurrences In our case, we're restricted to SQL Server 2000. Say we have a table "Articles" with a field "ArticleText". How do we search a string consisted of many words, and return the number of found occurrences. An example of a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XSLT Add target="_blank" to a URL I've created an XSLT file that runs through a SharePoint list to generate a table of resources. One part of it creates a link that goes off site. I'm wanting to have it open in a new window using target="_blank", but I'm unsure of how to do this in the XSLT. Here's the portion that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Youtube dimensions wordpress Is it possible to change the default embed dimensions of an youtube (or another video) in Wordpress for your current theme? I've searched for a plugin and some code, but I can't seem to find any. What I mean is the default embed size used when you just paste an youtube url in an post or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Does cascade="all-delete-orphan" have any meaning in a Hibernate unidirectional many-to-many association with a join table? I have two objects which form a parent-child relationship which have a many-to-many relationship. Following the recommendations in the Hibernate reference manual, I have mapped this using a joi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Existing Linux Module Symbol I am porting a Linux module (PageMgrMod) to a more recent kernel, but now the functions are not visible to other modules. For example, loading a module that uses PageMgrMod gives the error no symbol version for init_pgmgr Unknown symbol init_pgmgr But reading /proc/kallsyms show...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Display last modified time of JavaScript file I am developing a webapp and the browser doesn't consistently empty the cache each time I refresh, so sometimes I'm not getting the latest version of my JavaScript file loaded. I would like to have a console message indicating if I'm using the latest version of the JavaS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to call any url from aspx page? I have one .aspx page and inside that page I want to call third party url and I should include the content from that url. I can achive this by using iframe but i am restricted to not to use iframe. Ex: <body> my content ...... .................. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Builtin DropActivityHere Designer? I've noticed the System.Activities.Core.Presentation assembly contains several designers, and I've found them to be quite useful for re-usability. I've now found myself creating activities that need to say "Drop activity here" (they accept a child activity). This is seen all ove...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: common variable for log4j.xml configuration I have log4j.xml configuration like this: <appender name="MyAppender"class="org.apache.log4j.DailyRollingFileAppender"> <param name="File" value="/logs/custom/my.log"/> ... </appender> However the root directory of my file are the same for a lot of appender...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Allow plus sign in URL with MVC 3 I need to be able to allow the "+" sign for certain actions in a controller. I am building a tag filtering engine that allows something like this (ie. stackoverflow) : /Stuff/Tagged/tag-name-1+tag-name-2+other-tag I know I can set allowDoubleEscaping="true" in the web.config, but it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can't DSolve two-body problem using Mathematica? EDIT: @auxsvr is correct that I had the force equations wrong, and about the -3/2 exponent. Another way to see this it to simply to 2 dimensions and consider a force acting from the origin, proportional to 1/r^2 just like gravity, where r is the distance from the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: fatal error LNK1104: cannot open file 'd3dc9.lib' I'm currently going though a game programming book and am trying to compile some directx9 code I have the latests DirectX11 SDK and the code has these lines of code #pragma comment(lib,"d3d9.lib") #pragma comment(lib,"d3dx9.lib") But I get LINK : fatal error L...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Leiningen 1.3 Upgrade Plugin Classpath I have a plugin that used to use command-line from contrib with the following in ns, (:use [leiningen.compile :only [eval-in-project]] [clojure.contrib command-line logging]) that used to work, I am guessing since leiningen also uses clojure and contrib it is automatic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript popup over all applications I have an ASP.NET page, running in IE, that monitors several server jobs running at night. When an error occurs on a job, I have a popup window that opens with javascript, window.open(). The problem is, employees tend to have other applications, such as Netflix, running full sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I capture button events when phone display is turned off When using Slacker Radio on my android phone I am able to skip to the next song when the display is off by long pressing the volume button. What part of the API should I be looking at to implement such a feature for my app? A: I think you might find ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hough Transform Equation I was wondering why the Hough Transform uses rho=xcos(theta) + ysin(theta) for representation of a straight line (y=mx+b). I tried to work through this (and went to the wikipedia article about this), but can not find a way to derive one from the other. Does anyone know how to derive one from...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Does git have an "I am an idiot" switch to prevent push -f without a branch? I just did a git push -f without including the branch I intended to push and git just blasted in everything to my repo. Fortunately we could piece together the old repo without to much trouble but it would be nice if I could change a set...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Click event outside MovieClip in AS3 Is there any way to detect if the user click outside a MovieClip? For instance, I need to detect it to close a previously opened menu (like Menu bar style: File, Edition, Tools, Help, etc). How can I detect this kind of event? Thanks! A: Add a listener to stage and check if st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I ensure that the browser does not cache a page I need to make sure that the page is reloaded when going back to a page, without showing any messages to the user. This must behave the same across all browsers. A: The only way I have been able to achieve this reliably, especially with AJAX, is to append a qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why can't I bind a value to this parameter when using PDO? Possible Duplicate: In PHP with PDO, how to check the final SQL parametrized query? I am creating an in-memory SQLite database and attempting to run a query on it. I am preparing a SELECT statement and trying to bind a value - but it isn't working: <?php ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JasperReport - JavaBean Data Sources from official documentation JavaBean from official documentation: http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/sample.reference/datasource/index.html#javabeandatasources "For instance, to retrieve the value of a report field named address, the program will t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }