instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
My mamp mysql server won't turn on. I tried executing /Applications/MAMP/bin/startMysql.sh but that gave me this error :
101110 05:50:31 mysqld_safe Logging to
'/Applications/MAMP/logs/mysql_error_log.err'.
101110 05:50:32 mysqld_safe Starting mysqld daemon with databases from
/Applications/MAMP/db/mysql
101110 05... | stackexchange/codereview |
I pin an object on .NET and get a GCHandle. I want to leak most of these GCHandle and forget about them (so the objects continue to be pinned). Later, for a few objects I want to unpin them. At that point I only have the object (or the address of the object).
It seems each GCHandle pinning call returns a fresh GCHandle... | stackexchange/codereview |
I have to find the database name from where a field is coming.
In MySQL C API, the db name can be retrieved using the API mysql_fetch_field. It returns the MYSQL_FIELD structure, which contains char *db.
But I am not able to find anything to achieve this. The PHP version of mysql_fetch_field does not have the database ... | stackexchange/codereview |
I have some floating elements to my site that won't be seen if the screen res is 1024X768 and below. So I want to give people with that screen res a different placement of that content and it will be slightly different code for the content too.
Say the people with 1024 and above will get a large square floating down th... | stackexchange/codereview |
I need to do the following:
static string[] pats = { "å", "Å", "æ", "Æ", "ä", "Ä", "ö", "Ö", "ø", "Ø" ,"è", "È", "à", "À", "ì", "Ì", "õ", "Õ", "ï", "Ï" };
static string[] repl = { "a", "A", "a", "A", "a", "A", "o", "O", "o", "O", "e", "E", "a", "A", "i", "I", "o", "O", "i", "I" };
static int i = pats.Length... | stackexchange/codereview |
I have:
INSERT INTO XYZ (c1, c2, range) VALUES (?, ?, ?)
OleDb call fails here because of range is a reserved keyword - how to quote it through the OleDB?
| stackexchange/codereview |
Can someone explain in a "very layman's terms" what a C++ compiled application is? There are network accessible computers which run some type of installed program/applet (for lack of better term) to access it across the network but it does not use http/https. Any assistance is appreciated just looking for an overview... | stackexchange/codereview |
I'm trying to open a url in the default browser. Obviously I thought that Shell Exec will open it in the default browser but it doesn't.
Then I tried explicit:
Process.Start(GetDefaultBrowserPath(), "http://stackoverflow.com");
private static string GetDefaultBrowserPath()
{
string key = @"htmlfile\shell\open\comm... | stackexchange/codereview |
I am trying to do the following in as little code as possible and as functionally as possible:
def restrict(floor : Option[Double], cap : Option[Double], amt : Double) : Double
Obviously the following works:
= (floor -> cap) match {
case (None, None) => amt
case (Some(f), None) => f max amt
case... | stackexchange/codereview |
<script type="text/javascript">
$(document).ready(function() {
$(".edit").click(function(){
temp = $(this).attr('id').split("_");
$.get('/patients/getPlanofCareById', { "id": temp[1]},
function(data){
$('#patient-poc-frm').populate(data);
}, "json");
});
});
</script>
Firebug is throwing notices that... | stackexchange/codereview |
I have n tier architecture I have Data Access, Business Service and UI layer.
I am using EF 4.0 and MVC. Now question is where to create the context in 1. Business Service and pass the context to Dataacess and return a IQuerable to Data Acess layer.
2. Directly using context in Data Access layer and use Business servi... | stackexchange/codereview |
I need an array of check-box that should look like as following:
<input type="checkbox" name="myname[]" >
Currently I am using
new Zend_Form_Element_Checkbox('myname[]');
but it doesn't show the array in html control. It draw this as
<input type="checkbox" name="myname">
AnySolution?
| stackexchange/codereview |
I noticed that Google's new page preview gets it's images using base64 rather than plain e.g. jpgs or png's
What are the advantages of doing this?
Can base64 encoded images be compressed better during transit?
Or perhaps cached better by the browser or caching proxy?
Is it so they can do one HTTP request and receive th... | stackexchange/codereview |
I have a signed jar bundled in an ear that searches for a configuration file of off the classpath. The configuration file is in the ear's manifest and is located at the root of the ear. The signed jar does not have a manifest and I cannot add one, so how do I add this file to the jar's classpath? I build the ear wit... | stackexchange/codereview |
I am currently using JQuery Ajax to retrieve and display some data as follows.
/* PHP to select data and create Unordered list */
<?php
echo "<ul class=\"ctyul\">";
while ($rowC = mysql_fetch_array($result))
{
echo "<li class=\"ctyli\"><a href=\"#"."&" .rawurlencode($rowC['PLAN']) ."\"" .">" ... | stackexchange/codereview |
I have a model similar to this:
public class SampleModel
{
public Product Product { get; set; }
}
And in my controller I get an exception trying to print out
@Html.TextBoxFor(p => p.Product.Name)
This is the error:
Exception: An expression tree may not contain a dynamic operation
If anyone can give me some clu... | stackexchange/codereview |
According to MSDN, each alternate data stream may be stored at an encrypted form (NTFS' encrypted state). The only API function I've find for setting Encryption state, is EncryptFile() , which states to encrypt all data streams of a file. So is there a way of not encrypting all data streams under XP?
| stackexchange/codereview |
I have one table (t1)
id score
22 1
35 3
51 4
and another (t2)
id score
22 2
35 1
10 5
I want to create the following table using an SQL query.
id score
10 5
22 3
35 4
51 5
i.e. I need to merge the id and add the scores together.
Ideally in ANSI SQL.
| stackexchange/codereview |
I've started using IKVM to translate Java libs into .NET CIL. I can successfully write a C# program that pulls in (inproc) a translated Java assembly as a reference and make calls to the translated Java code.
My question is, is anyone familiar w/ how to make calls (callbacks) from Java to C# using IKVM? I've been looki... | stackexchange/codereview |
I have two user controls that need to add a class atribute to the body tag of my page, however they currently over write one another if I just use
Body.Attributes.Add("class","value")
So I need to check if the class attribute exsists and if it already contains the value Im going to add.
If Not Body.Attributes("class")... | stackexchange/codereview |
I'm trying use jquery to remove a class from an element (not knowing ahead of time if it exists) and add a new element to replace it.
Would this be the best way (I'm skepticle because its not checking to see if the class exists before removing it):
$(elem).removeClass(oldClass).addClass(newClass);
thanks
| stackexchange/codereview |
I'm diving into iOS development and I'm programmatically creating some labels, but I can't seem to set their background color to black. From what I read, it seems simple enough, here's my code...
UILabel *lbl = [[[UILabel alloc] initWithFrame:CGRectMake(x, y, width, height] autorelease];
[[lbl layer] setBorderColor:[[... | stackexchange/codereview |
Is there any way to work out what a user's name is just by sniffing the NTLM header?
I have an app, that accesses a NTLM auth'd site, and so an Auth prompt opens for the user to authenticate with the site by entering their username / password.
Is there any way, just with access to the headers, to find out what the ente... | stackexchange/codereview |
Ok I'm dynamically generating the cell coordinates but I get this error, why?
Error:
Exception: Invalid cell coordinate. in /var/www/test/excel/pe/Classes/PHPExcel/Cell.php on line 490
Call Stack:
0.0003 81132 1. {main}() /var/www/test/excel/createExcelReport.php:0
0.0225 2691000 2. PHPExcel_Worksh... | stackexchange/codereview |
I'm watching my SQL Server 2008 box, and I see a query that's been running for a long time. I know it was kicked off by the webserver -- but I want to know which ASP.NET request is to blame. (That way I can see which user/IP is behind it.)
sys.dm_exec_requests gives me a session_ID for the query. How can I find out whi... | stackexchange/codereview |
I have added my declspecs to my classes and all. I basically created a new DLL project and added all of my lib's files. It builds fine except for that unresolved external symbol. Why would I need a main for a DLL?
The error is:
Error 84 error LNK2019: unresolved
external symbol main referenced in
function
__tma... | stackexchange/codereview |
I need to overlay some textures onto a video in a layered fashion (i.e. the first texture should appear under, the second texture when they are both semi-transparent etc).
The textures all have different Z values so there should be no conflicts there. Images speak a thousand words so I have attached one below:
As you ... | stackexchange/codereview |
Where is the Powershell (version 2.0) located? What is the path to Powershell.exe? I have Windows Server 2008 and Powershell installed. When I look at this folder:
PS C:\Windows\System32\WindowsPowerShell> dir
Directory: C:\Windows\System32\WindowsPowerShell
Mode LastWriteTime Length Name
---... | stackexchange/codereview |
Is there a way that I can execute a Javascript function after the client side validation occurs in asp.net?
I have a couple validation controls on a page and an input button with CausesValidation=true. The OnClientClick handler executes Javascript before the validation runs, but i want to run some functions afterwards.... | stackexchange/codereview |
How can I check the status of remote end with the help of socket descriptor in vxworks. I am using TCP connection.
| stackexchange/codereview |
I'm working with a framework that uses collections derived from System.Collections.CollectionBase. Users have been complaining about performance, and I feel that these collections, which are very heavily used, might be a big part of the problem. Is there a way with a tool or profiler or in the IL that I can get some ... | stackexchange/codereview |
I'm trying to set up a legacy application in cruise control and ran into a bit of a problem.
I've set up my project and had to include a section where nant copies files from a local file path to a networked drive.
If I run force the build through the ccnet.exe command line it works fine. If I start the service and tr... | stackexchange/codereview |
I can't get my jquery to work in wordpress even when if it is on a normal .htm page it works fine.
i'm trying to click something and fire of an alert
$(document).ready(function() {
$("#blue").click(function() {
alert("Hello world!");
});
});
this normally works in an .htm file, but when i stick i... | stackexchange/codereview |
I'm using the simple code below to replace a textbox (<input type=text />) with a <textarea> element after the user types in a certain number of characters. In the example below, this takes place after the 10th character. The code works, except that the contents of the <textarea> omits the 10th character that the user... | stackexchange/codereview |
I've created an MSI windows installer that installs a plug-in which I wrote for a piece of software used at my office. However, a number of users here don't have admin rights to their computers, and IT is getting frustrated having to install the plug-in for them.
My installer does nothing but copy a couple files, to lo... | stackexchange/codereview |
Something happened when I replaced a footer for a sticky footer, something in my code has created a mayor gab between the upper top menu and my main menu in Internet Explorer 7.
In IE8 and Firefox, everything looks normal.
My website
| stackexchange/codereview |
I want to implement a very similar functionality to what Apple did in the To: field in the Messages app. Basically replicate the same behavior when picking up phone numbers to Send to. Is this whole field a table cell or a label(to:)+textfield+add contact button?
Assuming it is just a textfield, how did they manage to ... | stackexchange/codereview |
One of my projects (PHP) I'm thinking of using symfony. I'm pretty new to php , but has a rails experience over 3 years. My questions are
The project I'm thinking is having some basic CURD operations with MySQL and some AJAX. and heavy reporting
1 - Is 'symfony' is a dependable framework (with the scalability, AJAX sup... | stackexchange/codereview |
I'm using jquery's .data() function to cache a series of values on the document.body object. This caching is done dynamically using an .each() function:
$('foo').each(function(){
var bar = $('foo').attr('id');
var myVal = $('foo').val();
$.data(document.body, 'docDepth-' + bar, myVal);
});
Later on I want to re... | stackexchange/codereview |
So the way I see zend paginate work is that you do:
$paginator = Zend_Paginator::factory($results);
$paginator->setItemCountPerPage($itemCount);
$paginator->setPageRange($pageRange);
Where $results is the result of loading a bunch of items from a database in the form of
"SELECT * FROM table WHERE etc"
Then zend pagi... | stackexchange/codereview |
I am making a program that needs to monitor a Gmail account for new messages, and in order to get them ASAP I am using JavaMail's idle feature. Here is a code snippet from the thread I am using to call folder.idle():
//Run method that waits for idle input. If an exception occurs, end the thread's life.
public void run(... | stackexchange/codereview |
I, like so many, need to create a Numeric textbox control in WPF. I've made good progress so far, but I'm not sure what the right approach is for the next step.
As part of the control's spec, it must always display a number. If the user highlights all the text and taps backspace or delete, I need to ensure that the v... | stackexchange/codereview |
I am using SharePoint 2007. I have a custom aspx page in the layouts folder containing a people picker (PeopleEditor) control.
Users can enter n nunmber of users in the control. I want to retrevie the users' emails from the people picker control using javascript, can someone please help.
| stackexchange/codereview |
One feature of the current project where I am working, is to send an email notification with some information about the recent created object.
Here is the code of my current action code:
public function executeCreate(sfWebRequest $request)
{
try
{
parent::executeCreate($request);
}
catch (sfStopException $... | stackexchange/codereview |
I'd like to know if someone knows the way a compiler would interpret the following code:
#include <iostream>
using namespace std;
int main() {
cout << (true && true || false && false) << endl; // true
}
Is this true because && has a higher precedence than || or because || is a short-circuit operator (in other words,... | stackexchange/codereview |
I am trying to port a small app of mine from Win XP and VS 2005 to Win 7 and VS 2010.
The app compiles and runs smoothly in Debug mode, however in Release mode I get the following error:
pcrecpp.lib(pcrecpp.obj) : error LNK2038: mismatch detected for
'_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in LoginD... | stackexchange/codereview |
I'm executing a simple query and want to get an array back.
Based on the ORM tutorial that comes with the Kohana 3 guide, I thought I could do the following:
ORM::factory('user')->find_all()->as_array();
But that seems to give me an array of model objects (ie array( User_Model1, User_Model2 ...
Looking at the source I... | stackexchange/codereview |
I'm not even sure if the title reflects what I want to do. Here's backstory. I have a movieclip with 5 'holder' movieclips in them. They are my containers for dynamically added movieclips.
The parent containers has an instance name of pyramid, the holder instance names are labeled after the 6 food groups, i.e., 'grain... | stackexchange/codereview |
I want a column to default to a GUID, so if I am doing an insert and I don't explicitly set the value, I want it to default to a new GUID value.
how can I do this?
| stackexchange/codereview |
So, I put all this logic in my view, thinking it would be helpful to follow the DRY principle.
Basically, this replicates a paper form, and in my view model, I have pairs of properties named like XXXCondition and XXXComment which put together form an InspectionDetail in my actual model.
<table>
<% string secna... | stackexchange/codereview |
I've made a mistake of creating my own User model and am trying to recover.
I've created a south migration that copies my old user models and creates django.contrib.auth.models.User models. To ensure my current users don't get left in the dark, I created a bunch of unittests to ensure everything gets converted appropri... | stackexchange/codereview |
I was just wondering, if I have an EditText that I'm turning the content of into a string, say
String queryStr = new String(searchText.getText().toString());
How would I go about escaping special characters from this string so that I could put it into an HttpGet method? Thanks!
| stackexchange/codereview |
I had a website running fine. One day i decided to revisit the site and discovered that it is not functioning any longer. First i thought it has to do with the provider (but to be honest i didn't get a clear answer).
I 'm banging my head against the wall: i get the following error:
HTTP Error 404.0 - Not Found
The re... | stackexchange/codereview |
I have an xml (the structure can be changed if need be) which needs to be bound to a treeview control in wpf, such that when I click on a particular node in the tree, it populates a list box with more information which also comes from the xml.
My xml is as follows:
<Event locale="en-US">
<Eventid Name="Mer101">
<Ev... | stackexchange/codereview |
This is a WPF/SL app, but this would apply elsewhere.
I have a contextually sensitive help message that directs the user if they run into a situation of no content. In the middle I want to place an icon that corresponds to a toolbar button that could also be used. I'm trying to create image recognition with the user ... | stackexchange/codereview |
I have a WPF DataGrid which is displaying data sets with more than 60 columns and anything up to 10000s of rows. The DataGrid loads the complete datasets very quickly and handles them well.
colA colB colC colD colE ...
1 2 3 4 5
5 6 7 8 9
2 3 4 3 4
1 2 3 4 ... | stackexchange/codereview |
I’m currently trying to make my C# application look better when run within Windows Vista or Windows 7. By default, Windows Forms applications use the Microsoft Sans Serif font, which does not link properly to Asian clear type fonts such as Meiryo.
To fix this issue, I set all the fonts to Segoe UI (or SystemFonts.Messa... | stackexchange/codereview |
I'll admit that I'm a bit of a ruby newbie (writing rake scripts, now). In most languages, copy constructors are easy to find. Half an hour of searching didn't find it in ruby. I want to create a copy of the hash so that I can modify it without affecting the original instance.
Some expected methods that don't work as ... | stackexchange/codereview |
I have a list of dictionary as follows:
myList=[{'id':1,'key1':'a','key2':'b'},{'id':8,'key1':'c','key2':'d'},
{'id':6,'key1':'a','key2':'p'}]
To find index of element, I am currently executing following statement:
print myList.index({'id':8,'key1':'c','key2':'d'})
which returns 1
However, I would like t... | stackexchange/codereview |
I have been trying to create a simple point light in HLSL for a couple of days now, I have been following this guide:
D3DBook:(Lighting) Direct Light Sources
Specifically the attenuation function and section on point lights. Here is my code:
//-----------------------------------------------------------------------... | stackexchange/codereview |
I'm currently using this to get the class for a specific bit of HTML on the page:
$(this).parent("div").attr('class')
But that div has multiple classes: current_status status_billed
My end goal here is to grab the class that starts with status_ and replace it with a different class name.
So using my .parent() function... | stackexchange/codereview |
I've got a SQL Server database with a table in it, which lists the file names of images. It's my intention to assign the ImageUrl of an Image control on the page, from the data in the table. I've placed a SQLDataSource control on the page, and then tried putting a FormView control there, and an Image control within t... | stackexchange/codereview |
heres the problem, i have a database thats hold information on marker images:
i'm retreiving all that with an ajax call and saving the data as objects, so i can check the location type of the marker and place the appropriate marker for that type of location.
am reciving the data fine but when i try to add the data int... | stackexchange/codereview |
I am successfully using Authlogic and I am trying to add the ability for users to reset their password by using this tutorial. When I submit the request (to the PasswordResetsController#create action) to reset the password I am getting this error:
TypeError (can't convert nil into String):
app/models/user.rb:19:in `d... | stackexchange/codereview |
I have a ton of data that needs to be processed from lab work. I have a ton of .mat files that contain a signal matrix of dimensions 7 x w. I need to resize the matrix to 7 x N and w is larger and smaller than N to make the rest of the analysis easier (don't care about data past N). I have the psuedocode of how I want ... | stackexchange/codereview |
I am creating a web application using the PHP framework CodeIgniter. The app relies on correct information regarding a user's country, region and city.
I currently have the registration form with a country drop down box(populated from database), a region drop down box (populated using ajax depending on country) and a ... | stackexchange/codereview |
I have a stored procedure in SQL Sever 2008 like:
ALTER PROCEDURE [dbo].[mySP]
@FirstName As varchar(30),
@LastName As varchar(30),
@ID As int
As
Begin
--......
End
then in EF imported this SP as a function like:
public ObjectResult<Nullable<global::System.Int32>> MyFunc(global::System.String LastName, global:... | stackexchange/codereview |
I send programatically a request to remote server:
string xml = "SomeXML Data";
string url = @"http://someserver.com";
WebRequest request = WebRequest.Create(url);
request.Method = "Post";
request.ContentType = "text/xml";
//The encoding might have to be chaged based on requirement
UTF8Encoding encoder = new UTF8Enco... | stackexchange/codereview |
At which phase of the JSF request processing lifecycle, the backing bean method marked with @PostConstruct called?
| stackexchange/codereview |
Why would a HTML page have a class of ‘javascript’?
| stackexchange/codereview |
I'm dealing with sql and my sql is not as good as my ruby, so I hope you can help me out.
I have da table that looks like this:
messages:
id INTEGER PRIMARY KEY AUTO_INCREMENT
to VARCHAR(255)
text text
shown DATETIME
For now my script generates this part depending on the number of online players.
"to = 'STEAM_0:0:xxx'... | stackexchange/codereview |
i have this file that is on the root folder called sumbit.php
and when i acesss a page like this for exmaple
http://www.example.com/viewtopic.php?topic=14
the new url is
http://www.example.com/topic/14
on firebug its saying its accessing http://www.example.co.uk/topic/submit.php, when its meant to access http://www.... | stackexchange/codereview |
How can i set print time for flex printjob.
when the time is ripe my program will automatically print my job
eg. i want to print my job at 11.00 AM i will set print time in my program to 11.00 AM when time is 11.00 AM flex will automatically print my job
| stackexchange/codereview |
for the purpose of reuse i put some method on applciation_helper,now i want to invoke this method on a specific helper like CategoryHelper,
is i need do something else?
Application_helper.rb
def ad_materials(a)
do sth
end
CategoryHelper.rb
ad_materials("dd")#this method define on application_helper,but it didnt' w... | stackexchange/codereview |
I have an ImageView that gets animated when it is added to a layout.
When it is removed, I want to reverse the same animation.
Is there a way to reverse an animation in android without recoding it and reversing the parameters?
| stackexchange/codereview |
I'm developing an ASP.Net webapp, I've HTML controls and Server controls in my VS2008 Toolbox originally. However, the Server controls section was disappeared suddenly. How can I make them to be visible in the Toolbox?
Thank you!
BRs,
William Choi
| stackexchange/codereview |
We want to migrate a huge complex native program to Android system ,running it as a background service accepting command sent from Java Program using JNI along with IPC. However, the Android NDK state following words:
Please note that the NDK does not enable you to develop native-only applications. Android's primary r... | stackexchange/codereview |
When trying to send out an email in a .NET site, the following error is being encountered:
Mailbox unavailable. The server response was: No such user here
Does this error appear if the code is trying to send to an email address which doesn't exist?
Thanks.
I now have more information about this error. The emails are s... | stackexchange/codereview |
I have a UIView that I have dropped inside of another UIView in IB (iPad version), I am doing this so I can control the background color of the region.
Odd thing is that if I set the background color of the UIView to GroupTableViewBackgroundColor, either in IB or code, the color is always white, it does not respect the... | stackexchange/codereview |
I'm currently on my first Spinner. But I kinda got stuck during the onItemSelectedListener, since I cannot implement it. I first tried to follow the method of CommonWares book but it would work - but my method now doesn't work either.
At first I tried to let my activity implement the AdapterView directly - but the only... | stackexchange/codereview |
I have developing a setup project to install a addin in outlook.
What i want to do is, in the installer have a dialog with two radiobuttons, so the user can choose if wants to install the vsto file.
I know how to add the dialog, but how can i do the rest?
regards
| stackexchange/codereview |
data abc;
a = 1; output;
a = 99; output;
run;
proc format;
invalue abc
99 = .
other = _same_;
value abc
99 = .
other = _same_;
run;
proc means data = abc;
format a abc.;
informat a abc.;
var a;
run;
I would expect the above code to give me a mean of 1 for the variable a. Bu... | stackexchange/codereview |
In the replacement script below, If the $myKeyword is "test" and the replacement text is "This, test can be a test", I would expect the replaced text to be "This, <b>test can be a <em>test</em>"
However, what I'm getting is: This, test can be a <b>test</b>.
I'm trying to determine why its skipping over the first instan... | stackexchange/codereview |
I have an extremely large XSL file to transform XML into CSV. Bascially, the structure of the XML is table data. There are about 90 columns in this table (not my decision!). These columns make up a column group.
Each column group has a First and Second value, an optional Third value and a Selection which decides whi... | stackexchange/codereview |
I'm building a system for reading emails in C#. I've got a problem parsing the subject, a problem which I think is related to encoding.
The subject I'm reading is as follows: =?ISO-8859-1?Q?=E6=F8sd=E5f=F8sdf_sdfsdf?=, the original subject sent is æøsdåføsdf sdfsdf (Norwegian characters in there).
Any ideas how I ca... | stackexchange/codereview |
I am building a full featured web application. Naturally, you can save when you are in 'offline' mode to the local datastore. I want to be able to sync across devices, so people can work on one machine, save, then get on another machine and load their stuff.
The questions are:
1) Is it a bad idea to store json on th... | stackexchange/codereview |
How do applications like Google Talk and the Last.fm desktop client access iTunes to get the current track that is playing? Is there a library to do this? I am wanting to make an application in C# that posts song information to my website. Any help is greatly appreciated.
| stackexchange/codereview |
Is there any microformat/standard for implementing search form on the site?
(access keys, naming etc.)
Any good practices?
| stackexchange/codereview |
Is there a way to test your access to window.opener.document without using a try catch block?
Thanks, Jamie
| stackexchange/codereview |
<input type="checkbox" name="average" value="average" <? if (get_option('average') == 'average'){ echo 'checked="checked"';} ?>>Average
<input type="checkbox" name="petite" value="petite" <? if (get_option('petite') == 'petite'){ echo 'checked="checked"';} ?>>Petite
if ( get_option('average') == 'avera... | stackexchange/codereview |
I have a global object in my main controllers that I need to pass to a plugin controller, how do I achieve this and resolve the scope?
| stackexchange/codereview |
I am connecting to an HTTP url using NSURLConnection. I am supposed to get response (more then one data package) after some time intervals, but NSURLConnection ,immediately, become closed. Is there is any way to prevent this? Or the CFNetwork would be only solution?
| stackexchange/codereview |
I use the Tiny C Compiler and I want to use GetUserName from
the WinAPI. My problem is, I don't know how to link to advapi32.dll
I get an error from tcc:
undefined symbol '_GetUserNameA@8'
| stackexchange/codereview |
I have an ASP.NET application that uses a MasterPage. In the MasterPage I have an image. This displays well on the development environment and on the default page that inherits it. But now I have set the website to prompt for a login using Form Authentication. The Login page also inherits MasterPage but it can't se... | stackexchange/codereview |
I'm looking for a best-practice for the following scenario:
A Mobile Device (iOS) sends its (Sensor-)Data to another device (iPad, Laptop, PC, whatever) over the Internet in realtime.
Sure, I need a web service but as far as my understanding is, a webservice gets "called" and returns Data or takes Data. But I require ... | stackexchange/codereview |
All,
Below is the code that I have written in JS.
<html>
<head>
<title>Fibonacci trial</title>
</head>
<body>
<script type="text/javascript">
var strRepresen = new String();
var numberReprsen = new Number();
strRepresen = "XXX";
numberReprsen = 10;
... | stackexchange/codereview |
I am using a cookie and if the cookie is set, it forwards the user to signin, else it shows them an error page (unauthorized). The cookie is being set correctly, and if I navigate to any page by typing it in the address bar, it works just fine. However, when I use RedirectToAction or FormsAuthentication.RedirectToLog... | stackexchange/codereview |
I have large matrix, 4000x4000
I need to calculate local average of 11x11 window for each x,y of this matrix
Generally it must be something like
for x in range(4000)
for y in range(4000)
b[x,y]=mean(a[x-5:x+5,y-5:y+5]
But this will run a lot of time
Is it some more efficient way to do this?
Thanks.
| stackexchange/codereview |
I'm looking an interval data type for .NET 4.0. For example the interval (a,b], all point x such that a<x<=b.
What i would like to be able to do are create intervals with the following properites:
Closed and open ends
Unbounded intervals, fully unbounded, and right/left unbounded.
With these I would like to do thing ... | stackexchange/codereview |
I'm trying to port this java to php:
String _value = '1111122222';
if (_value.matches("(1{5}|2{5}|3{5}|4{5}|5{5}|6{5}|7{5}|8{5}|9{5}){2}")) {
// check for number with the same first 5 and last 5 digits
return true;
}
As the comment suggests, I want to test for a string like '1111122222' or '5555566666'
How ca... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.