instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Is there any way to measure the currently used size of permanent generation (PermGen) within my Java application? I cannot use external profiling tools such as VisualVM.
Even better would be an estimation of the memory consumption of a Java class in the PermGen. Is it nearly proportional to the size of the bytecode f... | stackexchange/codereview |
I would like to get the current filename and line number within a Perl script. How do I do this?
For example, in a file call test.pl:
my $foo = 'bar';
print 'Hello, World!';
print functionForFilename() . ':' . functionForLineNo();
It would output:
Hello, World!
test.pl:3
| stackexchange/codereview |
I recently converted a bunch of tables PK's from int to uniqueidentifier. Now in my code I am replacing certain checks like so:
if (planDiagnosisID != 0)
with
if (planDiagnosisID != Guid.Empty)
Where planDiagnosisID is an int in the first one and a Guid in the second.
Is this accurate?
| stackexchange/codereview |
i get this error
Catchable fatal error: Object of class __PHP_Incomplete_Class could not be converted to string in user.php on line 248
this is the line
function loadUser($userID)
{
global $db;
$res = $db->getrow("SELECT * FROM `{$this->dbTable}` WHERE `{$this->tbFields['userID']}` = '".$this->escape($user... | stackexchange/codereview |
SQL 2008. I am running sproc from SQL Studio and when I try to get Actual Execution Plan it blows up the tempdb.
I narrowed the problem down to call to a row scalar function which is used on 700K rows table.
I deduced that SQL is trying to create 700K exec plans for that function and writes all the data to tempdb whic... | stackexchange/codereview |
I've run into what seems to be a rendering issue in webkit when using overflow: hidden; on a child div and then increasing the height of a parent div using javascript. I've boiled my issue down to the following sample code.
Create a page from this source and then render in a WebKit browser (Safari, Chrome). Click on ... | stackexchange/codereview |
I have two stacks, one with operands, the other with operators. My problem is turning these two stacks into a binary tree.
For example, the expression (2+3)*(4-3)
will be translated into postfix ( such that 24+43-*) and then put into two stacks
3442 and *-+ will be the stacks (with the tops being 3 and * respectively... | stackexchange/codereview |
I want to convert my homegrown task queue system into a Celery-based task queue, but one feature I currently have is causing me some distress.
Right now, my task queue operates very coarsely; I run the job (which generates data and uploads it to another server), collect the logging using a variant on Nose's log capture... | stackexchange/codereview |
I have two machines, "here" and "there".
"there" creates an output file and sends it to "here" for some processing. "here" runs a shell script on the output and uses logger to send the results to a syslog aggregator. Unfortunately, the log aggregator sees the message as coming from "here", but I want it appear that t... | stackexchange/codereview |
I am currently working on a project that involves many subprojects that all have the same directory structure. I would like to setup a system where I can run ant build and ant will go through each folder and run it's target on each of the folders.
There are multiple tasks like this besides compiling that I need to exe... | stackexchange/codereview |
I am using Ruby on Rails 2.3.10. I have a class, School. I use STI to give me several subclasses: PrimarySchool, SecondarySchool and University.
app/models/primary_school.rb:
class PrimarySchool < School
has_many :education_records, :foreign_key => "school_id"
end
app/models/secondary_school.rb:
class Secon... | stackexchange/codereview |
I'm trying to access a site hosted on IIS from my HTC Desire. The site uses integrated security / windows authentication and uses SSL (with a valid certificate) (It's a SharePoint site if you want to know)
The phone hits the server just fine but is immediately turned away with a 401.2 Unauthorized error. It does not as... | stackexchange/codereview |
I'm using .NET Framework 3.5 with ASP.NET MVC and I'm using Linq To Entity for my data objects.
I have a Promotion Object that has a 1 to many relationship to the Location object.
What I want to do is take the collection of Locations from the Promotion object and sort those without putting them into another variable. S... | stackexchange/codereview |
Hey everyone. I have a function that works both with short input values, as with byte input values, here pixelData is an array filled with either bytes or shorts.
byte oColor;
if (pixelData[counter/3] < minValue)
oColor = 0;
else if (pixelData[counter/3] > maxValue)
oColor... | stackexchange/codereview |
I'm setting up a new, JPA+Spring project. What is the difference (for me as a programmer) between:
<tx:annotation-driven transaction-manager="transactionManager" />
and
<tx:annotation-driven mode="aspectj" transaction-manager="transactionManager" />
in my applicationContext.xml?
| stackexchange/codereview |
I want to get a table's schema in order. This question and its answer is exactly my question, and what I want to do. However it feels (to me) pretty hackish, and being two years old now I was hoping that the answer was out-of-date. Is there truly still no way to get a table's schema in its native order? (e.g. ADOX's ... | stackexchange/codereview |
This is what I have in pom.xml:
<dependency>
<groupId>com.sun.jersey.jersey-test-framework</groupId>
<artifactId>jersey-test-framework-grizzly</artifactId>
<version>1.4</version>
<scope>test</scope>
</dependency>
This is what I see after mvn --debug war:war:
[...]
[DEBUG] com.sun.jersey.jersey-test-framewor... | stackexchange/codereview |
I just asked this question about using a regular expression to allow numbers between -90.0 and +90.0. I got some answers on how to implement the regular expression, but most of the answers also mentioned that that would be better handled without using a regular expression or using a regular expression would be overkil... | stackexchange/codereview |
I have a WPF treeview used to display a file structure. Each treeitem has a collection of enums to determine custom status' of the item. I.E. ObservableCollection<enumType> statusCollection;
I have several ellipses that are displayed when a treeitem has one of these status... something like this:
<Ellipse Margin="3,0" ... | stackexchange/codereview |
How can i do that, from a simple way?
| stackexchange/codereview |
I am currently upgrading an application that made us of sync framework 1 to version 2. As part of this I am using the new scoping system and dropping the use of SQL Server Change Tracking.
It would appear that in order to provision a remote database for sync framework a number of new tables and stored procedures must b... | stackexchange/codereview |
I'm trying to populate a temp table based on the result of a condition in SQL 2005. The temp table will have the same structure either way, but will be populated using a different query depending on the condition. The simplified example script below fails in syntax checking of the ELSE block INSERT INTO with the erro... | stackexchange/codereview |
I am using JEdit with the JDiff plugin for file compares. Now I would like to open the JDiff plugin from another tool using command line parameters. Is this possible? So far I was only able to open the 2 files i want to compare in JEdit.
| stackexchange/codereview |
I am working on a web application that is a pretty simple and straightforward application except for on thing: it needs to be able to get documents from the scanner. I don't want to force the user to scan documents manually, save them, and then browse to them to upload the file, and I would like to avoid Active-X if po... | stackexchange/codereview |
I have an Tab Activity with 4 tabs.
Each of tab is showing me the list view.
Suppose i m on 4th tab and dragged the list view to the last position and after that i click on 3rd tab and again when i go to 4th tab it is not refreshing and showing me the last visible screen. Actually i want to show the list view again fro... | stackexchange/codereview |
I've had trouble knowing what to google for tutorials or books.
Here are some examples of something in the realm of what I would like to make:
http://www.chromeexperiments.com/detail/voronoi-experiment/
http://www.chromeexperiments.com/detail/plane-deformations/
http://jsdo.it/clockmaker/particle
I would ideally like t... | stackexchange/codereview |
I'm using oauth in an API library and the API requires that the Authorization header be explicitly set for each request.
I'm familiar with the setRequestHeader method, using it like:
this.request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
However, I'm not sure how to properly set the Author... | stackexchange/codereview |
It is unusable with a high contrast theme since executed commands appear with bright blue/pink against white text.
| stackexchange/codereview |
I have created an advent calendar for the blog of a friend, and to fetch/get/download the gifts of each day, the flash animation requests a file located at "http://domain.com/folder/etcetc/gifts.php".
While creating the file in Flash CS4 and trying it out, I never got the error. But when I try to launch the .swf manual... | stackexchange/codereview |
In all the examples that I can find that use a JTextArea, the height & width is known before constructing the JTextArea, and if the JTextArea would require more height, then it is put inside of a JScrollPane. Obviously, the height of JTextArea is dependent on the width and the text contents.
Now, my situation requires... | stackexchange/codereview |
I'm using a Wicket AjaxLazyLoadPanel to render a list of items (each is its own panel). It works fine except when you navigate to the page in a fresh browser session (start browser up, go straight to this page without visiting any other pages in the app). When you do this, it renders the first item, but shows wait in... | stackexchange/codereview |
How can I match characters (with the intention of removing them) from outside the unicode Basic Multilingual Plane in java?
| stackexchange/codereview |
I need to calculate how many times each keyword is reoccurring in a string, with sorting by highest number.
What's the fastest algorithm available in .NET code for this purpose?
| stackexchange/codereview |
SO this is a bit of an odd request but hoping someone on here knows some command line fu. Might have to post to serverfault too, we'll see.
I'm trying to figure out how i can pass the results of a curl request to the mysql command line application. So basically something kinda like this -
mysql --user=root --password=... | stackexchange/codereview |
I have a JTable and a popup menu that is specific to each row. I want to calculate the row on which the user right-clicked his mouse (Windows L&F) to bring up the popup menu.
I create a MouseListener for the table, so it gets the MouseEvent at the click, and shows the popup menu at the correct place. But when the use... | stackexchange/codereview |
Background
We have worker processes that read “jobs” from a table in SqlServer then write the results back to other tables. One or more machines run one or more worker processes.
A single SqlSever database (sometimes clustered) is at the centre of our world, so is likely to be where the solution should live.
We need a... | stackexchange/codereview |
I am creating SSRS Report using Microsoft SQL Server Report Builder 3.0.
I am having some page-break related problems. Whenever I insert a table in my report, it generates a page break at the end of the table.
Is there any way I can have this page break not generated?
| stackexchange/codereview |
I have a simple application with just a window and a user control. The user control has a list box. The user control is positioned on the Window and I want to bind the user control's listbox to an element on the window's data context.
The examples I've been able to find have CLR properties on the user control which ar... | stackexchange/codereview |
I would like to implement a vertical scroll in a drop down menu when the options in the menu exceed 8.Is it possible to achieve this by using Css properties alone?Please let me know how I should go about this
| stackexchange/codereview |
I want to take chrome extension tab information (title, url) and pass to a php page on my server. I have it displaying the information but when I try to write an iframe with the information I can't get the information to the .php page.
Is there a better way to do this? Thanks!
{
"name": "XXXXXX",
"version": "1.0"... | stackexchange/codereview |
What's the difference between Firefox's -moz-inline-box and -moz-inline-stack proprietary display values?
| stackexchange/codereview |
I have two flash movies fl_base and fl_top. fl_base contains ActionScript that pulls a string variable from a server and parses it out to determine the navigation menu of a site (the headers, subheaders, and the links to where each of those navigation items should point, as illustrated below).
Menu 1
--Sub Menu 1.1
--S... | stackexchange/codereview |
I am seeking your advice with regards to generating CSV reports.
I have an ASP.NET application that is produces reports on billing data. Recently, I have noticed that when it tries to export a report file the web application is unresponsive and will throw in an OutOfMemory exception or Server timeout exception.
What I... | stackexchange/codereview |
I have a function in C++ with the following signature:
float Foo(float time, float min, float curr, float beta)
Within the function, I want to determine and return MAX in the following equation:
time = beta + (1.0f - beta) * ((MAX - curr) / (MAX - min))
To test the results, you could use the following arguments:
Foo(... | stackexchange/codereview |
Is it possible to add annotations to existing PDF files (and display visual representations of those annotations when viewed) online using a server-side language, (preferably PHP)? Are there any libraries to do so?
| stackexchange/codereview |
So, I am wondering that how to define the order of the columns in Model so that when Django does forward engineering to generate database, the order of columns in the physical database table can be determined by the Model itself?
Currently some of my model classes inhering from other model class, so the derived model c... | stackexchange/codereview |
i am a student and i have to demo how mod security works in my class.
so far i have been able to download the module modsecurity-apache_2.5.12, i have a basic idea on how and what mod security is.i have seen Ivan ristic's videos.
the problem is...
i dont know how to edit the httpd.conf.in file.What changes to make and ... | stackexchange/codereview |
I'm trying to write metadata to a pdf file using the following python code:
from Foundation import *
from Quartz import *
url = NSURL.fileURLWithPath_("test.pdf")
pdfdoc = PDFDocument.alloc().initWithURL_(url)
assert pdfdoc, "failed to create document"
print "reading pdf file"
attrs = {}
attrs[PDFDocumentTitleAttrib... | stackexchange/codereview |
Say I have a method like this*:
public T GetItem(int index)
{
if (index < 0 || index >= _privateList.Count)
{
throw new ArgumentOutOfRangeException("index");
}
return _privateList[index];
}
Would you include that throw or leave it out? On the one hand I feel like it's good to handle invalid in... | stackexchange/codereview |
Sometimes I need to provide a Context object to call specific functions, such as
Intent intent = new Intent(context, MyClass.class);
in order to start a service
context.startService(intent);
Or, provide a Context object to do a query
Cursor cursor = context.managedQuery(uri, projection, null, null, null);
If this i... | stackexchange/codereview |
I need to get a state from checkbox to my div. The div is wrapping the checkbox.
<div id="checkWrapper">
<input type="checkbox" />
</div>
Something like that. And when user clicks the checkbox and it gets checked state I would need to get some class to #checkWrapper div. Class can be anything, maybe something like "ch... | stackexchange/codereview |
I'm attempting to reference an object property that has a . in the name. So, for example, in fdb if I have an object:
MyObject
target.property
If I attempt to "print":
fdb> print MyObject.target.property
I get:
Variable target.property unknown
How do I access this property and look at it's contents given that it's ... | stackexchange/codereview |
I am writing a small application to learn WPF/MVVM and I have sort of run into a conundrum, I have a viewmodel object ready to go, but I don't know where to instance it.
The viewmodel represents a single windows data(some sliders values, a progressbar value and a few textstrings. Some of these are directly attached to ... | stackexchange/codereview |
I am writing a command script that calls a stored procedure. That stored procedure returns a value that I need later in the script. Is there any way for me to capture that value into a variable of some sort?
Thanks in advance!
| stackexchange/codereview |
I have a family of classes which i feel needs some encapsulation over the creation methods. Take for example:
public abstract class File
{
protected File(string fileName)
{
Name = fileName;
}
string Name {get; set;}
}
public class ImageFile : File
{
protected ImageFile(string fileName, ... | stackexchange/codereview |
so this neat library is helping me with some things, but its acting strange with others.
I can see in its github repo history:
https://github.com/pgriess/node-webworker/commit/3cd733ec1df946a1dc55b5fcde7388097ac0f6a2
that every child worker gets a console properly exported into its context. my understanding is that th... | stackexchange/codereview |
I'm attempting to create a sort of 'summary' view, where values should be pulled from several different tables ([Account],[Branch],[Customer],[Employee],[Transaction],[FlaggedTrans]).
Since I can't do a slew of SELECT statements in a view, I'm trying to accomplish the task using INNER JOINs, which is where my issue lie... | stackexchange/codereview |
I am having a hard time figuring out this problem. My app has iAds enabled and it works on iPhone (device) and iPhone (simulator) 4.1. I know version 3.2 (iPad) does not support ads. So, I did a weak link to the iad library. In the build options => linking => other link tags I wrote iAd. After this I get a build error:... | stackexchange/codereview |
Given a table with a datetime column, how do I query for rows where the date matches the value I specify but ignores the time portion?
For example, select * from sales where salesDate = '11/11/2010'
For this query we don't care about the time. Other queries require the time component so we can't store only the date com... | stackexchange/codereview |
What's the best method for adding an XsltListViewWebPart to a site definition's default.aspx?
I've tried to add one to the definition's default.aspx declaratively by copying the XML from an existing page, but there are a number of references to view and list guids which I won't have until the site is provisioned. The ... | stackexchange/codereview |
I have an ASP.NET web application.
It has a web service, with several web methods.
All of these web methods are based on the default settings. For instance:
using System.Web.Services;
namespace WebApplication2
{
[WebService(Namespace = "http://mydomain.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicP... | stackexchange/codereview |
In a manner similar to what is possible with overloaded operators, is there a way to apply some sort of magic to a variable so that the following:
my $magic_var = ...;
some_function($magic_var);
will result in something like this:
call_function(\&some_function, $magic_var)
If some_function was not defined, I could j... | stackexchange/codereview |
We're using git for version control and the workflow is such that people do their work in a branch. In order to benefit from CI in that branch we want Hudson to build it and test it. However, just because the branch is broken doesn't mean the whole build is broken.
Thus, I'm wondering if I could tell Hudson to report... | stackexchange/codereview |
I have a simple One-to-Many relation mapped with SqlAlchemy:
Base = declarative_base()
class Type(Base):
__tablename__ = "entity_types"
type = Column(String(100), primary_key=True)
description = Column(String(300))
class Entity(Base):
__tablename__ = "entities"
id = Column(Integer, primary_key... | stackexchange/codereview |
I'm searching for a good open source Math Library which can do things like:
Parse math. expressions "1+1*(3/5)"
Integration
Does anybody know something like this?
| stackexchange/codereview |
Would it be possible to use the audio controls in the multitasking tray for non-audio related tasks?
(For example, putting the app icon there, or using the buttons to respond to something else?)
Does this violate an HIG rules?
| stackexchange/codereview |
Each jQgrid row has multiple checkboxes, so I cannot use (just) the multiselect.
This is how the column is setup...
{ name: 'ColName', label: '', width: 50,
editable: true, sortable: false, edittype: "checkbox", formatter:
'checkbox', formatoptions: { disabled:false}, index:"my_checkbox",
editoptions: {value:"Ye... | stackexchange/codereview |
Hi i know that in NSWorkspace is a method that check if data is changed (noteFileSystemChanged:), but i was wondering if there is a possibility to automaticly observe for data change on specified path (ex. new file in directory).
Thanks for reply !
| stackexchange/codereview |
My brain has melted due to several weeks of 14-hour days.
I have a template class, and I'm trying to write a template convert constructor for this class, and specialize that constructor. The compiler (MSVC9) is quite displeased with me. This is a minimal example of actual code I'm trying to write. The compiler err... | stackexchange/codereview |
I'm trying to figure out what to use for my web application. I"m currently using Google maps api, however I have started looking at Bing maps api more. This application among other things, gives directions to where you have to go. The reason I'm thinking about going to Bing is that Google has gotten some addresses wron... | stackexchange/codereview |
The code pretty huge and involves a lot of different class/methods:
But here is the gist:
There is a main frame : A_Main
Selecting something in the main frame A: opens a JDialog B_Dialog
This B_Dialog has a JPanel on it: C_Panel
This C_Panel comprises of a textfield and a button
On clicking on the textfield/button: o... | stackexchange/codereview |
When I inner join the second table I only want to join a single row. The criteria is to take the row with the highest integer in the level column. I was thinking something like this:
SELECT *
FROM file_repo
INNER JOIN
( SELECT
MAX(files.level)
FROM
files
) ON file_repo.id = files.repo_id
For each ... | stackexchange/codereview |
I have one database that has many schemas, one per client. We want to create a web application to be access online by the clients, the application should get the schema on runtime, I think in use Springframework and Hibernate to access the database. It's possible to use hibernate to make this works? Exist another frame... | stackexchange/codereview |
I am trying to create a crawler to download some content from a web site.
Assuming that the url to consume is something like
clickUrl ="http://www.example.com/idocs-nph/search/pdfViewerForm.html?args=5C7QrtC22wGYK2xFpSwMnXdtvSoClrL8xJKSjjboeVQpCCmqt4mgGEHlbmahCJFQEmRQwePEviF8EeCoaT0MAKztT3Sb63xk3VkL3PiCQ3RLoVYQqjKiogfu... | stackexchange/codereview |
I have two problem in my data entry page: probml 1)Though I am doing client side validation, why pointer is going to code behind page..
I have a text field called amount if that field is empty I am one alert message and focusing on that field. But immidieately control going to code behind page: in this line:
decimal a... | stackexchange/codereview |
how to implement manually string splitting algorithm to fit it into the rectangle.(insert ... or \n where needed)
i can calculate the length of the string in pixels.
i have standart std::string and
rect struct containing left, top ,width ,height
how to split string into words phrases that it size was not larger than r... | stackexchange/codereview |
I'm creating an application that uses an android to send and receive data via bluetooth. but I'm having problems when creating the socket. He gets caught in that line mmSocket btserver.accept = (); And I can not pair with any device.
I have another doubt, I can make that communication with an android and a symbian?
| stackexchange/codereview |
I used SetTimer with 40ms and WM_TIMER message to draw an image every 40ms (25 frames per second) but the result is too slow.
I found out that WM_TIMER isn't accurate, I tried to use multimedia timer but the callback proceudure didn't work .
My question is:
How can I draw my images with 25fps?
Thanks!
| stackexchange/codereview |
Suppose I have the class
class car
{
int color = 1;
seats carSeats = new seats();
class seats
{
int numSeats = 4;
}
}
Using Java reflection, I can use the following:
car c = new car();
Field[] carFields = c.getClass().getDeclaredFields();
carFields would have { color,... | stackexchange/codereview |
I'm looking to write a web service that can take on Java code input by the user and compile and show the results back. Is there any recommended platform that will let me do this using PHP - so that I can integrate java functionality into it? I need a text area for code that can be compiled.
Also, what kind of server c... | stackexchange/codereview |
Sometimes there is a lot that needs to be done when a given Action is called. Many times, there is more that needs to be done than what needs to be done to generate the next HTML for the user. In order to make the user have a faster experience, I want to only do what I need to do to get them their next view and send it... | stackexchange/codereview |
I am building an app which syncs contacts from an online source. Everything works fine so far...when the phone has one address book:
ABAddressBookRef addressBook = ABAddressBookCreate();
ABRecordRef group1 = ABGroupCreate();
ABRecordSetValue(group1,kABGroupNameProperty,@"Group1",nil);
ABAddressBookAddRecord(addressBook... | stackexchange/codereview |
I am using an example from WordNik samples-sdk, I killed most memory leaks but there's a warning that I can't understand what it is and how to fix it!
I have asked help on their Google group but while they answered to pretty much to every question that I asked, they keep ignoring this one, I am hopeful that the collect... | stackexchange/codereview |
If I am inside the contents of iframe_2 how do I change the text of header_2?
<h3 id="header_1"></h3>
<iframe id="iframe_1"></iframe>
<h3 id="header_2"></h3>
<iframe id="iframe_2"></iframe>
<h3 id="header_3"></h3>
<iframe id="iframe_3"></iframe>
| stackexchange/codereview |
I am thinking a writing an app to talk to my Windows taskbar. I want to know what processes are causing it to not auto-hide.
Any one know a good place to start to get this kind of info? Documentation?
Info on how to have my app notify the taskbar to stay up would work too (I could at least get started there).
Basical... | stackexchange/codereview |
Given a list of line segments, the easiest way to find the intersection points is to loop through the line segment list, check whether they are intersecting and record the intersection point if they do.
But the runtime of this method is O(n^2), which is very inefficient. Is there any other algorithm that could speed up... | stackexchange/codereview |
i´m trying to write a little script for writting a sqlite table from an archive list saved in a file. the code so far is this:
import os import _sqlite3 import sys
print sys.path[0] mydir = sys.path[0] print (mydir) def listdir(mydir):
lis=[]
for root, dirs, files in os.walk(mydir):
for name in files... | stackexchange/codereview |
i would like to pass the integer value in the module. following is my C code;
int i;
SYMBOL di;
di = symbol_CreateStandardVariable();
and the module is
t = term_Create(Door,list_Cons(term_Create(di, list_Nil()), list_List(term_Create(di, list_Nil()))));
is there any way so that i can pass the value like d1, d2... | stackexchange/codereview |
Is there a command line option to list all the tags in your cucumber test suite?
For example, I would want something like:
cucumber --show-tags foo.feature
That would give me something like:
@ci
@development
@regression
@wip
| stackexchange/codereview |
I've been playing with large graph layout for a while now. What are some applications for the layout, visualization, and interaction with large graphs? Large in this case meaning at least 10's of thousands of nodes.
I'd like to find something that doesn't just look cool but is actually useful.
| stackexchange/codereview |
In building custom controls, I've seen two patterns for using the viewstate. One is to use properties to disguise the viewstate access as persistent data.
public bool AllowStuff
{
get
{
return (ViewState[constKeyAllowStuff] != null) ?
(bool)ViewState[constKeyAllowStuff] : ... | stackexchange/codereview |
I spend about 2 hours reading a lot of factory related topics and I still am not sure if this would be the right approach.
Here is the thing: I have an Enemy class that has contains member variables like name_ and health_. I want to create instances of it with different values of these member variables and my first app... | stackexchange/codereview |
I wrote a Google Chrome extension and the site that I want to use my extension on requires me to click or tab onto a text box (because I think it runs javaScript verification "onClick" only). I can get the text in the box with my extension using:
document.getElementById("input1").value = 'test';
But when I click subm... | stackexchange/codereview |
I am looking for a tool that meets the following requirements
1) Ability to import shapefile in osgb36 format to database (sql server 2005/2008) programmatically.
2) Ability to convert OSGB36 to WGS84 programmatically.
3) Compitable with .NET framework. (e.g. in C#)
I tried a few, but none of them work.
I want the tool... | stackexchange/codereview |
Im trying count the number of positive elements in a list. Here is what I have so far:
(define howMany
(lambda (list)
(cond
[(not (list? list)) 0]
[(null? list) 0]
[(> list 0) (+ 1 (howMany (cdr list)))])))
It keeps giving me an error, "expects type real number", how would you fix... | stackexchange/codereview |
how to display names of employee ending with 'tt' from an employee table in mssql
| stackexchange/codereview |
I'm having trouble with my SWT application where the shells/dialogs always open underneath other windows by default ("pop-under"). if I set the SWT.ON_TOP bit, the window opens properly on top, but then I block other applications, which isn't really desirable either...
I'm wondering if there's a proper way to specify t... | stackexchange/codereview |
I am using the following script to load some data through the firefox extension UI.
var req = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"].createInstance();
var www = "http://localhost/view?url=http://google.com";
req.open('GET', www, true);
if (req.readyState){
alert(req.readyState);
}
It alert... | stackexchange/codereview |
i need a java program in java that compiles other java programs using cmd commands
| stackexchange/codereview |
I have a form split up into two parts. One part is for entering data and the following part is a list of the entered data. When I CUD an object in the form I want to update the list, I do this via a trigger:
jQuery("#magnifier").parent().trigger("click");
Due to the heavy use of Safari in my company I had to choose th... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.