instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Hi have to check for 2 countries in order to setup a shipping cost. (These values are previously assigned via a dropdown list). Here's my PHP condition, it doesn't seem to work. Can someone please help me with the syntax if I'm doing a mistake?
<?php
for( $y = 0; $y < count( $contentsArray ); $y++ )
{
$itemArray = e... | stackexchange/codereview |
I have a small problem configuring the CXF transport in Mule 2.2 to call a WS-method on service exposed, using HTTPS/SSL. Calling the same method using plain HTTP works fine. I’ve searched a lot on this issue and found among others the following link:
http://www.mulesoft.org/documentation/display/MULE2CB/Using+HTTPS+wi... | stackexchange/codereview |
I am trying to develop a very basic console application that will retrieve a user's homepage (twitter updates from people followed by the user) and save it (json). I've read a lot on the internet, but still am unsure of whether i need to 'register' such an application, and if yes, how could I possibly do it for a conso... | stackexchange/codereview |
I keep getting a NoSuchElement Exception at the line maze[r][c]=scan.next();. How can I resolve that?
try {
Scanner scan = new Scanner(f);
String infoLine = scan.nextLine();
int rows=0;
int columns=0;
for(int i = 0; i<infoLine.length();i++){
if(Character.isDigit(inf... | stackexchange/codereview |
I am designing my implementation strategy for Tic-Tac-Toe game. Since this is my 1st game implementation, I am a bit confused and need some general pointers.
Now, the total number of winning combinations in a Tic-Tac-Toe are 8. Currently, I plan to store these winning combinations in an array. Once the end user has mad... | stackexchange/codereview |
Mootools Ajax class has a onComplete parameter whereby you can pass a function name to it and it would call that function when it completes (obvious).
http://docs111.mootools.net/Remote/Ajax.js
I want to be able to pass a variable containing the said function instead. How do I go about doing that? My attempt can be see... | stackexchange/codereview |
In my code I have a pretty big loop and I need to create a new variable at the end of each iteration (integers). Is this possible? I read about a ScriptEngineManager class, but I'm not sure if this will be able to help. I suppose I could create a bunch of integers equal to 0, but I'm not exactly sure how many times I w... | stackexchange/codereview |
I've setup two local vhosts (http and self-signed https) for billing.example.com and trying them in firefox with firebug. Http vhost only purpose is redirecting all requests to https.
Almost each time I request page from https, one or two files with associated resources (images, js, css, etc...) and sometimes php page ... | stackexchange/codereview |
I understand that an event handler executes on whatever thread that invoked the event. I further understand the need to update form controls only from the thread that created the controls. I am assuming that the UI thread is the one that created the form for the purpose of this question.
If the event is the result of... | stackexchange/codereview |
I’ll start with the code:
var s = ["hi"];
console.log(s);
s[0] = "bye";
console.log(s);
Simple, right? In response to this, the Firefox console says:
[ "hi" ]
[ "bye" ]
Wonderful, but Chrome’s JavaScript console (7.0.517.41 beta) says:
[ "bye" ]
[ "bye" ]
Have I done something wrong, or is Chrome’s JavaScript consol... | stackexchange/codereview |
I am new to android.I made string array.It has more elements starts with A to Z . I make list View for the array.When i scroll the screen i wish to display the starting letter.If i remove the hand at the letter 's' then i will display the items starts with the letter 's'
as like the following link
http://www.youtube.co... | stackexchange/codereview |
I'm really lost on how pagination works in kohana 3. Is there a good example of pagination in Kohana 3 anywhere?
| stackexchange/codereview |
I'm looking to add some sort of HTTP push-like functionality, implemented via long polling or another standard means, to a page built with Perl on top of Apache.
Is there a way to do this without setting up a separate server such as Meteor or Stardust? Is there a module that would help with the server code? Is ther... | stackexchange/codereview |
If the only information I have for a particular store or business (or restaurant etc) is its Name, Postcode (or Zipcode) and Country, how would I create an MKMapView which locates the store and drops a pin on the location?
So kind of replicating if I typed in "Pizza Paradiso, WC1E 7BS, UK", except without the info bubb... | stackexchange/codereview |
I have a MVCish deisgn using SWT. I have a class which implements the whole GUI (buttons and action listeners) and it has a Shop object, which has a list of items. From time to time, using RMI (school assignment), the list is being updated (if there is something new in the magazine it tells that to the server and the s... | stackexchange/codereview |
I am currently trying to use OpenGL (With SDL) to draw a cube to the location where I left click in the screen and then get it to point at the position in the screen where I right click.
I can successfully draw a cube at my desired location using gluUnproject - Meaning I already know the coordinates of which my cube is... | stackexchange/codereview |
I have a simple form:
<div class="class_a">
<fieldset>
<label><input type="radio" id="radio10" name="color" value="1" />Red</label><br />
<label><input type="radio" name="color" value="2" />Yellow</label><br />
<label><input type="radio" name="color" value="3" />Blue</label><br />
... | stackexchange/codereview |
I want to create a website application, that will allow our members to get text message/email alerts every day 1 hour before their lesson (a reminder).
My server-side language background is strictly in PHP (although I've tampered some c++ back in the day). For this to work, obviously, I'll needs to somehow run a progra... | stackexchange/codereview |
I would like to check to make sure two fields are not equal and one is greater then the other. Say yearBorn and yearMarried. They cannot be equal and yearMarried must be greater then yearBorn.
| stackexchange/codereview |
Consider the following two macros:
#define PNORM( v, s, ... ) { \
if( VERBOSITY_CHECK( v ) ) { \
if( ( errno = pthread_mutex_lock(&server.output_mutex) ) ) { \
PERROR_LOCKFREE( normal, "\tpthread_mutex_lock failed on output_mutex.\r\n" ) ; \
} \
fprintf( stdout, s, ## __VA_ARGS__ ) ; \
fflush( ... | stackexchange/codereview |
Wondering if anyone had any ideas on the best tool to build a visual workflow manager. Envisioning a bunch of 'blocks' that can be dropped and then connected together in order to build workflow, IE:
Send email -> wait 4 days -> if email answered send this email > if not log to db
each action would be a block with prop... | stackexchange/codereview |
Check the following code:
string toLowerCase(const string& str) {
string res(str);
int i;
for (i = 0; i < (int) res.size(); i++)
res[i] = (char) tolower(res[i]);
return res;
}
class LeagueComparator
{
public:
bool operator()(const string& s1, const string& s2)
{
return toLower... | stackexchange/codereview |
I'm trying to shrink and merge two A4 PDF pages into one A4 page so that if I had;
_____ _____
| | | |
| p1 | | p2 |
| | | |
|_____| |_____|
I would get;
_____
| p1 |
|.....|
| p2 |
|_____|
As a new PDF, with two A5 sized pa... | stackexchange/codereview |
I have an Objective C project in XCode. When building, XCode precompiles my prefix PCH file twice. The first time, it uses the arguments -x objective-c-header, and it works fine. The second time, it uses -x c-header, and it fails (due to the file containing Objective C code).
I have another project that's set up the... | stackexchange/codereview |
i have a modal popup built with jquery UI ($.dialog) that contains an iframe (id='myIframe') with a login form.
the login func calls via Ajax and give access to the user, then it should redirect the user to a different page...but instead it load the page inside the iframe...
i always forget how to solve this issue...
... | stackexchange/codereview |
my url is: "http://localhost:8080/i/agt0b3R0eXN3b3JsZHIQCxIJSW1hZ2VCbG9iGIUDDA.jpg" and I just want the "agt0b3R0eXN3b3JsZHIQCxIJSW1hZ2VCbG9iGIUDDA" part.
my app.yaml looks like:
handlers:
- url: /i/.*
script: static_images.py
statc_images.py:
class StaticImage(webapp.RequestHandler):
def get(self):
imag... | stackexchange/codereview |
I can't find it anywhere;/ Do you guys know where I can change this option in photoshop? What I mean is:
we've got psd document with blue, red, yellow dots. Every dot is on separate layer:
Layer blabla
Group DOTTIE
yellow dot
red dot
blue dot
Another Layer
When I clicked on the dot holding command/ctrl I want to... | stackexchange/codereview |
I want to develop one PPPoe-like server, so I can create a virtual connecting among server and client. Is there any opensource project for reference ? Thanks
| stackexchange/codereview |
My company wants to use Rational Requisite Pro to manage their requirement documents, and they want me to come up with a plan.
I need to know where can I go to start this process?
| stackexchange/codereview |
I have visual studio 2008 with Team Explorer 2008 installed. I used to install Team Explorer 2010 but for some reasons team explorer 2010 was uninstalled later. Then as I create a new website project, the vs 2008 halts, but the project was successfully created on physical disk.
I tried to select "Current Source Control... | stackexchange/codereview |
Is there a GUI tool in xcode that will allow me to preview the data in my xcdatamodel file?
| stackexchange/codereview |
I am trying to implement a Twitter code which could get me the recent post of my account,.Trying this i get error message stating
"This method requires a GET. /statuses/friends_timeline.xml?count=5 "
i am new to php Curl also i tried to search this same error to get any clues but was unable to get any satisfactory ans... | stackexchange/codereview |
I'm working on a .Net 3.5 WebForms application and this morning I noticed this message in my debug window:
This application is using the
HMAC-SHA-384 or HMAC-SHA-512 keyed
hash algorithm. The implementation of
these algorithms were updated in
service pack 1 of .NET Framework 2.0
and by default do not produce results
... | stackexchange/codereview |
I'm planning on creating a small web app using PHP. The last time I used PHP was sometime around 2002/2003 where the code tended to be a horrid mash of PHP/HTML and Javascript shoved in a single file. I think I might have even been using PHP3...
I now want to relearn and want to know what's changed and what helper libr... | stackexchange/codereview |
I have an Entity like this:
public class Category
{
public int classid {get;set;}
public int itemid {get;set;}
public string label {get;set;}
}
So a List produces this JSON (three sizes and three colors
[{"classid":1,"itemid":1,"label":"Small"},
{"classid":1,"itemid":2,"label":"Medium"},
{"classid":1,"it... | stackexchange/codereview |
Appengine docs mention a 1Mb limit on both entity size and batch get requests (db.get()):
http://code.google.com/appengine/docs/python/datastore/overview.html
Is there also a limit on the total size of all entities returned by a query for a single fetch() call?
Example query:
db.Model.all().fetch(1000)
Update: As of 1... | stackexchange/codereview |
Trying to strip some BBCode from some text. I would like to remove everything between a [img] and a [/img], using a PHP preg_replace function, for example:
Here is my image[img]http://www.abc.com/image1.jpg[/img] and more text
Match: [img] followed by any number of characters followed by [/img]
Result:
Here is my ima... | stackexchange/codereview |
I'm having a hard time finding the solution for this for some reason -- perhaps it's right under my nose.
But is there a way to essentially combine a string and an object so I'm not repeating the same method on a certain event?
$j(window).resize(function(){
//stuff here
});
$j('body').resize(function(){
//same stu... | stackexchange/codereview |
I know that Revolution Analytics recently released the Revolutions 4 IDE for Red Hat Linux, but I was wondering if anyone has tried to run this IDE on either Fedora or even Ubuntu? I know that Fedora and Red Hat share a similar kernal while Ubuntu used the debian kernel. If anyone has tried this and got it to work, a... | stackexchange/codereview |
I wanted to add this feature to my program but I don't know what to google or the functions needed to do this. Its for Wacraft3 on window mode. I want the mouse to get locked inside the window when the window is active. thanks.
| stackexchange/codereview |
I've got a mostly-portrait iPhone application that needs to shoot some video, and I'd like to gently encourage (okay, force) users to shoot that video in landscape mode.
I've tried creating a UIViewController with ShouldAutorotateToInterfaceOrientation overridden to return false, and appropriate CGAffineTransforms on i... | stackexchange/codereview |
Our web app has recently become the target of some DDoSers. We use solr and they managed to generate 100% load by searching for "**" every few seconds. Can someone tell me why that query takes tens of seconds to run, whereas everything else takes just milliseconds? Also, the code appends the user ID to the search so th... | stackexchange/codereview |
I have a program, myprogram, which is linked with a static convenience library, call it libconvenience.a, which contains a function, func(). The function func() isn't called anywhere in myprogram; it needs to be able to be called from a plugin library, plugin.so.
The symbol func() is not getting exported dynamically in... | stackexchange/codereview |
Using MVC2 and EF framework. Most references/blog posts I've found so far pertain to binding a single table and its data (sometimes hierarchical) to a jqGrid with editing capabilities. I don't need this. I don't even need to edit the data--just display. I need to display and page the data. Sorting is a plus, searching ... | stackexchange/codereview |
I have included the Uncaughterrorevent handler for the LoaderInfo. Which worked fine in my actionscript project.
That was until I attempted to use a browser with a FP version of 10,0. This then fails to load the SWF unless i take out all references to UncaughtErrorevent.
Has anyone had this?
I did try only adding the e... | stackexchange/codereview |
I have a ListView with a lot of "rows". In each row, i have one TextView with a background image. When i scroll, the images of the rows mixes... they jump to another row with the scroll.
In have tried android:scrollingCache="false" and android:cacheColorHint="#00000000" but nothing.
The images are loaded d... | stackexchange/codereview |
I'd like to create some animated text (simple animations: fade in, fade out, etc...).
I'd like to be able to give the application a UTF-8 string and it spits out and animated video (avi, mpeg, etc...). The format is a little loose at the moment, so if it could handle multiple formats that would be best.
I've googled ar... | stackexchange/codereview |
I'm looking to use App_LocalResources in my MVC Application, but I'm wondering about a solid implementation.
My idea is to loop through the Resx file and grab all of the Keys. The store those keys in an object from the ViewModel.
Then in my View, I can use <%: model.resources.key %> to extract the information.
Do any ... | stackexchange/codereview |
I am trying to make a quick instructional video of my new app and I want to use a custom cursor in the shape of a finger in the avd so that the video makes sense to my users. I can get a custom cursor to work in windows with no problems however the android avd uses a custom black cursor with a white outline that will ... | stackexchange/codereview |
I am using RSpec, but Rails insists on generating Test::Unit tests. Maybe there is a configuration I missed?
| stackexchange/codereview |
Unluckily I don't know what to do :(
I want to align the text "bla bla...." at the bottom of the left div.
Setting it as position:absolute & bottom=0 doesnt work always because there are cases where image does not exist, and that would be a problem as if the text wont increase container div height...
I could change t... | stackexchange/codereview |
I got an Exception on trying to install the MvcScaffold NuGet Package on
Visual WebDeveloper 2010 Express. I am using "ASP.NET MVC 3 Release Candidate"
(http://weblogs.asp.net/scottgu/archive/2010/11/09/announcing-the-asp-net-mvc-3-release-candidate.aspx)
Sorry i only can provide the german error message. But the tra... | stackexchange/codereview |
I am trying to replace the maximize button in my (swing) screen.
I want my frame to change it's size to my definition of max size and min size,
without the window moving its position.
I tried the following ( and encountered a problem in all )
1. Frame.setMaximumSize, Frame.setMinimumSize. did actually nothing.
2. t... | stackexchange/codereview |
When I push a certain view controller, then go pop it and then repeat a seemingly random number of times the app eventually crashes with the error EXC_BAD_ACCESS.
This I can reliably replicate EVERY TIME. It happens mostly the second time I pop the view controller, but sometimes it can be the third or fourth.
So I deci... | stackexchange/codereview |
I would like to "expand" a row in a UITableView just like the build in iPhone Mail does when you click on the "Cc/Bcc, From:" row/field, so that one row gets replaced with three new rows.
I have tried just changing my model and calling [tableView reloadData] in my didSelectRowAtIndexPath method, but that does not work,... | stackexchange/codereview |
I have tried to install NetBeans and other Java SDK, plugin, etc.
But when I open NetBeans->New Project I can only open the JavaFX and PHP project.
Is there any way to add support to standard Java (console application)?
| stackexchange/codereview |
I am trying to use OpenBabel and am experiencing great difficulty with setting up a global search path for include files. I have successfully linked to the libraries with $LD_LIBRARY_PATH, but when compiling with the GNU C++ compiler, it cannot find the include files. Is there a global include environment variable on L... | stackexchange/codereview |
I have a site where I am using an ISAPI filter to force the removal of index.cfm from the URL (i.e. http://www.site.com/index.cfm becomes http://www.site.com/). Well this is fine for most of the site except for a password protected area of the site (which does not need the rewrite, as this part of the site does not aff... | stackexchange/codereview |
I am trying to get better with SQL commands, but I really do not have a database currently set up that I can practice on. Does anyone know of an all-in-one program or an online service that has a database set up and filled with data that I could practice my SQL commands on/in?
| stackexchange/codereview |
I have a secure/ sub-directory with several files that I want to perform some simple RewriteRules on, just defaulting a PHP extension. I had a hard time getting these to work and after some trial and error stumbled upon the following.
RewriteEngine On
RewriteBase /secure
# Force PHP extension if not a directory
Rewrit... | stackexchange/codereview |
I have some design questions that I want to discuss with people interested in helping me. I am planning to develop a simple VoIP program that allows two Android phones in the same network to use VoIP. My goal is simply to capture sound, send the data with UDP, receive UDP data and play sound.
My current design is to ha... | stackexchange/codereview |
When using asynchronous sockets, specifically, Socket.ReceiveAsync, is it possible to do a 'partial' receive? For example, I'd like to specify that I expect 1024 bytes on the SocketAsyncEventArgs object, but that I want to allow only receiving part of it; for instance, 512 bytes. So instead of waiting for all 1024 byte... | stackexchange/codereview |
I am trying to learn c++ and I am running into problems with my if/else statements.
I thought I had them down when I would nest them without opening and closing braces, but I tried with braces and I get errors.
Can someone point out what is wrong and how to fix it, not just the answer; that way I won't learn a thing.
h... | stackexchange/codereview |
I was wondering how would I determine on the launch of my application whether or not it was opened for the first time.
I was thinking that I need a bool instance variable. But after that I'm just not sure.
| stackexchange/codereview |
Let's say I have 3 mysql tables - teacher, subject, and class, each table having only two fields id and name
If every teacher can teach every subject in every class, what is a good way to insert this information using SQL into a fourth table to hold that data, if my fourth table has three fields for teacher_id, subject... | stackexchange/codereview |
In C# (.NET 4.0 running under Mono 2.8 on SuSE) I would like to run an external batch command and capture its ouput in binary form. The external tool I use is called 'samtools' (samtools.sourceforge.net) and among other things it can return records from an indexed binary file format called BAM.
I use Process.Start to ... | stackexchange/codereview |
From a Service Provider standpoint, how would you go about 'permanent' access to data? without needing to re-authenticate with the server for an access key, instead just allowing the user to allow the service to access their data until it's removed from the list of allowed consumers?
| stackexchange/codereview |
hi i am very bad at user interface design and flow of program in terms of user places of widgets and buttons ,please suggest me how to take better user interface decision for this what can i do ?
regards
rahul
| stackexchange/codereview |
For the entity framework context, the best practice is to only have your context hanging around for as long as you need it. Does the same thing hold true for a Silverlight Domain Context or is it "safer" to hold it for longer? If you can instantiate it once and make it an application scope variable, could you add it to... | stackexchange/codereview |
I'm using the Blueprint CSS framework for a website. Some pages I'm developing have a black background.
Although I can set all the styles myself, I'm wondering if anyone knows of a plugin I could use to do this for me.
| stackexchange/codereview |
var block = (from query in data.Descendants("block")
where query.Element("itemid").Value == argID.ToString()
select new Block
{
Name = (string)query.Element("name"),
ItemID = (int)query.Element("itemid"),
Description = (string)query.... | stackexchange/codereview |
I'm not familiar with this format:
{"d":"{\"Table\":[{\"pCol\":12345,\"fCol\":\"jeff\",\"lCol\":\"Smith\",\"dId\":1111111,\"tDate\":\"\\/Date(1153033200000-0700)\\/\"}]}"}
I'm using Newtonsoft to serialize my DataSet that I'm returning from my ASP.Net webservice. The above JSON string is what Firebug is returning. I... | stackexchange/codereview |
There are a limit to use INNER JOIN?
Original Query (Work just fine) I got 77 rows affected
SELECT atendimento.id, atendimento.responsavel, atendimento.ocorrencia,
atendimento.idcontrato, cliente.nome as clinome, cliente.id as cliid,
atendimento.d_ini, usuario.apelido, tipos.descricao, tipos... | stackexchange/codereview |
I have a 2D game engine in XNA that is developing quite well. It's laid out as such:
A central GameManager, contains a List of SceneObjectManagers (for layering).
SceneObjectManager contains a collection of SceneObjects (a class that inehrits from List, with a operator [string] overloaded), which is an abstract base cl... | stackexchange/codereview |
Trying to get my code to compile magically using maven dependancies. I can't find the playframework on any 3rd party maven repository.
Can someone help ? I is even deployed anywhere ?
| stackexchange/codereview |
I ran across some code during a code review that didn't seem right, but not sure the "best" way to change it. In looking for an a answer I found which is better, using a nullable or a boolean return+out parameter and Which is better, return value or out parameter? The latter had a answer with this comment that I gener... | stackexchange/codereview |
I have the following code (inherited!) that will split a line of text into 2 lines with a html line break <br/>.
public static string BreakLineIntoTwo(this HtmlHelper helper, string input)
{
if (string.IsNullOrEmpty(input)) return string.Empty;
if (input.Length < 12) return input;
int pos = input.Length / ... | stackexchange/codereview |
I'm inside a XAML page, in the Design screen. Somehow I got VS2010 into a mode where it changes the cursor to crosshairs, and when you click you place a UIElement where you clicked. I can't figure out a) how I got into this mode in the first place, and b) how to get out. I like to be able to click on elements in the ... | stackexchange/codereview |
I couldn't get the SO text editor to mark parts of the post correctly so if you can trick SO into properly formatting the exception text and the code, that would be greatly appreciated.
Context:
VS 2010 Premium
Windows 7 Professional 32-bit edition
VB .Net WinForms app named "Testing Testing"
MSTest test project named... | stackexchange/codereview |
I'm working on a project that screen scrapes a list of departure times from a train schedule posted on the web. I realize this would be a lot easier if I wasn't using such a crude method to access the data but there's no API available, and it's more of a learning project than the kind of thing I expect to release publ... | stackexchange/codereview |
I own gps tracker that send latitude and longitude to my server, as it is described in gps tracker manual(example for Latitude, for Longitude the same):
xxmm.dddd, where
xx = degrees;
mm = minutes;
dddd = decimal part of minutes; for example 11 deg. 26.6639 min.
I`d like to convert received coordinates into google map... | stackexchange/codereview |
I am using a javascrit API that returns respectively dates as
GMT+0100 (GMT Daylight Time) or GMT+0000 (GMT Standard Time) in Firefox
eg. "Mon Nov 01 2010 00:00:00 GMT+0000 (GMT Standard Time)"
and
UTC 2010 or UTC+0100 in IE
eg. "Mon Nov 1 00:00:00 UTC 2010"
There is any way to convert all the date-strings as date tim... | stackexchange/codereview |
I'm trying to enable GZIP compression on IIS 7.5.
I think all the settings are okay.
In ApplicationHost.config I have this httpCompression section:
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" minFileSizeForComp="0">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzi... | stackexchange/codereview |
I'm using this code sample (source) to add list items (item 1, item 2 etc) to a master list from a set of unordered lists (list1, list2). On removing list items from the master list, they have to go back to the original position in the unordered list where it came from.
The code in the sample works randomly; sometimes... | stackexchange/codereview |
$('a.loadTable').live('click', function(event)
{
$('#myTable').html("");
// loop over elements to load table:
$('#myTable').append("<tr><td>" + item.id + "</td><td>" + item.name +"</td></tr>");
My jQuery function -- approximately what you see above -- loads a table full of... | stackexchange/codereview |
Ok, I searched the internet and stackoverflow but I just can't seem to find an answer for my problem.
I need to watermark images uploaded by users dynamically, but I don't want just text applied on an image. I need a real watermark like this:
The only way I can achieve this effect is by using Photoshop, adding shadow ... | stackexchange/codereview |
Possible Duplicate:
Storing credit card details
I'm working on creating an architecture for a site where users can login and buy products. My boss would like the checkout page to remember the user's credit card info so they don't have to enter it every time, like Amazon.
I don't want to store credit card info in a d... | stackexchange/codereview |
Does anyone know if there is a compilation of check style rules that covers most of the recommendations made by Joshua Bloch in his Effective Java book? I know I can add custom rules in the checkstyle plugin but I was wondering if anyone has already done so and if willing to share them. :)
| stackexchange/codereview |
I have created an image map with flash, I have separate button functions that display rollover and onpress functions for each region ie -
nw_btn.onRollOver = function() {
areaName_txt.text = "This Site (NWPHO)";
}
nw_btn.onPress = function() {
displayOverlay(areaName_txt.text);
}
This is repeated 15 times to c... | stackexchange/codereview |
I'm using NHibernate 2.1.2, and would like to load a many-to-one association using a formula.
Given an arbitrary domain entity E[X], there is a calculation to derive the primary key of the previous entity E[X-1]. I'd like each entity to be loaded as a node in a linked list, with each entity having a "Previous" property... | stackexchange/codereview |
I have an square white image against a black back ground. When i rotate the image the edges become very jagged. Its really doesn't look good. Are there any settings that you can use to get the phone to smoothen out the image when it manipulates it? Or is the only real option to ask the artist to use some artist techniq... | stackexchange/codereview |
Following up on a comment on another I question I asked myself if there's a way to get a list of all js code that is loaded on a page. Something like what firebug or chrome inspector do.
Is there a pure javascript way for that?
One way would be to scrape for script tags, but then you could miss dynamically loaded js. I... | stackexchange/codereview |
I'm making a highscore table in flash using AS3, I have successfully got working code that displays the names and the scores but also part of my high score table it needs to display the users country flag. The images for the flags are stored on a remote server.
Now I know how to load in a single image and add it to my ... | stackexchange/codereview |
I have a string that looks like: /somedir/ref/some-dir/foo.word
How could I extract foo from the above string? The whole string, including foo may vary, however, the structure is always the same. It will always the letters between the last slash and the last dot.
| stackexchange/codereview |
Suppose I have 2 tables:
Person(pid, ....) //Pid is identify colum as primary key
Student(pid, Student_No,...) //pid is foreign key from Person, pid is a primary key too.
Then use EF to generate entity model. THen try to insert new data with following code:
Person person = new Person()
{ FirstName = "F... | stackexchange/codereview |
I have a texture that I want to modify it's alpha channel in runtime.
Is there a way to draw on a texture's alpha channel ?
Or maybe replace the channel with that of another texture ?
Thanks,
SW.
| stackexchange/codereview |
Have a bit of a difficult question which as far as I can see, no one has really managed to fix yet.
Here's the scenario. Sharepoint 2010 EnterPrise Search Centre.
I've created a custom Search Results Page. I want people who type any word in the Search box to only display results where the Value provided by the user mat... | stackexchange/codereview |
I'm using a feed-foward neural network in python using the pybrain implementation. For the training, i'll be using the back-propagation algorithm. I know that with the neural-networks, we need to have just the right amount of data in order not to under/over-train the network. I could get about 1200 different templates... | stackexchange/codereview |
The problem
I'm running a convert command on a bunch of different images. Mostly, it's working just fine, but I noticed that a couple of images weren't being watermarked, as if the -composite command wasn't even there.
The command
convert src.jpg -colorspace RGB -resize 1500x1500\> -strip watermark.png -composite out.j... | stackexchange/codereview |
I want to suppress a particular warning while developing an iPhone app in Xcode. The warning is:
"warning: class 'XXX' does not implement the 'XYZ' protocol"
I understand I use the directive:
#pragma GCC diagnostic warning "-Wxxxxxxxxxxxx"
But I don't know what the xxxxxxxxxxxx should be. Any ideas?
(Assumption: ther... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.