instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Effective java says
"Consider providing static factory methods instead of constructors"
If you have a
class A {
public static A getInstance() {
return new A();
}
}
Does it make sense to provide this method for class A , rather than call new A() in the code.
| stackexchange/codereview |
There are many solutions/products that PayPal provides for websites to integrate with PayPal payment. I would like to know what's the simplest or easiest solution to integrate PayPal into ASP.NET MVC web applications. Which solution I should use? It would be helpful if someone who had the done this before can share his... | stackexchange/codereview |
Is it possible to auto submit a select menu when the selection changes without using a button to submit the form. I have four of these on my page and using a button for each uses up too much space. By Select Menu, I mean:
<select name="something" class="something" title="something something">
<option selected="select... | stackexchange/codereview |
I have a thick client written in VB6 that connects to an Sql Server 2005 Database. I want to secure the connection by using SSL between the client and DB.
I've looked at these links for details on "how to" configure it.
http://msdn.microsoft.com/en-us/library/ms189067%28SQL.90%29.aspx
Question
If I want to buy an SSL ... | stackexchange/codereview |
I used to use gcc compiler on my unix machine. I am now forced to work on a windows machine. Is there any cool IDE or a simple editor for C with a unix terminal like feel (Black Screen and colored syntax on it :))
What other editors/IDE are as robust as gcc for windows? Also what is your personal favorite. I would lik... | stackexchange/codereview |
I'd like to rotate an object from -180 degrees to 180 degrees via CSS3 transforms and transitions. This works fine, but I'd like to control the direction of rotation. How to determine if it will be going clockwise or counter clockwise?
| stackexchange/codereview |
I'm trying to compile a component using ant and keep getting this error message throughout the component . . .
ButtonSkin.mxml(179): Error: Could not resolve <s:SolidColorStroke> to a component implementation.
ButtonSkin.mxml(210): Error: Could not resolve <s:GradientEntry> to a component implementation.
It compiles ... | stackexchange/codereview |
Been using this site for ages and have never had to go as far as to ask my own question... cheers in advance.
I have a group of "questions" which are to be listed. The user then has to rank these questions as 1st, 2nd, and 3rd (there can be many more than three questions however).
The problem I have is that, if I make... | stackexchange/codereview |
Need to build a little java tool that gets the keyword suggestions and traffic estimates from the google keywords tool at https://adwords.google.com/select/KeywordToolExternal .
The page is rendered in javascript so simple scraping isn't possible. I have tried htmlunit, but it doesn't work (tried diff browserversions .... | stackexchange/codereview |
I have a script that animates opacity but if the opacity has not been previously set then it just disappears. I just wondered if there was a way to check if the opacity has been set. Thanks in advance!
| stackexchange/codereview |
I'm wondering if someone can help with this or has had a similar problem. I am trying to make a basic game in WP7 using Silverlight and I can't get the GPU acceleration to kick in.
The frame rate counters are visible which would indicate the GPU is being used, directx versions is 10 and directx driver versions is WDDM ... | stackexchange/codereview |
is there a way to somehow use the same animation apple in the notes app, when notes are deleted? The same animation is used again in the camera app and is triggered when you delete a pic. Can anyone help me out on this?
thanks in advance!
| stackexchange/codereview |
I have a jQuery code inside an ascx that takes a cell content from a gridview and manipulate it, then write it to other cell.
It is activated by a click on the gridview row.
(Each row has a 1st cell with Word file name. The user clicks on a row - jQuery takes the file name in first cell and changes the extension to flv... | stackexchange/codereview |
I want a string split at every single character and put into an array. The string is:
var string = "hello";
Would you use the .split() ? If so how?
| stackexchange/codereview |
When i use vector to store some data, I usually access to this data by the pointer of the vector's first entry. because it it faster than the at() method. But I realize that when I insert a block of data, say an array to the end of vector, the first entry's pointer changes. This may be realated to stack stuff, But if I... | stackexchange/codereview |
In an app based on JPA2/Hibernate/Oracle+Spring+Wicket, I use the following model:
public class Item {
private String name;
private Set<Application> apps;
private ...
}
public class Application {
private String applicant;
private Item item;
private Status status;
private ...
}
The mapping between Item and Appl... | stackexchange/codereview |
If I enter
print(cat(""))
I get
NULL
I want to use cat() to print out the progress of an R script, but I don't understand why it is returning NULL at the end of all of my concatenated strings, and more importantly, how to get it to stop?
| stackexchange/codereview |
I have two big numbers (type int) which are stored in array with a size at least 1000,
and I want to compare these two numbers to get information which one is bigger than the other. How can I do this?
Actually , I will do two things
subtract these two
multiply these two (I am studying in this topic, indeed, and I di... | stackexchange/codereview |
createThumb() method working with localhost on apache server.But, the same function not working with Amazon EC2. Which is showing an error like,
exception 'Engine_Exception' with message 'Method "createThumb" not supported' in /var/www/justrides/application/modules/Core/Api/Abstract.php:46
GD Library enabled in the ser... | stackexchange/codereview |
I have problems accessing images in the ControlTemplate of a "Silverlight Templated Control" I implemented. The Style for my control called "ControlDragger" is the following:
<!-- ControlDragger Menu button style -->
<Style x:Key="MenuButtonStyle" TargetType="Button">
<Setter Property="Margin" Value="5,0" />
<S... | stackexchange/codereview |
I'm trying to create a webApp using GlashFish server and Velocity.
But i get the following error:
SEVERE: ResourceManager : unable to find resource 'temp.vm' in any resource loader.
SEVERE: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'temp.vm'
velocity.proprieties:
resource.loa... | stackexchange/codereview |
in my application,i just wanna open a url contain media,e.g. http://www.test.com/test.mp3,or rstp://www.test.com/test.3gp,so i need the symbian embeded media player's uid to open it.
| stackexchange/codereview |
Is there a way to combine a multiple selector and a basic filter within a single query?
For example...
var jq = $(someElement);
// Want to find the first following sibling node which has either classA or classB.
// This imaginary jquery does not quite work.
jq.nextAll("(.classA, .classB):first")
// This works. Bu... | stackexchange/codereview |
A naive attempt fails miserably:
import hashlib
class fred(hashlib.sha256):
pass
-> TypeError: Error when calling the metaclass bases
cannot create 'builtin_function_or_method' instances
Well, it turns out that hashlib.sha256 is a callable, not a class. Trying something a bit more creative doesn't work e... | stackexchange/codereview |
Anybody having this problem? Suddenly paypal is not returning POST data to the notify_url. Array is completely empty and it happens when payment is made through new paypal checkout system.
Below is the final page after payment is made. When I click continue booking, it should have redirected to notify_url with POST ... | stackexchange/codereview |
I have a following outputs from MySQL.
Array
(
[0] => stdClass Object
(
[id] => 19
[date] => 2010-10-04 11:00:00
[course] => Yoga
[course_id] => 19
[count(*)] => 2
[capacity] => 20
)
[1] => stdClass Object
(
[id] => 20
[date] => 2010-10-04 13:... | stackexchange/codereview |
I was wondering if there was a way to break javascript execution, something like this
<script>
if(already_done)
{
return; //prevent execution (this yields an error)
}
doSomeStuff();
</script>
I know that this is possible like this:
<script>
if(already_done)
{
// do nothing
}
else
{
doSomeStuff();
}
</script>... | stackexchange/codereview |
My application in working fine in Samsung BADA simulator but not working in device. My application is for S8500, available for download https://sourceforge.net/projects/wavechm/ with source code. I don't know what to do now?
please see the video of application how it is behaving. I have no idea what to do next. It is ... | stackexchange/codereview |
I'm trying to import an Android project into my Eclipse workspace, using existing source code. When I point Eclipse to my existing source location, it doesn't populate the Build Target area on the New Android Project dialog. Why isn't it letting me pick a build target?
| stackexchange/codereview |
I have a usercontrol which is used for searching. There is a textbox and a search button. When the button is clicked the search method is called. I want the search also to occur when the cursor is inside the textbox and the enter key is pressed.
My first thought on how to do this was maybe to add the event to submit ac... | stackexchange/codereview |
I want to update the same record which fires a trigger. I have done that using "BEFORE INSERT"
option. But note that I have use a transaction to rollback the operation if there is an any faliure.
CREATE OR REPLACE TRIGGER GANUKA.INTF_CONTROLLER_UPLOADER
BEFORE insert ON GANUKA.INTF_CONTROLLER for each row
DECLARE
... | stackexchange/codereview |
I need a Sample application that demonstrates saving cache files in Android and also how to use getCacheDir() method?
Can Anyone help me in sorting out this issue?I need to save file in an absolute directory and need to parse that file.
Thank in Advance.
| stackexchange/codereview |
Lets say I have the following entities that map to database tables (every matching property name can be considered a PK/FK relationship):
public class Person
{
public int PersonID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
}
public class Employee
{
public int Emplo... | stackexchange/codereview |
I'm just getting started with developing with using facebook api with php.
But I can't seem to figure out why I get only an empty array when I invoke the following query:
$fql = "SELECT message,time FROM status WHERE uid ='".$uid."'";
$response = $facebook->api(array('method' => 'fql.query','query' =>$fql));
print_r(... | stackexchange/codereview |
I have this tkinter GUI, and I need to get the values from the entries and compare.
self.hystInt.get() is the way to access the string in the string variable in the Entry. *I have to write this for every variable so it ends up looking really ugly.
if (self.hystInt.get().isdigit() and int(self.hystInt.get()) >= 200 and ... | stackexchange/codereview |
I am using Umbraco and I need to display an image in a Rss Feed. The feed is generated by Xslt.
Everything works if I do text stuff. Such stuff is technically feasible, but the feed I analyzed had been generated by WordPress.
The challenge is that I have no idea how I can embed within my tag.
I have a variable, say "... | stackexchange/codereview |
We've several projects each as top-level folders in the same repo. It seems better to have multiple repos but even though all repos will be ourcompany.codesion.com/ you can't obviously pull things between repos without losing history.
Is there an easy solutions?
| stackexchange/codereview |
I have come across these two terms and my understanding of them seem to overlap with each other. Flush is used with buffers and sync is used to talk about persisting changes of file to disk.
In C, fflush(stdin) makes sure that the buffer is cleared. And fsync to persist changes file to disk.
If these concepts are not u... | stackexchange/codereview |
<?php
(E_ALL & ~E_NOTICE);
session_start();
// is the one accessing this page logged in or not?
if (!isset($_SESSION['db_is_logged_in']) || $_SESSION['db_is_logged_in'] !== true) {
// not logged in, move to login page
header('Location: login.php');
exit;
}
else {
echo "Welcome To The Test Page:";
... | stackexchange/codereview |
Any Paperclip wizards out there know if you can when using Paperclip to save an image, also save the image dimensions (width and height) in 2 extra fields? How do you get such data during the Paperclip upload process?
| stackexchange/codereview |
I have one collection of objects that many of my forms (using WeifenLuo.WinFormsUI.Docking) need to interact with.
i.e. If the collection has an addition (or deletion) made in one form, then the other forms respond by refreshing their views.
Obviously, an observer pattern would be a good candidate here. However, I am ... | stackexchange/codereview |
I have a slideshow (jQuery Cycle) with large images, and would like to AVOID pre-loading all the images when the page loads.
Instead, I'd like to only load the first image, and have the rest load after the user CLICKS on it.
I'd really appreciate any ideas! Javascript newbie here... Thanks so much!!!!!
| stackexchange/codereview |
My page stops loaded every time I turn on the code below... it looks correct and the tables and fields are correct.
<select name="common" style="width: 136px;">
<?php
$group1 = mysql_fetch_array(mysql_query("SELECT country FROM lang_list WHERE grouping = '1' ORDER BY p_order"));
while($row = $group1){
... | stackexchange/codereview |
I'm using MVC and in my View I'm assigning classes to various divs, etc using the values of certain properties within my View Model.
However, these values contain spaces and I need to remove the spaces before rendering the HTML.
Is there another way of doing this?
<% Response.Write(benefit.Name.Replace(" ","")); %>
| stackexchange/codereview |
When trying to spy on the jdbc connection to a hsqldb database it doesn't work.
It looks like the org.hsqldb.jdbcDriver is not deregistered.
| stackexchange/codereview |
If I create an dependency property on a custom control that takes an IEnumerable<T>.
For example with an IEnumerable<string>:
public static readonly DependencyProperty MyCollectionProperty =
DependencyProperty.Register("MyCollection", typeof(IEnumerable<string>), typeof(MyControl), new PropertyMetadata(new List<str... | stackexchange/codereview |
I am writing an interpreter in Java for a domain-specific language with some scripting capabilities. I have already implemented a parser and now need to do a back end. To this end I am considering either to write my own interpreter (either working with abstract syntax trees or with some custom bytecodes) or target JVM ... | stackexchange/codereview |
How would I be able to convert a string like "On Monday 25th March 2010..." to 25/03/10?
Also, is this possible?
| stackexchange/codereview |
Until yet I was using httpHandlers for performing all server side logic and these httpHandlers were being called by jQuery $.Ajax.
In this case to pass any parameter I used to pass pure JSON object (obviously key value pairs) which was automatically translated to the Request.Form keys on serve side.
Now as I am trying ... | stackexchange/codereview |
I have developed an application that pulls X amount of records from my database per X amount of threads. Each thread then iterates the collections that are created and does some data validation for each record.
Once a record is validated / not validated by the application it is updated in the database as being valid /... | stackexchange/codereview |
Assume the following class
public class TestObject{
public void synchronized method1(){
//some 1000 lines of code
}
public void method2(){
//some 1000 lines of code
}
}
Let's assume there are two threads accessing the same instance of TestObject class, let's call them t1 and t2. I want... | stackexchange/codereview |
I have developed a JSP webapplication with an Applet. I am not able to display the applet from my JSP page.
Below is the code:
<applet codebase="http://localhost:8080/av_applet_jsp/applets" code="av_app.class" WIDTH="200" HEIGHT="100">
av_app.class is located inside Webcontent/applets/
Where I am going wrong?
Here is ... | stackexchange/codereview |
Can anyone suggest good image processing tutorials/books to start, on Mac using objective-c?
| stackexchange/codereview |
I am looking for some info on CSS style used for many websites these days. Its a style where whole screen is occupied by one background and the websites content is posted on top of it under smaller dimensions.
Something like this website: http://www.obiweb.com.au/
How do we achieve something like this?
| stackexchange/codereview |
I'd like to set focus to an EditText and automatically bring up the virtual keyboard in certain situations. However, if a phone's hardware keyboard is slid out, I wouldn't want to. Is there any way to detect whether or not a phone's hardware keyboard (if one exists) is slid out? Or is there some functionality of the... | stackexchange/codereview |
I've reduced everything down to the essentials, so bear with me if the example code below is contrived. Let's say we have:
class Foo a where
foo :: a
data Type a = Type a
instance (Foo a) => Foo (Type a) where
foo = Type foo
Now, suppose I want to make Type a an instance of, say, Show whenever a is an insta... | stackexchange/codereview |
I just wanted to know the concept of database connection pooling and how it is achieved.
| stackexchange/codereview |
The way I created KeyBinding was something like:
<KeyBinding Modifiers="Ctrl" Key="S" Command="{Binding SaveCommand}" />
But what if I needed two modifier keys? For example, Ctrl + Shift.
| stackexchange/codereview |
I am trying to get JLine to do tab completion so I can enter something like the following:
commandname --arg1 value1 --arg2 value2
I am using the following code:
final List<Completor> completors = Arrays.asList(
new SimpleCompletor("commandname "),
new SimpleCompletor("--arg1"),
new SimpleCompletor("--arg2... | stackexchange/codereview |
I'm going crazy trying to find a FOSS free (doesn't have to be open source) ODBC driver to connect to an MS SQL Server. While it doesn't strictly have to be free (which is a huge plus, for obvious reasons), the drivers I have found haven't had an easy to find price tag.
Does anyone know of any preferably free, and if n... | stackexchange/codereview |
I am working with some spreadsheet data and I have a set of cell regions that are of arbitrary bounds. Given any cell, what is the fastest way to determine the subset of regions which contain the cell?
Currently, the best I have is to sort the regions with the primary sort field being the region's starting row index, ... | stackexchange/codereview |
I have a well known POCO class of Customer to return from my method. However, I only populate properties specified by an ever changing Expression p => new {p.id, p.name} for example, as a parameter to the method.
Somehow I need to copy all matching fields between these two objects.
var returnObject = IList<Customer>();... | stackexchange/codereview |
I'd like to open a text file and not allow any other processes to write to it. I understand I can do this with the following FileStream:
Dim fs As New FileStream(_FilePath, FileMode.Open, FileAccess.ReadWrite, FileShare.Read)
Once I have access like this I need to read all of the lines (I will use a StreamReader(fs))... | stackexchange/codereview |
Which is the best: create the modules and put them in a separate file and import them or put them all together in the same file?
Is there any significant difference?
| stackexchange/codereview |
I'd like to place a cookie on the client that holds an authentication token. After they log in with their credentials, they can just send the token instead of credentials until the server determines the token has expired.
Below is the constructor for the cookie. I'm using restlets and am unsure about what to set "pat... | stackexchange/codereview |
Couple of questions:
Is there a non-JConsole command-line interface to get the amount of threads running under a Java process in Linux?
Also, is there a formula for calculating max number of threads based on stack size, box memory, and heap size for a 64 bit machine?
| stackexchange/codereview |
What is the correct way to absolute reference an external JavaScript file from the Site.Master file. In Web Forms I used to do it like this src="<%#ResolveUrl(@"Scripts/Common.js") %>".
Thanks
| stackexchange/codereview |
I'm using HAML to make html templates but am having a problem in writing attributes which will be replaced with JavaScript string templating.
The line in question looks like this:
%div{:class => "<%= from_class %>"}
HAML tries to encode the <%= %> tags:
<div class="<%= from_class %>">
I don't want that to happ... | stackexchange/codereview |
Imagine you have a database table that stores a list of people. You want to establish a relationship between peoples, i.e., person I is friend with person J.
I suppose in this case, one needs a second table to store people associations. This table would contain two fields (person1, person2) and each entry corresponds t... | stackexchange/codereview |
Amazon has announced to drop ListLookup & ListSearch operations support from the API completely from Oct 15.
Does anybody know whether there is a replacement operation to be used? Or some other way to retrieve a list I could not find anything like it in the documentation.
I need to import a user's wishlist through the ... | stackexchange/codereview |
I'm new to the world of data and DBA work (I'm mostly an .NET developer)... we have an old version of ER Studio (7.5) and I'm wondering how it compares to what comes with VS 2010.
Your experience is much appreciated! Also, feel free to reccommend tags for this post
| stackexchange/codereview |
I have a movieclip being used as a button. After a random amount of clicks the button stops working. In other words, the mouse will become a hand when hovering over the button but no clicks are registering to fire the function. I've even clicked it 40 times and it will work but then suddenly, bang!, it stops working. H... | stackexchange/codereview |
I am using EF4, Microsoft.Entity.CTP, and the latest MOQ. I am trying to create a generic repository class and moq the DBContext using MOQ. Whenever I run my moq test I get "object reference not set to an instance of an object" on this.context.Set().Add(entity); and I don't understand why. The code runs ok without a mo... | stackexchange/codereview |
I created the membership tables etc. with aspnet_regsql -S myServer -E -A mr -d anExistingDatabase. I can see these changes in SQL Server Management Studio, when I connect as myself through Windows Authentication.
I could not see these changes in SQL Server Management Studio, while logged in as a readwrite user. I cann... | stackexchange/codereview |
I'm setting up a SOAP service using the PHP SOAP server and client library.
I've coded some structured data types into my wsdl file with some heavy restrictions.
Do you know of functionality in the PHP SOAP library or of a 3rd party library which will check the actual parameters in the the server against the definition... | stackexchange/codereview |
Trying to draw a basic stick man in html 5 css that walks. If anyone has any sample code that achieves this or can point me to a tutorial that does I would be grateful. (please note I have seen the tutorials on drawing shapes)
Thanks in Advance
| stackexchange/codereview |
I just referred to the Q & A at iOS reference for NSDateFormatter.
Link: http://developer.apple.com/library/ios/#qa/qa2010/qa1480.html
Here is my problem I get a string from a webservice which is of this format:
"dd-mm-yyyy xx:xx:xx AM"
My actual purpose is just to use the date and not the time at all. But I just use t... | stackexchange/codereview |
Is there a encoding function in PHP which will encode strings and the resulting output will only contain letters and numbers? I would use base64 but that still has some stuff which is not numeric/alphanumeric
| stackexchange/codereview |
I want to always show vertical scrollbar in my webpage. Is it possible using javascript? I think it is possible using javascript or jQuery. I want vertical scrollbar whether there is enough content to show or not.
thanks.
| stackexchange/codereview |
I'm learning the SDL library and one of the functions to create a surface is SDL_CreateRGBSurface. The four parameters I'm wondering about are R, G, B, and A masks. What exactly is a mask in this context?
I'm also following a book about SDL and the author passed in 5 bits of red, 5 bits of blue, and 6 bits of green fo... | stackexchange/codereview |
I'm trying to understand why this code is not working.
private static object _lock;
public static void Main (string[] args)
{
Thread thread;
_lock = new object();
foreach (int num in Enumerable.Range(0,5)) {
thread = new Thread (() => print(num.ToString()));
... | stackexchange/codereview |
i want to query blog posts from the database created in the last 3 hours,
table
blogs{id,blog_text,date}
date format: datetime
| stackexchange/codereview |
I have 10 production servers, What will happen when :
I still doing rsync for file (A,B,C), meanwhile at the same time my friends also do rsync for file (D,E,F) to the same production machine ?
What if i and friends do rsync to the same file at the same time ?
| stackexchange/codereview |
This worked great when there was only one entry in the database, but add another and now I've got problems. Since I'm appending based on class names I'm getting every element appending to a single class. I don't know what to do in order to create two "blogHeadlines" with the appropriate content in each.
jquery:
... | stackexchange/codereview |
I use the cmake command QT4_WRAP_UI. Is there an option to control the output path of the generated header files?
| stackexchange/codereview |
I want to use Sharepoint webservice in android.i don't know how to start.
Anyone help me..
| stackexchange/codereview |
Quick question: I'm using Dozer to make mappings between two different classes. In my destination class (A in this example), I have a field which is an instance of a Name object. This object has two strings (last- and firstNames). These strings are build by inputting a list of strings and joining them together with a s... | stackexchange/codereview |
I am off to making a tower defense game, and will have about 40-50 towers and about 20 enemies on screen. Those objects will have a few properties each, like hp, damage, speed etc.
What is the limit of the defaults db? I don't feel like writing SQL queries for simply saving the state of my game..
| stackexchange/codereview |
How to replace the following pattern in a java project
catch(SQLException e) {
\\TO DO
}
with
catch(SQLException e) { S.O.P(); }
Please note that the file will have other patterns like
catch(IOException e) {
// To Do }
which should not be changed.
I tried
sed 's/catch\(SQLException[^\}]*}/catch(SQLE... | stackexchange/codereview |
Is there any specific step required to debug 32 bit application with 64 bit gdb under 64 bit O.S.
Normally I use -m32 switch for gcc, is there something like for gdb?
| stackexchange/codereview |
First Eclipse:
Cannot get rid of this error...
Have tried every suggested fix on google..
Persistent class "Class com.blahb.blahblah.master.UserToken does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output." has no table in the database, but the operation require... | stackexchange/codereview |
I'm using the google adwords api, I can retrieve all campaigns, group ads, ads,
but I have no idea on how to retrieve keywords related to an "group ads".
In the google adwords interface, when we select a group ads, we have two tabs, one for ads related to that group ads, and the second for keywords.
but programatily, r... | stackexchange/codereview |
I want to create my own context menu.
When a user clicks the BlackBerry menu button, the menu should open with only my menu items -- and not the 'Hide keyboard' and 'Switch Application' items that are included by default.
| stackexchange/codereview |
I'm new to Mono and I do not understand how the PrintUnixDialog and the PageSetupUnixDialog work
I have searched it on google for hours but I haven't found anything
So if you know a good tutorial please post the link, or if you have a working sample, that would be good too.
I hope my english is not too bad,
so Thanks i... | stackexchange/codereview |
i try to load a JavaScript dynamically with jQuery to initlialize my ajax-application. I want to get a handler-function called, when the script was loaded successfully. This is what my code looks like:
var $script = $('<script type="text/javascript"></script>').appendTo('head');
$script.load(function() { ... });
$scrip... | stackexchange/codereview |
I have 2 entities -Offer and Share. Share stores the offers shared by users.
class Offer
int IDOffer;
bool Shared;
(other properties)
class Share
int IDOffer;
int IDUser;
where Offer.IDOffer = Share.IDOffer, 1-to-1 (users may share an offer only once, or not at all).
I extended Offer with the Shar... | stackexchange/codereview |
is it possible to prevent further execution of javascript?
I include some javascript scripts with php in a header (with echo ''), but there are coming some other scripts later in the page which i can not always control, so it could be that my before included (with ) mootools javascript get later overwritten by another ... | stackexchange/codereview |
Here is my code:
<li class="det_price">
<a href="/designer/customize/278258?dpid=1">Printing</a> from $10
</li>
I have about fifteen chunks like this on any given page, and I'd like to take the text node (from $X), select X using a regular expression and set it to a numeric variable, then multiply it by a %, and ... | stackexchange/codereview |
I don't think I am understanding this correctly, I added the annotation to the map. I can see it, the color is red. However, I want to change it to purple and I want it as a button. So I put it as follows:
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad ... | stackexchange/codereview |
Is there a way to prevent the iPad from sleeping while my app runs? I am making a kiosk app that needs to not auto sleep.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.