instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've created my own undo system for the RichTextBox whereby whenever you do something an undo action is added to a stack, and when you press undo, this action is undone.
This behavior works perfectly with all controls I've implemented it for, except for RichTextBoxes. I have reduced the system down to its simplest elem... | stackexchange/codereview |
-(BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
{
NSUInteger row = [indexPath row];
if(row == 0)
return NO;
return YES;
}
My problem is: although i specified NO for row 0. If I attempt to drag row 1 to replace row 0, the animation lets this happen anyways. Th... | stackexchange/codereview |
matlab7.10.0(R2010a)
I=imread('input-small.jpg');
???Error using ==> jpeg_depth
JPEG parameter struct mismatch: library thinks size is 632, caller expects 616
Error in ==> readjpg at 13
[depth,msg]=jpeg_depth(filename);
Error in ==> imread at 441
[X,map]=feval(fmt_s.read,filename,extraArgs{:});
| stackexchange/codereview |
I use this plugin jQuery Simple Modal Window to display a modal window. I also use jQuery Cookie Plugin (jquery.cookie.js) to set cookies. How can I mix jQuery Simple Modal Window and jQuery Cookie? It`s necessary that after clicking on the "Continue" button, the cookies were set and the modal window in the future does... | stackexchange/codereview |
I am working on MySQL 5.1.3 and using PHPMyAdmin 3.1.3.1 to access it. With PHP as the Server side scripting Language. My problem statement is can we call a Stored Procedure or Function from the Trigger statement so that when ever an INSERT|UPDATE|DELETE trigger is called, it calls the SP for updating some other tables... | stackexchange/codereview |
My c# button adding some data in one table. how can i get id of this row? does anybody have idea?
private static void InsertIntoTransportation(string ZednadebNumber, DateTime DateTime, int SellerID, int BuyerID, string TransStart, string TransEnd, decimal Quantity, string LoadType, string LoadName, int DriverID, deci... | stackexchange/codereview |
I'm trying to parse a unified diff file using pyparsing as an exercise and I can't get something right. Here the part of my diff file that's causing me troubles :
(... some stuff over...)
banana
+apple
orange
The first line starts with " " then "banana". I have the following expression for parsing a line :
linestart... | stackexchange/codereview |
I need to read from a Stream and put the buffer that was read in a OleVariant (VarArray) variable.
var
MemoryStream : TMemoryStream;
Data : OleVariant;
begin
MemoryStream:=TMemoryStream.Create;
try
FuncFill(MemoryStream); //Filling the stream
MemoryStream.Seek(0,0... | stackexchange/codereview |
Having trouble finding a solution for my situation here. Sorry if this has been answered before but I couldn't find one that worked for me.
Problem: Trying to test if a user session has been active for longer than the timeout limit.
I am trying to use the session start time and the current system time and subtract th... | stackexchange/codereview |
I am currently developing a medium sized web application using PHP and need to use some kind of version control. I also need to have the master copy of the code running in the apache document root so I can test the app while it is in development. Does anyone have any sugestions?
Thanks,
RayQuang
| stackexchange/codereview |
I am writing some eclipse plugin that will do some work for BlackBerry developers.
This is the .classpath file entry of my BB project:
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/net.rim.ejde.BlackBerryVMInstallType/BlackBerry JRE 5.0.0"/>
Using this information is it possible (programmat... | stackexchange/codereview |
How can I restrict access to only xml.php (or if not that then the path: /api/*)
To any domain?
I've only found how to do domains but not paths or files.
| stackexchange/codereview |
professionals
I know how to launch a command in Linux's terminal via process, sth likes following:
import subprocess
subprocess.Popen('ifconfig -a')
But this is opened in process, how can I launch that in a thread instead?
I know "thread.start_new_thread", while this should call a function. Within the function, I stil... | stackexchange/codereview |
I want to be able in Android to press on the menu button on the phone and get the menu that will enable the user to toggle on/off sound. I want different images for the on/off status.
I know how to create menus; however, I'm having difficultly changing the menu button from one image to another. Has anyone figured this ... | stackexchange/codereview |
I'm currently working with Zend Framework for the first-time, i've been contemplating how to produce complex form structures without a load of bulky of HTML.
My question is whether it would be a good idea to store the form schema in an XML file, then use a Model in Zend to parse it & pass to a viewer that could load fo... | stackexchange/codereview |
I'm wanting to automate the build of my iPhone apps across multiple devices (all connected at once) within Xcode, but I can't work out how to use AppleScript to select which device to build on.
From within Xcode (version 3.2.4) you can select the device to build/debug on by changing the Active Executable (Project>Set... | stackexchange/codereview |
I want to get the current URL from the IE (.NET 4) . To do so, I added a reference to Microsoft Interner Controls and added the code (from http://omegacoder.com/?p=63)
foreach (InternetExplorer ie in new ShellWindowsClass())
{
textBox1.Text = ie.LocationURL.ToString();
}
but I get 2 errors:
1] The type 'SHDocVw.She... | stackexchange/codereview |
In php we can call static member functions using class objects. For example
class Human
{
public static function Speak()
{
echo "I am a human.";
}
}
$human = new Human();
$human->Speak();
What we would expect is that a static member function can only be called using the class name and not the cla... | stackexchange/codereview |
This doesn't work, it turns it to gibberish:
$foo = 'נ';
$bar = mb_convert_encoding($foo, 'UTF-8', mb_detect_encoding($foo));
print_r(preg_split('/\s/', $bar));
Array ( [0] => � [1] => )
But this works:
$foo = 'נ';
$bar = mb_convert_encoding($foo, 'ISO-8859-8', mb_detect_encoding($foo));
$baz = preg_split('/\s/', $b... | stackexchange/codereview |
Cheers every!
I want to store some data in memory in a structure, or in an array. My problem is data alignment. I cant really use a 8 byte data next to a char since they will take up 16 bytes together.
Now I would live happy with a single 8 byte field, like a char and using the remaining 7 bytes to store other data.
Ho... | stackexchange/codereview |
I would like to ask if there's anyway I can 'shift' the calender to the right side of the page? Because I realized that it can only be displayed on the left hand side. I do not really know how to 'shift' it to the right hand side... Neither do I know how to put css in to do it.
Here's the code to make the calendar...
... | stackexchange/codereview |
I'm currently writing a simple client/server in Java using sockets. I want the server to make decisions based on different "commands" and/or serialized objects that are received from the client via the socket, and vice-versa.
Something like:
[Receive Command 'DoSomething' From Client]
[Call Method 'DoSomething' on the... | stackexchange/codereview |
It looks as if their was a solution for this in qt3, but I cannot find one for qt4 (all I have used, goggling I saw solutions for qt3).
connect(r, SIGNAL(readyReadStandardError()), this, SLOT(updateError()));
connect(r, SIGNAL(readyReadStandardOutput()), this, SLOT(updateText()));
connect(r, SIGNAL(finished(int exitcod... | stackexchange/codereview |
I am just getting started with JAVA and I am trying to figure out what the best practice for declaring variables would be, esp in regards to GUI components. I am trying to keep my functions as small as possible, but I am not sure if I should declare all my components as instance variables for my GUI class.
In this cod... | stackexchange/codereview |
i am worked with NHibernate, XPO, SubSonic, DataObject.net. but as you know all of this ORM's need Session opening and closing in programming blocks,
Working with Database sessions in business logic layer and UI Layer is not a correct manner from the Software engineering aspect. so i am going to change my ORM to someth... | stackexchange/codereview |
I have a bit pattern of 100 bits. The program will change the bits in the pattern as true or false. At any given time I need to find the positions of first "n" true values. For example,if the patten is as follows
10011001000
The first 3 indexes where bits are true are 0, 3, 4
The first 4 indexes where bits are true are... | stackexchange/codereview |
So, the other day I had a problem with one of the jQuery plugins. There's a textbox, I enter some characters, and it's either not working or working wrong. I've got the source, I've got the FireBug, and I don't know where to start. Something inside the code handles either the keypress event, or change, or both, and I'd... | stackexchange/codereview |
What are push notifications and how do they work? Also what is the difference with googles cloud to device messaging? Is c2dm also a push notification? Also do I need Special server setup to implement push notification?are push standard or every device has different implementation?
| stackexchange/codereview |
I am learning Django for one of my web projects.
Facing difficulties to append css,jquery file in my project.
The template is very simple and need not to use extends.Just one page form.
What I have done to declare my media file that:
In settings.py file:
Added path:
`import os
def path(*x):
return os.path.join(os.... | stackexchange/codereview |
We have a web app that shows a list of audio links to play. I've cleaned it up to just show the most basic page, without the Ajax calls or jQuery code:
<object >
<param name="url" value="106.wav">
<embed
src="106.wav"
controller="true" autoplay="true" autostart="True" />
</object>
The rest is a v... | stackexchange/codereview |
I'm using jquery to figure out how to use autocomplete.
I have two input type text example, and example2.
I just would like to know why it works for ajax call for example textbox and not for autocomplete method on example2 textbox.
Here is the WCF service interface:
[ServiceContract]
public interface IMyService
{
[... | stackexchange/codereview |
I want to produce a natural number (a positive integer between 0 and x) by using lcg_value(). This is what I can see from the actual source code for the function:
/*
* combinedLCG() returns a pseudo random number in the range of (0, 1).
* The function combines two CGs with periods of
* 2^31 - 85 and 2^31 - 249. The ... | stackexchange/codereview |
I have a weird problem where JQuery is creating two AJAX requests for a link_to method. I am developing a Rails 3 app with JQuery for UJS. I have a toggle link which toggles between 'Follow' and 'Unfollow'
My link is rendered as below:
<span id="follow_link">
<a href="/tfollow_artist?id=8103103" data-method="post" da... | stackexchange/codereview |
And it is being accessed via js.
I have my "respond_to :html, :js" line in my controller.
However, in my update action:
if @permission.update_attributes(params[:permission])
respond_with [@brand,@permission]
end
Tries to go to the "show" method. When I just have:
@permission.update_attributes(params[:permission])
... | stackexchange/codereview |
I recently upgraded from XP to Win 7. I used to be able to debug from an ASP classic app into VB6. However I now get a:
"The call to Server.CreateObject failed while checking permissions. Access is denied to this object"
This only occurrs when I start the dll in VB6 and access the ASP application. Prior to IIS7 this... | stackexchange/codereview |
My program is as follows;
#include <stdio.h>
#include <string.h>
int main()
{
char string[] = "Gentlemen start your engines!";
printf("That string is %s characters long.\r\n", strlen(string));
return 0;
}
I'm compiling under gcc, and although it doesn't give me any errors the program crashes e... | stackexchange/codereview |
I just wanted to know how I can store a picture in oracle data base ;
| stackexchange/codereview |
I am working on a test application on Android platform. Test the write/read speed to the sdcard. I write in C language with NDK interface.
First I write a for-loop to create 256 files with 512 random bytes in each. This part works fine. I open file with flag O_CREAT|O_WRONLY|O_SYNC and mode 0666. After call write, I do... | stackexchange/codereview |
I am trying to have the Devise log in form be on my home page.
When I just copy the form over, of course I get errors because the 'resource' variables and etc are not set in the action.
I found this solution on the internet: http://pupeno.com/blog/show-a-devise-log-in-form-in-another-page/
However, his solution is to s... | stackexchange/codereview |
I'm introducing myself in the java world and springsource seems to be the most important community for this language. My background come from C# with MS products mainly, despite I worked with LAMP environment in the past.
Based on the fact that I`m starting to approach into the java world I was wondering if any mvc fr... | stackexchange/codereview |
I have the need to create a queue-based system where multiple threads will add actions to be processed by the queue.
Sounds simple enough, but my actions will be asynchronous (with animations) so I do not want to start the next action in the queue until the animation of the previous action is completed.
How could I do... | stackexchange/codereview |
how do i make it so that when focus is brought to an input text field in my application that the numpad keyboard with the 9 number keys on them opens rather than the full qwerty keyboard?
| stackexchange/codereview |
When we should use constructor over properties or vice versa while assigning values.
| stackexchange/codereview |
Right now I'm using this script in PHP. I pass it the image and size (large/medium/small) and if it's on my server it returns the link, otherwise it copies it from a remote server then returns the local link.
function getImage ($img, $size) {
if (@filesize("./images/".$size."/".$img.".jpg")) {
return './ima... | stackexchange/codereview |
I'm using jQuery 1.2.7 (I cannot upgrade)
In order to trigger events when a dropdown menu selected value changes, I've been told to use the following code:
$('#dropdownWidget').bind($.browser.msie ? 'click' : 'change', function(event) {
//myEvent
});
This is a screenshot of the widget:
It works perfectly on a... | stackexchange/codereview |
Are there any plugins for NetBeans IDE (PHP) that implements these refactoring?:
Extract Method
Generate Method
| stackexchange/codereview |
I know how to build a round UIButton by using the cornerRadius of the CALayer of a UIButton.
col1 = [UIButton buttonWithType:UIButtonTypeCustom];
col1.layer.cornerRadius=w/2;
col1.layer.masksToBounds=YES;
Is there a way to do more interesting things about the boundary like chop off half a corner with CALayer?
Any exam... | stackexchange/codereview |
Hey,
I get this error:
error X3086: DX9-style 'compile' syntax is deprecated in strict mode
When compiling a directx effect with this code:
hr=D3DX11CompileFromFile( TEXT("shaders\\basic.fx"), NULL, NULL, NULL,"fx_5_0", D3DCOMPILE_ENABLE_STRICTNESS, 0, NULL, &pBlob, &pErrorBlob, NULL );
I'm pretty sure it's complainin... | stackexchange/codereview |
I want to open/create a file and write some data in it in hadoop environment. The distributed file system I am using is hdfs.
I want to do it in pseudo distributed mode. Is there any way I can do this. Please give the code.
| stackexchange/codereview |
hey guys. i was wandering if anyone knew how to create code so that the console is not opened, rather a formatted web page.
any suggestions will be much appreciated!
regards
namespace Grades
{
class Program
{
static void Main()
{
Console.WriteLine("\t\tValue Distribution\n");
... | stackexchange/codereview |
I have 2 tables with a relation between them:
Users table: user_id,
Blogs table: user_id, blog_content,
Im working with a view that should show a users latest blog entry.. When I use
<%= @users.blogs.last %>
I get "#"
Can someone assist as to why its showing "#" and how to actually show the the last blog entry made b... | stackexchange/codereview |
I have created a MySQL database. I am building a GUI in java. How can I connect this Java software to the database?
| stackexchange/codereview |
im doing a simple website for a university project, and one of the requirements is that i have javascript to validate the form fields input. I've implimented what i believe to be a working solution (took it off the W3C website) but it won't seem to run at all?
The HTML page is as follows:
<?xml version="1.0" encoding="... | stackexchange/codereview |
I have 2 radio button under a group box and i made first one group as true. but when i am adding radio button variable the it showing message "Failed to return new code element possibly a syntax error", what would be the reason?
| stackexchange/codereview |
Have a look at this HTML code:
<div class="overlay">
<a href="#">1</a>
<a href="#">1</a>
<a href="#">1</a>
<a href="#">1</a>
<a href="#">1</a>
</div>
and this jQuery code:
$('div.overlay').mouseenter(function() { clearTimeout(thumbsAway); });
$('div.overlay').mouseleave(function() { clearTimeout(th... | stackexchange/codereview |
What is a good bit-twiddling routine to convert a number in the range [2^N,2^(N-1)-1] to N?
Some examples:
f(1) -> 0
f([2-3]) -> 1
f([4-7]) -> 2
f([8-15]) -> 3
Here is one implementation:
uint f(uint num)
{
for (uint shifts = 0; num; shifts++)
num >>= 1;
return (shifts - 1);
}
| stackexchange/codereview |
I use Eclipse for everything. Python, Django, GWT, Android... But when you install all the plugins, Eclipse becomes very slow.
Is there a way that I can set it up so that there are two or more icons for Eclipse in the Applications directory, each for specific task?
Thanks
| stackexchange/codereview |
I did following coding @ PC side (I tried to sent data in chunks):
try {
for (int i = 0; i < sdata.length / 2; i++)
m_Output.write(sdata[i]);
} catch (IOException ex) {
Logger.getLogger(SPPServer.class.getName()).log(Level.SEVERE, null, ex);
}
int i = sdata.length / 2;
try {
m_Output.flush();
} catch (I... | stackexchange/codereview |
I have an expression like this Expression<Func<IInterface, object>>
How do i loop/traverse through all expressions inside the expression and find any MethodCallExpression that uses the input parameter of the Func (IInterface), to call a method like this
inputParameter => inputParameter.MyMethod(typeof(SomeClass))
or a... | stackexchange/codereview |
I need to create an ssh connection between two Linux machines running Centos v5 but the latency could be as high as 30 seconds. I find that if I test something approaching this configuration artificially by simulating 7 seconds or more latency using:
tc qdisc add dev eth0 root netem delay 7s
When I try:
ssh -n -o Con... | stackexchange/codereview |
We are creating a webservice (CXF-based) driven by a java class (Java2WS) with the following method:
@WebMethod
@RequestWrapper(className = "com.myproject.wrapper.MyRequestWrapper")
@ResponseWrapper(className = "com.myproject.wrapper.MyResponseWrapper")
public MyResponse verifyCode(@WebParam(name = "code") Stri... | stackexchange/codereview |
I have written c# application that uses mdf file for database.when i make setup of that project and runs on other computer having dotnetframework and sql server compact 3.5 then id dose not runs and exception is shown saying something sql server not found or not ready for connection something like that what should i do... | stackexchange/codereview |
In C++, how would I swap two elements of a map?
| stackexchange/codereview |
Hi
I'm new to MVC and jQuery, I've followed examples which I've found in net but I have stuck
I have img element on my page to which I'm trying to add via jQuery click event and then invoke action from my controller.
My Page
<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
<h2>About</h2... | stackexchange/codereview |
I quickly searched for this before posting, but could not find any similar posts. Let me know if they exist.
The commands being executed seem very simple. A directory listing is used as the input for a function.
The directory contains a bunch of files named "epi1_mcf_0###.nii.gz"
Command-line version (bash is running ... | stackexchange/codereview |
I am trying to trigger a postback if a certain condition is true. Initially, a user will click on a button on my form, the server does some work, and in the process of doing that work it assigns a hidden field the value of '1'. When the page reloads after that very first postback, I am trying to use javascript to check... | stackexchange/codereview |
Is there a way for me to:
Use the ModalPopupExtender but make it non modal
Position the Modal to the bottom right part of the page
| stackexchange/codereview |
I'm trying to make an implementation of 'adding' the elements of two arrays in Java.
I have two arrays which contain integers and i wanna add them. I dont want to use immutable variables. I prefer do sth like that : a.plus(b);
The problem is when i add 2 arrays with different length.It tries to add the elements of b t... | stackexchange/codereview |
I have a rails app where I need to add authentication. The problem is that I have a legacy database with custom user and password fields (t_user and t_pass). Plus, t_pass is not encrypted.
What I'm looking for is something like http_basic, but where I can have methods like current_user, and probably with a better user ... | stackexchange/codereview |
I was wondering if eval (or some variant of jQuery's getScript) can be used to position external javascript in places other than the end of the DOM or at the head. I've tried:
var head = document.getElementById("fig");
instead of
var head = document.getElementsById("head")[0];
with
var script = document.createEleme... | stackexchange/codereview |
I am creating an app which requires the users to enter certain values when the app is used for the first time.
A settings screen with 4 UITextFields and a UIPicker.
This settings view can be accessed later using a button from the mainscreen.
Somebody please suggest some ideas
Thanks
| stackexchange/codereview |
How do I handle the event when a PhoneAppplicationPage (eg. MainPage.xaml) exits?
I tried handling Unloaded event but that doesn't get called when I exit the page.
| stackexchange/codereview |
I don't see any template to write asp.net web service in Visual Stuido 2010. I am wondering it is replaced by WCF web service?
| stackexchange/codereview |
I've got some dynamic content inside a tabber (http://www.barelyfitz.com/projects/tabber/).
All works fine, but I want to reload the div which contains the tabber. When I do this, using jQuery AJAX, the data updates, but the tabs are no longer formed. Do I have to reload the javascript elements of the page, and if so h... | stackexchange/codereview |
I have an app written in Delphi 2006 that regularly reads from a disk file located elsewhere on a network (100Mb ethernet). Occasionally the read over the network takes a very long time (like 20 secs) and the app freezes, as the read is done from an idle handler in the main thread.
OK, I could put the read operation i... | stackexchange/codereview |
I would like to know whether there is any RFC or BAPI functions to display change documents (transaction RSSCD001) based on input query in SAP. The customer requirement is to implement a java monitor system on SAP without adding any ABAP functions on the SAP server.
I tried to make use of 'RFC_READ_TABLE' functions, wh... | stackexchange/codereview |
Im looking for a way to dynamically create banners who can get placed on other pages. The banner consists a background image, two overlaying images and two text labels on top of this background image.
Is it right that I only can use absolute positioning to achieve a overlaying elements? How can I make sure, that the ba... | stackexchange/codereview |
I have this in my vimrc:
hi CursorLine guibg=#DDDDDD
hi SpecialKey guifg=#d8a080 gui=italic
set listchars=tab:»\ ,trail:·,extends:»,precedes:«,eol:¶
set CursorLine
set list
When I move the cursor around, the fgcolor of the current line's SpecialKeys becomes black!
How can I keep them #d8a080 and italic?
| stackexchange/codereview |
Having a problem where some of the scripts on my page don't seem to load until refresh.
The page is here.
The first iframe (click far left-hand side of image) doesn't load the Galleria plug-in until the iframe is manually refreshed. Also, the qTip script on the main page often behaves similarly, despite $(document).rea... | stackexchange/codereview |
What is Trailing Array Idiom ?
P.S : Googling this term gives The vectors are implemented using the trailing array idiom, thus they are not resizeable without changing the address of the vector object itself.
| stackexchange/codereview |
my goal is to open a ContextMenuStrip on right click remember this click x and y and then on clicking on one of the given items to do something till now this is what i have done:
public delegate void mydelegate(string s);
public Form1()
{
InitializeComponent();
m_MyContextMenuStrip = new ContextMenuStrip();
... | stackexchange/codereview |
Would this code generate an infinite loop?
class one{
function ex() {
echo "Looptext";
one::ex2();
}
function ex2() {
one::ex();
}
}
$one = new one;
$one->ex2();
I'm learning OO in php programming...
| stackexchange/codereview |
I have a log file currently configured to roll over every hour. When it is first created it is called logfile.log, and once it rolls over it is renamed to logfile.log.YYYY-MM-DD-HH.
What I would like is for the log file to be created immediately using the logfile.log.YYYY-MM-DD-HH naming convention as opposed to logfil... | stackexchange/codereview |
So, I was messing around with this Dynamic Breadcrumbs write-up, and came across an issue where if the directory name has a space in it, then %20 gets added to the actual visible breadcrumb. Would this be removed using the decodeURI() function or is there a better way?
Here's the js:
var crumbsep = " • ";
var p... | stackexchange/codereview |
I have the following.
while($row = mysql_fetch_array($result))
{
$item = "itemCount_".$row['id'];
if ($_POST[$item] > 0)
{
$items2 = array( $i=> array($row['item'],$row['price']));
$i++;
echo $item." = ".$_POST[$item]." ".$i."<br>";
}
}
I would have thought that this would put ... | stackexchange/codereview |
I'm using PHP/MySQL and I've always used DATETIME to store created and updated values, but I'm thinking there may be a better way.
Should I be using TIMESTAMP instead, and if so, why?
| stackexchange/codereview |
Has anyone used Adobe Flash Catalyst to to author AIR 2.0 applications ? Flash Catalyst allows to save a project in fxp format which can be imported by Flash Builder and then run on the Flash Player runtime. I want it to run on the Adobe Air debug runtime and then create as a Windows desktop application . But Catalyst... | stackexchange/codereview |
Example: I want to bind the F12 key to the command echo "foobar" such that every time I hit F12 the message "foobar" will be printed to screen. Ideally it could be any arbitrary shell command, not just builtins. How does one go about this?
| stackexchange/codereview |
Suppose you have a C# library with several functions, all documented with the usual /// <summary> filled out nicely. Referencing the project will make the function and parameter description appear in the Visual Studio contextual help. But is it possible to have this show if you don't reference the project itself, just ... | stackexchange/codereview |
I am doing an MxRecordLookup. I am getting an error when calling the DnsRecordListFree in the .NET Framework 4.0. I am using Windows 7. How do I get around it? Here is the error:
Faulting application name: MxRecordService.exe, version: 1.0.0.0, time stamp: 0x4ce25848
Faulting module name: ntdll.dll, version: 6.1.7600.1... | stackexchange/codereview |
I am trying to insert an iAd thing into an existing app. Can anyone tell me what are the steps involved in this process.
Your help much appreciated.
Many Thanks.
| stackexchange/codereview |
I have a string variable which comes with different function names, and I have a file which contains an often different set of functions which matchs the content of the string, how do I call that function in Python?
Example:
In File 1
def function1: ...
def function2: ...
def function3: ...
In File 2
functionname = "... | stackexchange/codereview |
Take in consideration this code:
function a() {
alert(this.variable);
}
b = new function() {
this.variable = "abc";
a.call(this);
}
Is there a way to auto override context instead of using the call method?
like this (not working):
function a() {
var _this = Function.caller;
alert(_this.variable);
}
b = n... | stackexchange/codereview |
Can't believe I have to ask this here. Even googling didn't help.
I want to do this:
insert into atable (adatefield,atimefield,adatetimefield) values (A,B,C);
adatefield is defined as DATE
atimefield is defined as TIME
adatetimefield is defined as DATETIME
What do I put for A, B and C?
It's nice that it's free but t... | stackexchange/codereview |
Does anyone have tips/resources for how to, in the best way, structure your C code projects? (Different folders etc.) And how do you know when it's good to split code into separate files? And what is an example of a good Makefile?
My project is not that big, but I wanna start to structure my code at an early stage..
| stackexchange/codereview |
I need to test for the availability of blocks at runtime, so I can handle backwards compatibility with iOS 3. Any tips?
edit:
So far I'm doing if (!NSClassFromString(@"NSBlockOperation")) {...}
Seems to be working...
| stackexchange/codereview |
im using jquery: http://www.jqplot.com/ and i made a nice chart.
the only problem i got is this:
when im over 300 pixels of the chart, i want the highlighter tooltiplocation go's to 'nw' if its smaller its 'ne'.
current options:
highlighter: {
tooltipLocation: 'ne',
useAxesFormatters: true,
},
does... | stackexchange/codereview |
Is there is any component for auto suggest similar to google suggest or can any one tell me how can i implement it...
| stackexchange/codereview |
I'm using nUnit to test the routing of my MVC2 project.
When I register my routes in Global.asax.cs, I give each route a unique name and specify its RouteData, eg:
routes.MapRoute(
"ShowRecord",
"{controller}/{id}",
new { action = "Show" },
new { id = @"^\d+$" }
);
In my unit tests I then invoke Regist... | stackexchange/codereview |
I'm trying to add a Lite version for one of my iPhone apps.
In iTunes Connect, I click "Add New App".
Then, on the first screen appearing, I need to enter App Name, SKU Number and Bundle ID. The problem is I get the error "The Bundle ID you entered has already been used." although it is NOT used in any other applicatio... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.