instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
My layout page:
<html>
<body>
<div id="container">
<ul id="list"></ul>
</div>
<input id="update" value="update" />
</body>
</html>
in which the ul list is a partial which will be rendered either when
the whole page gets loaded
the when the update button gets clicked, an ajax reqeust is issued and the in... | stackexchange/codereview |
After so much trouble I find out that when I use the flush function in my PHP mail script then I get garbage or dump characters on browser like below.
The code is below
if ($mail->Send()) {
echo "<br><font color=darkgreen>[$num successful send to $to]</font> ";
// flush();
return true;
}
If I comment that... | stackexchange/codereview |
i have implemented the following viewDidLoad() Method:
- (void)viewDidLoad {
[super viewDidLoad];
// loading images into the queue
loadImagesOperationQueue = [[NSOperationQueue alloc] init];
AFOpenFlowView *openFlow = self.view;
theControl = [[UIControl alloc] initWithFrame:self.view.frame];
NS... | stackexchange/codereview |
I need to make certain output from views dynamic based on the "type" of user logged in. Specifically, the user "type" is based on the type of business they are in and using my application, so if they are a retail store my application needs to refer to "customers", "products", "purchases", etc. whereas another type of u... | stackexchange/codereview |
Lets say I have am Organization object. How do I create an url that points to that organization's public pages?
There is a class NavItem that creates links to given layouts, but which one the "front page" is undocumented (among everything else). Then there is PortletURLImpl that can be used (in convoluted way) for thi... | stackexchange/codereview |
I have a TextBox that is defined through a ControlTemplate. Because of the ControlTemplate, the TextBox is no more automatically grayed out when the IsEnabled-property is set to false.
To provide this functionality, I use the following trigger within the ControlTemplate:
<Trigger Property="IsEnabled" Value="False"> ... | stackexchange/codereview |
How would one go about making a progress bar in html/css/javascript. I don't really want to use Flash. Something along the lines of what can be found here: http://dustincurtis.com/about.html
All I really want is a 'progress bar' that changes to the values I give in PHP. What would be your though process? Are there any ... | stackexchange/codereview |
I am trying to set an identity field's value before inserting the new record into the database, I am trying to save having to needlessly re-map all of the FK fields when I know the destination tables are empty already.
I had hoped that this question:
How do I MANUALLY set an Identity field in LINQ-To-SQL (IDENTITY INSE... | stackexchange/codereview |
net ,vb. I want to deny users who have not logged in with a message" you have to login to access this page".
Can someone help me write the code in vb.net?
Thanks in advance
| stackexchange/codereview |
I was asked to make a software that will encrypt and decrypt a "normal English" text based on letter frequencies.
The question is where do I find some text samples where the official frequencies will match?
So far, I have tried "War and Peace" by Lev Tolstoy, it didn't work well..
LE: I don't need just a list of words,... | stackexchange/codereview |
I am working on an application where Repository objects are displayed via a DataTemplate that contains a modified version of a TextBox, which supports binding to the SelectionStart, SelectionLength, and VerticalOffset.
The DataTemplate looks like this:
<DataTemplate DataType="{x:Type m:Repository}">
<controls:ModdedTex... | stackexchange/codereview |
Hi
I am trying out my first program in Ada of creating a single player dice game.
But facing problem in maintaining score of the player.
Goal: Each player has 10 turns and scores 10 points if total of 2 rolls is 7
Problem: Every time total score gets reset and 10 does not get added to current score.
Total_Score is the... | stackexchange/codereview |
How do I do a bubble sort in java,
The text file looks like this:
aaa
2
bbb
3
ccc
1
What I need to do is to loop through it and display the highest score to the lowest.
When I run the code below, The numbers, are already sorted. and it will display 3, 2, then 1.
But the name isn't in sync with the corresponding s... | stackexchange/codereview |
Hi every one i am new to liferay i ve developed my own page and when i click sign-in In main page i want to redirect to my custom page instead going to default home page.. can anyone pls suggest me how to do this where i should redirect it thanks in advance.
| stackexchange/codereview |
I'm trying to include a text file that contains some static data that I need to read in when the app starts up. I've added the file and marked the Build Action to "Resource" but I'm unsure of how to actually read it in as a stream. Anyone know how to do this?
| stackexchange/codereview |
I have a client/server application and I'm looking for some advice about how to handle the interface between the two. The Server/clients will be deployed over a LAN (potentially WAN, but definitely customer-managed, not centralized server). I'm considering these two options:
Client and Server can be different versions... | stackexchange/codereview |
I want to achieve this ..
update Table_A c
set c.Column1 =
(select d.column1 - b.column2
from Table_B d, Table_A b
where b.primary_key = d.primary_key)
But for outer query there is no primary key clause i have added.. How do i achieve it
| stackexchange/codereview |
In a sql based query, I need to check that the persons I select from data should have a cell phone with area code 256. How do we check this? I have cell phone numbers as BIGINT.
| stackexchange/codereview |
The sections of Portable Executable files are tagged with differents flags. Can someone explain the difference between IMAGE_SCN_MEM_EXECUTE (the section can be executed as code) and IMAGE_SCN_CNT_CODE (the section contains executable code)? Thanks.
| stackexchange/codereview |
I'm looking for a step-by-step explanation on how to go from the normal folder structure on the left where the application folder contains models,views,controllers, to the module-based folder structure on the right where application contains a modules folder which contains the individual modules with their own models,v... | stackexchange/codereview |
I want to block a USB based on volume using C#. Like I want to block USB stick if capacity is greater than 8GB.
Look there is a method to block USB on PC using registry. but this will make USB undetectable so I can not get volume information.
I want to do that If my client program is running on some machine and I put r... | stackexchange/codereview |
I have this in my main.xml
<com.adwhirl.AdWhirlLayout
android:id="@+id/timer_ads"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" />
And it always results in
Binary XML file line #117: Error inflating class com.adwhirl.AdWhirlLayout
and a... | stackexchange/codereview |
I have a core data database which has (for now) 2 entities Product and CompetingProduct, CompetingProduct relation is set to-many with products.
I create 2 mock Products and 2 mock Competing products and set relation between them .. everything works files.. Saved to database, also NSlog, "po" them.. all is good.
Now.. ... | stackexchange/codereview |
Whenever I call os.path.exists(variable) it will return false but if I call os.path.exists('/this/is/my/path') it will return true.
import os
import sys
test = None
print("Test directory")
test= sys.stdin.readline()
test.strip('\n')
print(os.path.exists(test))
I know that os.path.exists can return false if there is a... | stackexchange/codereview |
I have a listbox to display a datasource. The datasource has only one field ("ClassName").
I want the listbox is displayed by 2 branches.
Example:
ClassName:
ClassName1
ClassName2
ClassName3
ClassName4
Display: =>
ClassName1 ClassName2
ClassName3 ClassName4
Just tell me how to do that please!
thanks!
| stackexchange/codereview |
I'm running bundler with rails 2.3.4.
I'm trying to get declarative_authorization to work (I added it to my Gemfile).
The error I'm getting is undefined local variable or method 'filter_resource_access'.
I'm guessing this means that declarative_authorization isn't loading? Since I'm using bundler I don't have a config... | stackexchange/codereview |
How do I obtain the system include search paths of the C preprocessor? This is for a script that parses arbitrary source files and needs to know the full pathnames of the headers they #include. Let's ignore for a moment that the user can alter this sequence of search paths with compiler flags. I'd prefer a solution tha... | stackexchange/codereview |
Even if I set the geometry for the QWebView it occupies the whole left over screen.
Even worse if I maxmize the window, there is a gap between the two widgets
Below is my code I wrote:
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from PyQt4.QtWebKit import *
class twsearchbox(QWidget):
def __init__(self)... | stackexchange/codereview |
Where can I find a list of detailed_signal (used in g_signal functions)?
| stackexchange/codereview |
I've tried using a Dojo button view helper, but it appears that Zend will not automatically generate a dojo.require('dijit.form.Button'). Is this correct behavior?
Here's excerpt from my layout script:
<head>
<?= $this->dojo()->setDjConfigOption('usePlainJson',true)->addStylesheetModule('dijit.themes.claro')->setLo... | stackexchange/codereview |
Ok, here is a real short query.
I am calling __FILE__ from inside a function.
Now, this function itself is in a required file.
Now, when I call this function from inside the Parent file, will the __FILE__ output the parent file or the file which was included?
Oh, and I am looking for a source where I can confirm, if po... | stackexchange/codereview |
I want to add a MouseOver event handler for any tag. Let say just for the example, that I want to add the event handler for every anchor page in a legacy HTML page.
Following the GWT guide, I was able to use their a JSNI method suggested to retrieve all anchor tags after correcting small errors (missing parenthesis and... | stackexchange/codereview |
In a Windows Phone 7 application, when I place a TextBlock in the grid and set its HorizontalAlignment to "Center" and its TextWrapping to "Wrap", why does the text that overflows the width of the container and is placed on the next line, align with the left side of the otherwise center-aligned block?
Is there any way ... | stackexchange/codereview |
I was required to write a program that generate random results of 10 sport games where 10 countries are involved, and display the medal tally based on the results.
I was able to generate the games' result but have no idea how to sum up the results (i.e. the number of different medals earned by each country).
Below is p... | stackexchange/codereview |
it is possible to create a global exception handler for Wordpress so that I log all exceptions in a file or db so that I can analyze them later on ?
PS I am a WP noob
| stackexchange/codereview |
Is there a better way to write this extension method?
public static class StreamReaderExtensions
{
public static StreamReader SkipLines(this StreamReader reader, int lines)
{
for (var i = 0; i < lines; i++)
{
reader.ReadLine();
}
return reader;
}
}
I was thinkin... | stackexchange/codereview |
At my workplace, usually default parameters are specified in the declaration.What is the normal custom? Should I specify default parameters in method declaration or method definition?
EDIT: Is there any way to specify default parameters for references?
EDIT: Can someone please provide an example of default arguments f... | stackexchange/codereview |
Possible Duplicates:
Using arrays or std::vectors in C++, what's the performance gap?
std::vector is so much slower than plain arrays?
memory is vector of 1000 elements
array[] is an integer array of 1000 elements
for (iteration = 0; iteration < numiterations; iteration++) {
for (j = 1; j < numints; j++) {
... | stackexchange/codereview |
Anyone know how to change a single instance of an item renderer for a Flex tree item at runtime? To reiterate, I'm not trying to change the entire tree's item renderer like this:
tree.itemRenderer = new ClassFactory(ItemRenderer2);
I'm trying to change the item renderer of a single tree item like this (the follow... | stackexchange/codereview |
What is best way to implement custom SoftKeyboard, so it recognize where user push, and where user release, and then use both coordinates to determine character?
E.g. if i push Q, then move finger to E, then release. Application should get 2 coordinates. Basically simple line.
One way is to make it trough buttons and ... | stackexchange/codereview |
I've created a servlet app using Netbeans and it works on my local machine. Now I need to deploy the app to my college class Tomcat 6 instance. The instance is set up like so: /java/tomcat/webapps/<student_id>, where student_id are the 30 student IDs for my class.
What exactly do I need to deploy to /java/tomcat/weba... | stackexchange/codereview |
I'm new to android development - using a book called Sams Teach Yourself Android Application Development in 24 hours. Followed it so far but got stuck trying to use SharedPreferences.
In the folder src/com.androidbook.triviaquiz I've got a file called QuizActivity, in it I've got the following:
package com.androidbook... | stackexchange/codereview |
I am using SQL EXPRESS EDITION 2005 and Created mdf data file using vb.net 2008. now i want to use this datafile in lan. i modified connection string
"Data Source=.\SQLEXPRESS;AttachDbFilename=\Server\Data\Data1.mdf;Integrated Security=True;User Instance=True;Connect Timeout=60"
it is showing security info error i wa... | stackexchange/codereview |
Assuming I have the following file structure:
www.example.com/index.php (home page)
www.example.com/about.php
www.example.com/services.php
www.example.com/contact.php
How can I use mod_rewrite in an .htaccess file so when the browser points to:
www.example.com/about.php
the actual URL displayed will be:
www.example.com... | stackexchange/codereview |
I need to create app for a Symbol MC70 device running Windows Mobile 5.0
I did some searching for a few hours. Where can I get information on
Pocket PC development for Windows Mobile 5.0 (MS site on has for Mobile 6.0)
Development for this particular device (Symbol MC70)
I am running VISUAL Studio 2008 TS.
I downlo... | stackexchange/codereview |
I'm trying to "open" (?) a 20gb database with a .sql extension and can't find any documentation for beginners that doesn't already assume database access. I think as a first step I need some database management system. It don't need to have any development type capabilities - just the ability to compile (right word?) ... | stackexchange/codereview |
I have a C program that records video and audio from a v4l2 source into flv format. I noticed that the program did not work on newer versions of ubuntu. I decided to try to run the problamatic pipeline in gst-launch and try to find the simplest pipeline that would reproduce the problem. Just focusing on the video side ... | stackexchange/codereview |
I have the following bit of code:
public struct Interval
{
public double Min { get; set; }
public double Max { get; set; }
public Interval(double min = double.MinValue, double max = double.MaxValue)
{
Min = min;
Max = max;
}
}
The compiler is complaining that
Backing field for aut... | stackexchange/codereview |
#include <stdio.h>
const int str[1000] = {0};
int main(void)
{
printf("arr is %d\n", str[0]);
return 0;
}
Has the following output:
[-exercises/adam/stack2]:size a.out
text data bss dec hex filename
5133 272 24 5429 1535 a.out
Whereas:
#include <stdio.h>
static int str[1... | stackexchange/codereview |
I am developing a mobile application (BlackBerry) with Java that makes use of the Google Translate API. I have it set up so that a user can specify a language before logging in, and then once they log in, I have wrappers around every piece of text displayed to screen which will translate the text based on the language... | stackexchange/codereview |
i have one page index.jsf, i was use ui:include for include header and footer,i want to dynamic view in content, it mean when user click on register link just content change header and footer didn't change
i image my code sample is:
<ui:include render="#{mybean.include}"/>
and in backing bean my code will :
public voi... | stackexchange/codereview |
I need to program a Lisp function that finds the longest path between two nodes, without revisiting any nodes. Though, if the start and end node are the same, this node can be revisited. The function needs to be both recursive and depth-first-search.
I've been trying to get at this for hours, and cannot come up with a ... | stackexchange/codereview |
In the following code:
DataInputStream in = new DataInputStream(
new BufferedInputStream(new FileInputStream(file)));
in.close();
Do I need to close the 2 other stream in addition to closing the "top level" stream?
| stackexchange/codereview |
I have the ball in the very right bottom side. When I click somewhere, I want to be able to figure out the direction I clicked and once the user starts to drag, I will calculate the distance. Once the user lets go of the mouse, I want to give the ball some velocity and have it move towards the direction it was first cl... | stackexchange/codereview |
I would like to ask, is it correct to recreate content view in scrollViewDidEndZooming method? Is there any potential problems with this? I use the following code:
- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(float)scale {
[self.contentView removeFromSuperview];
sel... | stackexchange/codereview |
Hi
I know this question shoukd not be here . i tried this on the serverfault but not responded...! an yways my issue is :
I have the machine with installed the Windows 7 Enterprise N edition. I have installed the sql server 2008 also there . so can i install MOSS 2007 on such connfiguration? if not what should i do. i ... | stackexchange/codereview |
.NET interop wraps COM objects into .NET objects (runtime-callable wrappers, RCWs), which hide the usual interface querying. In order to register a COM object representing a filter graph with the Running Objects Table, I need the (native) address of its IUnknown interface (see How can I reverse engineer a DirectShow gr... | stackexchange/codereview |
Is there a best practice or design pattern on how web services should be authenticated. I am especially concerned about not having to pass the authentication data every time I hit the service.
| stackexchange/codereview |
I'm playing an audio clip using a UIButton that calls a method (see code below). I'm trying to figure out how to write a statement to detect if the audio is running, and if the audio file is playing then disable/hide the UIButton.
At the moment if you keep touching the play button multiple instances of the audio clip ... | stackexchange/codereview |
I'd like to pass arguments to a custom appender's constructor so I guess I have to override Appenders' initialization mechanism. Problem is that I can't find, in the docs, a way to hook it up, and it makes me think that it's not possible (or that the docs are incomplete).
As for version 1.2.10, this is not possible wit... | stackexchange/codereview |
I gotten a few very odd error reports from users recently showing a StringIndexOutOfBoundsException when I called Camera.Parameters.flatten().
I suppose the params object I had might have been null, and I dont check that before calling flatten, but I would have expected an NPE.
Has anyone else seen anything similar? I ... | stackexchange/codereview |
I am using a scroll view to display a CATiledView of some large images. When the user leaves the app, then comes back, I would like the app to automatically scroll and zoom to the place where the user was when the left the app.
I am getting the zoomLevel saved, but I cant figure out how to save the scroll position the... | stackexchange/codereview |
<form action="" method="get" style="margin-left: 2em">
<input id="companies" type="text" name="company" value="" size="40" />
<button type="submit" class="button-search">Search</button>
</form>
my json comes from this
http://localhost:8080/;companies?name=aba
and returns a valid json like:
{"name": "aba", "titl... | stackexchange/codereview |
If I have a native C++ program and look at it's initial "Private bytes" memory counter why would it not go back down to it's original value after an object has been created and then deleted?
For example if I have an application (32bit, Native C++ MFC ) that has two buttons.
One in a loop that allocates 1,000,000 insta... | stackexchange/codereview |
I have the following piece of code:
if (book.type == A) do_something();
else if (book.type == B) do_something_else();
....
else do so_some_default_thing.
This code will need to be modified whenever there is a new book type
or when a book type is removed. I know that I can use enums and use a switch
statement. Is the... | stackexchange/codereview |
I am trying connect to MySQL database from ASP.net code. some my connection is not working.
for the below code I am getting invalied argument DRIVER. Can you help me to correct this.
Or show me some sample code.
Label1.Text = ""
Label2.Text = ""
Try
Dim conStr As New SqlClient.SqlConnection
... | stackexchange/codereview |
I used to be able to type with my real mac keyboard after launching the iPhone Simulator. Typing with the on-screen simulator keyboard is just horrible when testing with large amounts of text.
No matter what I do, I can't get my keyboard to type anymore inside the simulator. Even if I have "Simulate Hardware Keyboard" ... | stackexchange/codereview |
I have a simple WPF Forms app. I have a DockPanel as my root panel. The first child is a StackPanel that has some controls in it, then the second control is a TabControl. What I want, and the panel types can change all they want is for the TabControl to maintain the fill size of the window except for what the first ... | stackexchange/codereview |
On an iPad using Safari, go to this page:
http://ifelse.org/projects/errors/viewport/test.html
This is the Source:
<html>
<head>
<title>Viewport Test</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
... | stackexchange/codereview |
I have a string in standard ISO 8601 format that contains the date/time returned from a web service like so:
String dtStart = "2010-10-15T09:27:37Z"
How do I get this into an object such as Time or Date? I initially want to output it in a different format, but will need to do other stuff with it later (i.e. maybe use ... | stackexchange/codereview |
I have got an odd problem with NHIbernate, and seeing as this is my first NHIbernate project I thought I'd ask the good people of StackOverflow.com.
I'm following the 'Open session in view' pattern in ASP.Net, which opens a hibernate transaction on each request and commits it at the end of the request.
This works fine... | stackexchange/codereview |
I am trying to figure out a way to move two points, X and Y, independently of one another along the edges of an equilateral triangle with vertices A, B, and C. There are also some collision rules that need to be taken into account:
(1) If X is at a vertex, say vertex A, then Y cannot be on A or on the edges adjacent ... | stackexchange/codereview |
I would like to put an ajax call within a function since I use it repeatedly in multiple locations. I want a manipulated version of the response returned. Here's what I'm trying to do (greatly simplified).
a = getAjax();
$('body').append('<div>'+a+'</div>');
function getAjax() {
$.ajax({
type: "GET",
url: 'so... | stackexchange/codereview |
I've got a tricky problem.
I've made a jquery Widget plugin :
$.fn.Widget=function(id_place,id_event,options){};
I call it once when the page is ready : (specifying that I want a last sorting)
$(document).ready(function() {
$('#mydiv').Widget(13,50,{"sort":"last"});
});
But in this plugin, I generate a little m... | stackexchange/codereview |
I have three TextView elements within a RelativeLayout container:
@+id/name, @+id/message, @+id/time
The @+id/message is positioned by layout to right of @+id/name and @+id/time is to the right of @+id/message. It renders fine as long as the three elements don't take up the width of the screen, but when it does, it bou... | stackexchange/codereview |
I have the following code in my entity query class, which I use to display a List objects. The objects do get displayed properly when I use the @Factory method name ("users") to iterate through all members in a rich:dataTable. But when I click on particular user to go the detail page, the following gets tacked on as a ... | stackexchange/codereview |
Is there anyway to import data using mysqldump rather than fixtures during a test (rake test:profile in this case).
I have not been successful in exporting mysql data in yml format (which works ok) and importing it into rails (doesn't work, rake task complains about formatting of the yml file whose integrity seems inta... | stackexchange/codereview |
When I traced my reference MATLAB script, I found files with the .mat extension. My questions are:
What is the difference between .mat and .m files?
How does one open files with the .mat extension?
| stackexchange/codereview |
I'm having a problem with stl map. Initially I fill the map with data like so.
//loop
pair< int, int > xy (x,y);
currentMap.insert( make_pair(xy), value); //map< pair<int, int>, bool>
prevMap.insert( make_pair(xy), value);
// End Loop
Then I delete an element according to some rules like so.
currentMap.erase( make_pai... | stackexchange/codereview |
I'm currently developing a Rails project in my computer.
I would Like to give a copy of project to my friend so that he can parallely work on the same project.
Does copying the project directory to other system , help this ? Or should I do more to carry the project to different systems.
| stackexchange/codereview |
I use zeros to initialize my matrix like this:
height = 352
width = 288
nFrames = 120
imgYuv=zeros([height,width,3,nFrames]);
However, when I set the value of nFrames larger than 120, MATLAB gives me an error message saying out of memory.
The original function is
[imgYuv, S, A]= changeYuv(fileName, width, height, ... | stackexchange/codereview |
I am working on an assignment and have to create two classes, one represents a person, and the other representing a bridge. Only one person can be "crossing" the bridge at any one time, but there could be people waiting to cross
I easily implemented this with multi-threading allowing for multiple people to cross at onc... | stackexchange/codereview |
I built a very simple custom Comparator, that I use with a TreeSet in order to sort Strings by length in that TreeSet.
I'm having trouble finding the reason why (s1.equals(s2)) returns false even when the two strings s1 and s2 contain the same value.
Eclipse "variables view" shows the letters are the same in both strin... | stackexchange/codereview |
I am created a custom window and want to handle arrow keys ...
But i don't know why they don't generate wm_keydown message ??
| stackexchange/codereview |
I use this script to enable tabs.
$(function() {
// setup ul.tabs to work as tabs for each div directly under div.panes
$("ul.tabs").tabs("div.panes > div.theme-wrap", {
effect: 'fade',
//fadeInSpeed: 200,
fadeOutSpeed: 400,
rotate: true
}).slideshow({autoplay: true, interval: 5000});
});
T... | stackexchange/codereview |
When creating a shipment in Magento there is a checkbox which allows you to "email a copy of the shipment".
By default this is unchecked. Does anyone know which file I need to edit to set this 'checked' by default?
| stackexchange/codereview |
Hi I'm using the shell_exec command from a PHP script:
$output = shell_exec('ls -l');
print_r($output);
Terminal: php test.php
Which results in the directory listing as expected.
Switch to my browser I get no output.
I need to grant privileges to the user 'apache' so that it can execute certain commands, or add the us... | stackexchange/codereview |
Following on from this question regarding calculating a member I have 2 calculated members defined as:
MEMBER [Asset].[Class].[Fixed Income Derivatives]
AS
AGGREGATE(
{
[Asset].[Class].&[Fixed Income],
[Asset].[Sub Class].&[Derivatives]
},
[Measures].CurrentMember
)
MEMBER [Asset].[Class].[Fix... | stackexchange/codereview |
We have a WebForms Control which requires that the ID of another Control implementing ITextControl is provided.
What exception should we throw if there is no control with that ID or a control is found but it's not implementing the interface?
var text = Page.FindControl(TextProviderId) as ITextControl;
if (text == null... | stackexchange/codereview |
How to create 2 rounded corner at one side of the rectangular in Adobe Fireworks? while sharp corner at another side of the rectangular.
| stackexchange/codereview |
i am getting this error when i try the following Statement
Statement
$status = $this->User->StatusMessage->find('first', array(
'contain' => array(
'StatusMessageReply' => array(
'User' => array('condition' => array('User.id' => 1 ))
)
)
));
Error
Model "User" is not associated w... | stackexchange/codereview |
I have a custom ClockFace UserControl which has properties to allow colors, font and hands (as a Path objects) to be changed. This is used in custom TimePicker and Clock UserControls. In these parent controls, the ClockFace properties can be set on the ClockFace object in xaml just fine.
What I'm trying to do is expose... | stackexchange/codereview |
I need to know a correct name for this cool feature that some languages provide.
FYI: In some languages it is possible to do a multiple assignments by assigning a structure of values to a structure of "variables". In the example in the question title it assigns "foo" to foo and "bar" to bar.
| stackexchange/codereview |
Are there any specific guidelines of what to do if you get a memory warning? I know that you have to try and kill off objects that aren't required, but if this makes your application inoperable, what other options are there?
An example might be if say the application was Apple's contacts app and the user is editing a ... | stackexchange/codereview |
Please see the following website (http://www.intra-interieur.be/www) in Firefox, chrome, safari, .. It works fine. Then, open it in IE (7 or 8, doesn't matter). It doesn't really work :-). You can view the source of whatever you want, but here are the important things.
I think the array with text that is being replaced... | stackexchange/codereview |
what's the DIV equivalent to this command?
((Panel)this.Page.Master.FindControl("Panel1")).Style.Add("display", "none");
This works great with a panel but I can't find the variation for doing the same thing with a DIV who's ID I know. anyone know?
thanks in advance for the help!
| stackexchange/codereview |
I have a txt file of repeating lines like this:
Host: http://de.wikipedia.org
Referer: http://www.wikipedia.org
Host: answers.yahoo.com/
Referer: http://www.yahoo.com
Host: http://de.wikipedia.org
Referer: http://www.wikipedia.org
Host: http://maps.yahoo.com/
Referer: http://www.yahoo.com
Host: http://pt.wikipedia.org... | stackexchange/codereview |
I have a js function , after doing some business logic, the javascript function should return some result to another variable.Sample code below
var response="";
function doSomething() {
$.ajax({
url:'action.php',
type: "POST",
data: dataString,
success: function (txtBack) {
... | stackexchange/codereview |
I am not able to FTP a file from Iphone device(with wifi) to remote FTP server. Most of the times, i am getting "stream open error" and very few times, the file is getting FTPed. But while checking FTP server, the uploaded file is empty i.e the file size is 0 bytes. But the file which is uploaded has some definite size... | stackexchange/codereview |
Possible Duplicate:
Convert HTML + CSS to PDF with PHP?
I was searching for a way to convert HTML to PDF, but all I found was very limited.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.