instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Below is a function that retrieves a users older wallposts, 16 at a time, and appends each chunk of 16 to the end of the current list in the div called "sw1". It works fine, except in the case where there is currently a wallpost that contains a video/embedded object that is currently in the process of playing. When we ...
stackexchange/codereview
Iэm making a big OLTP application from scratch,i was wondering what is the best way to access data,is it ADO.NET or Entity Framework or LINQ or .netTiers or something else. My database is SQL Server 2008 R2. Thank you! What about NetTiers,how god is it?
stackexchange/codereview
ReadOnlyCollection<T> realises the ICollection<T> interface which has methods like Add and Remove. I know how to hide methods from Intellisense using attributes, but how is it possible to cause an actual compilation error if I try to use these methods? (Btw, I know it doesn't make sense to call Add and Remove on a ROC,...
stackexchange/codereview
I've got jQuery Masonry working on my site http://www.lovejungle.com/dev/testenvironment/?cat=4 But for the life of me, I cannot work out how the images are handled. Is there a method where it grabs the post featured image? Or is there a line of code that grabs it? This is the code I'm using for my index.php and cat...
stackexchange/codereview
I want to print a barcode that is generated by our system. I have a couple of concerns though and would like some input on the right way to do this if my solution is not right. I have a link that the user can click to print this barcode. Once clicked, I thought it would be nice to use javascript to immediately being pr...
stackexchange/codereview
I'm designing a Order Site using PHP & Mysql. In the final stage the user is given Paypal buttons to pay for the Orders he has made. So, the Item Name, Value are variables. These values being variables, I cannot use an encrypted button from Paypal. I'll have to use either a non-encrypted button or encrypt it before sho...
stackexchange/codereview
I'm trying to make a regular expression testing for all quoted strings. It's okay. \"(?<InQuote>[^\"]*)\" But I also ned to filter on some test before the quote. E.g. "test".. So that only those lines with the string "test" before a quote is listed. aTestButton.Text("some string in qoute"); //get this aButton.Text("so...
stackexchange/codereview
My bachelor work is about file systems for flash drives. What can I read and where can I find documentation about this?
stackexchange/codereview
I tried the following to try to display two buttons in a horizontal linear layout, with the edges of the buttons flush with the border of the linear layout. To my surprise, I found that there is always still padding between the buttons and the left, right and bottom edges of the linear layout. Only the top edges of t...
stackexchange/codereview
I know I can open Windows Calculator with the following code : System.Diagnostics.Process.Start("calc"); But I wanna open it in my C# Win Application, i.e : I don't want to open it in the independent window, I wanna open it in my window. How can I do it ?
stackexchange/codereview
After learning more about classes and pointers, I refactored a program I had and wiped out > 200 lines of code, in the process creating two other classes, Location and Piece. The problem is, after getting everything to compile, the linker complains that the constructor for Piece is defined multiple times, with a load o...
stackexchange/codereview
I want to post to my facebook wall via the api/php. Im following steps found via google. So the first step was to log into facebook, create an app to get the appid. I did that, it then says to go here: https://login.facebook.com/code_gen.php?api_key=APIKEY&v=1.0 so I can generate the code so you can go to the next step...
stackexchange/codereview
I'd like to go from this: if($var == 3 || $var == 4 || $var == 5 || $var =='string' || $var == '2010-05-16') { // execute code here } to this: if($var == (3, 4, 5, 'string', '2010-05-16')) { // execute code here } Seems very redundant to keep typing $var, and I find that it makes it a bit cumbersome to read. Is t...
stackexchange/codereview
I'm trying to get some custom views for a content query rollup working in SharePoint 2010. I've made a custom News content type with a few basic columns like title, contents, comments and a custom column to toggle showing it on a certain page (boolean/checkbox). I've edited my ItemStyle.xsl and added a new view type th...
stackexchange/codereview
I know it's possible to register global hooks for mouse movement, button clicks, scroll, etc, but I was wondering if there's any way to detect whether the user is actually dragging a file or text (or some other content) with a global hook. Can't seem to find anything on this.
stackexchange/codereview
I have the following: my @path = split( "/", getcwd ); my $grandParent = $path[-2]; I'd like to do it in one line (like in other languages) since I'm not using @path again, like so: my $grandParent = split( "/", getcwd )[-2]; Is this possible? If so, how? EDIT: Just to be clear - where I am running the script from I ...
stackexchange/codereview
I have mostly followed a tutorial about how to build a gustbook using GAE and Python. Now I only want to show the entries from a particular day, but the GQL query doesn't return anything (although there are entries from that day): class Shout(db.Model): message= db.StringProperty(required=True) when = db.Da...
stackexchange/codereview
Hey im wondering why I am receiving the following error in my rss feed "This XML file does not appear to have any style information associated with it. The document tree is shown below." from a bit of research ive done this is becuase I dont have a stylesheet attached. But I have done plenty of RSS Feeds before and nor...
stackexchange/codereview
I got pretty excited after finding out that F# will be released under the Apache license. But I am still not sure, whether the language/ecosystem is something worth investing my time in. So - what do you think will happen now? The F# team publishes only "source drops" and doesn't take contributions for now (I doubt the...
stackexchange/codereview
I have a little problem understanding how to to the following in Haskell: Lets say I have a statement similar to this ones: a * (b + c) a + (b * c) a + (b * ( c + d)) a * (b + ( c * d)) etc. etc. I want to express these statements in a tree and evaluate the result of each, for starters I defined the following data s...
stackexchange/codereview
Hi I have two web application under one tomcat. Both are using hibernate 3.2.1 and c3p0 0.9.1.2. While the second application gets deployed, I always get the following warning message. Tomcat: apache-tomcat-6.0.28 WARN 2010-11-06 19:04:37,270 A C3P0Registry mbean is already registered. This probably means that an appl...
stackexchange/codereview
Has anybody got any experience of using HTTP byte ranges across multiple parallel requests to speed up downloads? I have an app that needs to download fairly large images from a web service (1MB +) and then send out the modified files (resized and cropped) to the browser. There are many of these images so it is likely ...
stackexchange/codereview
Please let me know if there is a Cocoa event equivalent to the carbon event "kEventTextInputUpdateActiveInputArea" ? Thanks
stackexchange/codereview
I would like to use the linux command line tool ack but there is one thing stopping me from using it and that is that I cannot figure out how to tell it where to start searching from. I would like to start to replace my complex find/xargs/grep commands with ack but if I cannot tell it where to start to search from I ca...
stackexchange/codereview
.html <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <li...
stackexchange/codereview
<if a == 5 && b < 4> one <else> <if a != 5> two <else> <if a == 5 || $b == 5> three </if> </if> </if> How i can get from it a some variables: [0] = "a == 5 && b < 4" [1] = "one" [2] = "a != 5" [3] = "two" [4] = "a == 5 || $b == 5" [5] = "three" Or how would you su...
stackexchange/codereview
I'm willing to use gravatars in my Django app. In the application cw I created a templatetags directory with the following architecture: cw/ templatetags/ __init.py__ gravatar.py views.py ... the gravatar.py contains from django import template import urllib, hashlib register = template....
stackexchange/codereview
How can i keep track of 3 input strings from using 1 UITextField? I am toggling between 3 different input types (departures, airlines, arrivals) using one UITextField for user input. I save each of the 3 in its own NSMutableString object like this(depending on what's being entered or whatever): depart = [input.text c...
stackexchange/codereview
I'm setting the background color of my UIView (which is within a UIViewController) as follows: myView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"myTransparentBG.png"]]; I've even tried messing with [myView setOpaque:NO]; but the image doesn't appear transparent. It has a black background to...
stackexchange/codereview
I have an Action that returns URLs which need to call another Struts2 action. In a JSP I would do <s:url>. Is there something equivalent to this that I can call inside of the action?
stackexchange/codereview
In 2007 Paul stovell created this set of extentions. It notifies the UI of changes. It seems to have disappeared. What can we use today that mimcs its functionality???
stackexchange/codereview
First, i admit all the things i will ask are about our homework but i assure you i am not asking without struggling at least two hours. Description: We are supposed to add a field called max_cpu_percent to task_struct data type and manipulate process scheduling algorithm so that processes can not use an higher percent...
stackexchange/codereview
I'm a little confused as to why this sort of functionality isn't default in the admin, but maybe someone can give me a few hinters to how to go about it. I have a projects application which keeps track of projects and is to be edited through the admin. Each project has numerous ForeignKey related models (links, flatpa...
stackexchange/codereview
New issue came up for me recently. I often must run simillar tasks and I would like to make my life easier. Basicaly after choosing argument i always run one exe file with this argument and after that (these should work in the same time) I run bat file (with argument too). After finishing I make some copies of generat...
stackexchange/codereview
I have a question regarding the searchDisplaycontroller Everytime when I enter a searchText, my resultstableview gets loaded. everything works just fine. But for some reason when I get to didselectrowatindexpath my searchbar gets empty and I return to textDidChange Can someone tell me how to fix this? how can I prevent...
stackexchange/codereview
I read Tom Kyte's "Effective Oracle by Design". There he says to write most of the code in the DB itself to reduce application code. It is good in a distributed environment, but is it advantageous in an standalone application also? My app. is in .NET.
stackexchange/codereview
these are the rewrite rules I normally use for clean urls, RewriteRule ^([a-zA-Z0-9\-]+)/?$ index.php?pg_url=$1 [L,QSA] RewriteRule ^([a-zA-Z0-9\-]+)/([a-zA-Z0-9\-]+)/?$ index.php?pg_url=$2 [L,QSA] they will accept requested urls such as, mysite/home mysite/portfolio/photograhy but how can I set the rewrite rule fo...
stackexchange/codereview
I have read through the Fortran 95 book by Metcalf, Reid and Cohen, and Numerical Recipes in Fortran 90. They recommend using WHERE, FORALL and SPREAD amongst other things to avoid unnecessary serialisation of your program. However, I stumbled upon this answer which claims that FORALL is good in theory, but pointless ...
stackexchange/codereview
I'm using Drupal 6 and Views 2, along with CCK, Panels and Node Relationships. (so far) I have two basic content types defined: User Profile (using Content Profile module) Product Each of these content types has a node reference to two other content types, Tier and Commission: User Profile content references "Tier" ...
stackexchange/codereview
How do you save IRaster with double values in it's cells mapped to some colors? For example, (-inf; -50] maps to blue, [+50; +inf) maps to yellow, others are calculated gradually.
stackexchange/codereview
I am trying to read a formatted file name (read this into variable) 10 10 (read into separate variables) the rest into array line line line line to clarify this is for an upload script which i already finished when a user uploads a file formatted like that it reads it in the way described above $fname = 'test.txt...
stackexchange/codereview
I have a table inside an absolute positioned div. The div stretches using top 0 and bottom 0, and it seems it stretches as expected cross-browser. (I checked, I put on a border on it and it stretched as expected). Now, inside the div I have a table. I want the table to stretch on all of the div space, and in Google Chr...
stackexchange/codereview
I have several of this, where the only thing that differs is if its a text_field or a password_field etc etc etc. I'd like to pass this as a parameter to the render, like :as => :password_field for example. And I don't wan't to do a case compare, the value passed in the :as is the value of the field. Is this possible ...
stackexchange/codereview
When generating a table of data on a web page, I usually give the user the option to page through the data (10, 25, 50, 100 rows per page) or to display it all on one page. This works fine for a few hundred rows, but displaying thousands of rows on one page can take a long time to generate and transmit to the browser. ...
stackexchange/codereview
I'm trying to do simple application consuming SAP web service. I ave WSDL link via SOAPMANAGER which I added to project as web reference, and C# created complex type which includes RFC import/export parameters and tables. If I want to call web services method I send all my values in a variable of complex type and retur...
stackexchange/codereview
I have a very simple Person class that has a ivar called name ( an NSString). When I try to release this ivar in dealloc the static analyzer gives me a weird error: Incorrect decrement of the reference count of an object that is not owned at this point by the caller What am I doing wrong? BTW, here's my code: @in...
stackexchange/codereview
Is it possible to create a WebService using JAX-WS, that whould then be consumed by a WCF client using such a binding? <bindings> <basicHttpBinding> <binding name="CaseObjectServicePortBinding" > <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" ...
stackexchange/codereview
I'm clicking on list item links in my 'left' div and then displaying an html page in my 'right' div on my web page. I'd like one of the html pages to be loaded when the web page is first loaded (i.e. as a default). How can I do this? Also, how can I get the background color to extend to the bottom of the 'right' div?...
stackexchange/codereview
I have a webservice (ASMX) which I have tested locally using built-in VS web server. It works fine in the Dev environment, and there was no configuration of anything in IIS for this kind of webservice to work. Today when I deployed my site on the live server, I got a 500 error when the webservice is being called. The ...
stackexchange/codereview
when I make a list in SharePoint 2010, I have the option to edit the forms for this list using InfoPath (by enabling a feature on the site collection and one on the site). When I save this form, it is saved as the default edit form for the list. Now I am deploying my list from Visual Studio, as a WSP file. I would like...
stackexchange/codereview
I'm able to retrieve contact name and phone, but how to retrieve contact photo in one query? String[] PROJECTION = new String[] { Contacts.People._ID, Contacts.PeopleColumns.NAME, Contacts.Phones.NUMBER }; Cursor c = a.managedQuery(Contacts.People.CONTENT_URI, PROJECTION, null, null, Contacts.People.DEFAULT_SOR...
stackexchange/codereview
How can I sort gridview with JQuery using C#? Any share?
stackexchange/codereview
For this portion of code <label for="gender">I am:</label> <select class="select" name="sex" id="sex"> <option value="0">Gender:</option> <option value="1">Female</option> <option value="2">Male</option> </select> W3C Validator giving this error reference to non-existent ID "gender" How to solve this? Edit Gett...
stackexchange/codereview
How am I able to call send(a:'T []) in such a type? type Test() = member o.send(value:'T) = 4 member o.send(values:'T []) = 5 let test = Test() let b = test.send [|4|] When I do that, I obtain A unique overload for method 'Send' could not be determined based on type information prior to this program point. The ...
stackexchange/codereview
My problem is quite simple, I have a string that contains a path to a property, and I want to change that property through the string. str = "someClass.property" data = 123 ''' I don't know what str contains, as it is created by a user I know that I could do this, but it smells like bad practice, in PHP it's a criminal...
stackexchange/codereview
Dear Scholars, I am unable to implement mean and var in single kernel call. Goal: I need to find mean and var of sub matrixs in a matrix. so I wrote following kernels functions: global void kernelMean(d_a, d_mean, ...); global void kernelVar(d_a, d_var, ...); global void kernelMeanVar(d_a, d_mean, d_var,....
stackexchange/codereview
I have this table1 inside of a span tag (span is inside of td tag) the problem is that the row data of the Table1 is appearing outside of td ...the data should appear within the boundaries of td tag..right ? coz the span is contained within the td tag...how do I make sure that the width of span remains fixed..like it s...
stackexchange/codereview
Column A has values in some rows, blank in others. I'm in some other column. In the row I am in, column A is blank. I would like a macro which will move my cursor down - remaining in the current column - until it is on a row where column A is not blank. This seems easy, but I know no VBA. Any help?
stackexchange/codereview
I'm writing a PPT add-in that makes a PNG of a slide and uploads it somewhere. I want the slide creator to be able to add dates/times in text boxes (using Insert > Date & Time), and have those dates/times reflect the time the snapshot is taken. If one checks "Update Automatically" when adding them, the timestamps only ...
stackexchange/codereview
i want to limit the user from entering the password for n times and limit it to 3. How should i go about this. Thanks,
stackexchange/codereview
I've been trying to convert a mysql database to a sqlite db file but no luck. Is there any software that can do this?
stackexchange/codereview
A simple question: is there a good reference implementation of using ASP.NET MVC with an ORM, ViewModels, and EditModels (ideally using Automapper)? I understand the benefits of using these purpose-specific models, but haven't been too happy with the result of the code I've written to use these so far. A simple refere...
stackexchange/codereview
Array ( [0] => 'hello' [1] => 'there' [2] => [3] => [4] => 3 ) // how to get the number 5?
stackexchange/codereview
I need to sync the data of a ms-sql 2005 & 2008 server to my development server (mssql 2005 & 2008). The problem is I can't create .bak files, no permissions (to access the network share where the backup is saved). The problem is not that I may not view the data (I have complete read access to the production server). I...
stackexchange/codereview
i've written a daemon in php and want to make sure it doesn't leak memory, as it'll be running 24/7. even in its simplest form memory_get_peak_usage for a daemon will report that the script consumes more memory for each cycle. memory_get_usage on the other hand will not grow. the question is: should i worry? i've strip...
stackexchange/codereview
I have an AppBar that is used in many places throughout my application: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <shell:Applic...
stackexchange/codereview
I have the following in my .htaccess file: # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule .* index.php/$0 [PT] The server admin has installed Google mod_pagespeed and of ...
stackexchange/codereview
Is there a way to limit the slider options in jQuery UI slider? I have a slider that is broken up into 5 parts. However, I only want options 2,3, and 4 available. I don't want the handle to go to 1 or 5. how do you restrict this? Thanks!
stackexchange/codereview
Using Boost::Python, the normal mechanism for wrapping functions works correctly with C++ functions returning void. Unfortunately, the normal mechanism also has limitations, specifically with regards to the function arity it supports. So I need to use boost::python::raw_function to wrap my function, but it doesn't co...
stackexchange/codereview
I tried to use Breadth-First algorithm to retrieve the whole cluster of connections to which the selected user belongs the following way: CREATE PROCEDURE Breadth_First (@StartNode varchar(50), @LinkStrength decimal(10,7) = 0.1, @EndNode varchar(50) = NULL) AS BEGIN -- Automatically rollback the transac...
stackexchange/codereview
I'm using jQuery AJAX to request html pages so no refreshes will be needed when someone clicks an menu item. But the things is, I'm currently requesting HTML pages with no doctype, head and body tags.. just only the content (with just h1 tags and tags like that). The problem is that when I inject that into an div on my...
stackexchange/codereview
I am trying to create a a mouse wrap within X11 for openGL games/content. The approach I was trying to take is to hide the cursor (which I can do just fine), lock the mouse position in the center of the window and then use the mouse delta positions to detect movement. I cannot find any way however to lock the mouse p...
stackexchange/codereview
I have installed xampp, I did the security settings, but after a time I have forgot the root password. I have google it, how to reset, the problem seems he can't create lower-lower-test file, because he try to accesss a Unix path on my windows PC :), lol. xamp config. the resetroot.bat gives me this output: 101108 15:...
stackexchange/codereview
currently I am struggeling with a little problem: I want create FastCGI/CGI binding for the nekoVM. This is done by writing some clue C/C++ code that is loaded by the VM. I want to make the behaviour of my binding as compatible as possible with neko native API (mod_neko, mod_tora). With mod_neko it is possible to get a...
stackexchange/codereview
Disposition: form-data; name="To" ang <ang11@google.com> -----------------------------7da3d81f160588 Content-Disposition: form-data; name="CC" -----------------------------7da3d81f160588 Content-Disposition: form-data; name="BCC" -----------------------------7da3d81f160588 Content-Disposition: form-data; name="Sub...
stackexchange/codereview
Following the instructions in this helpful guide, I've been attempting to set up Subversion on my site, using Apache instead of svnserve. Once everything is set up, I'll have a repository at /srv/svn/myrepository that is accessible from code.mydomain.com. However, after following all of the instructions in the guide li...
stackexchange/codereview
I have a website where each webpage is compiled into a binary (I have 100 webpages, therefore I have 100 binaries). Apache's .htaccess contains the line "SetHandler cgi-script" which instructs apache to use CGI when a binary (webpage) is requested. How can I modify this website to use FastCGI instead of CGI ? Do I just...
stackexchange/codereview
I am trying to get access_token via coldfusion. But when I write <cflocation url="https://graph.facebook.com/oauth/authorize?client_id=12345678&redirect_uri=http://xyz.com/test/new/" addtoken="no"> I get the above error "Application Temporarily Unavailable The URL http://xyz.com/test/ caused too many redirections".. ...
stackexchange/codereview
Let's say I want a function like this: private void ShowLabel(byte Variable) { labelXXX.Show(); } But with Variable's value instead of XXX. Is it possible?
stackexchange/codereview
Who first proved that all comparison-based sorting is at least Omega(n lg n)? Is there a name attached to this lower-bound? e.g. The SomeGuysLastName Theorem?
stackexchange/codereview
When I click on the following div: <div id="Result">Click here for the time.</div> I need the following codebehind function to run: <WebMethod()> _ Public Shared Function GetDate() As String Return DateTime.Now.ToString() End Function I need this to populate the inside of the div with the string returned by ...
stackexchange/codereview
I'm writing an android app that requires binding a JSON object into a domain entity with the keys from the JSON as instance variables. Since there are several domain entities, each with different instance variables that the JSON needs to bind to in the app, i'd like to write a method such as ths following: Loop throug...
stackexchange/codereview
When you run a VBA macro under Excel, it erases the undo history. Is there any way to prevent this? I'd like to capture the undo history before running my macro, and restore it after my macro is finished. I didn't notice anything in the Excel documentation that looked promising.
stackexchange/codereview
I am using AXIS2 Framework for creating and accesing a webservice. Using Axis2 everything is fine for me. But i have a requirement that when i access thsi webserivce through soapui to test the webservice; in requesrt.xml it must show what are the optional parameters and compulsory parameters. But at presen it showing l...
stackexchange/codereview
I have a regularly sampled grid, x,y,z and variable v. I would like to interpolate based on given x,y, &z values. I do not want to use numpy or scipy, because they are not installed on the platform I will be running on. If I can locate the surrounding 8 grid nodes what math can I use to interpolate? Thanks
stackexchange/codereview
I need some advise on the architecture. Requirment : Users need to upload and download images. Secure -- Only users logged in should be able to upload/download the images. Scalable. Load the image from a location independent of the App server location. the content could be stored on shared drives. Different...
stackexchange/codereview
I have a PHP script that includes another file in an adjacent directory. Example code: include("../lib/file.php"); The code works fine when you access the page running it from a browser but fails (on the mentioned include() line) if I run it from a terminal or cron. I get a warning that says "No such file or directory...
stackexchange/codereview
I have a set of functionality that I am considering packaging so as to use them in multiple projects, but I can't decide whether to choose a gem or a plugin. What is the difference? Which one should I choose?
stackexchange/codereview
I am new to Dot Net Nuke. I am responsible for maintaining a section of Dot Net Nuke Website. I dont have access to Website root, FTP and Web Site Management functions. I want to add different images in my webpage which are either logos, icons, Section Titles/Headings. How can I manage such images in Dot Net Nuke webs...
stackexchange/codereview
SQL 1 SELECT ( COUNT(contract.contract_notesid) + (SELECT COUNT(contract_notesid) FROM quotation WHERE quotation.contract_notesid = contract.contract_notesid) ) AS total FROM contract where contract_notesid = '48' total 2 SQL 2 SELECT ( COUNT(contract.contract_notesid) + (SELECT COUNT(contract_notesid) FROM quota...
stackexchange/codereview
I'm in a Music Theory class and for my final, I've decided to code a program that would output simple statistics about a given song. I was wondering, does anybody have any good libraries for such a task? I don't really like C++ or C, but if I'm forced to use them, I will. I've tried MIT's Music21 for Python (I was exci...
stackexchange/codereview
var output = Convert.ToDecimal(amount / 4); labelOutput.Text = "You need: " + System.Math.Round(output,0); this code is part of a calculator for a game "amount" is how much the user wants to make, and to make a single item, you need 4 pieces ( / 4) for instance: how much?: 20 20 / 4 = 5 "you need 5 pieces but when i...
stackexchange/codereview
I have used an SQL function to update single records when called: The function is: function ToggleAnimalExclusion (AnimalId in number, StudyID in number) return number is PRAGMA AUTONOMOUS_TRANSACTION; exVal varchar2 (1); begin select exclude into exVal from mbddx_study where study_name = AnimalId an...
stackexchange/codereview
If I try to pass parameter like: this._Click(i) I get an error. BBtor = function(element) { //some code } BBtor.prototype = { initialize: function() { for (var i = 0; i < 3; i++) { $addHandler($get("Button"+i),'mouseup' , this._Click(i)); } }, _Click: function(param) { ...
stackexchange/codereview
Lets say I have this DOM structure <body> <p> Hello <i>how <b>are</b> you</i> and <i>what <b>are <tt>you</tt> going</b> to</i> eat tonight? </p> </body> Using jQuery I want to get to know the FIRST shared parent of the <b>are</b> and the <tt>you</tt> From down to top t...
stackexchange/codereview
i have the results of a query being dumped into a datagridview. it looks like this: QC3 498.46 QC4 1,251.63 QC1 862.62 QC2 1,432.21 i need two things to be able able to programmatically delete all the rows of datagrid where the second field = 862.62 (or just delete the third row) i need to programmtically HIGHLIGHT a...
stackexchange/codereview
Is there any known way to get some kind of Code Coverage statistics in the Doctrine Unittests? There is a directory called "Coverage" in the "tests"-dir, but I have no idea how to get that working, if possible at all.
stackexchange/codereview
Source:ADO.Net(TSQL -query): Query will return the dataset(column names are months i.e. JAN FEB MAR APR JUN JUL .... DEC) Destination: Excel If you run the package it is transfering the data and the excel is having the column names like JAN FEB MAR .. DEC --> this is as expected result New Requirement: 1.Declare a var...
stackexchange/codereview
I have a WCF Data Service hosted in an Asp.Net website. here is my web.config services section : <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service name="DataServiceHost" behaviorConfiguration="DataServiceBehavior"> <endpoint name="DataServiceHost" ...
stackexchange/codereview
I've spent so many hours on this I can feel my sanity slowly slipping. So any help would be really truly appreciated. I'll try and be as succinct as possible. I have a circle on a 2D plane. I know the cartesian coordinates for it's central point(C) and the radius(R). My confusion stems from this problem. When provided ...
stackexchange/codereview