instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'd like to have a real-time 'system status'/'activity monitor' console for my Twisted application.
The app is basically a protocol.ServerFactory which accepts connections performs different jobs.
Kind of like the twisted.manhole, I'm looking for the simplest way to create a admin application where I can check the curr... | stackexchange/codereview |
<div class="grid">
<div class="box">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>
<div class="box">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>
<div class="box">
<div class=... | stackexchange/codereview |
I am having some trouble understanding the following simple C code:
int main(int argc, char *argv[]) {
int n=0;
fork();
n++;
printf("hello: %d\n", n);
}
My current understanding of a fork is that from that line of code on, it will split the rest of the code in 2, that will run in parallel until there i... | stackexchange/codereview |
<xsl:for-each select="c:richBody">
<xsl:if test="position()=1">
<div style="height:50px;" />
</xsl:if>
<xsl:apply-templates />
</xsl:for-each>
I have the code blurb above and need to do something in between the first c:richBody element and the second c:richBody. It looks like when it... | stackexchange/codereview |
I've got a screen keyboard that I want to share with 3 textboxes. If the user clicks input button "A", the focus as well as all of the keypresses should go into the "A" textbox. If the user presses the "B" input button, then the focus and the keys pressed should go into the "B" textbox. Is this possible? I can't seem t... | stackexchange/codereview |
Im writing a script to create mounts. The system command I use is:
sudo /bin/mount -soft -t smbfs -o username='{username}',password='{password}' {server_path} {local_path}
It works a treat, but here's the problem....
If an username/password is not valid. I can tidyup using unmount command. However, it corrupts the oth... | stackexchange/codereview |
I am trying to add a simple compact fshare button on my website. The only code I found was this one:
<div style="float:left;padding:4px;">
<a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='button_count'/>
<script type="text/javascript" src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"/>
</... | stackexchange/codereview |
i just made a little program that reads the name of a file dragged over it's icon and writes it into an output text file
but if i compile this program, it crashes when i try to drag a file over it.
if i open it with a doble click it's ok; if i open it with command line and parameters it's ok; but if i just drop a file ... | stackexchange/codereview |
I went through this post jQuery UI DatePicker to show month year only which is very helpful to me in order to hack the datetime picker UI to suit my situation.
But as I have several datetime picker on the same form, this happens. The css display:none is aim to 'hide' the days not to be shown. But if I have several dat... | stackexchange/codereview |
How would you implement infinite scrolling using sencha touch? In other words, either register a callback that is called when a user scrolls near the bottom of a list to load more data or do something more involved.
| stackexchange/codereview |
I have 2 subs in my perl code that are all but identical. I'm curious as to how SO would refactor them to make one sub.
The only real difference in them is a regex, and a query via prepared statement. The prepared statements take different parameters as well.
Thoughts?
sub showcaseViewsSubData {
my ($api_call, $sta... | stackexchange/codereview |
In .properties file is it possible to do something like this:
DB_USERNAME=xyz123
DB_PASS=abc111
DB_USERNAME_UTIL=DB_USERNAME
DB_PASS_UTIL=DB_PASS
It might seem weird. You may ask why do we need two different property if the value of both is same. Well, i don't know the answer of this question but i have to do it or s... | stackexchange/codereview |
Currently I'm working on a GUI system, and I've made a GUIButton object which has this inheritance structure:
GUIObject
|
GUIImage
|
GUIButton
Where GUIObject is a base class with some virtual functions (render, update, etc).
Anyway, because of the way I want to handle callbacks for the GUI system, GUIButton i... | stackexchange/codereview |
I created a method to find the third Friday of every month.
When I run it from Eastern time zone, all is well.
When I run it from Central, the dates are off.
My method:
-(NSDate*) getSaturdayAfterThirdFriday:(NSDate*)date {
NSDate* resultDate = nil;
if( date != nil ) {
NSDateFormatter *df = [[NSDateFo... | stackexchange/codereview |
See, what I don't get is, why should programs like the following be legal?
int main()
{
static const int i = 0;
i < i > i;
}
I mean, surely, nobody actually has any current programs that have expressions with no side effects in them, since that would be very pointless, and it would make parsing & compiling th... | stackexchange/codereview |
I often have inverse logic between my forms and data. I am looking for the easiest (most elegant) way to change some boolean from true to false and vice versa.
I know that a lot of people will get angry if they see code like this:
if (c)
{
return false;
}
else
{
return true;
}
Or something like this:
EDIT:
I a... | stackexchange/codereview |
I'm calling a webmethod using jquery, the webmethod returns a chunk of HTML that's then loaded into a div.
It works fine up until a certain size of chunk then it's doesn't work at all. It seems to stop working if the chunk of html is above 70KB.
The jQuery I'm using is:
$(".letterBtn").live("click", function() {
... | stackexchange/codereview |
What is the definition of the HTML5 aria-* attribute in laymans terms?
| stackexchange/codereview |
I'd like pip to install a dependency that I have on GitHub when the user issues the command to install the original software, also from source on GitHub. Neither of these packages are on PyPi (and never will be).
The user issues the command:
pip -e git+https://github.com/Lewisham/cvsanaly@develop#egg=cvsanaly
This rep... | stackexchange/codereview |
Is there a callback in Windows which will notify my application if the total amount of System RAM has changed?
| stackexchange/codereview |
I have an Access 2003 database with a query that is a left outer join of a table to another query. If I didn't sort that final query, I got 42 records. If I sorted the final query by the 2 joined fields, I got 43 records. No other changes were made to the query.
To verify this, I took the query, copied it, applied the... | stackexchange/codereview |
I want to detect if a script tag (that was dynamically created and added to the DOM) fails to load. The onerror event works, except with file:// URLs in Firefox.
Unfortunately none of the techniques described here (except timeouts, which are unacceptable in my case) seem to work in Firefox if the src of the script tag ... | stackexchange/codereview |
How do I convert string 2010-11-19T20:00:00Z into an NSDate object?
I've tried using [dateFormatter setDateFormat:@"yyyy-MM-ddTHH:mm:ssZ"] but it looks like I got the wrong custom format style.
PS: I don't care about Timezones. Actually, I want the date to stay in the original (UTC) timezone.
| stackexchange/codereview |
My class has quite some properties and one of my constructors sets them all, I want the default constructor to call this other one and use the set properties. But I need to prepare arguments first, so calling it from the header won't help.
Here's what I'd like to do:
public class Test
{
private int result, other;
... | stackexchange/codereview |
This is my code in my model:
def to_param
require 'unicode'
"#{id}-#{Unicode::normalize_KD("-"+name+"-").downcase.gsub(/[^[:alnum:]]/,'-')}".gsub(/-{2,}/,'-')
end
I needed the unicode feature because in the name of my certain entries, it consists of accent (foreign characters). Without the unicode it was set to re... | stackexchange/codereview |
I want to know the length of C function (written by me) at runtime. Any method to get it? It seems sizeof doesn't work here.
| stackexchange/codereview |
I have been doing a live streaming app for Blackberry.I have the android code for the application.I need to implement in blackberry now.So in the android code they are importing the packages namely
import java.net.HttpURLConnection;
import java.net.URL;
which are not supported in blackberry.For the HttpURLConnection,... | stackexchange/codereview |
I have an image upload script, originally I kept it in a file called "upload.php" which JUST contained the PHP upload script and a simple file browser and submit button. This works fine, the image uploads without any problems and goes into the "images/uploads" directory.
However, when I try and implement this into anot... | stackexchange/codereview |
We've had a a client add a new "requirement" to a project we're about to start and it's thrown us a little bit. From the end users perspective it's simple, but as a developer I have no idea how to implement it!
What our user would like is for a web form text box (ideally a rich text editor, such as CKEditor) to track ... | stackexchange/codereview |
With jQuery UI tabs, you can use the select method to run code when a tab is clicked:
$( ".selector" ).tabs({
select: function(event, ui) { ... }
});
But the code is run before the just clicked tab has been loaded. I need to run code after new tab has been loaded. How can I do this? Thanks for reading.
| stackexchange/codereview |
I am developing a Tetris game using C++ in combination with the plain old WinAPI, GDI and GDI+. The applications window contains a few UI controls along with a static control that is used for painting the game state. I am using a keyboard hook so that I can respond to the arrow keys to move the current block and the sp... | stackexchange/codereview |
I've been spending a great deal of time trying to understand this. I created a JApplet that used Thread.sleep() in a loop to animate the applet. But when I tried to run the Applet the screen stayed blank. When I draw the animations in a separate thread and call repaint, the applet works perfectly. I've seen many exp... | stackexchange/codereview |
I need advice how to store model in spring mvc 3 with HIbernate (example on ilustration)
I have model
public class Customer{
int id;
String name;
String surname;
ArrayList<Contact> contacts;
...
getters, setters
}
Here is class Contact
public class Contact{
int id;
... | stackexchange/codereview |
Lomuto partition is a simple partition algorithm used in quicksort. The Lomuto algorithm partitions subarray A[left] ... A[right] and assumes A[left] to be a pivot. How to modify this algorithm to partition A[left] ... A[right] using a given pivot P (which differs from A[left]) ?
| stackexchange/codereview |
When I'm developing something that sends email, I sometimes don't want to actually send any email, but I do want to see what email would be sent using live data. However, there's not an easy way to do this, as I haven't found a local SMTP server that will receive my mail and then just hold it for me in a queue so I can... | stackexchange/codereview |
My classes are event driven so for example, the public mouseClick() calls the protected onMouseClick().
I find that it might be puzzling if the user's intellisense picks up on all the protected ones. Is there a way to minimize this confusion in any way?
Thanks
| stackexchange/codereview |
I was wondering how I can mimic the action that occurs on an auto-linked email address via an intent. I tried using this method, Messaging and email intents in Android? and ran in on my phone and in my emulator and the message window opened but did not have the email address. And the composer window for the auto-link... | stackexchange/codereview |
I have a MySQL SELECT query that calculates a distance using Pythagoras in the WHERE clause to restrict results to a certain radius.
I also use the exact same calculation in the ORDER BY clause to sort the results by smallest distance first.
Does MySQL calculate the distance twice (once for the WHERE, and again for the... | stackexchange/codereview |
Is there a helper that can turn the datetime fields into select fields? I saw this in a couple of Railscast episodes. My date fields come out like input fields now.
| stackexchange/codereview |
I want to create a website. After seach for all the possible technologies i can use for my webpage, i found out that XML is best way to store data. The idea is to keep data and representation seperately. i would use style sheets to give presentation for the webpages.
So is it better to use XML instead of HTML for stori... | stackexchange/codereview |
Nettus+ has this nice jQuery code to filter out and show specific <li>s from a <ul> when a category is clicked. For example, when the 'design' link is clicked, only the 'design' <li>s are shown and the rest of the portfolio <li>s are hidden. However, when I combine it with a lightbox like Yoxview (image viewer jQuery p... | stackexchange/codereview |
I want to use strtotime("last Monday").
The thing is, if today IS MONDAY, what does it return?
It seems to be returning the date for the monday of last week. How can I make it return today's date in that case?
| stackexchange/codereview |
I am new to restful services and I have been creating a series of simple console apps to better understand. I have a simlple service that I am trying to send data to but I keep getting a 400 bad request error. I know it has to be something simple I overlooked. Any help would be greatly appreciated. Thanks
//service... | stackexchange/codereview |
PROCEDURE A(
...
BEGIN
stmt := 'select * from '||src;
execute immediate stmt;
dbms_output.put_line(??);
END A;
| stackexchange/codereview |
I'm trying to create a user defined version of the Map[] function in Mathematica and I'm running into a few problems.
Here is what I have so far:
map[x_, s_List] := mapAux[x, s, {}];
mapAux[x, s, {}] := Append[{}, First[s]];
mapAux[x, Rest[s], {}];
I'm trying to use it as
map[# + 1 &, {3, 6, 8}]
but this gives a mys... | stackexchange/codereview |
I need to delete all the files in a virtual directory on the remote web server programatically. How to do this task?
| stackexchange/codereview |
I have a div containing two images which is wrapped with a hover event. These images are left and right arrows. When I hover on the right arrow, I need to change the opacity on the left arrow. The html code is:
<div class="arrows">
<img src="left-arrow.jpg" id="left" />
<img src="right-arrow.jpg" id="right" /... | stackexchange/codereview |
I have a form-validation function which validates and also checks to see if the username is taken or not (ajax).
This is how I call the code:
function validate(){
if(usernameValid()){
return true;
}
else {
return false;
}
}
I also alert the function in order to see what it returns:
alert(u... | stackexchange/codereview |
I tried a several methods to set the width of the tinymce textarea.
My 1st attempt:
height: '200px',
width: '220px' // inside tinyMCE.init({
In the 2nd attempt:
<textarea name="editorial" cols="40" rows="20" id="editorial" style="width: 40em; height: 20em"><?=$row['editorial']?></textarea>
But still, I am not able... | stackexchange/codereview |
URL:
http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&markers=icon:http://tinyurl.com/2ftvtt6&zoom=12&size=400x400&sensor=false
I have no clue what I'm doing wrong here.
Developer Guide:
API - Custom Icons
...markers=icon:url[stop]&zoom=...
| stackexchange/codereview |
My client's website runs on Joomla and they would like me to add some custom functionality to the site.
It is a quotation system, so they will just need to be able to update the values that are used to caluclate the quote. So there would only need to be 4 parts to this:
Settings page in the admin section
Database tab... | stackexchange/codereview |
The const and volatile chapter on the 'Surviving the Release Version' Article gave me the idea that the compiler can use the const keyword as hint for its optimization job.
Do you know some other optimization-hints for the compiler or design principles for functions so that the compiler can make them inline?
By the way... | stackexchange/codereview |
I have three local functions that I want to use forever in memory:
proxy:PlayerParamRecover();
proxy:PlayerRecover();
proxy:EnableInvincible(10000,true);
I'm not sure how to add them in an infinite loop.
| stackexchange/codereview |
I am trying return to libc trick with the following simple code:
#define SYSTEM_CALL_ADDR 0xb7ec5e50 /*my system call addr*/
#define EXIT_CALL_ADDR 0xb7ebbb80 /*my exit call addr*/
char shell[] = "/bin/sh";
int main(){
int* p;
p = (int*)&p + 2;
*p = SYSTEM_CALL_ADDR;
p = (int*)&p + 3;
*p = EXIT_CALL_ADDR;
... | stackexchange/codereview |
I am working on an application that displays information about countries of the world (I'm learning with something real and I already have this data). Part of my layout is a LinearLayout which contains the country's flag and some basic information. There are five rows of information in the table to the right of the f... | stackexchange/codereview |
I just want to print the selected option in the combo box, to a textfield. Please explain what's wrong because i have to complete it & explain it in class. Any help would be greatly appreciated. Thanks in advance.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class App3 extends JFrame imple... | stackexchange/codereview |
Consider the following top-level javascript code:
if (this.window === window)
alert('same');
else
alert('different'); // alerts: different
Why is this.window and window not strictly equal? I've also tried 'this' on the rhs of the expression and get the same result.
| stackexchange/codereview |
I've been assigned the following problem, but am having issues figuring it out. I know what I'd like to accomplish, but given the skeleton code he's outlined for us, I'm not sure where to start...I drew a pic to illustrate what I'd like to accomplish (I think...)
http://i802.photobucket.com/albums/yy304/Growler2009/Tra... | stackexchange/codereview |
I'm developing an application which will use magnetometer data for interaction, by moving a magnet towards and away from the phone. This works fine (enough), but it seems like when I move the magnet too close to the phone, a noticeable lag occurs, and these messages are being spit out to the log:
Tag Message
AK8973 HRE... | stackexchange/codereview |
Is there any package in python nltk that can produce all different parts of speech words for a given word. For example if i give add(verb) then it must produce addition(noun),additive(adj) and so on. Can anyone let me know?
| stackexchange/codereview |
Alright... I've been searching for an hour now... How does one get the innerHTML of a script tag? Here is what I've been working on...
<script type="text/javascript" src="http://www.google.com" id="externalScript"></script>
<script type="text/javascript">
function getSource()
{document.getElementById('externalScript')... | stackexchange/codereview |
I'm looking for information on which voting algorithm will be best for me. I have a basic 'Up/Down' voting system where a user can only vote the product up or down. I would like to make it weighted so that a product that is a year old will not be held to the same standards as one that is brand new.
I'm thinking do an... | stackexchange/codereview |
I am trying to create an rpm package with the help of the rpm-maven-plugin.
All goes well until I try to have it generate the %pre scriptlet (or any scriptlet for that matter)
The pom.xml excerpt is:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.0-beta-2<... | stackexchange/codereview |
I have an extension composed of a browser overlay(ff-overlay.xul) which launches a sidebar(ff-sidebar.xul) through this code (from mozilla extension generator):
(in ff-overlay.xul)
<menupopup id="viewSidebarMenu">
<menuitem key="key_openSidebar_testinstallPackage" observes="viewSidebar_testinstallPackage" />
</menu... | stackexchange/codereview |
i go through the code several times but can not figure out the problem help required here is the code;
menuItems = [{label:"60 Minutes View" , type:"radio", toggled:"true"},{label:"30 Minutes View" , type:"radio"},{label:"20 Minutes View" , type:"radio"},{label:"15 Minutes View" , type:"radio"},{label:"10 Minutes... | stackexchange/codereview |
I use Hudson on my computer and I work in a network. The Hudson Url is following: http://192.168.0.73:8080.
I want to change the Hudson URL to 192.168.0.55:8080.
How can I do it ?
| stackexchange/codereview |
i have .doc,.xls,.PPt,.rtf files in the server. How do i implement the print functionality for the user. I have the list of file names and file type. Please suggest some code samples to print the documents based on the file type. I am using c# 4.0 ASP.NET .thanks.
Regards,
jebli.
| stackexchange/codereview |
it's my first question.
I have built a custom component: a RelativeLayout with a TextView on the bottom and two ImageView above that, acting as a 2-columns clickable element of an histogram. To set the height of a bar, i get the "available height" in onLayout(), as container's height minus label's one:
@Override
protec... | stackexchange/codereview |
i am making an app in which i have to upload an image/video file to the server...i want to know what things i needed to do this..?and i also have to show the progress bar while image is uploading...how can i do this..?
can you write some code snippet on how to upload file to server...?
| stackexchange/codereview |
@Entity public class Organization {
@OneToMany
List<A> Aobjects;
@OneToMany
List<B> Bobjects;
@OneToMany
List<C> Cobjects;
}
I have @OnDelete annotation on all the @OneToMany members. What would be the order of deletion of these objects when the parent object is removed. Is it safe to assume that it would be ... | stackexchange/codereview |
I'm looking for some kind of TELNET daemon for linux to share a single app.
I wrote a BBS/MUD, but no networking routines, and I'm looking for a way to "share" the app, in a way Citrix XenApp works for GUI/Windows Apps. I remember I used such a server once, for console mode applications, but I cannot recall the name/in... | stackexchange/codereview |
i have a problem with displaying listview. i have tabbed activity and one of them contains listview. here's the code:
result.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/Layout_result"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
andr... | stackexchange/codereview |
I'm gonna start my research in Functionality of open source and commercial game engines, but the problem is where to start. Or is this the right title to choose for a research topic?
| stackexchange/codereview |
I need to create a new div around each block of content after each h3 so that it complies with the markup in http://jqueryui.com/demos/accordion/default.html
such that for repeating code block:
<h3><a href="#">Section heading</a></h3>
**<div>**
<p>
Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet p... | stackexchange/codereview |
I'm a newbie learning Grails by developing a small application that retrieves codes from a database. The details are -
- Apple Mac OS X (i.e. Unix).
- Grails 1.3.5 using NetBeans 6.9.1.
- SQL Server 2008 R2 Database, located on a different server.
- JTDS Driver
Here is the DataSource.groovy -
dataSource {
pool... | stackexchange/codereview |
Let's state a few facts upfront:
Livedocs tells us that dynamic classes enable us to add member variables and member functions. We are told that all classes ultimately derive from Object, which is dynamic, and that dynamic classes must be explicitly marked as such -- inheritance doesn't apply to dynamism.
Object is a ... | stackexchange/codereview |
The title explains it already. I'm looking for a solution to compare screenshots taken with target.captureScreenWithName in a UIAutomation script to some reference images. This would be really nice to test some custom views.
| stackexchange/codereview |
I am using NSIS to install some MSIs. I'm using ExecWait "msiexec /passive /liare+ ${SETUP_LOG_FILE} -i $TEMP\MyMsi.msi". When the MSI is of the same version as an installed app, it fails the installation (“Another version of this product is already installed”), but NSIS continues on as if nothing is wrong. (But the lo... | stackexchange/codereview |
I am using ActionMailer for the first time. It becomes a chore having to go into the development.log to and check if they are going, and I would like to write an automated test. What is the best/most practical solution for testing ActionMailer emails on Rails?
| stackexchange/codereview |
How can an operator +, -, *, /, etc... be multithreaded?
In this paper on the language IDL, it claims that all operators use the 'thread pool' for increased execution speed.
How is it that one can use multiple threads to execute a statement such as 'b = a - a' (as on page 42) of the paper?
Can someone explain this? (I... | stackexchange/codereview |
How to decode those?
| stackexchange/codereview |
I have a created a UI in swing using NetBeans.
There are some use cases where the user presses buttons and a JDialog appears as a result.
The JDialog accepts input via JComboBox, at least 4.
E.g.
User presses "ButtonA" and a JDialog appears that displays the following:
"select X:" combo
"select Y:" combo
"select ... | stackexchange/codereview |
I work as a scientist and I have used MySQL as a storage for the results of my numerical simulations. Typically I have a set of data obtained by my experiment and a control set. These two data sets are stored in one table. One indicator field tells me if a record comes from experiment or from a control set. This table ... | stackexchange/codereview |
In coldfusion how do you check if they choose a file to upload to the server? Isdefined won't tell if they specified a file or not.
| stackexchange/codereview |
I've started work recently at a new company and they have an existing application with 1000s of lines of Javascript code. The baseline contains dozens of JS files with easily over 10,000 custom lines of code, they also use multiple 3rd party libraries such as Jquery, Livequery, JQTransform and others. One of the majo... | stackexchange/codereview |
I'm writing an application where I need to save a modified image to a new bitmap, which in this case is PNG. Recently it saves without complaining but when I look on the output files, it contains no data, and there is no preview, only the standard windows icon. No error is thrown and I've confirmed the data was drawn c... | stackexchange/codereview |
What I'm attempting to do find values in a table which are less than the MAX of another field, minus a numeric value. Eg:
...WHERE some_table.value_1 = 0 AND another_table.value_2 <= (SELECT MAX(another_table.value_3) - 5) ORDER BY...
However, this is not working! My joins are all fine, and the query runs without t... | stackexchange/codereview |
In the following code why is that on click of details the page zoom shifts to top of the page and how can this be prevented
<a href='#' onclick='javascript:toggle(%s);'>Details</a> %s %s <b>Total Sal: </b>%s<br><div id='%s' style='display:none;'>%s</div><br>"%(divname,first_name,lastname,usage,divname,htm... | stackexchange/codereview |
How do you tell the difference?
For example, say you have 0110 0101 1001 0011.
The unsigned BCD is 6593, but what is the signed value?
| stackexchange/codereview |
If I have two models like this:
PhotoAlbums (id, creator_id)
Photos (photo_album_id, name)
In the PhotoAlbums controller, when I put a Belongs_to user in there, is there some way to tell Rails that the user is creator_id ?
Thanks
| stackexchange/codereview |
Is there any advantage of using one over the other? Thanks!
| stackexchange/codereview |
I have this Facebook application profile page:
http://www.facebook.com/developers/editapp.php?app_id=122313254494566#!/apps/application.php?id=122313254494566
which is associated with my iframe-based Facebook application, Gem Spinner:
http://apps.facebook.com/gemspinner/
What I'm seeing is that, depending on the window... | stackexchange/codereview |
I am getting some Json from the server that I loop through to dynamically build a table in the dom.
When there are more than one objects the data is returned as an array of objects
like this:
{
"ProductList": {
"Products": [{
"ProductID": "1",
"Name": "ProdName"},
{
... | stackexchange/codereview |
I have this error below on a site I am running. I don't understand why is that as it works fine on my localhost. Is it something to do with the host? I am on an Unix server.
Warning: mysqli::mysqli() [mysqli.mysqli]: (42000/1203): User dbo343879423 already has more than 'max_user_connections' active connections in /hom... | stackexchange/codereview |
I'd like to sell products through my application (insurance policies) and I don't want to use the in-app purchase mechanism as it would mean sharing 30% of the product price. Instead I would like to provide the user with a page to enter his/her credit card details and perform the credit clearing through my own self-dev... | stackexchange/codereview |
I have a website that Im trying to start - but I stored all of the information in a database. What I want to do, is create the page directly from the data in the database.
What Im struggling with is writing a database query to grab the page title from the database, and plop it into the tag area.
Only when I open th... | stackexchange/codereview |
Consider a spreadsheet which performs some computations based on a fixed value (in the rxample below, D3) and is iterative. E.g.
D3: 4
B3: 12
B4: 58 (=B3*$D$3+10)
B5: 242 (=B4*$D$3+10)
B6: 978 (=B5*$D$3+10)
Total = 1290 (=sum(B2:B5))
Now, suppose I wanted to try out different values of D3 (let's call this P) and st... | stackexchange/codereview |
I have this function:
function animateImage() {
for (i = 1; i < 31; i++) {
top = (i * loadingHeight) + 'px';
$(loadingDiv).animate({
backgroundPosition: '0 -' + top
}, 0).delay(50);
}
}
I want to infinite repeat/loop.
It is possible? how to... | stackexchange/codereview |
I need to bind a List<MyClass> myList to a DataGridView. And get in the results table with two columns ID and Name.
Code snippets:
private List<MyClass> myList = new List<MyClass>(){...};
public void BindClass()
{
dataGridView.DataSource = myList;
}
public MyClass
{
public MyDataClass Data{ get; set; }
}
publ... | stackexchange/codereview |
As I'm often confronted with situations where S4 programming is needed to keep an overview, I've collected quite some sources on S4 objects, methods and programming. I've listed them here as a reference. Please add your own sources as well.
On the web
The methods help files : help files from the package methods, where... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.