instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Does the Proj4JS library support the Gall-Peters projection? I can't seem to find a projection acronym for it?
| stackexchange/codereview |
I have a class for caching some images
<?php
class Vp_CacheImage
{
public function cache($cacheTime, $place) // $place = id of image (between 1 and 100)
{
$send_body = true;
$etag = '"' . md5(date('d.m.Y', time()) . $place) . '"';
header("ETag: " . $etag );
header("Last-modified... | stackexchange/codereview |
My view:
<h1>New Address</h1>
<% form_for @address, :url => new_address_path do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Add Address" %>
<% end %>
Partial... nothing special
<%= form.label :number %><br />
<%= form.text_field :number %><br />
<br />
<%= form.l... | stackexchange/codereview |
When I was first learning HTML a very long time ago, I was told that it was important to always set the dimensions of your images in your HTML, so that browsers could draw an empty box where the image should go, render your page, and then download and render the images where they belong. If you didn't set width and hei... | stackexchange/codereview |
I want to develop a small web application (small=4 entities, 3 html forms, login, email and cron) but I've got no server to host it. I'd like to work in Java and MySQL so I've got the following dillema:
1) If I go to GAE I'll have to use something other than MySQL. Is it worth learning this "something other" and what c... | stackexchange/codereview |
I'm trying to use stapling to customize sharepoint 2010 blog template. I created a stapling feature and another feature for customizing the the site definition (onet.xml). It's work fine for web parts but if I include List Views it gives an error when I'm trying to activate the "customizing feature" (Not the stapl... | stackexchange/codereview |
If my app has to work in a cluster, will using flash[] cause issues?
From what I understand, it uses sessions?
I have set my sessions to be 'cookie_store', so does that solve the potential issue?
| stackexchange/codereview |
I'm having an issue with assertRedirectTo() in a test I have created, below is the code I have used:
public function testLoggedInIndexAction() {
$this->dispatch('/');
$this->assertController('index');
$this->resetResponse();
$this->request->setPost(array(
'type' => 'login',
'username' => 'root',
'passw... | stackexchange/codereview |
Error: 'document.forms.0.Docunid_5.value is null or not an object
From function in JS Header in Lotus Notes form:
function saveWebViewDSFF(docnumber)
{
var docID = eval("document.forms[0].Docunid_" + docnumber + ".value");
var Comment9 = eval("document.forms[0].Comment9_" + docnumber + ".value");
var agentPath = "//www... | stackexchange/codereview |
As an exercise, I looked for a simple Python chat client-server system to modify and toy with. The first major failing I found in the system was that it used a single tcp connection for the server and client to communicate. The second was that you could only have two people (one using the client, and the other using th... | stackexchange/codereview |
I am writing in PHP a mySQL query. I would like to duplicate a row in a table in the database. I would also like to insert a time stamp as to when that duplication happened with the NOW() function.
If I had a table named 'people' stuctured with the fields:
id, name, phone, dateCreated
and I wanted to duplicate this ... | stackexchange/codereview |
I'm trying to create a queue, but I'm getting a permission denied error. I got this error before, but then I added code for error catching on the key creation and it was working. The only thing I've changed since then is I put my queue creation code in a separate function. Here's something like what my code looks like:... | stackexchange/codereview |
In Delphi 2010, I want to display the Greek symbols (alpha, beta, etc.) in TMenuOption and other types of VCL controls.
Assigning
TEdit.Text or TMenuItem.Caption := 'Hydrogen ' + chr(945) + ' More Text'
seems to work fine.
I'm worried that this might won't work on all machines. TEdit has a font property, TMenuIt... | stackexchange/codereview |
I have the following code in a PHP script:
$sol = mt_rand(1,3);
I thought this was meant to return an integer but instead I'm getting a number with about 6 decimal places. How can I force it to return 1,2 or 3?
Thanks
| stackexchange/codereview |
Ok, I'm trying to end up with a view that returns some fields from a Drupal instance running on MySQL. The problem is this information is spread out over three tables:
table 1 (keyword_search_table): contains the following fields:
id, keyword, dst
example data:
1, 'chicken', 'aboutus/fred'
2, 'boxes', 'services/patchin... | stackexchange/codereview |
Can we control the font of the text displayed on a action sheet? Also can we change the UI specs for actionsheet buttons like height width? Or we should follow the standard given the UIActionSheet class.
| stackexchange/codereview |
Hi I am trying to make my menu stay open when an item is selected instead of closing back up right away. Here is my jquery.collaspe.js file:
jQuery.fn.not_exists = function(){return jQuery(this).length==0;}
jQuery.fn.jqcollapse = function(o) {
// Defaults
var o = jQuery.extend( {
slide: true,
speed: 300,
e... | stackexchange/codereview |
I just created a new windows service and I am having issues with the installer.
I created the installer via this tutorial: http://www.sarin.mobi/2008/08/c-windows-service-visual-studio-2008/
Anyway, when I run the .msi generated by VS, the executable for this project is installed where I expect it to be. However, the s... | stackexchange/codereview |
It sounds very simple and it's killing me!
I'm trying to use one usercontrol with styles from a ResourceDictionary of an external assembly, but I get an exception at runtime.
Here is how to reproduce:
Create a silverlight class library called MyControls.dll
Create an usercontrol called SuperControl:
<UserControl.Resou... | stackexchange/codereview |
This question came up when trying to assign the OnUDPRead event on an Indy IdUDPServer component. (DelphiXE Update 1)
The following auto-generated code gives a syntax error "Expected '>' but '.' found":
procedure TForm1.IdUDPServer1UDPRead(AThread: TIdUDPListenerThread;
AData: TArray<System.Byte>; ABinding: TIdSocket... | stackexchange/codereview |
On my prod server, I have 2 instances of SQL server, SQL Server 2000 is the default instance, and I have \SQLEXPRESS2008 as an additional named instance. In my web project, I need to connect to the default, SQL 2000 instance.
I'm using LINQ to SQL in Visual Studio 2008.
In the Server Explorer in Visual Studio, I can cr... | stackexchange/codereview |
A method is returning a Object or Object[] of type String but if I am casting with String[], it is giving class cast exception when it contains single string. How can i resolve this?
Is there any way to check whether it contains String or String[]?
| stackexchange/codereview |
What is a regular expression that accepts only characters ranging from a to z?
| stackexchange/codereview |
I am getting this error:
The type or namespace name 'AutoMapper' could not be found (are you missing a using directive or an assembly reference?)
The funny thing is that I have that reference in my project already:
And this is my code:
using System.Collections.Generic;
using DataContract;
using SelectorDAL;
using Au... | stackexchange/codereview |
I wish to create then periodically replace content in a concrete5 CMS.
I have identified 15 tables which are changed when a new page is added (by doing an MYSQL diff).
However I dont quite follow how these tables are getting their values, especially the bID value in btcontentlocal.
I only discovered concrete5 today, so... | stackexchange/codereview |
I want to define global array constant
code in bootstrap.php
$adv_types = array('top' => 'Верх', 'left' => 'Левое', 'right' => 'Правое', 'bottom' => 'Нижнее');
code in view file
echo $form->input('Adv.type', array('type' => 'select', 'option' => $adv_types, 'label' => 'Место рекламы'));
but cakephp gives error:
"Un... | stackexchange/codereview |
i have this jQuery-AJAX code below and a form:
<script type="text/javascript">
$(document).ready(function () {
$('form').submit(function () {
form_data = $(this).serializeArray();
$.ajax({
url: "/frontend_dev.php/coche1/update/id/1",
type: "POST",
data: form_data... | stackexchange/codereview |
I am trying to upload files to my WCF service using streaming to upload large files. All of this works fine using a normal client (like a ASP.net page). In Silverlight however I get the following error:
Timeouts are not supported on this stream
I am uploading via a memorystream and I assume the issue is basically beca... | stackexchange/codereview |
I want to view the call stack when a stackoverflow exception is thrown. (i.e. I want to pin point what recursive call is causing the stack overflow).
The call stack is cleared and all that I can see is "External Code".
Edit I followed Chris Schmich's advice (post below), now I have a call stack like below, this is just... | stackexchange/codereview |
Can I do something like this? I would like to use data types instead of constants in my enum type_t.
typedef struct {
char id;
long data;
} type1_t;
typedef struct {
char id;
long data;
float moredata;
} type2_t;
typedef enum {
type1_t, type2_t
} type_t;
typedef struct {
type_t type;
... | stackexchange/codereview |
First off, the little voice inside my head is screaming that this is a bad idea and it shouldn't be done, but my pragmatic side is asking "How bad could it be?"
The stark fact is most of my company's day to day "business" happens in one MS Office tool or another. Data is exported out of our custom tools as *.tab, *.cs... | stackexchange/codereview |
When I create an android project in Eclipse (Helios) and open for example main.xml and click on layout view - program closes. If I start eclipse over again and try click in project view on main.xml it happens again.
| stackexchange/codereview |
The Problem
I have a very nifty menu Html helper written for WebFormViewEngine views. This engine allows your helpers to return void, and still be able to use:
@Html.Theseus
This is great for my helper, because it can then render the menu using HtmlTextWriter, that renders directly to the output stream.
In Razor view... | stackexchange/codereview |
i have a problem with the spinner in a tab host:
in fact i successed to make dynamically using
Spinner spinner = new Spinner(isChild() ? getParent() : this);
but i want it defined by the XML file. like this
Spinner spinner = (Spinner) this.findViewById(R.id.widget10);
I got the problem when i use (OnItemSelectedLis... | stackexchange/codereview |
I have 2 build files into separate projects,
build_common.xml,
build.xml which is the main build file.
I am trying to import a property from build_common.xml without importing the whole file. Is there a way to do that if I know the path to the build_common.xml?
Thanks
| stackexchange/codereview |
I have a description text field in my Model.
No I want to add this description on the show page.
But the text renders ugly because of no linebreaks.
If i replace them with <br/> then the rails escape them with.
So i tried to use the raw() method.
I want to escape bad HTML but have the linebreaks in my output.
I end up... | stackexchange/codereview |
I'm trying to center input fields and buttons ( tags) in an html form. I'm doing that with auto left and right margins. That works fine on most browsers but doesn't centre on Chrome for Mac (it does on Chromium for Linux):
<html>
<body>
<form style="width: 300px; display: block; text-align: center; background: re... | stackexchange/codereview |
I'm investigating which mocking framework to use for my project and have narrowed it down to JMockit and Mockito.
I notice that Mockito was voted "the best mock framework for Java" on Stackoverflow.
In comparing features on JMockit's "Mocking Tool Comparision Matrix" it appears that JMockit has multiple different fea... | stackexchange/codereview |
the logic is somehow like this:
<c:set var="vehicle" value="car">
<c:set var="car" value="ferrari">
since the value of ${vehicle} = "car" which is also the name of the variable with the value of "ferrari" i access it indirectly using ${'${vehicle}'} but it doesn't seem to work. Can someone help me with this. thanks
| stackexchange/codereview |
I was trying to insert a xml node before another xmlnode and I have got an exception saying "The reference node is not a child of this node."
This is my initial xml :
<?xml version="1.0" encoding="utf-8" ?>
<Details xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSch... | stackexchange/codereview |
I use the Twitter-OAuth-iPhone to authorise and send tweets, and want to show the user's twitter username on the dialog view. Although the code can get the username right, but there is always a warning:
*'SA_OAuthTwitterEngine' may not respond to '-extractUsernameFromHTTPBody:' (Messages without a matching method sign... | stackexchange/codereview |
First the raw question:
Given that there are 2 DBs: DB1 and DB2. Can I, being connected to DB1, perform a query on DB2 as if I'm logged on to DB2?
So basically:
I'm connected to DB1
From within TSQL I somehow connect to DB2
I perform the query locally (and wait)
I close the connection and am back on DB1
and I do the ... | stackexchange/codereview |
I am new to android and I started this sample from google but i have a problem and couldn't get pass it.
This line has an error in DictonaryDatabase.java.
InputStream inputStream = resources.openRawResource(R.raw.definitions);
and the error says "raw cannot be resolved or is not in a field."
I have imported the Java.... | stackexchange/codereview |
I'm using a simple query for my search:
SELECT * FROM table WHERE field LIKE '%term%'
if I have a field = "Company Name 123" and I search for Company 123 the result is null
how can I improve this? it only finds if the term is in sequence
| stackexchange/codereview |
I am new to this contacts applications in iPhone applications. my requirement is to add groups and sub groups to the groups Programmatically. I have achieved how to add groups to the iPhone default contact database. now I want add sub-groups to the existing groups.
I have tried to add sub-group to the groups by using A... | stackexchange/codereview |
I have two handlers for a mouseover function, I would like to know what the difference is and how to use each one in the most efficient way possible.
Code block one:
$('.test div').mouseover(function() {
$(this).stop().animate({
left: '100px'
}, 550);
});
... | stackexchange/codereview |
i have the following text area named "results", that holds my result.
Default from xml is: "0"
After calculation from class file shown below, returns ie: "1.0"
I do not want the "." or the "0" just whole numbers, ie "1" "2" "3" etc...
protected void addone() {
double val = Double.parseDouble(results.getText().toStr... | stackexchange/codereview |
I write Android apps, distributed via the Market. A user has written asking whether they can have the raw .apk of one app (they're in a country where the Market isn't available).
Is it safe to do this, or do I risk getting ripped off in some way - having my app copied and redistributed, for example?
Thanks for your hel... | stackexchange/codereview |
I've been programming in Java way too long, and finding my way back to some C++. I want to write some code that given a class (either a type_info, or its name in a string) can create an instance of that class. For simplicity, let's assume it only needs to call the default constructor. Is this even possible in C++, a... | stackexchange/codereview |
I have put multiple markers on my map by click event and now I want to delete a single marker by double clicking on a specific marker. But what it is doing is just deleting the last marker of the array. Any help please?
:::::::::::::::::::::EDIT::::::::::::::
Is it possible to delete a single marker based on a button p... | stackexchange/codereview |
I have a simple mvc application which perform the CRUD functionality to manage UserDetials. I need to show a confirmation box when trying to delete a record.
| stackexchange/codereview |
I want send email by using *oracle 9i - Enterprise edition release 9.2.0.8.0 ,*I know there is one package for oracle 10,but would you advice me about it for oracle 9i? Is there any package ?
Can I sent email by Oracle 9i?
Is there any way using an interface program such as a java program and send email via that one, i... | stackexchange/codereview |
I want my main logo to change when mousing over.
I understand there are several ways to achieve this, and was wondering what's the best way for stability, browser compatibility, efficiency - and ease to setup.
Some ways I've found are:
Javascript (jQuery) replacement of the "src" attribute.
CSS using backgrounds and "... | stackexchange/codereview |
i use rails 3 and devise plugin version 1.1.2. How i can authenticate user through email and password in any controllers?
| stackexchange/codereview |
I need to include and external file that is on another url. For example google.com. I have tested the include using local files, so that much works, but if I try and use 127.0.0.1/filetoinclude.txt Nothing happens. I don't get an error, I just get a blank page.
So how am I supposed to include http://google.com in my pa... | stackexchange/codereview |
create table test1 (no decimal(4,2) ,name char(10))
create table test2 (no char(1) ,name char(10))
insert into test1 values(1,'aa')
insert into test1 values(2,'ab')
insert into test1 values(3,'ac')
insert into test1 values(4,'ad')
insert into test1 values(null,'ad')
insert into test2 (no,name) (select cast(no as char(... | stackexchange/codereview |
I have an xml in which one of the elements has an attribute that can be blank.
For e.g.,
<tests>
<test language="">
.....
</test>
</tests>
Now, language is enum type in the classes created from the schema. It works fine if the language is specified, it fails to deserialize if it is blank (as shown in example).
Edit: C... | stackexchange/codereview |
I have a canvas onto which I draw shapes like rectangle etc. When I move the shape using my custom mouse down/mouse move handler, the shape can go outside the parent bounds.
I am checking if the child is outside the parent's bound to snap it back:
var bounds:Rectangle = this.getBounds(this.parent);
var p:Point;
... | stackexchange/codereview |
Hi I am totally confused with CGAffineTransform animations. All I want to do is move a sprite from a position on the right to a position on the left. When it has stopped I want to "reset" it i.e. move it back to where it started. If the app exits (with multitasking) I want to reset the position again on start and repea... | stackexchange/codereview |
I have a EditText control.
If I tap it the softkeyboard will popup however when I press "enter/ok/return" then the EditText control it still has focus and the keyboard up.
How do I close the softkeyboard and remove focus from it?
| stackexchange/codereview |
I use SQLite DB in my app. Is SQLLite bases will erased if i turn on copy protection in market? (I mean bases in phones of my costumers)
I found both side comments. How it works now?
| stackexchange/codereview |
I want to create a pie with 12 slices, with each slice a different colour.
Pretty much every colour wheel seems to follow the same format; eg: http://www.tigercolor.com/color-lab/color-theory/color-theory-intro.htm .
But what algorithms are there for generating the colours? What is the math behind RGB(theta)? Surely ... | stackexchange/codereview |
I have the scripts below to download, install or update Java on Linux OS such as CentOS.
Is there anything better than that around? It is a quite cumbersome script and I'd like a more elegant solution.
###INSTALL
wget http://www.java.net/download/jdk7/binaries/jdk-7-ea-bin-b96-linux-x64-03_jun_2010.bin
chmod a+x jdk... | stackexchange/codereview |
I have a JPEG sketch of my apartment. And I wish to write an android app which loads this JPEG file and behaves as a map to the user so that user can track is movement.
I am really confused whether a JPEG file can be used as a map, if it can, please let me know how can I mark the movement of the user on that map.
Any s... | stackexchange/codereview |
I have a field where the user can input text and I want them to be able to insert tags like
<impact>
or
<signature>
as representation of where I would like to insert an html img. . So if I can somehow extract that tag from the text field into a variable that I can use for the substitution. If I were to write out t... | stackexchange/codereview |
I know I can have both C# and VB.NET code on the same web app by creating folders within app_code and mapping them in the web.config (I've done this before even though I cannot remember the details), but is there a way to add a C# wcf web service to a VB.NET web app?
Note: it's a web application project, not a web sit... | stackexchange/codereview |
I would like to add the following variable from a script task:
"IndexLocation"
String
Value: "http://www.mypage.com"
'Ex.
dts.variables.add("daf")
--Obviously above does not work
| stackexchange/codereview |
How can I programatically detect if MSMQ has been installed on the current system?
I am using C++, but answers in other laguages could still be helpful.
(VS2008, WinXP and up)
| stackexchange/codereview |
I am trying to run a HOST script which I have build in KSH shell using an Oracle Concurrent Program.
My Test script is as follows:
echo "System Parameters passed by Concurrent Manager"
echo "+--------------------------------------------+"
XXWIN_PROGRAM=$0
XXWIN_LOGIN=$1
XXWIN_USERID=$2
XXWIN_USERNAME=$3
XXWIN_REQUEST_I... | stackexchange/codereview |
I am trying to pass a function pointer (of type QScriptEngine::FunctionSignature (= QScriptValue (QScriptContext *, QScriptEngine *))) to an other function. But the function I need to pass is a member function of a class.
I use it like this:
class MyClass
{
SomeVarType someVarINeedAccessTo;
QScriptValue print(... | stackexchange/codereview |
In the past, when I've covered events, I've used a meta-refresh with a 5 minute timer to refresh the page so people have the latest updates.
Realizing that this may not be the perfect way to do it (doesn't always work in IE, interrupts a person's flow, restarts things for people with screen readers, etc.) I'm wondering... | stackexchange/codereview |
Normally, jboss takes just under a minute to start up from the command line, but when I start it in debug mode from Eclipse it takes over 2 minutes which can be a right pain when your just trying to debug a quick config change.
Does anyone have any tips for making JBoss start any quicker?
I'm using JBoss 5.1.0GA using ... | stackexchange/codereview |
I am new to iPhone and trying to learn the sequence of methods invoked during application loading time.
After some googling, I found this that seems to be adequate:
NSLog(@"Begin %@ initWithNibName", [[self class]description]);
But is there a way to insert the method name instead of typing it myself? Is there even... | stackexchange/codereview |
I have web service which receives 100 Mb video file by chunks
public void addFileChunk(Long fileId, byte[] buffer)
How can I store this file in Postgresql database using hibernate?
Using regular JDBC is very straight forward. I would use the following code inside my web service method:
LargeObject largeObject = large... | stackexchange/codereview |
I want a regex that matches a string which contains
- At least one brace: } or {
and
- At least one digit: \d
and
- At least one instance of either: <p> or </p>
But in any order, so that all the following would be matched:
<p>{123
2}</p>
2<p>}}}
{}{}{}<p></p></p>234234}}}
And none of these would be matched:... | stackexchange/codereview |
I am using the mysql connector (https://launchpad.net/myconnpy) with SQLAlchemy and, though the table is definitely UTF8, any string columns returned are just normal strings not unicode. The documentation doesn't list any specific parameters for UTF8/unicode support for the mysql connector driver so I borrowed from the... | stackexchange/codereview |
I'm attempting to generate artifacts for the following amazon wsdl:
http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl
using the following ant task:
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
<classpath>
<pathelement location="${BUILD_LIBS}/jaxws-ri/lib/jaxw... | stackexchange/codereview |
I'm developing a TCP server in .NET C#. It uses asynchronous I/O (I/O completion) to handle a large number of clients simultaneously. Right now I have all the TCP connections in a list, which I pass through continuously looking for a change in the state machine of any particular connection. The state machine for a give... | stackexchange/codereview |
So, I'm trying to work on a Temperature Converter that will convert any Fahrenheit, Celsius, Kelvin or Rankine source temperature to Fahrenheit, Celsius, Kelvin or Rankine.
Now, I'm trying to do this (in C#) following the guidelines of best OO practices.
I've hit a roadblock early on though, and I need some advice on h... | stackexchange/codereview |
We have several subversion repositories: one for common code and one for each top level project. The top level projects have a svn:external link to the trunk of the common repository.
Before we build a release of a project we create a branch of the top level project and also create a parallel branch in the common repo... | stackexchange/codereview |
I've been trying to pass an object to my main thread process but it seems it will not work in the way I thought it would.
First I create the Thread:
Thread thrUDP;
Then I create the object I will use to store the data I need:
UDPData udpData;
Now I Initialize the object withthe correct data, Set up the new thread and... | stackexchange/codereview |
I have code like this:
class A(object):
def __init__(self):
self.a = 1
class B(A):
def __init__(self):
self.b = 2
super(self.__class__, self).__init__()
class C(B):
def __init__(self):
self.c = 3
super(self.__class__, self).__init__()
Instantiating B works as exp... | stackexchange/codereview |
Is there a way to give a tester the exact binary that will be uploaded to the App Store to test?
Basically what I want to know is whether it is possible to build the source and then sign it twice: once with for ADHOC distribution and then for App Store distribution.
I got burned by some cached image assets and I want ... | stackexchange/codereview |
I've just created my first symfony plug-in. It's a private plug-in (for now) and i have a task that i've added. For some reason the task isn't available on the symfony CLI interface. Even of if i enable the plugin in the ProjectConfigurator Class.
If i move the task to the symfony root lib/ folder, i can see it availa... | stackexchange/codereview |
I can visit .html pages with Jetty, but when I visit a .jsp page I get:
0 13:21:13 / [INFO] No JSP support.
Check that JSP jars are in lib/jsp and
that the JSP option has been specified
to start.jar
I added the following as dependencies:
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-w... | stackexchange/codereview |
Hi
I made a Fire Simulator with JTextArea
http://xieu901.webs.com/fire.jar
now I want to make it with JPanel or Canvas instead of JTextarea (just want to challenge myself ^^ )
I managed to draw an image in a only JPanel in Jframe
but I cant draw anything in a Jpanel which is in another JPanel in Jframe
are there any wa... | stackexchange/codereview |
Is it worthwhile using C's bit-field implementation? If so, when is it ever used?
I was looking through some emulator code and it looks like the registers for the chips are not being implemented using bit fields.
Is this something that is avoided for performance reasons (or some other reason)?
Are there still times whe... | stackexchange/codereview |
i have 2 inherited resources (with plugin of Jose Valim) - Blogs and Posts. Of course - Blog hm Posts and Post bt Blog. Routes is simply enough
resources :blogs, :only => [:show] do
resources :posts
end
Also i have updated action posts#index with following
def index
redirect_to parent_url
end
as i hav... | stackexchange/codereview |
I am using mysql and mysql workbench. I created 5 tables with innodb engine. I checked their engine and it was innodb before I insert data into them. I inserted data from 5 MyISAM tables and now my innodb tables are MyISAM. I can't change them. I used the alter table engine=innodb but it doesn't work.
| stackexchange/codereview |
Ok, the question alone is making my head spin.
I have an anchor tag that is calling a function:
<a href="#" id="addPerson" onClick="addPerson(); return false;">Add a Guest</a>
Just for reference, this is the function that's being called:
function addPerson() {
//current keeps track of how many rows we have.
current++;... | stackexchange/codereview |
I know this might be a very stupid question but I am new to compiled languages (my domain is mostly scripting languages like PHP, Python or JavaScript).
I am learning C++ for one project where it is the only language I can use.
I wrote a program in Ubuntu 10.10 and then compiled it. I can run the generated binary file ... | stackexchange/codereview |
How can I use **pointer in c++? When I use *pointer[] I know how to access one element, but how can I access the elements of **pointer?
| stackexchange/codereview |
I have adapted a jQuery tabbed interface tutorial to create an interface for viewing some images. The active tab should have an opacity of 1, but with the code I am using the 'current' class is assigned to the 'a' of the tab when clicked, but the opacity does not change, and remains at .3.
I am hoping I can achieve thi... | stackexchange/codereview |
In a WPF control I have a hosted WinFormUserControl control via a WindowsFormsHost
Now, in the WPF control code I do:
void ShowWinFormUserControl()
{
...
windowsFormsHost1.Visibility = System.Windows.Visibility.Visible;
bool success;
success = windowsFormsHost1.Focus(); // true
success = win... | stackexchange/codereview |
Thanks for your time, i am creating an application which will take 5
URL's from database and then navigate each in 5 browser-controls
respectively. This activity is done in "background worker control's do
work function". On first time load of this window form, everything
goes fine, i am having a function of leave this ... | stackexchange/codereview |
Suppose I have several enums representing ... for example database vendors: Unknown, Oracle, Sybase, SQL Server 2005, SQL Server 2008, etc. I want to let the user select between all of these but an Unknown from a Combo Box. When the user selects an enum, they should see a human-readable description (which would hopeful... | stackexchange/codereview |
You can mark a class as serializable using the SerializableAttribute. However, you can still serialize an object without marking it serializable. What is the impact of doing so?
| stackexchange/codereview |
I am trying to create a query from Flash Builder to PHP/mySQL with selectedItems. I have a simple SELECT query set up to populate a datagrid of items I would like to select for main query (two records looks something like this "19 10","20 10"). This is where I get stuck. I don't know if I need to break down the se... | stackexchange/codereview |
I'm having problems getting the SmoothDivScroll plugin to work with Google Chrome. It works fine in FF and IE7 and above though. I've tried playing with the CSS, but no result.
The plugin is this one http://www.maaki.com/thomas/SmoothDivScroll/
I've put a sample page on my server at
Any ideas anyone?
Thanks
| stackexchange/codereview |
I'm a little shocked that (if?) this precise questions hasn't been asked, but 15 minutes of scanning SO didn't turn up an exact match. (If I'm wrong, point me the right way and vote to close...)
Question 1:
What are the best practices for laying out Java projects under an Ant build system?
For our purposes, we have th... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.