instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Since I uploaded an updated version of an ASP.NET MVC 1 application to the server, the Yellow Screen of Death has changed to something like this:
��I�%&/m�{J�J��t��$ؐ@�����iG#)�*��eVe]f@�흼��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h���ͼhR��L�w�|��2=��Ez<����7�:5�<�+oy��:� �T����W�v�<[��~2�g�2��?�ʋ�y�hYՋ������t�... | stackexchange/codereview |
Hi I am trying to have the navigation highlights determined by what category or page you are looking at using wordpress. Can someone tell me what is wrong with a statement like this:
<?php if (in_category('b')){ ?>
<ul>
<li><a href="#">A</a></li>
<li><a class="current" href="#">B</li>
</ul>
<?ph... | stackexchange/codereview |
I have a table view which is inside a navigation controller, however besides this the navigation controller does nothing else. So the class is pretty useless. I also have a navigation controller, which has a mapviewcontroller inside, other than that.. it has nothing else.
I know the job is important, that it navigates... | stackexchange/codereview |
Hi friends i am doing one app which requires to use ProximityIntent for showing proximity alerts i was surfing from one day but i did'nt find any sample app which shows it. i found some links but they are complex please help to find out some useful links
the links i have seen which is complex and not clear is
http:... | stackexchange/codereview |
I need to format numbers in a way that they should be preceded with zeros to contain 5 digits.
I don't get how to create patterns for java formatter.
I tried %4d but it doesn't adds zeros.
| stackexchange/codereview |
I built a Play app and tried to deploy on weblogic using the following commands:
play war -o myApp myApp
Later I just deployed the exploded war directory to weblogic, everything worked fine but everytime I try to access a route. I get the following error:
Not found
GET /myApp/params
This is a rest service not an app... | stackexchange/codereview |
I am creating a appwidget which needs to update on a specific interval. I use AlarmManager for this.
I want to have the alarm run the onUpdate() method in the AppWidgetProvider.
//Create the intent
Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
pendingIntent = PendingIntent.getBroadca... | stackexchange/codereview |
I am building an ASP.Net MVC 2 application for a client and it requires the ability for user to define views. On this website it shows how to do this - http://www.umbraworks.net/bl0g/rebuildall/2009/11/17/ASP_NET_MVC_and_virtual_views , but I ran into a few comments there and elsewhere that this was a bad idea. What ... | stackexchange/codereview |
I have got warning from subject on one of my classes. Actually class is very simple, just an inheritor of my generic base type. Also I have some other inheritors from that generic class across the solution, and there are no such warnings.
What could be the reason(s) of this?
Compiler does not give any clues of why base... | stackexchange/codereview |
I am currently trying to build my project using hudson to call maven. I keep getting the problem of out of memoery error. I set the xmx and xms in all environmental variable, hudson configuration and hudson project config. I set the xmx to 1500 mb which should be more than enough as the whole project is less than 1000m... | stackexchange/codereview |
A REST API can have parameters in at least two ways:
As part of the URL-path (i.e. /api/resource/parametervalue )
As a query argument (i.e. /api/resource?parameter=value )
What is the best practice here? Are there any general guidelines when to use 1 and when to use 2?
Real world example: Twitter uses query paramet... | stackexchange/codereview |
Having a Jetty server set up programmatically which I try to access via ajax and xmlHttpRequest. Without authorization, the call works fine but with, I get 401 Unauthorized.
Any suggestions.
Javascript call looks like this (shortened):
var auth = base64encode('name','pwd');
try{
var xmlhttp = new XMLHttpRequest();
... | stackexchange/codereview |
Is there a jQuery UI class you can use to create a more severe looking error dialog box than the one below?
This is the HTML we use to create the dialog:
<div style="display:none" id="div-dialog-warning">
<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span><div/></p>
</div>
And ... | stackexchange/codereview |
I'm building a sort of domain layer and I would like to be able to implement the following methods:
[Note: ISet is a collection class which doesn't permit duplicates, according to checking using .Equals().]
public class Parent
{
public ISet Children = new HashedSet<Child>;
public void AddChild()
{
...
}
public void Rem... | stackexchange/codereview |
Does adding more columns to ORDER BY have a performance penalty?
ORDER BY STYLE
vs.
ORDER BY STYLE, SIZE, COLOR
| stackexchange/codereview |
I'm making select with a union.
SELECT * FROM table_1
UNION
SELECT * FROM table_2
Is it possible to filter query results by column values?
| stackexchange/codereview |
I'll ONLY recieve an "Error #3000: Illegal path name" if I try to open a file which is placed inside the app-folder of the air. If the file is somewhere else outside of the app-folder it works.
private var file:File = File.documentsDirectory;
public function download():void{
var pdfFilter:FileFilter = new... | stackexchange/codereview |
I need to validate a user input using getch() only to accept numeric input
`int input_put=getch();`
if(input >=0 && < 9){
}else{
}
| stackexchange/codereview |
i have trouble with JPQL statement, i created NameQuery followed:
@NamedQuery(name = "Cart.findExistCart", query = "SELECT c FROM Cart c WHERE c.cartPK.userid = :userid AND c.cartPK.itemid = :itemid "),
in stateless bean i create one method to active this query followed:
public Cart getUserItemCart(int userid,int i... | stackexchange/codereview |
I downloaded the code for Apple's ZoomingPDFViewer sample application, but I am unable to compile this application. It's showing a warning for this line
NSURL *pdfURL = [[NSBundle mainBundle] URLForResource:@"TestPage.pdf" withExtension:nil];
NSBundle may not respond to URLForResource:withExtension
I build using the... | stackexchange/codereview |
I'm using Locbaml to generate localization files in my WPF application.
Yesterday, I've upgraded my solutions from VS2008 to VS2010, and since then Locbaml throws an error in two of my assemblies saying
"Type reference cannot find public type named 'String'." in one assembly and
"Type reference cannot find public type ... | stackexchange/codereview |
Hi I'm writing the reporting system and want to make end-user specify type if he extends my class.
class A <T extends C>
{...}
class B extends A // Compile error
{...}
class B extends A<D> // Compile error
{...}
class B extends A<C> // Success
Is that possible?
| stackexchange/codereview |
I needed a poll to vote on pictures, so I chose Advanced Poll module.
In choices I added html for images together with link to the picture and attributes for lightbox ... this is the code:
<a title="picture" rel="lightbox" href="/sites/default/files/pic.jpg" class="lightbox-processed">
<img class="image image-big imag... | stackexchange/codereview |
as most of you probably know, we can serve images from PHP using constructs like this:
RewriteRule ^images/([a-zA-Z0-9]+)\.jpg script.php?image=$1
And then in PHP:
header('Content-Type: image/png');
$image=imagecreatefromjpeg($pathComputedSomewhereElse);
imagejpeg($image);
That's dead simple, but that's not my proble... | stackexchange/codereview |
Is there a way to change the position preference range of a keyword using the Google Adwords API?
so, if i want to bid on a keyword only if it'll show up from 1 to 4, how would i do that?
| stackexchange/codereview |
The SQL wildcards "%" and "_" are well documented and widely known. However as w3schools explains, there are also "charlist" style wildcards for matching a single character within or outside a given range, for example to find all the people called Carl but not those called Earl:
select * from Person where FirstName lik... | stackexchange/codereview |
I'm working in small app for iPhone which uses openGL.
The app is supposed to :
Move around the screen with a moving touch.
Zoom in/Out by tapping
I'm overwriting this functions to handle the coordinates of the touches and move around the screen with my finger, with success, working perfectly:
(void)touchesBegan:(NSS... | stackexchange/codereview |
On a MAC OS X machine, I am using FBO, depth RBO and texture RBO with freeglut to render a 3D scene to FBO and doing a render to texture. All using standard glut functions and glutMainLoop at the end.
I am using glReadPixels to read from the FBO. I can see that the pixels are being read correctly.
However When I hide t... | stackexchange/codereview |
eg:
<ul>
<li>a</li>
<li>b</li>
</ul>
By default it generates: ab
But I want:
a
b
How can I do that?
| stackexchange/codereview |
I have a string which looks like:
"some token","another token","yet
another token","Necessary Token","KNOWN TOKEN","next to
known token"
How to get "Necessary Token" with regular expression from the given string?
I tried the next expression:
\"(.+)\","KNOWN TOKEN"
but it matches the whole substring from the begi... | stackexchange/codereview |
I am working on a project where there are 110 workers, each work for 4 hours in a batch of 8 worker, I want to Generate timing for this workers.
e.g
- Batch 1
- Worker 1-8 Timing 08:00am - 12:00pm Date 1/1/2010
- Batch 2
- Worker 9-16 Timing 12:00am - 04:00pm Date 1/1/2010
- Batch 3
- Worker 1... | stackexchange/codereview |
Coming from mostly C++ I'm relatively new to python and probably far from thinking in pythonic ways. Recently my web hoster activated python as cgi for my web space. I got an email asking me to test any python scripts on a local server (xampp, ...) since my web space is hosted on a productivity server.
Now my question... | stackexchange/codereview |
I have List newJobs. Some threads add items to that list and other thread removes items from it, if it's not empty. I have ManualResetEvent newJobEvent which is set when items are added to the list, and reset when items are removed from it:
Adding items to the list is performed in the following way:
lock(syncLock){
... | stackexchange/codereview |
This has always confused me.
Everyone says that IE6 dies slowly. But what is preventing Microsoft to update all IE6 to IE8?
When a user open the IE6, if it says "Update to a newer version" then I guess 9/10 users will just click on it.
What are the obstacles from updating all IE6 so it can just die?
| stackexchange/codereview |
I had a general question earlier and got great responses, but now (even though it's the same exercise) I have a more specific question and thought it deserved it's own Q&A page.
Here's my program (not completed, but it compiles and runs ok) :
#include <stdio.h>
#define IN 1 // inside a word
#define OUT 0 // outside a... | stackexchange/codereview |
I'm creating a custom behaviour for WCF which can (for interoperability reasons) only function correctly when a service exposes a single application endpoint.
I would like to be able to use the IServiceBehavior.Validate method to check that only one application endpoint is exposed by the service. Currently I'm doing th... | stackexchange/codereview |
Are there any Struts Plugins for
Eclipse Helios - that make it easier to Navigate through Struts based
Projects? I am on an Ubuntu system.
Thanks.
| stackexchange/codereview |
What would be the fastest way to store List of type Point, in a string that produces minimum string length and with fastest parse back algorithm?
I found that framework has Convert.ToBase64String, Convert.FromBase64String methods. Open to any ideas using these or even better self designed algorithms ;)
Thanks in advanc... | stackexchange/codereview |
i am having a trouble in taking input for the character type in c.the behavior of my source code is unusual.
my code is:
int n,i;
char *ps;
printf("Total no:");
scanf("%d",&n);
ps=(char *)calloc(n,sizeof(char));
for(i=0;i<n;i++) {
printf("Enter character %d:",i+1);
scanf("%c",ps+i);
}
then as per my requir... | stackexchange/codereview |
I've been looking at the GCC docs for defining macros and it looks like what I want isn't possible, but I figure if it is, someone here would know.
What I want to do is define this macro:
synchronized(x) {
do_thing();
}
Which expands to:
{
pthread_mutex_lock(&x);
do_thing();
pthread_mutex_unlock(&x);
}
... | stackexchange/codereview |
I need to automatically send an email from within an elisp function. Hypothetically, I would like a single function which I can pass in the to, from, subject, body, and possibly other headers. Does such a function exist? If not how could it be implemented?
| stackexchange/codereview |
in the system console I would like to log only messages from com.foo.* and not messages from an external library that I'm using com.bar.*
Here's what I did:
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" valu... | stackexchange/codereview |
Is there any elegant way to make Java method located within parent class return object of child class, when this method is called from child class object?
I want to implement this without using additional interfaces and extra methods, and to use this without class casts, auxiliary arguments and so on.
Update:
Sorry tha... | stackexchange/codereview |
This is yet another of my Java questions.
Please take a look at this code:
public static void main(String[] args) {
if( args.length != 5) {
System.out.println("Error. Wrong number of params!");
System.exit(0);
}
File file = new File(args[0]);
try {
BufferedImage image = ImageIO.read(file);
FileWri... | stackexchange/codereview |
I'm resizing images with php gd. The result is image resources that i want to upload to Amazon S3. It works great if i store the images on disk first but i would like to upload them directly from memory. That is possible if i just know the bytesize of the image.
Is there some way of getting the size (in bytes) of an g... | stackexchange/codereview |
Im working on a drupal site that uses jQtouch (for iphone), and im trying to make a search that doesnt reload the site. I think the javascript/ajax part isnt working. Im having problems finding out if the data from the php file is actually comming through, at the moment only the js that empties the search-results is wo... | stackexchange/codereview |
Hey, I have an excel document with columns A and B. Row A has 2595 values. Row B has 411 values.
I'm trying to figure out how I can compare these two columns by marking column C with the number of times we find a value(s) from row a.
For Example
COLUMN A COLUMN B COLUMN C
1 1 ... | stackexchange/codereview |
I am trying to create a chess game for java using images my classmate and I are working on. We are using a created image to serve as the board and pieces to place about that the user can drag and place. Unfortunately we do not currently know how to import images from a file directory into the program itself. Not only ... | stackexchange/codereview |
I have a repository which contains a directory tree. One of the directories is a home for many thousands of files. This directory is very rarely modified, but it makes operations like "svn status on root dir" or "svn update on root dir" so slow that they are no longer practical.
Is there a way to make my svn client ski... | stackexchange/codereview |
I'm implementing Google Maps API and I'd like the first marker's InfoWindow to open when the template is first rendered but only if a certain condition is true.
I have something like this:
{% if project %}
//the following is automatically open the infowindow of the FIRST marker in the array when rendering the template
... | stackexchange/codereview |
Does Ext-js come with functionality to manipulate the browser window?
Specifically, I want to resize and close the current browser window.
(Browser window, the browser's native window, as opposed to Ext-js' widgets).
It it possible or must I resort to plain old javascript?
| stackexchange/codereview |
Say I have a class A:
class A(object):
def __init__(self, x):
self.x = x
def __str__(self):
return self.x
And I use sys.getsizeof to see how many bytes instance of A takes:
>>> sys.getsizeof(A(1))
64
>>> sys.getsizeof(A('a'))
64
>>> sys.getsizeof(A('aaa'))
64
As illustrated in the experiment ... | stackexchange/codereview |
I've been trying to get sscanf to recognize a fairly simple format using character classes. I've noticed that when I provide sscanf with a char* to match the character class it overwrites the previous byte also as if it expected a pointer to 2 bytes.
A simplified version of what I'm trying to accomplish:
#include <stdi... | stackexchange/codereview |
My routine to check for updates is run as a separate process. Exiting the application is required to update, so a dialog asks the user, when an update is found, if they want to exit now. f they do, the code (from the update thread) calls Application.Exit().
However, if the FormClosed event of any form that needs to be ... | stackexchange/codereview |
While debugging a postback problem with a DropDownList within a Repeater I discovered that even though everything looked like it was set up correctly the selections from the user on the DropDownList were not being restored from the view state.
My DropDownList was defined as
<asp:DropDownList ID="EmployeeColumnDropDownL... | stackexchange/codereview |
I'm tracking the position of an quadrangle on a surface with my camera. This works fine.
After getting these coordinates (4 edges) I want to display a cube on this position.
(AR-like).
How to calculate the model-transformations or (if it's better) to setup the camera-position ?
Thanks in advance ...
| stackexchange/codereview |
I was reading somewhere that PHP is a templating language. What is exactly a templating language? What makes PHP one? What are the other templating languages?
| stackexchange/codereview |
I'm trying to generate a form from a parsed json (in Hash form) with this helper
def hash_to_form(hash, fields, legend)
fields.fields_for do |b|
concat('<fieldset><legend>', legend, '</legend>')
hash.each do |key, attr|
if hash[key].is_a? Hash
hash_to_form(hash[key], b, key)
el... | stackexchange/codereview |
In the emacsclient documentation, an example EDITOR setting is:
EDITOR="emacsclient --alternate-editor emacs +%d %s"
How can the %d and %s be used? I understand that + starts at the specified line and the %s is the file name to edit, but what program replaces %d and %s the values?
For example, if subversion tried to ... | stackexchange/codereview |
I have made an application which showns a lists of client. You can open a client, and the client's details are shown.
My application takes quite a long time to start, so I want to improve the startup performance.
In pseude-code, my main window looks like this
<Window>
<c:WelcomeAnimation Visibility="Visible" />
... | stackexchange/codereview |
I have a site under drupal (using mysql) but need it to read from a external sql database and make quires/reports, maybe using views2?
Is is at all possible? I been looking for a solution to just read (not import, its thousands of entries...) from an external database for hours and not sure if its even possible.
| stackexchange/codereview |
I have a ListBox with ItemsTemplate set.
Now I want to catch Ctrl + Left click on a ListBoxItem.
I found KeyBoard class that should give me modifier keys. Now how do I get the click event on the ListBoxItem? Even better, how do I bind it to ICommand.
I found some bits and pieces but don't know how to connect them. It s... | stackexchange/codereview |
<% form_for(@software) do |f| %>
is producing a form tag that looks like this:
<form action="/software.%23%3Csoftware:0x24b2eac%3E" ...
The software model is a bit special, in that I've made it uncountable (softwares didn't sit well with me)
environment.rb:
ActiveSupport::Inflector.inflections do |inflect|
inflect... | stackexchange/codereview |
I'm trying to use the page URL as a variable inside a form submission so that I can write it into my database and figure out what pages are getting more list sign-ups. Is there any easy way to do this?
| stackexchange/codereview |
Is it some difference in ASP.NET Page Life Cycle comparing NET 3.5 and NET 4?
| stackexchange/codereview |
i am new to asp.net mvc 2.0.Currently i am having registration page with fields login id,username,password.now i want to add my own custom fields like first name and last name.So tell me to do this, i have to add these fields in asp_membership table .If i have to add then i have to change the built in stored procedures... | stackexchange/codereview |
I have a model, which has several "automatic" fields, like this:
class Message(Model):
subject = CharField(max_length = 200)
message = TextField()
created = DateTimeField()
last_status_change = DateTimeField()
status = CharField(max_length = 10)
In my database (Postgres) I set up default values for... | stackexchange/codereview |
For some time I've been using gsm codec for network audio chat. Now I'd like to implement smth like speex or iLBC due to "voice prediction". As far as I understand i need timestamps for packets. Also I know that to make codec to predict voice I have to pass it NULL packet for example.
But I cannot understand the entir... | stackexchange/codereview |
I'm facing a problem I don't really understand.
This is my controller
def index
@resources = Resource.all(:limit => 10)
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @resources }
end
end
When i try to access the html page, everything works fine, but when... | stackexchange/codereview |
Im using a webservice that needs a datetime in the following format "2010-12-24"
I have the string to parse in the same "way" but as said, its a String.
string myDate = "2010-12-24";
How can i parse it so that it gets the same format?
Have tried using : DateTime.Parse(mystring);
but this gives me a colon separated for... | stackexchange/codereview |
Matching a string that allows escaping is not that difficult.
Look here: http://ad.hominem.org/log/2005/05/quoted_strings.php.
For the sake of simplicity I chose the approach, where a string is divided into two "atoms": either a character that is "not a quote or backslash" or a backslash followed by any character.
"(([... | stackexchange/codereview |
I am building a small app that looks at availability of vehicles and helps a customer book it.
in this I am making use of a form wizard that guides the user through the steps.
in the backend I am updating all the queries successfully, however I am not quite sure on how to execute one part of it.
I have two models, Quot... | stackexchange/codereview |
I have multiple select boxes on the page all of which share the same beginning parts of the name attribute. What I need to do is go through each select box on the page with this starting name SELECT___ and grab the name of that select box and whatever the selected option value is and have it formatted like this so that... | stackexchange/codereview |
Let's say I've checked out revision 10 of hello.c which is the latest one in the repository. I've made some changes to hello.c locally in my workspace, but I haven't committed it yet. Now, how can I compare this local uncommitted changes made on top of revision 10 with, say, revision 7 of hello.c in the repository?
Tha... | stackexchange/codereview |
Before reading the question:
This question is not about how useful it is to use dynamic_cast. Its just about its performance.
I've recently developed a design where dynamic_cast is used a lot.
When discussing it with co-workers almost everyone says that dynamic_cast shouldn't be used because of its bad performance (the... | stackexchange/codereview |
My map(V3) is loaded into an iframe. I need to find the pixel co ordinates of each marker relative to the iframe. Could someone tell me how to do that please? Thanks a ton.
| stackexchange/codereview |
I want to give the effect that the ListView has faded from whatever is around it. By default it is set to whatever colour your ListView is. I can adjust the orientation of the FadingEdge and the size of the FadingEdge but not the colour. Is it possible?
| stackexchange/codereview |
I have an xml document that looks like this.
<?xml version="1.0"?>
<services>
<service sn="1" family="2 Week Wait">
<service_name>2 Week Wait Dermatology</service_name>
<speciality>2 Week Wait</speciality>
<clinic_types>2 Week Wait Skin</clinic_types>
<tag>Malignant neoplasm of skin , Pigmented skin... | stackexchange/codereview |
By default on Windows Git places global .gitconfig in c:\documents and settings\user\
How can I change that position so .gitconfig is stored in c:\my_configuration_files\?
Can it be done at all?
| stackexchange/codereview |
I want to put some JavaScript files in one of my packages and make Struts serve them like /struts/js/foo.js
Struts does that for files in 'template' package (that's where jQuery plugin's files are located, guarded by struts.ui.templateDir option). However I want to put those files into another package; If I redefine st... | stackexchange/codereview |
I have a page, home.php. On the page, I have CSS tabs tab1 and tab2. The tabs are on the same page not different pages. I want the content of tab2 to display whenever I click the submit button in the content of tab2, not take me back to tab1. How can I use JavaScript to implement this behavior?
<html>
<head>
<title>hom... | stackexchange/codereview |
Let´s say I have a logger class that has an attribute pointing to an open file. This file should be open until this class is no longer used. Something like:
class MyLogger
attr_accessor :log_file
def initialize
@log_file = File.new('my_log_file_name.log','w')
end
def finalize(id)
@log_file.close
end
... | stackexchange/codereview |
i want to upload profile pic like facebook and ajax upload the image and crop with the fix size
and ajax upload to server .
in jquery ,php ,
how can i do it ?
thanks
rahul
| stackexchange/codereview |
I am practising Kata Nine: Back to the CheckOut in Perl whilst also trying to use Moose for the first time.
So far, I've created the following class:
package Checkout;
# $Id$
#
use strict;
use warnings;
our $VERSION = '0.01';
use Moose;
use Readonly;
Readonly::Scalar our $PRICE_OF_A => 50;
sub price {
my ( $s... | stackexchange/codereview |
How can i do a select from a variable received from a form?
I have the following code but i think that i cannot do this : '%'.$texto.'%'
$busqueda=$_POST['texto'];
$tipo=$_POST['tipo'];
if($tipo='titulo')
$res=mysql_query("SELECT * FROM LIBRO WHERE LI_TITULO like '%'.$texto.'%'",$conexion);
What should i do? Th... | stackexchange/codereview |
Is this a design choice by Microsoft, or is there a way to do it, that I'm not aware of?
| stackexchange/codereview |
Ok basic JS 101 I know, but can't find the answer...
For the below code I have declared var mls_link = []; In globals
The data.getValue yields a string item (http addresses)
When I step through the code the string is an array rather than each "item" being a array entry.. ie mls_link [0] is h (the beginning of the http ... | stackexchange/codereview |
In my current web project, we perform a ClientFactory.CreateChannel for every method call to a remote service.
Is this really necessary?
What is the best practice?
| stackexchange/codereview |
I am moving from Eclipse to JDev 10.1.3
I cannot do how to use auto-complete for classes that are not imported.
(In eclipse, the auto-completion where on the entire classes in the CLASSPATH)...
How to accomplish that?
Thanks!
| stackexchange/codereview |
I'm using DirectoryIterator to list files. In this scenario my dir contains 19 files.
I need to create a list which wraps 7 files into a <div>.
I must be tired, because I'm not able to do this simple task.
My code is updated to reflect suggestions below:
$i = 0;
echo '<div class="first_div">';
foreach ($dir as $filein... | stackexchange/codereview |
I any one have idea about taking snapshot from iphone application through coding.
means.
I am developing an iphone application where there will be two images dynamically comes. There will be a text view with clear color on those particular images. users will be able to write any text on the images and click save button... | stackexchange/codereview |
My app architecture / hierarchy looks like this:
UIView
UIView
CALayer | CALayer | CALayer | CALayer .... (and a few hundred more)
These CALayer instances represent small square dots in a dot matrix display for an fast countdown clock. I'm updating their backgroundColor as often per second as possible. Actually what I... | stackexchange/codereview |
Is it legal to download the jsapi and self host it in my server instead of requesting it directly from the google's infrastructure?
I know that this is not recommended but is it legal?
| stackexchange/codereview |
I've written a nice little Android app to check data usage, unfortunately it relies heavily on android.net.TrafficStats which was introduced with Froyo (Android 2.2).
I'm attempting to back-port this class for my non-Froyo users, and what I'm able to determine from the Android source is:
TrafficStats.java is just a na... | stackexchange/codereview |
So I'm basically making a youtube downloader .dll. What I need is to return two different types of values with their own values. I have tried writing these to a temporary file but this is resource consuming.
I need to return a collection of values called the youtube links
I need to return a collection of values called... | stackexchange/codereview |
this is my code in logout.php
<?php
if(isset($_COOKIE['cookie-username']) || isset($_COOKIE['cookie-password'])) {
setcookie("cookie-username", NULL, time()-60*60*24*100);
setcookie("cookie-password", NULL, time()-60*60*24*100);
}
header( 'Location: ../login' ) ;
?>
I can confirm the cookies exist... | stackexchange/codereview |
Imagine a class with many public properties. For some reason, it is impossible to refactor this class into smaller subclasses.
I'd like to add a ToString override that returns something along the lines of:
Property 1: Value of property 1\n
Property 2: Value of property 2\n
...
Is there a way to do this?
| stackexchange/codereview |
I have a TypeConverter on the base class in my project.
[TypeConverter(typeof(CodeTypeConverter))]
abstract class CodeBase
I have a number of classes which inherit this base
class TitleCode : CodeBase
class PreferenceCode : CodeBase
When the thing that calls the type converter (ValueProvider.ConvertSimpleType) it doe... | stackexchange/codereview |
I need help in following:)
To begin with I work on the large application, that has a WinForms client and server. Server in our case is the set of WCF services. There is one service that is responsible for authentication of users. The logic of authentication is custom and complex and authentication service uses differen... | stackexchange/codereview |
Knowing full well that my InnoDB tables don't support FULLTEXT searches, I'm wondering what my alternatives are for searching text in tables ? Is the performance that bad when using LIKE ?
I see a lot of suggestions saying to make a copy of the InnoDB table in question in a MYISAM table, and then run queries against T... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.