instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am developing a REST API for my web application for public use.
I am tempted to provide only JSON as format for the response as it is more lightweight than XML (on large traffic, any byte counts).
I think any programming language and platform is able to easily and effectively parse JSON, nowadays.
So, what do you thi... | stackexchange/codereview |
I'd like to create a function which can cope with JSON in the following nested format. The keys will change ie
conditions - could be anything and the subcondition key could be anything but the structure remains the same.
My function is defined as
populatePageEditorMenu: function (jsonPath, topLevel, childLevel){
... | stackexchange/codereview |
I am creating a panel page that will pull in blocks from a view? I want to cache these blocks. So is it better to enable caching of that element in the panel or do it where it was created in the block/view page? Or does it matter?
FYI, There are other areas of the page that are too dynamic for me to cache the entire... | stackexchange/codereview |
This is sort of a mystery to me. My application does not use very much memory but if I put it in the background and run as many memory-intensive applications as I can, occasionally my application will crash when I try to wake it up.
I've looked at the crash log and this is what I see:
0 libobjc.A.dylib ... | stackexchange/codereview |
My question was not specific enough last time, and so this is second question about this topic.
I'm running some experiments and I need to precisely measure participants' response time to questions in millisecond unit.
I know how to do this with the time module, but I was wondering if this is reliable enough or I sho... | stackexchange/codereview |
Using indexOf('ÿ')// char for Unicode 255 for example, doesn't work. Probably because indexOf() needs the Unicode to be less than 127, maybe?.
Anyway, I have a big string array from an Ajax binary. I need to find every occurrence of a byte sequence, let's say the sequence is: 255,251,178. Each occurrence's location (l... | stackexchange/codereview |
basically I'm not really a Java/Scala fan, but unfortunately I'm forced to use it for my studies. Anyways, I was given an assignment:
What the program gets is a list of objects like: Mark(val name String, val style_mark Int, val other_mark Int).
How can I use groupBy, to group the marks by name, and get an average for ... | stackexchange/codereview |
I am using Rails 2.3.2 but I'm sure this applies to newer versions as well. I would like to define a custom action in ApplicationController. However, I don't want to add a custom route to every single controller subclass which uses this action. Is there an easy way to do this?
My first inclination was to just route di... | stackexchange/codereview |
I am trying to calculate the items sold 90 days prior to 6/1/2009 and 90 days after 6/1/2009 with the query below. it shows some error. Would someone kindly edcuate me please???
SELECT
location,
SUM((CASE WHEN t.order_date DATEADD (DAY, -90, '6/1/2009') THEN t.Item ELSE NULL END) as Prior_Items,
... | stackexchange/codereview |
I am new to C++ programming :). I was wondering what would be the best and easiest approach for this problem.
I have a C++ console application and a Perl script. Both of them are to be integrated. To be more specific need to write perl perlscript.pl arg1 in a cmd prompt (to execute the Perl script). perform few action... | stackexchange/codereview |
favorite Hello Everyone,
I want retrieve daily latest NAV based on AMFI RSS Feeds tell me how I can retrieve it.
Thanks..
| stackexchange/codereview |
How can I create two different ip_queues, running at the same time? One of it can listen for incoming packets on one port and another can listen for outgoing packets on the same port.
| stackexchange/codereview |
I am wondering what the function is of the Publish field of items in Sitecore. Just to be sure I am clear about what field I am talking about it's the field in the "Publishing" section of an item which is only shown when you check the "Standard fields" option.
Normally that field is not filled in and I expected it to b... | stackexchange/codereview |
Normally using the same identifier like name of a variable for something like another variable within the same scope generates error by compiler, Is there any technique to actually indicate to compiler that in this scope up to this specific point this name has its own purpose and is used to refer to this variable but a... | stackexchange/codereview |
I have to reduce the bit-depth of a digital audio signal from 24 to 16 bit.
Taking only the 16 most significant bits (i.e. truncating) of each sample is equivalent to doing a proportional calculation (out = in * 0xFFFF / 0xFFFFFF)?
| stackexchange/codereview |
My iPhone application continuously communicate with a web server. So in case of a connection lost or the server is not reachable is there any specific precautions we should do? I know that we have to show the user about the communication failure. If so is there any acceptable way of showing errors to the user? Im more ... | stackexchange/codereview |
I'm writing dll which must run a function multiple times using different parameters, parallell to everything else.
I've tried the following methods:
Backgroundworkers
MethodInvoker
Threads
etc
What's the best way to do it?
Update:
I'm writing a dll, no GUI involved
| stackexchange/codereview |
i had created my popup window which is appearing on a click of link but it is coming at the top corner of window and want it to appear it in at center and also want to resize it. i had created it in scala and calling it with html file.so everybody please give your suggetions as fast as possible.
| stackexchange/codereview |
Is it possible to create a fluid width LI with background imaage that adjusts its size based on content and doesn't follow the width of a parent DIV.
If possible, using only CSS.
<div id="navbody">
<!--Button Start-->
<ul id="button">
<li>
Home
<div class="btnright"></div>
... | stackexchange/codereview |
Single Page Javascript Application
I have built a sophisticated ajax-driven single page webapp that uses a RESTful backend web service serving JSON. The javascript is split into many different files, each file representing some sort of feature or component.
While the service has been in alpha testing, I've just be serv... | stackexchange/codereview |
I am required to design a website where displaying content is the key functionality.
This is a similar site, so you can imagine the amont of content. Of course the design depends on preferences.
As i am planing the design I was thinking if such a website would require some kind of content management system (as I woul... | stackexchange/codereview |
I understand how to programmatically create a product and also add to cart. I know this might sound dumb but is it is possible to generate a product on the fly and add that to the cart/quote but never actually save it in the database.
We want to create a made to order interface and I was thinking at the end it could a... | stackexchange/codereview |
I want to build a magento virtual store, where i can sell profiles in a website community.
A profile is actually an account (identified with a unique code or password and username) where the user can fill some data, in my website community (the community is a separated platform, with a separated database).
How can i do... | stackexchange/codereview |
I'm trying to display an extended character on a mobile phone. The ascii value of 160 on my windows machine is á.
According to http://slayeroffice.com/tools/ascii/ the ascii value of á is 225. Which one is correct ?
Can different hardware devices such as phones have a different ascii character set or do they all follow... | stackexchange/codereview |
I want to show a modal pop up window with a TextView and two buttons when the user "clicks" on a ListView item.
How can I do that?
| stackexchange/codereview |
Looking for a simple J2EE war/ear that can be deployed that is bare-bones but does a simple read-write to an Oracle db. I'm happy to configure the database or run scripts to make the relevant table. Need something today to prove to a third party host and use to compare against our own apps.
Thanks
| stackexchange/codereview |
Hallo,
I have some troubles understanding the python reference count.
What I want to do is return a tuple from c++ to python using the ctypes module.
C++:
PyObject* foo(...)
{
...
return Py_BuildValue("(s, s)", value1, value2);
}
Python:
pointer = c_foo(...) # c_foo loaded with ctypes
obj = cast(pointer, py_objec... | stackexchange/codereview |
Given a data type
data Foo =
Foo1 { foo1Name :: String}
| Foo2 { foo2Name :: String, foo2Age :: Integer }
I would like to be able to extract the Data.Data.DataTypeS of Foo1 and Foo2s fields.
I tried
datatype = (undefined :: Foo)
constrs = dataTypeConstrs datatype
foo1 = fromConstrs (head constrs) :: Foo
foo1Field... | stackexchange/codereview |
I read somewhere that in order to use JTA and Tomcat (I'm also using Hibernate) you need to use a JTA version of the JDBC driver. Is this true?
If so, does this driver include JTA support?
Thanks,
Ittai
| stackexchange/codereview |
I'm trying to learn PHP using NetBeans although I've come up against a problem with the interpreter and I can't tell how to fix it.
It's to do with the notation <<<_END. It should, from what I'm learning wrap everything into a variable until it's ended with _END
However, if I plug in the following example:
<?php
... | stackexchange/codereview |
I'm creating a simple dialog with a ListView on it. I want to be able to access a context menu on it.
Here's the basic code I've:
<On CreateDialog>
listViewSongs=(ListView) layout.findViewById(R.id.ListView_Songs);
listViewSongs.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, drawingPane... | stackexchange/codereview |
I have the jQuery loaded fine, I've quadruple-checked, though I'm getting this error in FireBug "$ is not a function" and my code doesn't work.
Here's my code:
<script type="text/javascript">
$("ol li:nth-child(1)").addClass('olli1');
$("ol li:nth-child(2)").addClass("olli2");
$("ol li:nth-child(3)").addCla... | stackexchange/codereview |
If the file public/javascripts/cache/all.js is removed, and then a webpage is fetched from the rails server, then that all.js file
magically reappears in the file system, with a timestamp that is half an hour ago. Is there actually Rails mechanism that regenerates this file
or what might be regenerating this file?
| stackexchange/codereview |
I'm using Rails (3.0.1) and have the following code in initializers/inflections.rb
ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular('nursery', 'nurseries')
end
From the console I'm getting:
"nursery".pluralize => "nurseries"
"nurseries".singularize => "nurseries"
I should be getting:
"nurseries".s... | stackexchange/codereview |
I need to show upload status (Total size, curent uploaded size and upload speed) But every script need library and I don'T know how it work (I use XAMPP under Windows)... I have only APC Lib.
I tried FancyUpload, but even in the demo I got this error :
Error caused a send or load operation to fail (Error #2038)
And I t... | stackexchange/codereview |
I need some pointers or a practical example on how to encrypt an int to another int, and a secret key would be required to decrypt the value.
Something like:
encrypt(1, "secret key") == 67123571122
decrypt(67123571122, "secret key") == 1
This guy asks pretty much the same question: Symmetric Bijective Algorithm for In... | stackexchange/codereview |
I have a UIView to which i add a background image. Then to that view i add a scroll view. To the scroll view i add some UIButtons.
I would like to be able to set the scroll view to be transparent (still being able to see the UIButtons) so that i can see the background image underneath it, so that it shows between the b... | stackexchange/codereview |
I have an application that uses various script files. These files are not used for any AJAX purposes. However, I am using MS AJAX Libraries. My goal is to use the ScriptManager to manage release and debug versions of my JavaScript. Is this the right approach? Is there a better way to handle this task?
| stackexchange/codereview |
I have a Amazon EC2 Linux micro instance server that I need to fire an hourly process on. I have chosen to use crontab and cannot get it to fire.
I placed a *.sh file in the /etc/cron.hourly
If I run $ sh /etc/cron.hourly/notify.sh the script behaves as expected.
I have checked to see if the cron service is running ... | stackexchange/codereview |
I have custom checkstyle checks file (called checks.xml), and I'm trying to use that same file in both maven and eclipse. It all works well, except for the SuppressionFilter.
In this checks.xml file, I have
<module name="SuppressionFilter">
<property name="file" value="src/main/resources/checkstyle/checkstyle-suppr... | stackexchange/codereview |
On a website that I'm currently making I placed a selectbox were user's can sort a list of items displayed on the page. When they choose one, the page is being submitted and the selectbox value jumps back to the first default one. Now I want the selectbox to retain value after submitted.
Im working in XSLT, so I can't... | stackexchange/codereview |
I want to be able to Ajax-ly retrieve JSON data from some kind of web service. (The web service calls will be wrapping a call to SQL, processing the DataSet returned, and returning a JSON representation.) Initially, I thought an ASP.NET MVC project with appropriately named Controllers and Actions that return JsonResult... | stackexchange/codereview |
I am using the iCalCreator class to create an event for user to load into their personal calendars. Here's the info, for those unfamiliar with it: http://www.kigkonsult.se/iCalcreator/
Using the documentation, right on the homepage, I'm able to create an event and output it to the browser. No problems. The issue is tha... | stackexchange/codereview |
I'm setting up a page with a bunch of dynamic content. I'm organizing this within a table. There are three rows, each with a single cell. The top part works as a fixed header, since I've set the top cell's height. The bottom cell works as a footer, since it also has a static height. The table's total height is set to 1... | stackexchange/codereview |
What is the need/purpose of converting an image to a byte array?
Why do we need to do this?
| stackexchange/codereview |
in some iPhone/iPad Apps you can see screens sliding in and out.
How does the straight slide in/out work?
I could only find Curl and Flip for animation:
UIViewAnimationTransitionFlipFromLeft,
UIViewAnimationTransitionFlipFromRight,
UIViewAnimationTransitionCurlUp,
UIViewAnimationTransitionCurlDown,
| stackexchange/codereview |
I have a table which i need to move elements up and down in. I have the code working, but as soon as I add a tag to it, it throws the error:
Error: this.visualElement is undefined
Source File: http://192.9.199.11:83/templates/admin/js/jquery/ui.checkbox.js
Line: 94
The HTML looks like this:
<table width="100%" cellpa... | stackexchange/codereview |
Just a simple question, say I on a research team with 10 members and we want to deploy a project that will require on-demand leasing of 200 EC2 instances. Can we virtually bypass the 20 instances limit by creating 10 AWS accounts (one each) and then lease on demand up to 200 instances?
| stackexchange/codereview |
I need one button to be enabled only when two other properties have been set to a value other than null. I could to this manually but I wonder if there is a way to do it using .net's Binding class. I'm using .net 4.0 working with Windows Forms.
| stackexchange/codereview |
Now that ASP.NET MVC 3 is in beta, and ready for "go-live". Would it be safe to use in project, although not prevented I am curious on security, performance and ease of upgrade to release version.
| stackexchange/codereview |
In a datagridview I have an IP address field.
when I click on check status button I make thread for each row in datagridview and then call a remote object on the host on that IP and get some information and set another datagridview field as that info.
but there is a problem. the info is wrongly set on datagridview. why... | stackexchange/codereview |
I want to create an empty dialog box with a text field inside. When the user enters data inside the box he must be redirected to another screen. I want the Dialog box to come up without any statements but must include a textfield
| stackexchange/codereview |
Drupal's webform module is awesome for building forms, but since my form is very long, I'd like my users to be able to:
Fill in some data,
Save them (without submitting the form)
Do something else and finally
Come back after some time to fill in the rest of the data and submit.
Is there a way to do this?
I suppose t... | stackexchange/codereview |
I have inherited a SSIS package which contains a bulk import task.
The bulk import tasks uses the following format file:
8.0
38
1 SQLCHAR 0 2 "" 1 branch_code Latin1_General_CI_AS
2 SQLCHAR 0 10 "" 2 ... | stackexchange/codereview |
I am using java.util.logging to do all the logging of my application.
Until recently, I was using the logging facility without any specific configuration. Everything worked as expected, all the logs were visible in the console (stderr)
Now, I wanted to customize the configuration for my logs. I want the logs to be disp... | stackexchange/codereview |
Assist me please, is this code correct? I mean, do we really need a dealloc method in this class, and why do or don't we? Will be a memory leak if we don't use dealloc here?
Thanx!
#import <Foundation/Foundation.h>
@interface MyData : NSObject
{
@private
NSString *name;
NSString *surname;
NSString... | stackexchange/codereview |
Possible Duplicate:
What is the proper way to return an object from a C++ function ?
Hi there,
i would like to know whats the difference between the following two functions with respect to the return types?
MyClass& func1(void)
MyClass* func2(void)
I always thought this would be the same?
Heinrich
| stackexchange/codereview |
In my application, I need to Zip and Unzip some files. For that I have used DotNet Zip Library (Ionic.Zip.dll-- DotNet Zip Lib )
Everything works fine but when I take EXE of my file and try to run it from different folder, it fails to run. I have to keep Ionic.Zip.dll in the folder where my application resides.
Is the... | stackexchange/codereview |
We currently have a FNH - MySQL 5.1 DAL in our .Net LOB app. Some recent tests we did showed that PostgreSQL does perform faster than MySQL, and we believe the table partitioning feature in PostgreSQL will be very important with a table in our database we foresee to grow into 100 million rows and more (in production).... | stackexchange/codereview |
how to parse if xml attributes changes...'
for example
<Root>
<child name="", age="",phone="",address=""/>
</Root>
this is my first request from iphone through webserver.... i parsed above xml...
after that when i request the same url .. which is updated now it my xml child tag changes.
<Root>
<child name="",age=""... | stackexchange/codereview |
I use <Separator /> in my form but don't know how to change its color. None of Border /Foreground/Background does exist. Plese help.
| stackexchange/codereview |
I'm having memory problems and think it might have to do with creating large bitmaps.
The task at hand is to get a fairly small tile image and create a larger tiled image and set this as the phone wallpaper. The way I'm doing this is:
1) Create a view that is 2 * screen width, 1 * screen height
2) Set the view backgr... | stackexchange/codereview |
I have images in folder Images in my windows phone solution. How can i get collection of images in this folder? Build Action of all images is "Content".
| stackexchange/codereview |
I have prebuild database of mostly string objects. I want to know how to put in my apk file so the database will be already created when the user installs the database.
| stackexchange/codereview |
I have a visual c++ windows form application (empty) made on visual studio 2008
I would like to add a button so users can browse a folder.
after they select the folder I would like to "scan" that folder and list all the images (JPG, PNG and GIF) in my windows form application.
can anyone provide me with the steps requi... | stackexchange/codereview |
<day>
<date>October 19</date>
<job>
<value>xyz</value>
<time>5:30</time>
</job>
<job>
<value>abc</value>
<time>6:30</time>
</job>
</day>
<day>
<date>October 20</date>
<job>
<value>xyz</value>
<time... | stackexchange/codereview |
I'm in the process of automate one of my apps.
First I tap on a tabBar =>ok
Tap on a 'Add' button of a navigation bar => ok
Fill some data of my textFields of my tableView => ok
Tap on some cell and open a new ViewController => ok
Tap on a 'Add' button in this new controller => nothing happens ...
The button is the sam... | stackexchange/codereview |
For some reason, when I get an ASP.NET runtime error, it's not loading my custom error page
<customErrors mode="On" defaultRedirect="app_offline.htm" redirectMode="ResponseRewrite">
<error statusCode="404" redirect="app_offline.htm"/>
<error statusCode="500" redirect="app_offline.htm"/>
</customErrors>
Tha... | stackexchange/codereview |
We have Product, Category and ProductToCategory classes.
A product has many ProductToCategories, a category has many ProductToCategories.
Product includes this property
public virtual IList<ProductToCategory> Categories { get; set; }
ProductToCategory
public class ProductToCategory : Entity
{
public virtu... | stackexchange/codereview |
I have a requirement to transfer data between databases, namely visual foxpro and mysql. Every so often, I recieve a foxpro database that has a subset of some data that I have to report on. Every time I recieve that new database, it will generally have both new data and updates to existing data. I would like to keep... | stackexchange/codereview |
class MyClass implements Serializable {
transient int myTransient;
//Other variables
}
When I restore this class I want to initialize myTransient manually, but otherwise I just want to use the default serialization.
How can I inject an init() method into the object restore process without re-writing the entire ser... | stackexchange/codereview |
What is the second line? (Seen while answering another question.)
int * x = new int [1] ;
int * y = new (x) int;
After the second line x and y have the same value (point to a same place). What's the difference between y = x and the second line? Is it like a constructor or something?
| stackexchange/codereview |
If I have:
for (int i; i != 100; i++) {
ArrayList<String> myList = buildList();
//... more work here
}
Do I have to set myList to null at the end of my loop to get the GC to reclaim the memory it uses for myList?
| stackexchange/codereview |
I'm trying to understand how to use non standard libraries in my C++ projects.
I have a few questions.
Lets say I want to use POCO library. So I downloaded it and build it using make (static build). Now I have bunch of .o files and .h files.
There is a Path.h file and a Path.o file in different directories.
Now I want ... | stackexchange/codereview |
GeoPtProperty like
{{a.geopt.lat}}
and heuristically found 2 decimals get "good enough" for my requirements. So I try to round off to 2 decimals either with template filter like a django filter or by python code. Can you recommend a how to proceed? Thanks
| stackexchange/codereview |
I'm using the System.Diagnostics.Process class to execute a command line program.
I am using the OutputDataReceived method to redirect the output to my own method.
pr.OutputDataReceived += new DataReceivedEventHandler(OnDataReceived);
pr.ErrorDataReceived += new DataReceivedEventHandler(OnDataReceived);
However, I hav... | stackexchange/codereview |
Assume I have method that reads customers from a csv file.
When reading the file an exception occurs (e.g. IOException or FormatException). In most cases the method can't do anything about the errors but it can add extra information like file name, line number etc.
The method's class got an IProgressAndErrorReporter de... | stackexchange/codereview |
We have a large ASP.NET MVC project where all numbers output to the screen are formatted as currency (i.e. ToString("c"). However, negative numbers are showing up with ()'s. For example:
decimal d = -8.88m;
Console.WriteLine(d.ToString("c"));
//outputs $(8.88)
This is a bit annoying to our users, particularly since ... | stackexchange/codereview |
I'm new to Perforce (but am fairly experienced with other systems, mostly SVN).
Now I'm trying to make a simple windows bat build script that needs to check in some build results (controversial to some, I know, but please try to ignore as it's a different discussion). I'm using p4 for this. The problem is that it seems... | stackexchange/codereview |
Visibility="{Binding, Converter={StaticResource nVis}}"
My converter return collapsed if object is nothing and visible if not.
Why the error :
Erreur 1 Erreur de génération inconnue, 'MC3045 : propriété 'Converter' inconnue pour le type 'MS.Internal.Markup.MarkupExtensionParser+UnknownMarkupExtension' rencontrée lor... | stackexchange/codereview |
I went step-by-step for about 5 hours through the process of adding an Distribution configuration to xcode.
After that, I keep getting this error even when I build with my Debug Configuration:
Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificat... | stackexchange/codereview |
I have a hard-coded menu in Drupal (as it's too complex for the standard Menu system in Drupal).
I would like to be able to say: If this page is contained within the /about/ directory, apply the class "active", so that all new pages created within this directory automatically highlight the current section.
Currently I ... | stackexchange/codereview |
I am trying to develop an Augmented Reality iPhone application in which I will place a 3D object in front of a live camera feed.
I need to zoom in and zoom out the object as the user moves backward/forward, and rotate the 3D model as the user walks around.
Is there a way to do this on the iPhone ?
| stackexchange/codereview |
I have three usercontrols aligned side by side inside a DIV. It displays well in all browsers except for IE8, where the third usercontrol wraps down. This can be seen at:
http://dealtown.com/UserTownPage.aspx?tid=153554
Widths seem to be right everywhere and there is enough space for the usercontrol to be displayed. I ... | stackexchange/codereview |
Is it possible to create a linked list on a GPU using CUDA?
I am trying to do this and I am encoutering some difficulties.
If I can't allocate dynamic memory in a CUDA kernel, then how can I create a new node and add it to the linked list?
| stackexchange/codereview |
I am trying to print an 8x8 grid on php can anyone check this code is I am doing something wrong
$row = 0;
$col = 0;
print "<form>";
while ($row <= 8){
print "<tr>";
$row++;
while ($col <= 8){
print "<td>";
print "<input type="checkbox" name="battle" value="ships">";
print "</... | stackexchange/codereview |
Basically I'm trying to download images from a website using the following command (SwiftIRC is an easy example to use):
wget.exe -r -l1 -A.png --no-parent www.swiftirc.net/index.php
This command works fine, however one of the ways I am trying to do it isn't working.
When I fire up an elevated command prompt, default... | stackexchange/codereview |
Convert this Array:
a = ["item 1", "item 2", "item 3", "item 4"]
...to a Hash:
{ "item 1" => "item 2", "item 3" => "item 4" }
i.e. elements at even indexes are keys and odd ones are values.
| stackexchange/codereview |
I have the following code:
static ArrayList<PreparedStatement> alPrepStmts = new ArrayList<PreparedStatement>();
static PreparedStatement m_stmtOne;
static PreparedStatement m_stmtTwo;
static PreparedStatement m_stmtThree;
...
static PreparedStatement m_stmtOneHundred;
private static void init() {
alPrepStmts.add... | stackexchange/codereview |
i try to build a language selection for my Website.
I use php and Javascript.
My idea is to create for every language a php file.
For example: lang_en.php
<?php
$lang = array();
$lang[1] = "Everything is ok!";
$lang[2] = "Please select a Number.";
?>
<script language="JavaScript" type="text/javascript">
lang = n... | stackexchange/codereview |
Possible Duplicate:
Contenteditable table row,column modifier
creating a contentEditable table cell for FF allows the user to enter some text directly into the cell . while doing so the outline of the cell (I think called the focus rectangle ) is overlaid with horizontal and vertical controls.
what are they, what d... | stackexchange/codereview |
We use database connection pooling for our java application. It is a web app run under tomcat.
I want to view live connections in the pool as they are created and destroyed. Can somebody please help?
UPDATE: We are using Oracle 11g. We use DDConnectionBroker library for connection pooling.
| stackexchange/codereview |
I have an iframe I'm using to pull in some content hosted by a 3rd party vendor to our website. We are trying to determine the height of that content to adjust the iframe height but I'm getting cross site scripting errors. I wasn't aware that sub-domains count as a cross-site. Is there some way around this without havi... | stackexchange/codereview |
if f(x) = (An) x^n + (An-1) x^(n-1) +...+ (A1)x + (A0)
how can you prove f(x) is big theta(x^n).
I've thought about it and one could do it by proving that f(x) big O(x^n) and x^n big O(f(x)). I've figured out the proof for the former (using triangle inequality) but could not understand how to do the latter.
Alternative... | stackexchange/codereview |
I have the following code to display the info window on the google map when marker is clicked how can i add tabs to the infowindows which is using extinfowindows ,can anyone help to trace out the problem.
function createMarker(point, name, address, imagepath) {
var marker = new GMarker(point, gicons[imagepath]);
... | stackexchange/codereview |
I have a <asp:TextBox with TextMode="Password". How can I read the value that the user entered, using the codebehind?
I want to create a new user with code like this, but PasswordTextBox.Text is always an empty string.
Membership.CreateUser(Username, PasswordTextBox.Text)
| stackexchange/codereview |
I am using Drupal in my website but there are some folders outside drupal. I want to exclude those folders from rewrite rules.
I already tried :
RewriteCond %{REQUEST_URI} !^/admin/ in .htaccess
Options +MultiViews in apache config
| stackexchange/codereview |
SELECT * FROM TABLE1
ID Name
1 SOF
2 USER
I want query which can one or two or four .... times ID = 1 in row like
What will be the Query of this in Ms.Access?
ID Name
1 SOF
1 SOF
1 SOF
2 USER
| stackexchange/codereview |
when i try to load a big map, the screen gets all black and frozen and when i ctrl-alt-delete it i found the following error : " XNA Framework Reach profile does not support 32 bit indices. Use IndexElementSize.SixteenBits or a type that has a size of two bytes. " . Any ideas ?
| stackexchange/codereview |
I have a directed acyclic graph(tree) described by (Parent1 -> Child1), (Parent2 -> Child2), ...., (ParentN -> ChildN) tuples. Is there any algorithm that reconstructs the tree(graph) from these informations?
A better example:
Root
Parent1
Node1
Child1
Child2
Parent2
Node1
Child1
... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.