instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm trying to hook the creation of objects in Javascript. This is easy for methods, but afaik not for constructors. I cannot change the way to create objects as this has to work for current libraries.
Anyway, this is what I have now:
Function.prototype.afterConstruction = function(hookFunc) {
var oldObj = this;
... | stackexchange/codereview |
This is the code to read text of a pdf using perl
#!/usr/bin/perl
use PDF::API2;
$pdf = PDF::API2->new;
$pdf = PDF::API2->open('01443325.pdf');
$page = $pdf->page;
$pagenum=10;
$pdf->stringify;
$page = $pdf->openpage($pagenum);
print $page;
I dont get any output when i Run this code . H... | stackexchange/codereview |
I'm using twisted with gtk (and gtk2reactor). My application crashes in a strange way. So far this is the second time it's crashed in this way. The previous time was about a month ago. These are the errors Python was able to capture in my log file:
2010-11-12 05:23:10,497 ERROR stderr: C:\Python25\lib\site-packages\... | stackexchange/codereview |
I have a 1px by 1px grey pixel. It is used as a BG image:
background-attachment:scroll;
background-color:transparent;
background-image:url("../image/vertical-border.png");
background-position:393px 0;
background-repeat:repeat-y;
So I expect a grey, vertical line the height of whatever is tallest in the div. Common tri... | stackexchange/codereview |
I am trying to create a JNI wrapper for a C library that depends on the ICU libraries (libicuuc.so and libicui18n.so).
I tried building ICU4C in my NDK (both standard and CrystaX versions, on a Mac OS X machine) and kept running into linking issues like this:
/Users/kyip/KyVmShared/KyAndroid/myproject/obj/local/armeabi... | stackexchange/codereview |
According to the WebSocket Draft-76 spec, Wocket.close is supposed to do the following:
"To close the connection cleanly, a frame consisting of just a 0xFF byte followed by a 0×00 byte is sent from one peer to ask that the other peer close the connection."
But, after a few tests, I don’t think that Chrome is doing anyt... | stackexchange/codereview |
I believe I can't disable it because I can't access that UIBarButttonItem programmatically
(with either viewWithTag or rightBarButtonItem).
Any suggestions (short from adding the interface without IB)?
As a test, I also tried adding a button programmatically (on the left of the nav bar), but it did not display in th... | stackexchange/codereview |
I have an application that retrieves the text of stored procedures using sp_helptext. It works great on all my stored procedures except for CLR stored procedures. If I try to use sp_helptext on a SQLCLR stored procedure, I get this error:
There is no text for object 'PROC_NAME'
I know SSMS can do it when I use the ... | stackexchange/codereview |
I have a fairly simple page with images that link to downloadable documents. I have one section that floats left and the other that floats right followed by an empty div to clear both before I add more content.
The problem is that there is an unwanted 100px gap between the first set of forms and the General Forms secti... | stackexchange/codereview |
If 1 bool is 1byte [8 bits] then would a packed structure of 4 bools be 32bits or 4? The pack directive removes the alignment requirement, but would it make sets of bools more efficient [memory wise]?
| stackexchange/codereview |
Ok I see these 2 questions:
How to open PDF file in Google Chrome in new tab?
Can Google Chrome open local links?
But I'm not sure they answer my question. I'm trying not to install any PDF reader (Adobe sucks) and know that Chrome will open PDFs I open from the internet. So my question, is why won't it work if the PDF... | stackexchange/codereview |
I have a WPF user control that will dynamically have any number of GridViews. Each is essentially the exact same except for the ItemsSource. Therefore each have the same columns and the same RowDetailsTemplate. To be specific what I am actually doing is settings the columns to the bound values and then setting the RowD... | stackexchange/codereview |
So one week ago I started to move my old app written in Rails 2.3.5 to new 3.0. Unfortunately, I found out that some of the views are loading surprisingly slow.
Example:
Rails 2.3.5 Ruby 1.8.7 -> WEBrick: Completed in 297ms (View: 143, DB: 40)
Rails 3.0.0 Ruby 1.8.7 -> WEBrick: Completed in 3081ms (View: 261, ActiveRe... | stackexchange/codereview |
I'm looking for a regular expression that will accurately identify any PHP call time pass by references in source code in order to aid migration to PHP 5.3.
Currently, I have [^=&]\s*&\s*\$, but this doesn't filter out assignment cases ($var = &$othervar;).
This regexp should be compatible with eclipse (sorry, not su... | stackexchange/codereview |
I'm trying to use the scipy.stats.gaussian_kde class to smooth out some discrete data collected with latitude and longitude information, so it shows up as somewhat similar to a contour map in the end, where the high densities are the peak and low densities are the valley.
I'm having a hard time putting a two-dimensiona... | stackexchange/codereview |
So much talk about lambda functions... So I tried to write mine. :(. It did not work. Does g++ 4.3.2 support lambda functions? How to find out whether it supports a certain c++0x feature or not?
| stackexchange/codereview |
I'm using hibernate's batch fetching to improve query performance. In my persistence.xml I've added the following setting:
<property name="hibernate.default_batch_fetch_size" value="50"/>
I've got an entity A, which has a 1:n relation to an entity B. The data for this relation is fetched lazily. Now I've got the follo... | stackexchange/codereview |
I have the following form on a site
<% form_tag({ :action => :subid}, :id=>'run_report', :name => 'run_report') do %>
Beginning Date <%= date_select("post", "start_date", :start_year => 2010,:order => [:month, :day, :year]) %><br />
End Date <%= date_select("post", "end_date", :start_year => 2010,:order => [:mon... | stackexchange/codereview |
I have been trying to use the Settings.bundle as the store for options using PSMultiValueSpecifier which will allow a user to select one of them. So I need to be able to add NEW options in the Settings.bundle. Seemed easy enough.
Here is a sample of the PSMultiValueSpecifier in the Root.plist
<key>Type</key>
<string>PS... | stackexchange/codereview |
What is the different with
<images src="http://localhost:3000/images/logo_general.png">
and
<%= image_tag("logo_general.png") %>
Why am I having problems loading images using the first way?
| stackexchange/codereview |
I tried doing:
for (int i=0; i<matrix.length; i++) {
for (int j=0; j<matrix[].length; j++) {
but that doesn't work :(
| stackexchange/codereview |
I am looking for lightweight proprietary or open-source build-automation and deployment software (so, a GUI, and not command line based). Currently, developers commit code to SVN, and a separate team is responsible for building the code, and deploying it to multiple environments. So, the tool is needed for managing the... | stackexchange/codereview |
I'm sure the opposite has been asked many times but I couldn't find any answers on how to generate bad random numbers.
I want to write a small program for cluster analysis and want to generate some random Points for testing. If I would just insert 1000 Points with random coordinates they would be scattered all over the... | stackexchange/codereview |
Assuming that arr is an array of objects.
arr = // some items;
function findItem( source, item ) {
return source.indexOf(item);
}
Now, I know the code is correct, it actually does find the right index, but I get an 'undefined' response. However if I do this..
function findItem( source, item ) {
var i = 0;
i = s... | stackexchange/codereview |
I have a series of classes A, B, ... which have many derived classes which are created inside a module I do not wish to change.
Additionally, I have at least one class Z, which has to be informed whenever an object of type A (or derived classes) is created or destroyed. In the future, there may be more classes, Y, X th... | stackexchange/codereview |
How can i change which is the current sound card in use (xp), without going into control panel>sounds devices> choose playback device.
any language would suffice, or batch file, just that i have to change the device for playback about 50 times a day and its a pain having to load control panel each time.
How?
| stackexchange/codereview |
I want to create a simple (non-secure) login-check from mysql database, where I have a table which has Login_name and Password fields. However, my system logs in if the Login_name is right no matter what password the user inserts. How do I fix the system to check that both match the user? My SQL procedure:
CREATE PROCE... | stackexchange/codereview |
// display vector elements using const_iterator
for ( constIterator = integers.begin();
constIterator != integers.end(); ++constIterator )
cout << *constIterator << ' ';
Can we use constIterator < integers.end()?
Thank you
| stackexchange/codereview |
This is related to the a thread that was posted earlier in this forum.
What are some recommended frameworks for manipulating spatial data in C++?
Do you know of a geometry library that offer generics-based compile-time protection from mixing UCS and GCS coordinates? For example, I'm looking for something that allows me... | stackexchange/codereview |
I created an installer for it, installed .NET Framework 4 on target machine. However, my application didn't work. I've got a message, that is has stopped working and offered to send a report.
Windows log:
The name of the offending module: KERNELBASE.dll, version: 6.1.7600.16385
Exception Code: 0xe0434352
Offset error: ... | stackexchange/codereview |
I am working on an application that is near the end of its development cycle and has mostly passed user testing. We recently realized that having flex convert dates to the client's local timezone is not desired, as all of our dates are in EST and contain no time data. Since BlazeDS sends dates in UTC, this results in t... | stackexchange/codereview |
I tried to request the weather from a web service supplying data in JSON format. My PHP request code, which did not succeed was:
$url="http://www.worldweatheronline.com/feed/weather.ashx?q=schruns,austria&format=json&num_of_days=5&key=8f2d1ea151085304102710";
$json = file_get_contents($url);
$data = json_decode($json, ... | stackexchange/codereview |
Background information first:
We are using a strongly-typed DataSet to manage transaction files. That is to say, the DataSet does not use a database of any kind as its backing store; instead the DataSet is used to read and write XML files to disk. The WriteXml(fileName As String) is used to output specific rows of data... | stackexchange/codereview |
Is it possible to access an SSL client certificate protected URL from an oracle stored procedure somehow? With UTL_HTTP or with UTL_DBWS? With a Java stored procedure perhaps?
A code example would be very welcome.
| stackexchange/codereview |
I'm wondering if there's an easy way to get the colorspace of an image (i.e. an image loaded into a UIImage)? For example, I have a TIFF image and I'd like to be able to determine if it uses the RGB colorspace or not. Is there an easy way to do this without manipulating pixel data? I know there's some CGColorSpace func... | stackexchange/codereview |
I have a web page with
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<div id="map_container">
<div id="map_canvas"></div>
<div id="directions"></div>
</div>
CSS
#map_container {width: 500px; height: 500px; }
#map_canvas {width: 100%; he... | stackexchange/codereview |
i have an Hibernate DAO, in according with Hibernate API 3 and Spring 3.x, I use simply a sessionFactory and NOT an HibernateDaoSupport+getHibernateTemplate() - i hope this is a good choice... -
Now my goal is to autowire sessionFactory into my DAO using annotations.
In my spring.xml i have this:
<context:component-sca... | stackexchange/codereview |
I'm writing a web method that publishes an xhtml file to a database. This web service should be technology agnostic (support Java applications for example). The publish method returns a string. In the return I want to inform the calling application about the success or failure of the publish. In addition I want to incl... | stackexchange/codereview |
I have a DataTable that was built from dynamically created SQL, so I do not know the number of columns in the datatable.
How can I convert this datatable into an IList?
EDIT: I am then going to use this to send to a Telerik Grid on the page.
| stackexchange/codereview |
I have 3 entities Teacher, Subject, SchoolYear and SchoolYearSubject. SchoolYear, Teacher and Subject have many SchoolYearSubject. SchoolYear should have many Subjects each with its one Teacher, so I use SchoolYearSubject to store this relationship.
class Teacher { ICollection<SchoolYearSubject> }
class Subject { IColl... | stackexchange/codereview |
How can I achieve something similar to the TOP function is SQL using Xquery? In other words, how can I select the top 5 elements of something with ties? This should be simple but I'm having trouble finding it with Google.
An example of some data I might want to format looks like this:
<?xml version="1.0"?>
<root>
... | stackexchange/codereview |
Is there a pre-existing function or class for URL normalization in PHP?
Specifically, following the semantic preserving normalization rules laid out in this wikipedia article on URL normalization, (or whatever 'standard' I should be following).
Converting the scheme and host to lower case
Capitalizing letters in escap... | stackexchange/codereview |
I have an oracle database, and I am creating a web interface for it. I am making a servlet for login, where it asks for a user name and password, after which a user can access the web interface. If a user does not have an account, I have a link to a page where they can register. In terms of where the username and passw... | stackexchange/codereview |
What does this line of code do?
len = ( s.length>t.length ) ? s.length : t.length
| stackexchange/codereview |
One of the new requirements for our database application is to synchronize the contents of the user table with the users in Active Directory. So basically I need to connect to the Active Directory server and retrieve a list of user names, from within a plsql procedure.
What I have achieved so far is connect to the act... | stackexchange/codereview |
I have two instances of same database and I want to have only one instance of database, so what I need is to import data from one databes to another.
Ofc I can go table by table, but there is lots of tables. I was wondering is there sql statement that can merge two databases or is there option in Microsoft SQL server d... | stackexchange/codereview |
import threading
import Queue
import urllib2
import time
class ThreadURL(threading.Thread):
def __init__(self, queue):
threading.Thread.__init__(self)
self.queue = queue
def run(self):
while True:
host = self.queue.get()
sock = urllib2.urlopen(host)
... | stackexchange/codereview |
I have one of the latest versions of Qt Creator.
is there something like VS solution? In which you can add projects and set project dependencies and build order?
if I have multiple open projects, how do I set one of them as "default", so that Ctrl+B builds specifically that project?
| stackexchange/codereview |
I've been using this book as reference to creating my Blackberry application. So far I have a list of items and when I select one I get the side menu but next to my list item:
Just looking through my methods, I'm not sure which one causes this as I can remove the custom item (GetValue) from the Menu and it will still ... | stackexchange/codereview |
I created following example of actors in Scala: http://pastebin.com/pa3WVpKy
Without throttling (reducing number of SendMoney messages) that occurs in lines:
val processed = iterations - counter.getCount/2
if (processed < i - banksCount * 5) Thread.sleep(1)
message processing in this test is very slow (especially when... | stackexchange/codereview |
I have multiple strings similar to:
$str = "/One/Two";
$str2 = "/One/Two/Flowers";
$str3 = "/One/Two/Grass";
$str4 = "/One/Another/Deeper";
$str5 = "/Uno/Dos/Cow";
I want to split it into a deep nested array that looks similar to the following:
Array
(
[One] => Array
(
[Two] => Array
(
... | stackexchange/codereview |
I've been googling and can't find a solution for this. I'm trying to setup .tpl files to use either HTML syntax highlighting or PHP syntax highlighting. Has anyone does this, or do you know how?
Thanks
| stackexchange/codereview |
This should be simple, but I can't think of a good way to do it. How do you transform an ILookup into another ILookup? For example, how would you copy/clone an ILookup, producing another ILookup with the same keys and same groups?
Here's my lame attempt:
static ILookup<TKey, TValue> Copy<TKey, TValue>(ILookup<TKey, TVa... | stackexchange/codereview |
just like in other normal programming languages...
we can for example override the OnPaint() of the control...
can we do the same in xcode/cocoa touch/objective-c puzzle?
With no disrespect for the people who like it of course, and see that it's a limitless framework.
| stackexchange/codereview |
I've been trying to setup W3C Unicorn on Ubuntu 10 using Tomcat6 but running into a few problems with proxy servers.
I've got Unicorn configured (via tomcat) to use a proxy server using java's -Dhttp.proxyHost and -Dhttp.proxyPort. This works fine and Unicorn is able to download the files it needs.
The problem is that ... | stackexchange/codereview |
If I have:
$array = array( 'one' =>'value', 'two' => 'value2' );
how do I get the string one back from $array[1] ?
| stackexchange/codereview |
I have two post requests I'm making utilizing jquery and a method that uses the result of those posts. So the code works like this:
post1
post2
function
How do I get the code to wait until both post1 and post2 are completed before calling the function? I tried doing a while loop to see if the data from post1 and ... | stackexchange/codereview |
i saw an unusual problem in this code:
#include <iostream>
using namespace std;
int main()
{
int number;
bool repeat=true;
while (repeat)
{
cout<<"\nEnter a number:";
cin>>number;
cout<<"\nNumber is:"
<<number;
cout<<"\nRepeat?:";
cin>>repeat;
}
system("pause");
return 0;
}
here in this code when... | stackexchange/codereview |
consider:
<div id="message"></div>
The jquery says:
var html_to_insert = '<div id="mynewdiv"><input id="myfield" name="myfield" type="text" value="" /></div>'
$('#message').html(html_to_insert);
The html result is as expected:
<div id="message"><div id="mynewdiv"><input id="myfield" name="myfield" type="text" value="... | stackexchange/codereview |
I am developing a plugin for Gedit.
import gedit
class ReloadOnSave(gedit.Plugin):
def __init__(self):
gedit.Plugin.__init__(self)
def activate(self, window):
for view in window.get_views():
self.connect_handlers(view)
def connect_handlers(self, view):
print 'Reached ... | stackexchange/codereview |
I am migrating my oracle database to SQL Server. What is the easiest way to convert to_date functions? I have many sql which use to_date.
For example I have an update query. It contains following line.What can be solution to convert it to SQL Server 2008 with minimum effort?
Sample Query Line
LAST_LOGIN=to_date('" & m_... | stackexchange/codereview |
I am an ubuntu user and very much fascinated by evolution mail client. I want to write a similar code for browsers using LAMP and jQuery/JavaScript.
I already have a table in mySQL with name as user_account_details. Where I have columns as userID, protocol, protocol_username, protocol_password.
I don't need the complet... | stackexchange/codereview |
I use this code to copy row from Table1 to Table2, but it gives me
Command Text does not return a result set
ADOQuery1.Close;
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add('insert into Table1');
ADOQuery1.SQL.Add('select Field1 ,Field2 from Table2');
ADOQuery1.SQL.Add('where ArtNo= 1');
ADOQuery1.Open;
ADOQuery1.Ref... | stackexchange/codereview |
I want to send email using the php code, Following is the code should validate and also sends email to myemail.com. However, it is not working.
I am new to php. any help appreciated!!!!
// EDIT THE 2 LINES BELOW AS REQUIRED
$email_to = "myemail@gmail.com";
$email_subject = "Subject here...";
function died($error) {
... | stackexchange/codereview |
I have set up in Javascript my preferred dijit.Menu which is that far so good.
How am I able to display the dijit.Menu directly after the page starts up in the (with it's position) without any mouse interaction?! I have looked in the API so far and don't find the answers. Will I have to "overwrite" a method?
If yes,... | stackexchange/codereview |
Here`s my SHOW CREATE TABLE tbl:
CREATE TABLE IF NOT EXISTS `msc_pagestats` (
`id` int(10) unsigned NOT NULL auto_increment,
`domain` varchar(250) NOT NULL,
`file` varchar(200) NOT NULL,
`simbol` varchar(100) NOT NULL,
`request_time` timestamp NULL default CURRENT_TIMESTAMP,
`querystring` mediumtext NOT NUL... | stackexchange/codereview |
I have a call to a method via ajax async:true, but the returned value is not displayed.
$('.loading').show();
$.ajax({
type: "POST",
url: "/client/owedasync/",
data: "client="+id,
async: true,
success: function(t){
alert(t);
$('.loading').hide();
... | stackexchange/codereview |
I've been asking a few questions on this topic recently, so I feel it appropriate to link up the associated question(s).
PHP closures and implicit global variable scope
I've got a set of classes that use closures as in the example below (keep in mind I quickly punched together this example for this thread) My question ... | stackexchange/codereview |
I need to reference a column in a component script to add it's value to a string builder. From there i need to send the string builder to an output column.
thanks
| stackexchange/codereview |
I'm trying to get Selenium setup to run as a windows service. It seems to be okay but, then does not seem to run properly.
Using the windows toolkit I have done:
"C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" SeleniumRC
"C:\Program Files\Windows Resource Kits\Tools\srvany.exe" -a [SeleniumUser] -p [Seleni... | stackexchange/codereview |
I can't get natbib to display the full author name. Instead, I only get the last character. My document looks like so:
\documentclass[a4paper,10pt]{article}
\usepackage[sort, comma]{natbib}
\begin{document}
\section{Introduction}
According to \citet{Farmer2004}...
\bibliographystyle{plainnat}
\bibliography{./refs}
\e... | stackexchange/codereview |
I have the following very simple class which looks for the last known user coordinates and then prints one of them. But I am getting loc as null variable. The application is not reading the data into the loc variable.
import android.app.Activity;
import android.content.Context;
import android.location.Locat... | stackexchange/codereview |
I'm racking my brain. I'm using CodeIgniter, trying to get a value from a form checkbox into a data array to send off to the database. Here are the snippets:
Form (view):
<label>Rental Car?</label><input type="checkbox" name="options[is_rental]" value="1" <?php echo set_checkbox('options[is_rental]', '1', FALSE); ?> />... | stackexchange/codereview |
Since the release of AirPrint in iOS 4.2
How can we print from a Sencha or jQTouch app wrapped in a PhoneGap wrapper?
| stackexchange/codereview |
Are administrator credentials (for that remote machine) required to view the services of a remote computer?
I don't know much about WMI and I imagine it would be required, but I would love to see an official answer.
| stackexchange/codereview |
I am getting the following error:
2010-11-08 19:47:08.190 One2ThreePop[325:207] didFailToReceiveAdWithError
2010-11-08 19:47:10.990 One2ThreePop[325:207] The operation couldn’t be completed. Banner view is visible but does not have content
2010-11-08 19:47:10.991 One2ThreePop[325:207] didFailToReceiveAdWithError
2010-... | stackexchange/codereview |
I'm trying to debug some javascript I wrote and can't figure out why it's not working. If I hard code the variables it works fine, but if I use document.getElementById('id').value to get the variable it fails.
The example below works fine but as soon as I un-comment the commented lines it doesn't. Printing the variab... | stackexchange/codereview |
I would like to know why the bin folder does not display under my eclipse projects?
| stackexchange/codereview |
I have a regular expression which I use to extract two portions of a folder name:
([0-9]{8})_([0-9A-Ba-c]+)_BLAH
No problems. This will match 12345678_abc_BLAH - I have "12345678" and "abc" in two groups.
Is it possible to construct the folder name by supplying a method with two strings and inserting them into the gro... | stackexchange/codereview |
I'm to trying to display an umlaut mark on an i in my CoreGraphics function: ï.
I tried to use it's unicode representation (ï), but I don't manage to get it right.
here is my code:
void drawColorString(CGContextRef ctx, NSString *text, UIColor *color, CGPoint pos){
CGContextSaveGState(ctx);
[color setFill];
... | stackexchange/codereview |
I am a bit confused by the fact that although I installed RHEL 5.1 from DVD (RedHat/5.1.x86_64), when I issue command:
cat /etc/redhat-release
I got:
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
What does this mean? is this to be the release version or kernel version? Is there another way to confirm the real... | stackexchange/codereview |
I'm trying to apply padding to the left side of an element with display:table-cell. I am using a Webkit browser, and this will only ever have to work in a Webkit browser (yay!).
It displays in the proper arrangement, but as if there is no padding at all.
Any pointers? I'm a bit of a newb when it comes to display:tabl... | stackexchange/codereview |
Suppose I have designed a new programming language for one of the managed code environments (.NET/JVM). Can I now implement it by simply writing a translator that translates the source code of this new language into the main language of the platform (C#/Java) and then letting the platform's compilers and other tools h... | stackexchange/codereview |
Something like this is in a file called "header.php" which all files on my site include:
switch (str_replace('/folder_name/','',$_SERVER['REQUEST_URI'])){
case 'index.php':
$page_title='main page';
break;
case 'page1.php':
$page_title='page 1 is here';
break;
case 'page2.php':
$page_titl... | stackexchange/codereview |
I've implemented a small framework in C++ which I use in a course I give at college, to help students implement their homework. One of the most valuable classes of that framework, is a smart pointer class, which as you can imagine, it overloads the -> operator.
Recently I upgraded from VS2008 to VS2010, and occasionall... | stackexchange/codereview |
Is there a way to guarantee order when using Parallel.ForEach()? The collection I am looping over needs to maintain it's order but I was looking for some performance improvement.
| stackexchange/codereview |
Is it possible to refer to an external file [not present in the res/raw folder of the app] in a WebView? The documentation [and the StackOverflow questions] I've read so far doesn't deal with this question.
Can I load an image on external storage, say /sdcard/abc.jpg using the img tag and the loadData() method of a Web... | stackexchange/codereview |
I have written a python extension in C (using cython, actually, though that's beside the point) which uses the AudioUnit framework in Mac OSX. The module builds correctly, but when I try to import it from the python command line, I get the following error:
ImportError: dlopen(myproject/audiomodule.so, 2): Symbol not f... | stackexchange/codereview |
I am trying to make a text box conditionally invisible by tying it to the value of adjacent revenue column.. I tried using the formula - if command.revenue > 5000 then crgreen else crnocolor , in the font formula editor but it is not working. Need help in doing this the right way. Thanks
| stackexchange/codereview |
I have call details records table. Each row has got UserId and UserBNumber.
I also have got table which has UserId and Number so that having number I can say what is ID of the user.
So that from each CDR record I can say what is an ID of one who calls an one who receives call.
Sometimes user calls to number which isnt ... | stackexchange/codereview |
I have added this to my config/application.rb file:
config.action_view.javascript_expansions[:defaults] = %w(jquery rails application)
and I have added this to my views/layouts/application.html.erb file:
<%= javascript_include_tag :defaults %>
But the prototype javascript files are being included and not the jQuery fil... | stackexchange/codereview |
I want use webscreencapture to make a web screenshot. if I save the below code in a screenshot.bat, and then click it, it can catch the two web screenshots.
webscreencapture.exe http://www.youtube.com/watch?v=SLyG0mUnw4A e:\www\111\1.jpg
webscreencapture.exe http://www.youtube.com/watch?v=izUxI-k01CU e:\www\111\2.jpg
... | stackexchange/codereview |
I'm attempting to read values from a 2-dimensional array and multiply them to make a new array array. This isn't entirely important.
I have created a macro to read the values instead of a function to theoretically be more efficient, but I'm having a syntax error that I can't figure out. The line of issue is
// com... | stackexchange/codereview |
When running this script from Powershell or Batch: find and replace characters in Windows XP (Powershell 1.0) all goes well. But after script has stopped processing a text file, Powershell still holds over 1 000 000 kb memory (when inspected from taskmanager) and it does not seem to release the memory usage. I'll have ... | stackexchange/codereview |
In grid mode displaying the products, I would like the "Add to cart" buttons to line up. But beacause only som of my products have old-price, the once who lack it will display the button one line higher up. I have looked in prices.phtml without finding out where to edit.
td;dr: How to add a empty line in catalog if the... | stackexchange/codereview |
After doing git svn init -s <url to repo>, git remote doesn't list any remotes. Why?
| stackexchange/codereview |
I'm trying to fix a problem that only cropped up when our php script was moved to 5.x from 4.x (yeah, I know). It's a regex that searches a flat file for a continuous block of entries and captures the block that's located between the delimiter of double line breaks (\n\n)
Here's the preg_match code - which won't find ... | stackexchange/codereview |
I have an array in my Perl file that I'm using to populate a drop down menu in another PHP page.
So I have a perl.pl file that is called by ---> php.php. Now, this is the code in my PHP file
$output = shell_exec("/usr/bin/perl perl.pl $arg1 $arg2");
echo $output;
In my Perl file, this is what I pass at the end to get... | stackexchange/codereview |
Im trying to get a list of line items to a webpage using JSON, which will then be manipulated and sent back to the server by ajax request using the same JSON structure that arrived (except having had a field values changed).
Receiving data from the server is easy, manipulation even easier! but sending that JSON data b... | stackexchange/codereview |
Hi all i will have a form loaded when i click on datagridview cell which was my main form. Now what i need is when i click on save on the form opened i will close this form. Then i have to get the tree view node get selected automatically.
I tried by writing
treeview.focus()
treeview.select ()
but this doe... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.