instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm trying to find an elegant way of having login form in the master page. That means unless user logs in, login form should appear on every page. (This is very common these days)
Taking the example that comes with MVC2 Application in Visual Studio I have created this:
public class MasterViewModel
{
public string U... | stackexchange/codereview |
I am needing to modify an open source project to prevent reusing code (more efficient just to create a GetGameRulesPtr() function than to keep going into the engine to retrieve it. The problem is, it is stored as void **g_pGameRules. Ive never really grasped the concept of a pointer to a pointer, and I am a bit confuse... | stackexchange/codereview |
I have written a JSON serializer using JavaScriptSerializer. I am wondering when the server add some property to the JSON object, will my serializer still work?
| stackexchange/codereview |
Has anyone had success installing the Scala plugin into Netbeans recently? I tried to install and when Netbeans restarts, I receive a whole bunch of warnings like:
WARNING [org.netbeans.core.modules]: had to upgrade dependencies for module org.netbeans.modules.cnd.asm: added = [module org.netbeans.modules.editor.deprec... | stackexchange/codereview |
Hi
this is my algorithm which takes an array with float numbers that are sorted before.because I have thought that when we sort an array before using this algorithm ;its worst case performance will be O(nlogn) but without sorting it will be O(n^2).So I think that this algorithm will be OK for finding one duplicate num... | stackexchange/codereview |
I'm trying to get output from a python multiprocessing Process displayed in a Tkinter gui.
I can send output from Processes via a gui to a command shell, for example by running the fllowing tiny script at a shell prompt:
from multiprocessing import Process
import sys
def myfunc(text):
print text
sys.... | stackexchange/codereview |
In your opinion, what's the best gem for the Flickr API compatible with Rails 3 ?
I just need some basic functions to retrieve some photos based on web page urls for a given size.
Thank you,
Nicolas.
| stackexchange/codereview |
In Short,
I am currently showing a list of results... and then I place a filter on the results and pulls another list of results, using the .live() within jQuery.
Not my problem comes when i'm using qTip. Which currently runs somewhat like this... without all the details.
$('.contact').each(function() {
$(this).qtip... | stackexchange/codereview |
This is not meant to be a subjective or argumentative question.
I am investing some time in learning ASP.NET and more specifically ASP.NET MVC and I am curious how it stacks up to the competition. I really like what I am seeing so far with the framework, and I think the icing on the cake would be if it shows rock soli... | stackexchange/codereview |
I need keyboard never hide in my view (for example as in facebook app in login form)
How can I do it? I use
[textFieldEmail addTarget:self
action:@selector(textFieldDone:)
forControlEvents:UIControlEventEditingDidEndOnExit];
and when i tap done on keyboard, it hides, I tried
- (IBActio... | stackexchange/codereview |
I have a movieclip created of a wheel that needs to roll on the ground. The speed of lateral movement of the wheel, is provided by the user and the wheel needs to rotate such that, it looks like rolling vs slipping on the ground
I essentially need the wheel to rotate faster/ slower based on user input- how can this be ... | stackexchange/codereview |
i am using ajax modal popup in sharepoint, but the assembly references some are missing and if i am trying to put those assembly references, the page is going to error page. Is there any other alternative other than using ajax control popup in sharepoint. I want to show popup badly in my current project. Please help me... | stackexchange/codereview |
I work on C#.
foreach (DataGridViewRow item in dataGridView1.Rows)
{
if (Convert.ToBoolean( item.Cells[0].Value) == true)
{
foreach (DataGridViewColumn col in dataGridView1.Columns)
{
**class oclass=new class();
oclass.property = item.Cells[col.Name].Value.ToString();
... | stackexchange/codereview |
can some one please tell me, how can I write a awk program to provide extra space at the end of a line if required. So that the line length is maintained at 127 ?
| stackexchange/codereview |
I converted from Visual Studio to Emacs for most of my development (mainly due to switching programming languages). However, there is one cool feature of Visual Studio that I truly miss: Ctrl-Tab between "buffers".
The ctrl-tab that in Visual Studio is not the same as C-x b in Emacs. So, it's not just a keyboard map... | stackexchange/codereview |
What I am attempting to do is build a javascript library that will take an authenticated user on an external website and securely pass a few pieces of identifying information to my server to retrieve web content which will then be served up in an iframe on the external site.
Now, my problem is that Javascript is not se... | stackexchange/codereview |
Is anyone aware of a open source CMS written in python using which I can make a site like YouTube?
| stackexchange/codereview |
So here's the problem:
My project got 2 Entities. The first one is Organisation the second one is Brands. They are connected with an 1 to Many relationship. "A Organisation can have multiple Brands" Everything is working for that. The Tableview with the Organisation and the Brandtableview and a DetailView.
What I want ... | stackexchange/codereview |
I'm using the Bing Maps control to display a series of custom pushpins, representing objects which are constantly moving around and changing state.
Using databinding the various properties for the objects are being updated as they should, but for some reason this doesn't apply to their locations.
I have the map bound t... | stackexchange/codereview |
This has got to be simple -- surely this method is supposed to work -- but I'm having some kind to two-byte-to-one-byte problem, I think.
The purpose of the code is to generate a string of 0 characters of a certain length (10 minus the number of digits that will be tacked onto the end). It looks like this:
const unicha... | stackexchange/codereview |
I try use the "GetModuleFileName" to get current "setup.msi" location use mydll.dll in setup.msi installer.
But always give me "c:\windows\system\setup.msi".
Any body know why ? Plx help .
| stackexchange/codereview |
What is the best solution for something that support:
rich editor
edit in place
placeholder
save HTML and strip out malicious etc.
I would like to have a nice and usable interface to change data on a profile.
It must support bold, italic and multi-line text and being sure that no malicious code can be injected.
I a... | stackexchange/codereview |
I've successfully being able to use the ACTION_SEND intent which displays my application in the list when the share button is pressed in the gallery. My app basically sends the selected picture to my computer and no further input form the user is required. Rather than starting my app when selected in the list which is ... | stackexchange/codereview |
I started out trying to follow this tutorial to create a Rich Text Editor.
I quickly realized that the tutorial was outdated and I needed to use the struts2-dojo-plugin.
My JSP now looks like this:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s"... | stackexchange/codereview |
For example I have this code:
<style>
.wrapper { width:1200px; height:800px; }
.column { width:900px; height:800px; margin:auto -0; }
</style>
<div class="wrapper">
<div class="column"> </div>
</div>
I want a mousedown function to be called when you click outside of the "column" but not inside the column... | stackexchange/codereview |
function Request(params)
{
// Stuff stuff stuff
// And then
$.ajax(
{
type: 'GET',
url: 'someurl',
success: this.done
});
}
Request.prototype.done = function()
{
// "this" in this context will not refer to the Request instance.
// How to reach it?
}
| stackexchange/codereview |
I have managed the get the auth Token from google and now I am trying to push the message to my android device.
//code to fetch auth Token
<?php
$url = "https://www.google.com/accounts/ClientLogin";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
echo $url;
$post_fields = "accountType=" . urlencode('HOSTED_OR_... | stackexchange/codereview |
My computer crashed while I had VS2010 open, and when I recovered (all I did was reset the computer) and opened visual studio again, all my layout was messed up. Since I had very little customization done, I figured I would just reset the window layout. I tried Window > Reset Window Layout, but that didn't work. I even... | stackexchange/codereview |
I have never used Git before. I am supposed to use it to take notes on a book, but i haven't a clue how to get started. Do I create a .text file? The only things I have found are instructions on how to keep track of projects, but nothing about the kinds of projects I might use. I just want to make a word document that... | stackexchange/codereview |
Is it possible to get a list of installed applications (like the list from the un-install programs) from a windows vista computer with java?
| stackexchange/codereview |
does matlab have a built in function for discrete signal addition?
can only find google of scripts, no built in function
| stackexchange/codereview |
Is it possible to relate the size of a triple store to a rough equivalence in terms of a RDBMS? Or would this vary too much based on the type of data stored (in my case text content of a CMS)
I'm trying to get my head round how a 800MB database compares to a 1.7Billion triple triple store. I'm fully prepared to be told... | stackexchange/codereview |
I would like to have the standard silverlightcombobox behave like an html combobox.
So let's say I have a combobox for all states in the US, If I press the 'I' key, it should navigate the selected item to start at the I's ... Is there anyway to do this, it doesn't make sense that it's not built in functionality.
Maybe ... | stackexchange/codereview |
I'm having trouble with a certain mapping. Let's say I have three assessments that all derive off a base Assessment:
public abstract class Assessment
{
public abstract int DamageCostTotal { get; set; }
}
public class IndividualAssessment
{
public virtual int DamageCostHouse { get; set; }
public virtual int... | stackexchange/codereview |
Datagrid with 3 columns namely Name,Place and Country. In order to export these columns values to Excel sheet by Clicking a Button called 'Export to Excel'. When Click this button, the values in datagrid is exported in excel sheet. If anybody know this, Please give some samples. Thanks in advance.
| stackexchange/codereview |
Just trying to get my head around Javascript a very strange thing has happened. The method getChapters() is firing even though I haven't explicitly called it...Any ideas? (I'm getting the alert box for get chapters).
videoChapters = function () {
};
videoChapters.prototype.config = {
jsonProvider : '_Chapters.aspx... | stackexchange/codereview |
Trying to implement polymorphic associations in MySQL. I thought the code could look something like this:
SELECT
...
FROM
resource
LEFT JOIN (
CASE resource.owner_type
WHEN 'meeting' THEN
( SELECT * FROM meeting ) as owner
WHEN 'todo' THEN
( SELECT * FROM todo ) as owner
END)
... | stackexchange/codereview |
Here is the use case:
@XmlRootElement
public class Book {
public String title;
public Book(String t) {
this.title = t;
}
}
@XmlRootElement
@XmlSeeAlso({Book.class})
public class Books extends ArrayList<Book> {
public Books() {
this.add(new Book("The Sign of the Four"));
}
}
Then, I'm doing:
JAXBConte... | stackexchange/codereview |
I wrote a module to have my own menu bar, rather than just using categories as a menu bar.
So, here I want to show already added menus while adding new menu in the Tab/Form.php in my custom menu module. How can I show all of the existing menu names as a dropdown/options list on the form. Here is the code that I used t... | stackexchange/codereview |
I need to create a multi-edit form in rails, like so:
<form>
<input type='text' name='input1'></input>
<input type='text' name='input2'></input>
<input type='text' name='input3'></input>
<input type='text' name='input4'></input>
<input type='text' name='input5'></input>
<br>
<input type='text' name='input1'></input>
<i... | stackexchange/codereview |
I am trying to get basic authentication working using devise and mongomapper.
Following the instructions here:
http://johnwyles.com/2010/03/15/sessions-in-mongodb-using-mongomapper-and-devise/
(except deferring the routes.rb changes until after the generators are run to address errors)
I got it as far as getting the fo... | stackexchange/codereview |
Javadocs of CopyOnWriteArrayList says
A thread-safe variant of ArrayList in which all mutative operations
(add, set, and so on) are implemented by making a fresh copy of the
underlying array.
I am confused now when will other threads see changes present in this fresh copy? Does this mean there will be number of c... | stackexchange/codereview |
I have one VPS from PowerVPS which has CentOS 5.5 (default configuration).
I need to install Node.JS for an Ajax IM installation.
Does anyone have any advice/information on how to install Node.JS on the machine?
| stackexchange/codereview |
I have never been able to get the Desktop Manager to work correctly load an app on my device; however, I can use javaloader.exe to load an app (sort of). It only loads the cod file, not the alx. Okay, I'm desperate so I'll take what I can get. The problem is that after I use the javaloader.exe on any file name, I can... | stackexchange/codereview |
I've been working lately on a small project, and I couldn't figure out something..
I've been given a .h file that was containing a class, using a typename template. Inside that class there was a private class.
template <typename T>
class Something
{
public:
Something();
~Something();
Node* Func... | stackexchange/codereview |
Any one help to me to record and play audio Simultaneously in Iphone.
| stackexchange/codereview |
I am having a tableView which lists the contents directory which includes jpg, pdf, zip, mp3, mp4, sql,.. files and even folders. In the next step, I am having a detailView which displays some properties of the selected file such as fileName, fileSize, filePath, fileType. Everything works perfect.
But actually my plan ... | stackexchange/codereview |
Why would using a scoped query fail when querying directly works perfectly?
My Model:
class Score < ActiveRecord::Base
belongs_to :query
belongs_to :pull#, :counter_cache => true
scope :latest, find_by_sql("SELECT * FROM (SELECT * FROM scores ORDER BY created_at DESC) s GROUP BY query_id")
end
Firing up the co... | stackexchange/codereview |
I am currently trying to call a method from a utility class that will reference a new cursor created for this utility method. Unfortunately, my new class will not let me create the cursor without context. I have tried numerous ways of passing context from the calling activity, but get null pointer exceptions in most ... | stackexchange/codereview |
I'm creating a subclass of ConfigParser that is easier for me to use throughout my project:
class MyConfiguration(ConfigParser.ConfigParser):
def __init__(self, filename):
ConfigParser.ConfigParser.__init__(self)
self.readfp(open(filename))
def get(self, section, option):
return eval(C... | stackexchange/codereview |
Occasionally I want lazy module loading in Python. Usually because I want to keep runtime requirements or start-up times low and splitting the code into sub-modules would be cumbersome. A typical use case and my currently preferred implementation is this:
jinja2 = None
class Handler(...):
...
def render_with_j... | stackexchange/codereview |
I would like to know if there is a way to perform replacement with regular expressions in JS using tagged expressions, like scintilla engine does (used in Notepad++, for example).
For instance, to replace numbers with a colon as decimal separator by a dot, you may use the following expressions in Notepad++:
regexp: /([... | stackexchange/codereview |
I have a table cell which, once clicked, opens the file browser and lets me select a file to be uploaded to a server. The problem is, I'm unable to find a way to display the name of whatever was selected. For now, I just display "file selected" and do the upload, but I'd really like to be able to display the file name.... | stackexchange/codereview |
I need to enable locally hosted video player in a wordpress site. Currently I am using the
steam video player plugin. It seems to work fine for small files, and large files simply stalls as they take too long to load. See examples here. How to handle this situation. Are there any alternative plugins or file forma... | stackexchange/codereview |
I have a Check All box wherein when the user will tick it, all the items under it will be ticked. It works fine in Firefox but won't perform the Check All function in chrome.
This is the JS function:
function Check(chk, num)
{
if(chk.value=="Check all"){
for (i = 0; i <= num; i++){
... | stackexchange/codereview |
Ok guys I'm really at a dead end here, don't know what else to try...
I am writing a script for some e-mail statistics, one of the things it needs to do is calculate the complete size of all messages in the maillog, this is what I wrote so far:
egrep ' HOSTNAME sendmail\[.*.from=.*., size=' maillog | awk '{print $8}' |... | stackexchange/codereview |
I have 2 macros below that I am trying to execute 1 after another like a loop using a metadata table and the call execute command in a data step.
macro %TWO requires the global variable &names_agg. that is supposed to be created in macro %ONE. However in the below code, &names_agg is blank the first time I run it. If I... | stackexchange/codereview |
I'm using the last version of Ubuntu which come with the gcc 4.4.5 version. I need to recompile a program that was not written by me and that can be only compiled with an older version of gcc like the 4.0. I managed to configure this older version and used a prefix during the install process so that my old gcc version ... | stackexchange/codereview |
I am building an android application and have the following problem. When I want to open a file from the sdcard using FileInputStream and if the file name contains a blank character, I get the FileNotFoundException. If there are no blank characters, everything works fine. So, if I am to open for example: "My file.ext" ... | stackexchange/codereview |
I am attempting to insert data across a DB link from an MS SQL Server 2008 into and Oracle 11g server using a pass through insert:
insert into openquery(ORACLE,'select varchar2_1,varchar2_2, number1 from table1')
select varchar_1, varchar_2, integer_1 from mssql_table;
When I try and execute this I get and error sa... | stackexchange/codereview |
Can One JVM handle multiple JVM ? As One JVM handles Multiple Threads, So I mean to ask That can one JVM handle multiple JVM treating them as thread? If Possible Please share with me the soln and example as well
| stackexchange/codereview |
I'm trying to figure out how to design the class hierarchy for a Carrier class I'm implementing.
I currently have an abstract base class Carrier.
I have another abstract class TimedCarrier(TC) which extends Carrier with timing and domain related information. Concrete classes extend from Carrier and TimedCarrier.
User r... | stackexchange/codereview |
I am trying to add permissions to my application manifest, so it can access other apps that the user installs at runtime. I thought the way to do this was to define a permission-tree in the manifest, and then use PackageManager.addPermission() to add permissions under that tree. However, I can't get this to work and th... | stackexchange/codereview |
async{} workflow is easy to use and gives good results on asynchronous operations like IO. Is this a good option also for purely data bound operations? There's also the .NET ThreadPool and BackgroundWorker, are these better options for data bound computations?
The example I have is a large list, about 10,000 strings al... | stackexchange/codereview |
I have two class in Qt. In one I declared some variables and child QFrame class with QPainter. Now, if it's possible, how i can get access to parent variables from child class?
I know that I can pass variables by signals and slots or catch child QPainter events, but i think it would be nice get access directly.
| stackexchange/codereview |
I have a model with a property that points to a file that contains HTML. My strongly typed view to this model uses a custom HTML helper method to resolve and return the HTML from the file. Works great so far.
The HTML read from each file will contain various controls whose values I need to retrieve when the form is P... | stackexchange/codereview |
I have some problems, I'm getting these errors (marked in the code):
identifier "cerr" is undefined
no operator "<<" matches these operands
Why?
#include "basic.h"
#include <fstream>
using namespace std;
int main()
{
ofstream output("output.txt",ios::out);
if (output == NULL)
{
cerr << "File ca... | stackexchange/codereview |
I have a ListBox so I can use bindings. I'm new to Silverlight so maybe there is another way. I just want to display a list of items in a template. I don't need it to be scollable, because it fits the screen. Here is ma code :
<ListBox Margin="0,0,-12,0" ItemsSource="{Binding NewSearchItems}">
... | stackexchange/codereview |
How to call a function in an iframe from the parent page?
| stackexchange/codereview |
I have a question concerning the OpenGL rendering pipeline.
I have recently been reading theory about the GLSL's Geometry Shader. I think I do understand the basics of how to emit new geometry and assign colors to the new vertices. I am, however, not sure what color a fragment would get if one of those new vertices wou... | stackexchange/codereview |
I created a class for a bingo game. I get an error saying "'class' expected". How could I return the values in the array to the main starter?
Any other comments would also be helpful.
Thank you.
import java.util.Random;
public class Card
{
Random generator = new Random();
private final int BOARDMAX = 4;
p... | stackexchange/codereview |
I've implemented a ContextMenu where the items have checkboxes enabled via setCheckable(true). What seems strange to me is that the context menu closes as soon as I click the checkbox. These are not set up as radio buttons (implying single selection) and since the nature of checkboxes are to allow multiple selection,... | stackexchange/codereview |
I was wondering whether it is possible to assign a value to an HTML text box and protect it.
What I mean is make it´s content unmodifiable, so that when the form gets submitted im "sure" it was this value which was submitted.
BTW I realize the easier way would be not to "listen" fot this input and just assign it but it... | stackexchange/codereview |
I've got an ajax call returning some html. The html is created and returned in a function like so:
function return_html(){
$title = 'My Form';
$returnObject = array();
$returnObject['html'] = '
<form>
<h1>' . $title . '</h1>
<input type="text" name="t... | stackexchange/codereview |
Just wondering how to start a project from concept,specs,dev etc. In development do you start with database design? or maybe theres a resource you know i can look at.
| stackexchange/codereview |
Any one can give me the gist of the main advantage of using Hibernate?
| stackexchange/codereview |
I am using AutoMapper to create DTOs for the ViewModel and EditModel. I can't find out a good example of how to take the EditModel and apply the changes it contains to the database.
I first considered using AutoMapper as a two-way mechanism, but it's obviously not recommended: http://www.lostechies.com/blogs/jimmy_bo... | stackexchange/codereview |
I've recently ran into the following problem. Given a list of vectors (here I mean tuple) all with integer entries, is there a package (language isn't too much an issue, the faster the better, so I guess C) to very quickly determine when another integer vector is in the span of the original list? I need to do this arit... | stackexchange/codereview |
I want to get content of page from URL by this code :
public static String getContentResult(URL url) throws IOException{
InputStream in = url.openStream();
StringBuffer sb = new StringBuffer();
byte [] buffer = new byte[256];
while(true){
int byteRead = in.read(buffer);
if(byteRead ==... | stackexchange/codereview |
I have a C# application (.Net 1.1) and use excel interop to display some reoprts. It turns out that when opening an excel workbook the files in XLSTART are not read, it's as if the /automation command line switch has been run.
Is there any way to enable XLSTART when launching an XLS sheet from C#?
| stackexchange/codereview |
I can receive the response. How can I get the response in a XML document? do I need to use an external XML parser? thanks for any helps
DefaultHttpClient client = new DefaultHttpClient();
String getUrl = "http://myurl.com";
HttpUriRequest getRequest = new HttpGet(getUrl);
getRequest.setHeader("User-Agent", "xxxx");
... | stackexchange/codereview |
I'm using chrome for a new website, and I'm doing some javascript debugging.
One of my favorite techniques to debug nested expressions is to put a breakpoint, enter an expression in firebug's input panel in the console tab and press run.
But I don't see this feature in chrome. I'm probably overlooking something. Is it... | stackexchange/codereview |
I'm about to implement a system which will need to receive a lot of calls per day and save them. It needs to bring information to internet users as well (something like a call center or a 911).
I've two doubts:
1) I'm between using SQL Server, MongoDB or Cassandra,
2) If it's SQL Server I'm between using and ORM like ... | stackexchange/codereview |
I'm using the breakurl package and the hyperref package with pdfLatex and BibTeX to cite a url. The url is breaking, but not according to my margins. Is there any way I can make the url recognize my margins or force a line break? Thanks in advance.
Code:
\usepackage{hyperref}
\usepackage[vertfit]{breakurl}
@M... | stackexchange/codereview |
I'm using Windsor to do IoC in our .Net project, but I'm having difficulties doing setter injection in code.
I believe it comes from the fact that I blanket register my components, since eventually I'm hoping that legacy project will be fully IoC compliant and mostly Unit Tested (sweet dreams!).
Here is how I'm regis... | stackexchange/codereview |
Diving into vs2010 Extensibility and I gotta say the subject seems to be as wide as it is deep. Anyone have tips, tricks or hacks to leverage jumping into this somewhat intimidatingly huge niche of visual studio?
| stackexchange/codereview |
Just thinking if it's necessary to learn ASP.net.
Also, which is faster to develop? If I learn ASP.net now..
I will be using one of those languages for my first Web Application.
thanks!
| stackexchange/codereview |
I have a horizontal linear layout with multiple image views. Is there a way to resize these views automatically, so that all of them fit inside the screen?
this is the code:
<LinearLayout
android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView
android:layout_width="wrap_content" androi... | stackexchange/codereview |
Ok, so I'm a relative noob with Objective-C/iOS programming, so hopefully someone with more knowledge here can help me out.
I have an iPad application using the SplitViewController template (with Core Data). I created another UIViewController (with xib file) called PlayerViewController. This View has several UILabel ... | stackexchange/codereview |
So for example - while its installing it downloads a bunch of images from a server
| stackexchange/codereview |
What I'm trying to do is use local variables inside of the mouseListener I add ( right on that place ). Which seems impossible, so I would like to ask if there's any alternative way for what I'm trying to do.
So basicly the problem is: I cannot use local variables ( which in my case contain info about the product clic... | stackexchange/codereview |
I'm trying to fetch the list of all the tasks within the JBPM database. I'm using the following code :
List<Task> liste = taskService.createTaskQuery().list();
But it gives me a list of the first task of each workflow... How could I get the other tasks?
Regards,
| stackexchange/codereview |
I've checked all of the questions here about weather API's and checked every single suggested API but still no luck! I need an API that includes the water temperature in its response.
I'm using wunderground to get the weather forecast data I need, but I'm still missing the water temperature.
Is there an API (preferably... | stackexchange/codereview |
I want to detect an area(LCD screen) that contains several digital numbers, what I am trying to do is:
1. use cvCanny() to convert the image to edge image,
2. use cvFindContours() to detect the contour, here I am using the TREE mode
3. detect every contour and its number of children, if the number of children is larger... | stackexchange/codereview |
I am trying to upload a image file and zip file. First i have started with image upload, it gave me message[java.lang.IllegalArgumentException: im == null! Error. But, still it uploaded the image. Then i have added code to upload zip file. Now also i am getting same error. But, unlike last time, the image only getting ... | stackexchange/codereview |
Django comes with unicode support out of the box and it supports utf-8 by default. Say that you have developed, debugged and tested successfully a site with a bunch of Django apps in utf-8. What steps are required for a mostly painless migration to a different encoding, say latin-1 ? I would wish that it would just nee... | stackexchange/codereview |
I've optimized my import application and I broke my mirroring, I'm pretty sure it's because of it. I get this error and I cannot resume it.
remote mirroring partner for database 'foo', encountered error 3624, status 1, severity 20. Database mirroring has been suspended. Resolve the error on the remote server and resum... | stackexchange/codereview |
Firefox now supports full screen mode on the video html5 tag. ( right click on the movie .. )
Is there any way to create a control ( html tag ) to do this like this play/pause example ( using js ) ?
<script>
function play(){
var video = document.getElementById('movie');
var play = document.getElementById('play');
pl... | stackexchange/codereview |
I have an access database that I need to update only if my information is unique. Is there a simple sql statement to accomplish this? Will 'insert ignore' work with access?
Example: I have the info stored in an array ('bob','34','hair'). If my database contains a record that matches on those three columns I would ... | stackexchange/codereview |
I'm new to Sinatra and I can't figure out where to put my application layout.
I've seen the inline method that uses
# app code
__END__
@@layout
%html
= yield
But I'd like the layout to be in it's own .haml file.
What should the layout file be named? What directory should it be placed in?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.