instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I ran into a problem with mockito.
I am developing a web application. In my tests the user management is mocked.
There are some cases when I have to alter the User returned by the getLoggedInUser() method.
The problem is, that my getLoggedInUser() method can also throw an AuthenticationException.
So when I try to switc... | stackexchange/codereview |
I use jquery tabs widget and populate each tab panel with content from another aspx page.
Looks like this:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="tabs">
<ul>
<li><%: Html.ActionLink("PENDING", "PendingList", "Admin")%></li>
<li><%: Html.ActionLink("APPROVED", "A... | stackexchange/codereview |
I am building a login screen for a universal iOS application.
One of my requirements is a secure login screen that will store the credentials on device.
All the tutorials I found on the web explained only on the UI part of the login screen.
Does anybody know any good tutorial from the security perspective of the login... | stackexchange/codereview |
Can this Python code be shortened and still be readable using itertools and sets?
result = {}
for widget_type, app in widgets:
if widget_type not in result:
result[widget_type] = []
result[widget_type].append(app)
I can think of this only:
widget_types = zip(*widgets)[0]
dict([k, [v for w, v in widgets... | stackexchange/codereview |
I am programming in c++ using TDD, which suggests to use inversion of control when creating objects (when creating objects of certain class, pass constructed objects to it's constructor). This is fine, but how do I create objects required for the constructor?
Right now, I am using a factory (which I can easy change for... | stackexchange/codereview |
Well, I can't seem to "join the forum to post" on Google Maps itself, so I guess I'll ask here.
I recently noticed the following error that started happening on Google Maps Javascript API 3:
SCRIPT5007: 'undefined' is null or not an object main.js, line 17 character 197
This main.js file is the one used by Google M... | stackexchange/codereview |
Not sure how far a sql query can go with if/else statements.
I have a simple SELECT statement:
SELECT amount, transtype FROM
transactions
The transtype column is going to be a number.
For example, 1 = sale, 2 = refund, 3 = error, 4 = canceled, 5 = something else.... and so on.
So, nothing complicated. But the list... | stackexchange/codereview |
I'm using ActionMailer in Rails 3 to send periodic emails. I need to know whether an email was sent correctly (as far as it is possible to do so).
@lists.each do |list|
email = Reminder.deadline_reminder(list)
email.deliver
end
Is there a property of the email object (class Mail::message from the Mail lib... | stackexchange/codereview |
I am working on SharePoint Branding project, where i need to change the whole sharepoint look and feel according to Clients design guidelines/Visual Designs.
happy part, most of the branding is done but still i am facing problem with SEARCH BUTTON of sharepoint. Ia m not able to replace this default button with my desi... | stackexchange/codereview |
I'm trying to get the DWM colorizationColor using:
Microsoft.Win32.Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\DWM").GetValue("ColorizationColor")
however it is returning -2144154163 (the real value is 2150813133)
I thinks this is because the value cannot be hold on a 32-bit int... however event ca... | stackexchange/codereview |
I have bound a menu item to invoke the undo method of an undomanager on a jtextpane, and assigned an "accelerator" key combination to that undo invoke of the standard Ctrl-Z. The undo behaves just as I would like it to, unless I hold down Ctrl-Z. When I do that, the undo's are performed at an unpredictable cadence, oft... | stackexchange/codereview |
I finished reading tutorials on Java and doing the sample exercises and I am ready to really get into coding Java, the only problem is I am a bit confused as to what I should do now. What path should I take at this point ? Should I join and start contributing to an open source project ? What suggestions would you give ... | stackexchange/codereview |
Is there a way to create a temporary one-time only cron job from the command line? I'd like to have an egg-timer like function to open a terminal and do:
notify "time is up" 30
which would simply run this after 30 minutes:
zenity --info --text="time is up"
It seems easy enough for me to create, but I'm having a hard ... | stackexchange/codereview |
I'm looking at generating API docs for a JavaScript project. Does JavaScript have anything similar to Python's docstring?
function add(a, b) {
/**
Returns the sum of `a` and `b`.
*/
return (a - 0) + (b - 0);
}
| stackexchange/codereview |
Yeah, I know, this question's been asked/answered 34798796873.5 times. I looked through all 3 bajillion of them, and I still have the problem. What am I missing here?
I tried several approaches and none of them work. Here are my latest attempts:
<%:Html.DropDownList("Author",
Model.AuthorItems.Select(i =>
n... | stackexchange/codereview |
I have an puzzling problem. I have a new ASP.NET web application in VS2005 that runs fairly well, but I am having a problem and would like to set a break point to see what is going on. I have compiled the project in Debug mode. I have debug=true set in the web.config. But it appears that the IDE is not attaching to... | stackexchange/codereview |
What are the advantages/disadvantages to each method?
I know I've read somewhere in either a book or on this site why using table inheritance is crappy for Entity Framework 4.
For instance, why not make one table which has an entityId, datecreated, datemodified and then have every other class inherit that in entity fra... | stackexchange/codereview |
I'm trying to check if two strings are identical as quickly as possible. Can I protect myself from hash collisions without also comparing the entire string?
I've got a cache of items that are keyed by a string. I store the hash of the string, the length of the string, and the string itself. (I'm currently using djb2 ... | stackexchange/codereview |
I attempted to use boost::function<x> wrapper to store and convert my functional objects and I want to know if there a compile-check for "does a conversion from arbitrary type T to type boost::function<x> exists".
Here is a code example:
struct Functor {
int operator()(int) {
return 5;
}
};
// Should not f... | stackexchange/codereview |
I'm trying to replace a div based on a class name and a rel attribute.
<script type="text/javascript">
$(function () {
$('.special_button').click(function () {
var num = $(this).attr('rel');
$(button with class .value_button and rel=num).replaceWith("<div clas... | stackexchange/codereview |
I've spent the last two days hunting JavaScript memory leaks in my web project and found out the thing that confused me.
My site is built using ASP.NET MVC and heavily use JavaScript together with jQuery library and bunch of plugins.
On my local machine I refresh the page and can see how memory is constantly increasing... | stackexchange/codereview |
I am developing a simple mapping application for a client which uses XML, CSS and jQuery. I have the basic functionality working but am a bit stumped by one thing. The "map" is a large image with overflow set to hidden. Then by reading the XML the jQuery places "zones" (a tags) on the image positioning them absolutely ... | stackexchange/codereview |
i want to work on a form, here i will enter the data into text fields and this will be updated into a table as a new entry. Now out of the fields available iwant few of them to be stored into another table. so its like saving form data into multiple tables. I searched in many places but cudnt find any solution.
| stackexchange/codereview |
I'm trying to use linq to insert a row into a table, and the ID column of the table has an identify specification:
CREATE TABLE [dbo].[Event](
[ID] [int] IDENTITY(36,1) NOT NULL,
[Description] [nvarchar](100) NOT NULL,
[OccurredDateTime] [datetime] NULL,
CONSTRAINT [PK_Event] PRIMARY KEY CLUSTERED
(
[... | stackexchange/codereview |
My query looks like:
SELECT *
FROM dbo.TestTable TT
JOIN dbo.fnListParseAndSplit('test,tt,zz,er,ts',',') L ON TT.Name like '%' + L.ListMember + '%'
My issue is that on the execution plan I always get Index Seek for both cases when joining on:
T.Name like '%' + L.ListMember + '%'
T.Name like L.ListMember + '%'.... | stackexchange/codereview |
I am trying to convert a colored BMP file to gray-scale BMP. The input bmp is 24 bit and I am producing the same 24 bit bmp at the output, only this time in gray-scale.
The code I am using is
for(int x = 0; x < max; x++)
{
int lum;
lum = (r[x]*0.30) + (g[x]*0.59) + (b[x]*0.11);
r[x] = lum;
g[x] = lum;... | stackexchange/codereview |
My website allows users to attach external image to their post. Sometimes when the host server of the image has malware.
My website will have this google malware warning
http://media.photobucket.com/image/google%20malware%20warning/unfuccwittable/MalwareWarning.jpg
Is there anything i can do on my end to prevent this? ... | stackexchange/codereview |
I'm interested in using JS events such as right\left arrow, space bar etc.
Wondering what's the right way to do it. I would like to slide photos, make DIVs appear etc. on such user interactions.
I thought of possible implementations with jQuery such as http://api.jquery.com/event.which/
Though I'm not sure that's the b... | stackexchange/codereview |
Just wanted to know if someone can explain the difference between these two conditionals:
if ( !object )
if ( object == null )
where object is an instance of a user-defined class.
I'm sure that these two cannot be used in an interchangeable manner, or are they?
Thanks.
| stackexchange/codereview |
As far as I can tell, Visual Studio 2008 provides two ways of making a MFC DLL:
New Project -> MFC DLL
New Project -> Win32 Project -> select DLL, Export symbols, & MFC
What is the difference? The two methods seem to generate very different starter code. The second methods appears to generate code that I would expe... | stackexchange/codereview |
I am currently working on getting my program to execute a program (such as power point) and then beside it the path to the file I want to open. My program is getting the file's path by using:
dirIter2->path()
I get the 2 paths of the program and file, Merge them as one string and pass them into the following:
system(Pa... | stackexchange/codereview |
In the process of upgrading an application to Rails3, I encountered a problem which I isolated in a new application with one controller#action: dummies#index.
The issue: I start my server, send a request to the action, and nothing seems to happen.
The log file has this line and nothing after it:
Started GET "/dummies"... | stackexchange/codereview |
I'm going to be starting a large scale software project involving a cross-platform GUI and heavy number crunching. I plan on writing most of the application back-end in C++ and CUDA, and the GUI in Qt4. I plan on using Make as my build system. This will be a project that will only have two developers, and will proba... | stackexchange/codereview |
I decided to use the JQuery UI Datepicker script for picking dates. Below is part of my code, and the way I integrated it into my PHP page:
<link type="text/css" href="css/south-street/jquery-ui-1.8.6.custom.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="tex... | stackexchange/codereview |
I'm using a simple line of jquery to load a new "song meaning" when a link is clicked. This works fine on Chrome and IE, but it doesn't change in Firefox. I'm passing the song ID with the 'sid' variable so that the loadmeaning.php knows what song we're looking for.
$('#songmeaning').load('/music/ajax/loadmeaning.php',... | stackexchange/codereview |
I am trying to write on Console let's say "Enter your User Name:" and what I know is to use Console.WriteLine("Enter your...");
But I want this message of prompt appears as its' being typed like Aliens or star trek computers.
Your expert answer with best practices is much appreciated. Thanks
| stackexchange/codereview |
I'm trying to tokenize a string with multiple spaces. For example, "yes___no", where the underscores are spaces. Using strtok(string, " ");
But I am getting a seg fault and after debugging I see after I tokenize the second string is "\024\002" and when printing this incorrect string I get my error.
| stackexchange/codereview |
Do any JavaScript test frameworks provide a rough equivalent to Python's doctest?
function add(a, b) {
/**
Returns the sum of `a` and `b`:
> add(1, 3)
4
Add coerces types to numeric values where possible:
> add('51' + 3)
54
*/
return (a - 0) + (b - 0);
}
| stackexchange/codereview |
The API according to the documentation seems achievable with a simple ManyToManyField...what am I missing?
Sample from Django-Taggit documentation:
class Food(models.Model):
# ... fields here
tags = TaggableManager()
Then you can use the API like so::
>>> apple = Food.objects.create(name="apple")
>>> apple.ta... | stackexchange/codereview |
I'm trying to use the jinja2 templating langauge to return the last n(say, 5) posts in my posts list:
{% for recent in site.posts|reverse|slice(5) %}
{% for post in recent %}
<li> <a href="/{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
{% endfor %}
This is returning the whole list though. How... | stackexchange/codereview |
<textarea rows="1" cols="80" name="textarea{7}1" class="textarea_getcode">http://example.com/upload/logo.png</textarea>
Please tell me how to grab
http://example.com/upload/logo.png
Thanks ..
| stackexchange/codereview |
Is there a way to retrieve the height (in pixels) taken by the application title and the top bar (the one containing the clock, signal information etc...)
Thanks
| stackexchange/codereview |
I am very new to Titanium. I created one project just by clicking new project and then launched the same. It did not launch. Displayed Info was application exited from Simulator and warning was SDK not Supported. My Titanium version is 1.2.0. Can anyone help me to sort out this problem.
| stackexchange/codereview |
In some web pages, when we stop mouse cursor on some words (e.g. some popular movie star names) on the web page, a pop-up box near the words will show-up, showing maybe some related pictures for the move star, a short summary for the movie star, and related twitter link for this movie star. Then we can move mouse on th... | stackexchange/codereview |
I have a function in C which I'm trying to call from Java with JNA:
int myCfunc(void *s, int *ls);
According to the JNA documentation the void* requires a com.sun.jna.Pointer be passed to the function. In java with JNA I believe the above function will be wrapped as follows:
public interface myWrapper extends Library... | stackexchange/codereview |
Consider this string
11/12/2010
I need to convert this to 20101112.
How can this be done?
| stackexchange/codereview |
I need to be able to tell when the os has came back from sleep/hibernate/standby.
Problem I'm having is that I have a timer that needs to fire at certain time. The delay is calculated so that it will fire on certain hour:min:sec. Problem is when the os goes to sleep, the timer is "paused," which caused the timer to fir... | stackexchange/codereview |
JSP/JQuery call:-
$.ajax({
url: "ApplyCouponCode",
type: "POST",
data: {couponCode: $('#PaymentMethod_couponCode').val()},
dataType: "json",
error: function(){
alert('Error');
},
success: function(data){
alert('SUCCESS');
$('#spanValidatedCoupon').text('Is coupon valid? ' + data.couponIsV... | stackexchange/codereview |
What's the fastest way, in PHP, to determine if some given UTF-8 text is purely ASCII or not?
| stackexchange/codereview |
i have a problem.
just tryin to load some html in a div...everything works fine in every browser except ie.
$('a[rel*=ajax]').click(function(e)
{
ajaxLink = $(this).attr('href')+"?ajax=true";
theDiv = $(this).parents(".post");
$.get(ajaxLink,function(data, textStatus){ $(theDiv).replaceW... | stackexchange/codereview |
I don't understand why I get an error message using the substring method to declare a variable.
I want to use the first part of the URL in a comparison.
Site: http://www.elizabet.nl/wordpress
This is the part that's going wrong:
var currentLocation = document.location,
muzLoc = currentLocation.substring(0,45),
prodLoc ... | stackexchange/codereview |
http://dev.llnd.org/#/art/time-compression
The slideshow script I'm trying to integrate has an error: i get
Uncaught ReferenceError: time is not defined
i.onload=new Function(this.n+'.le('+s+','+c+')');
I've already commented out most other scripts, but I can't comment out the jquery, otherwise the whole site collapse... | stackexchange/codereview |
Is there a way to make the cursor be at the start of a UITextField?
When I display the control with content, the cursor is placed at the end of the text. I'd like to move it to the beginning.
| stackexchange/codereview |
I have an Eclipse Dynamic Web Project setup located in my local workspace. I want to place one of the folders of the project under Git source control. Is this possible?
I don't want the entire project in the repository, just a specific folder within WebContent. I have the EGit plugin and created a new Git repo from w... | stackexchange/codereview |
is this possible somehow?
I would like to redirect to different pages depending on whether the user already installed an app or not.
| stackexchange/codereview |
I'm trying to get the numbers of errors in the fifth line of this XML file:
<summary>
<result usecase="CRUD" target="AppHost">
<testcase size="1" cvus="1">
<sequence tps="0.25" totaltx="1" name="CRUD" min="3515" max="3515" errors="0" average="3515.0">
<node tps="0.25" totaltx="1" name="localhost" mi... | stackexchange/codereview |
I'm trying to get integration testing working for a GlassFish 2.x project, using Maven2 and Cargo. I finally have Cargo attempting to deploy my EAR but it fails to start because the data source is not configured. The app also depends on a few JMS queues and a connection factory - how do I add these?
The Cargo Glassfish... | stackexchange/codereview |
i get this error and EXC_BAD_ACESS when i run my maps application... any idea
#0 0x3510741c in objc_msgSend ()
#1 0x30a69364 in -[CLLocationManager onClientEventLocation:] ()
#2 0x30a66960 in -[CLLocationManager onClientEvent:supportInfo:] ()
#3 0x30a66b28 in OnClientEvent ()
#4 0x30a5f860 in CLClientInvokeCallbac... | stackexchange/codereview |
Is there any difference between the following operations? (Advance current date to 160 days)
Calendar c = Calendar.getInstance();
c.add(Calendar.DAY_OF_WEEK, 160);
System.out.println(c);
Calendar c0 = Calendar.getInstance();
c0.add(Calendar.DAY_OF_MONTH, 160);
System.out.println(c0);
Calen... | stackexchange/codereview |
I am trying to create a stopwatch in C++, something similar to Java's TimerTask. I like their library since it already has threading built in. I have seen Boost Chrono, however, it's still in development and would prefer not to use it.
My current implementation has been without luck (I am going by memory right now so t... | stackexchange/codereview |
My main method runs without errors, but the decrypted message is not correct. I'm almost certain I'm not properly encoding, but I can't nail down the problem. Any help would be greatly appreciated.
This is my first post, so if I've inadvertently broken a rule or not adhered to a guideline, please let me know.
stati... | stackexchange/codereview |
I am using python's feedparser module, to parse an RSS feed. Once parsed, feedparser returns dates in a python 9 tuple time format (time.struct_time).
I am want to store these values in my mysql database so I can later check the Last-Modified headers of the feed. It's import that if the times tuples are converted, ... | stackexchange/codereview |
im a little confused how i can sort my results. Im returning a list of files in a directory and need them to be sorted in some way...
// Start directory
getDirectory('../gallery/photos');
function getDirectory( $path = '.', $level = 0 ){
// Directories to ignore when listing output.
$ignore = array( '.', '..' );
... | stackexchange/codereview |
my gps location provider takes at least one minute to be available. I took best provider, and it is "gps". What will be the reason for that? My code is given below..
locationListener = new LocationListen();
Criteria criteria = new Criteria();
criteria.setAccuracy(Criteria.ACCURACY_FINE);
locationManager = (... | stackexchange/codereview |
How can i force content-disposition dir? it get the file from temp dir... i would like to change thi dir...
header("Content-type: application/zip");
header('Content-Disposition: attachment; filename="' .$file_zip. '"');
| stackexchange/codereview |
In my other (unrelated) question, @Meleak had SnapsToDevicePixels scattered throughout the code (in his answer), I found out it is used to make things look sharper. So the question, why is it not used everywhere since it will make things look better? OR are there downsides I need to be aware of? When should/shouldn't I... | stackexchange/codereview |
i am using minixml library in my gcc base project. I can successfully compile the files using the following command line option
gcc -o <output file> <c file path> -L. -lem_log -lmxml -pthread
how can i compile the program with the same options in Netbeans 6.9.0 ?
Abdul khaliq
| stackexchange/codereview |
How to let the user add widget on a form ?
Let's say that a user can add 1 or more website.
How to let him click on a "+" button to add a new widget in order to add a second website ?
Thanks
| stackexchange/codereview |
I want to use editbin in some application, like
"editbin /LARGEADDRESSAWARE your-exe-file.exe"
but in my customer pc there is no visual studio...
Do you know if some Visual Studio Express versions comes with editbin?
| stackexchange/codereview |
I want to display models of different sizes fitted into a view, so that the whole model is visible inside the screen.
What is the best way to do it?
I tried scaling (using glScale) the model using this formula
scaleFactor = ( screenSize / (maxModelSize * constant) )
Where size is height or width, depending on what is ... | stackexchange/codereview |
I am trying to replicate the UNIX program wc in haskell. To make this easier I have created a type:
data WCResult = WCResult {
wordCount :: Int,
fileName :: String
} --deriving (Show)
instance Show (WCResult x y) where
show (WCResult x y) = show x +... | stackexchange/codereview |
When i try to open my Default.aspx page on remote server i get the following error
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Par... | stackexchange/codereview |
Information: I have no knowledge of javascript. none.
I'm curious if there's any way to determine when a webpage is completely loaded? Let's say I have a crawler, that uses webkit to render pages (and webkit's JS engine to parse any JS functions and finish processing the DOM etc), I'm curious if there's any way to know... | stackexchange/codereview |
I have a requirement to integrate an application with MS Exchange in order to retrieve calendar information.
My company host the application server and would need to contact the client's Exchange server via the public internet (communication would therefore need to be encrypted and authenticated).
The application is a ... | stackexchange/codereview |
I am fixing issues in a project where I was not able to figure out a solution for the below problem.
There are multiple user controls in Main.aspx page. First one is header.ascx which is added directly in .aspx page. and the others are added dynamically from Page_Init event. Basing on the hyperlink clicked from the men... | stackexchange/codereview |
I have a problem with summing up durations using sum.
here is an example:
<total>
for $t in //Times
let $start_t := $t/@start
let $stop_t := $t/@stop
let $duration := xs:dateTime($stop_t) - xs:dateTime($start_t)
return
.....
</total>
gives me a list of partial durations. How do I sum them up using sum?
thanks
| stackexchange/codereview |
Is there a way to track if anyone is using your RSS feeds?
Thanks.
| stackexchange/codereview |
I am trying to write a simple stored proc which takes three arguments 'database name one', 'database name two' and 'table name'. The sql will then perform a row count for the defined table in each database and store it.
Working on it piecemeal I have hit the first problem in that you can't do
select * from @tablename
... | stackexchange/codereview |
I'm trying to pass in as a parameter a category name like this
"Lights+&+Lamps"
with this rewrite rule
RewriteCond %{HTTP_HOST} example.com$
RewriteRule ^/category/([^/]+)$ /showproduct.pl?category=$1 [PT]
I understand & is a paramater separator, but even when I pass in :
"Lights+%26+Lamps"
My output is "Ligh... | stackexchange/codereview |
I want to make a Java program that allow me this discover my nearby computers who is running the same problem. Which is similar like the iTunes, can discover nearby computer who enable sharing in the iTunes. How can I implement it using open source library? Also, cross platform is very important. Any ideas on that? Tha... | stackexchange/codereview |
I have a table with a varchar column with values that should be integers (legacy application, built way before I got to the company).
I need to get a list of all the records that cannot be converted to integers, in order to fix them.
How can I do this?
| stackexchange/codereview |
sealed class PI
{
public static float number;
static PI()
{ number = 3.141592653F; }
static public float val()
{ return number; }
}
What's the difference between public static and static public? Can they be used in any order?
How would I use static public float val()?
Does it get executed as soon as the cl... | stackexchange/codereview |
My experience with Regex is a little more than intro, so this is a challenge. Perhaps some math/physics/someone can figure it out...
We have to wrap certain words/phrases with a <span class="tooltip"></span> so that a relevant tooltip is displayed for the contents of the span. The challenge comes in how to avoid not wr... | stackexchange/codereview |
I can't think of what to even search for in google (not sure what you would call this plugin). So I've been using this:
http://coffeescripter.com/code/ad-gallery/
But literally I only use it for the bottom sliding navigation.
The things is, I'm not using a lot of the functionality, so in reality it's pretty bloated.
Wh... | stackexchange/codereview |
Bought developer license.
Created app.
Bought another developer license for a Company.
Moved the app to that Company and Deployed it OK (faint memory of fading nightmare).
Made first update to app (in iStore OK).
Gave that Company my iTune login and pw (and they changed the pw) and then they registered me as a develop... | stackexchange/codereview |
I have a client/server system where one of the wrongly named service calls on the server needs to be deprecated and replaced with the new, better named call. Is there some standard procedure to deprecate the old service call such as logging it's usage or returning a fault exception or something?
thanks,
Mark
| stackexchange/codereview |
We're displaying PDF content using UIWebViews at the moment. Ideally I would like to be able to display thumbnails in the UITableView without loading many different UIWebViews concurrently... they're slow enough loading one document - never mind 10+!
How do I go about doing this?
I've thought about screen capturing a ... | stackexchange/codereview |
Our development team mostly works on the same terminal server. We are working on an Outlook VSTO 2010 addin. We just migrated from "Visual Studio 2008/Office 2003/VSTO 2005" to "Visual Studio 2010/Office 2010/VSTO 2010". Attempting to debug the Add-In from Visual Studio results in the following error if any other us... | stackexchange/codereview |
i am using the php dom function nodeValue to extract the text of content. But it returns the descendant values too:
<example>
<inhalt>123<more>45</more></inhalt>
</example>
return for inhalt 12345 and 123 as i prefer. I know that is not the sense and not very well to have text inside inhalt but how i check that there ... | stackexchange/codereview |
I have two child classes ClassA and ClassB both inherit the same base class.
I also have a function that has a parameter which could be an instance of either child classes.
function Test(instance):void //instance is either a ClassA or ClassB instance
{
instance.DoSomething();
}
However, when I run the test, it's a... | stackexchange/codereview |
I want to make a programming environment. I will explain it with an example.
One programmer will write that code;
<html>
<head>
<?php definedMetaTags(); ?>
</head>
</body>
Programmer will save this file and then upload to my system. That file will be executed at server side and then they system will turn generated... | stackexchange/codereview |
I have problem with EJB,i can do normally when current day , and i try change to next 2 day it means current is 9--> 11 . And do somewhere on JSF page such as click on one link or comment one post. . .
if current day it work well, but next 2 day . Server log print
INFO: Communication failure detected when attempting to... | stackexchange/codereview |
Background Info:
I have two COM+ components on a remote server, based on .NET assemblies, one of which calls the other, which in turn calls a private assembly.
My chain of calls looks like this;
Client Machine:
Test Harness -> Initialises COM+ component "TestFirst" through Activator.CreateInstance(...), which routes vi... | stackexchange/codereview |
I want a server program which should accept only maximum of one connection and it should discard other connections. How can I achieve this?
| stackexchange/codereview |
Where should I start off to create cool web interfaces or UI's for my websites. Is CSS alone enough to create these webinterfaces or is there more to it? I'm interested in creating reusable UIs for future projects as well. So how do i get started? Thanks in advance! :) :)
Cheers
Jay
| stackexchange/codereview |
Here is my code
$(function(){
$('#new_post').bind('ajax:success', function() {
$('.posts').append("<%=escape_javascript(render :partial=>'post', :loca\
ls=>{:post=>Post.new})%>");
});
});
which results in a bizarre output, the page simply append <%=escape_javascript(render :partial=>'post', :locals=>{:post=>Po... | stackexchange/codereview |
I have begun using Zend with PHP to run product searches against Amazon. However, I can't figure out how to sort the products by date -- since I want to find the most recent products which match my keywords. The Amazon documentation doesn't have much information on how to sort results. Here's my code:
$amazon = new Zen... | stackexchange/codereview |
This is the link to a project i was making http://shout.agilityhoster.com/login.html
Log in with
username: rafa
password: nadal
Now if I log in with another user
username: ana
password: ivanovic
then the website seems to run extraordinarily slowly. Could multiple timed javascript function calls be the reason? It wo... | stackexchange/codereview |
I just want to be as DRY as possible.
$(document).ready(function(){
var w= $(window).width();
w-= (w-6) % 266;
if (w<272) w= 272;
$('#grid_container').width(w);
});
jQuery.event.add(window, "load", resizeFrame);
jQuery.event.add(window, "resize", resizeFrame);
function resizeFrame() {
var w= $(wind... | stackexchange/codereview |
I've read all the topics about my question but cannot solve my problem.
I want to get php function result using jQuery AJAX.
function.php
function generateCode() {
//code here
}
function generateResult() {
//code here
}
How can I catch the function result using jQuery AJAX? I don't want to change function.php struct... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.