instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have two integer arrays which contain numeric values. I want to look through both lists and check for commonality (or lack of) between the lists. I.e. I want to iterate through the array(s) and find those items which appear in both lists, while in a separate function I want to go through the arrays and find items whi... | stackexchange/codereview |
I wants to set rounded scrollview in iphone App.
The Same Effect is available on the following link of Apple store.
http://itunes.apple.com/app/iretrophone-rotary-dialer/id284700702?mt=8
I have tried horizontal and vertical scrollview.
IS it possible to set rounded scrollview or arch scrollview??
Thanks in Advance.
Any... | stackexchange/codereview |
I am posting back to the server to check the DB to see if we hold a reference number. If the reference number does not exist I set two custom validators to invalid and change the ValidationSummary header text. The problem is that the background colour I set in the css class does not display. The font colour does displa... | stackexchange/codereview |
I am running jquery-mobile alpha 1 and I am creating a list with a fixed header. When I view the page the header is on top of the first list item. The only solution I have found so far is to put a hidden list item with enough space at the top for the header to cover. Is there any other solution?
Here is an initial ex... | stackexchange/codereview |
is the IN operator good for passing say 5000+ items into a large table thats properly indexed?
Basically im trying to get a list of Mp3's and checking if the song exists in our system by doing a simple name search.
(pseudocode)
Select name from mp3s IN (array of mp3 names)
| stackexchange/codereview |
The bellow code detects and converts urls in String. Is there faster way or more elegant way to do this block of code?:
public static String detectAndConvertURLs(String text) {
String[] parts = text.split("\\s");
String rtn = text;
for (String item : parts)
try {
// adjustment based one of... | stackexchange/codereview |
How to authenticate a user using google account in our website. i want a user to be redirect to google login page and then redirect him to my website. I want this implementation in PHP.
| stackexchange/codereview |
I have a set of three (or more) known variables that are related to the input of a process. I also have the (measured) results of the process, in this case the time it took for the process to complete.
In order to be able to give an estimated duration and create a progress indicator based on the input, i would need to ... | stackexchange/codereview |
i'm using seam 2.2, primefaces as view presentation layer.
I would write some kind of infrastructure in order to capture all exceptions.
For example i put in a facelets following piece of code:
<p:commandButton actionListener="#{mySeamController.aMethod()}"
in MySeamController class, the above method:
public void aMet... | stackexchange/codereview |
I am uploading some image files using servelt. I want to resize the images. I converts the source to BufferedImage using below lines.
InputStream imageStream = item.getInputStream();
BufferedImage imageBuffer = ImageIO.read(imageStream);
Then i resize the image and write in a location. But, all of the output files siz... | stackexchange/codereview |
I'm using simplejson to get data from the New York Time API. It works when I run the file through the terminal with the command "python test.py" but not when I run through TextMate using command + R. I'm running the exact same file. Why is this?
I am running Snow Leopard 10.6.4, TextMate 1.5.10, and Python 2.6.4.
Edit:... | stackexchange/codereview |
Trying to code a simple Live wallpaper for android. I'm having trouble finding out how to capture the screen size at initialization.
Any thoughts on how I might can accomplish this?
Thanks.
| stackexchange/codereview |
See the code sample from MSDN: (http://msdn.microsoft.com/en-us/library/b1yfkh5e(v=VS.100).aspx)
// Design pattern for a base class.
public class Base: IDisposable
{
private bool disposed = false;
//Implement IDisposable.
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
prot... | stackexchange/codereview |
I have a code that executes for some time on GUI thread (to simplify things, let's assume in Button_Click event).
When the method starts I'd like to show a message "Please wait", and continue working. When the work is done I'll hide the message and continue.
I know I can do this with BackgroundWorker (or any other Thr... | stackexchange/codereview |
Here's my code:
from sqlalchemy import create_engine, Column, Integer
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
database_url = 'mysql://some_path'
engine = create_engine(database_url)
Base = declarative_base(engine)
class Users(Base):
__tablename__ = 'Users'
... | stackexchange/codereview |
I use this code in php to detect whether there is five same symbols in a row in the string and execute some code if it does.
function symbolsInRow($string, $limit = 5) {
$regex = '/(.)\1{'.($limit - 1).',}/us';
return 0 == preg_match($regex, $string);
}
Now I need to do the same thing in javascript, but unfort... | stackexchange/codereview |
In C# there's a SqlDateTime.MinValue and SqlDateTime.MaxValue, but I can't find one for the SmallDateTime datatype from SQL Server.
var smallDateTimeMin = DateTime(1900, 1, 1);
var smallDateTimeMax = DateTime(2079, 6, 6);
Is there one or do I need to implement this myself?
| stackexchange/codereview |
I am looking for the solution of the problem of combining Zend_Navigation within multilanguagal page-setup with Routers.
I wrote several routers (eg '/:lang/:controller/:action'), which work fine. At the same time I use navigation.xml which has definitions like
<user>
<label>Users</label>
... | stackexchange/codereview |
I see some posts on programmatically mapping a table with a composite key but I haven't found any examples to do that within xml of the edmx file. How do I do this? In the edmx of my entity type I have a key section with multiple propertyref's pointing to my composite key. However, when I go to save my changes it error... | stackexchange/codereview |
I read this post Handling a colon in an element ID in a CSS selector which outlines how to select a known id that contains a colon.
What I would like to do is create a JSF list that contains images. Then using jQuery I would like to select each image and read in the id. Is this possible without writing some code to... | stackexchange/codereview |
I have merged and asp.net 4.0 app with a asp.net mvc 3 app.
Everything works, except for the gravy like right clicking on the Controllers folder and getting:
Add >> Add Controller
Same for Views, etc, etc.
Any pointers?
| stackexchange/codereview |
currently i'm developing a website in a class in my university. i'm using PHP and MySQL.
i have the signup page that when submitted goes to a auxiliary php page that goes through a number of conditions and i'f the form failed in one of the conditions i wanted to return to the signup page that also appeared a line detai... | stackexchange/codereview |
On my web.xml I have a "springmvc" servlet declaration (which has a corresponding springmvc-servlet.xml)
<servlet>
<servlet-name>springmvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>springmvc</servlet-name>
... | stackexchange/codereview |
just have found strange problem in ie7 rendering (may be for previous versions else).
If I have input inside td it create cell with height more then other browsers (ff, ie8, chrome).
All margins are reset, paddings removed, cellcpacing to zeroes. The only possibly way to make them equivalent
that I have found is specif... | stackexchange/codereview |
I have a layout with a spinner and a lot of textboxes and buttons.
I need to make appear some elements of the layout when one of the options of the spinner is selected and to make disappear when other is selected. ----> PROBLEM SOLVED!!!
But also, I need to deactivate some elements of the layout. I mean that they have ... | stackexchange/codereview |
I'm currently using the Zend Framework YouTube PHP Api but under high load Zend just doesn't perform that well. Even when implementing caching each Youtube Video object is about 23kb compressed. I'd rather switch to another implementation of the API. Are there any other maintained implementations? I've searched but it'... | stackexchange/codereview |
What is "GridInterceptingMessageHandler"? I did a search and I can find no mention of this on nservicebus.com. Also, I see the samples have the line:
.LoadMessageHandlers(First<GridInterceptingMessageHandler>.Then<SagaMessageHandler>())
What does that do exactly?
| stackexchange/codereview |
I am new to VB.Net 2008. I have a tricky task to resolve, it is regarding extracting characters (values) from a long string, the extracted values from the text shall be summed up and sorted by keywords, reformatted and saved into a CSV file.
It looks something like this but much longer :
UNH+RAM6957'COMPANY1BY500C10'ZE... | stackexchange/codereview |
I want to watch any changes to a file xyz.txt and email me the entire file whenever there is a change. Is there One Liner (or a few lines shell script) for this?
Update:
# Check if my.cnf has been changed in the last 24 hours
# if yes, as in the following case, simply send the file
# if it has not been changed in the l... | stackexchange/codereview |
I get the following error message in admin/user/user:
Unable to send e-mail. Please contact the site administrator if the problem persists.
Is this error caused by the fact I haven't an email service installed on my server?
thanks
Update: I now get the following error.
Error sending e-mail (from "Website Name" to e... | stackexchange/codereview |
I attach a debugger by passing '-d' as a command line parameter to my console app. That causes the following code to be called;
bool attachedDebugger = false;
try
{
attachedDebugger = System.Diagnostics.Debugger.Launch();
}
catch (Exception) { }
finally
{
Console.WriteLine(attachedDebugger ? "Debugger Attached" :... | stackexchange/codereview |
I have an identical site running on two different servers, and for some reason I am presented with the following error message on one of the servers when I either login or logout of the CMS on the site.
PHPTAL Exception
No template file specified
In /usr/share/pear/PHPTAL.php line 1138
#0 /usr/share/pear/PHPTAL.php(... | stackexchange/codereview |
my problem is "simple" , i have a div with a onmouseout property with an alert("1"), that div have 2 images inside, everytime i select a image that alert show up.
example.
<div onmouseout="alert(1)">
<img src="imgs/image1.png" onmouseover="loadimg(this)" id=image1>
<img src="imgs/image2.png" onmouseover="loadimg(thi... | stackexchange/codereview |
hey i am using solr search in my mvc.net application. Now i am doing free search on it but i want this search on specific field.
i.e. - - - i have various field like name, age, email, interest, profile
as i enter some text in search(free search) field i want that it searched only email field on indexed xml. how can i ... | stackexchange/codereview |
Hello i am trying to make a TCP client/server that i want these things.
The client will give the filename or the path of filename of a file.
The server will find that file and give these details:
permissions,size,owner,group of owner,date modified/created,number of words,id and priority of user and send these to clien... | stackexchange/codereview |
To use it on a web page...
| stackexchange/codereview |
I have an XML format I need to parse. An example file is listed below:
<?xml version="1.0" encoding="UTF-8">
<root>
<parent name="example1">
<childdef ref="1" type="a" />
<childdef ref="3" type="c" />
</parent>
<parent name="example2">
<childdef ref="1" type="b" />
<childdef ref="2" type="b" />
</p... | stackexchange/codereview |
Is there an way I can use a regex to redirect (301) URLs int he .htacces in a way that domain.com/My_Name.html will be redirected to domain.com/my-name ?
Need to replace all _ with -, lower case the chars and subtract the ".html"
EDIT:
I need to replace all _ chars, no matter how many of them are in the URL.
| stackexchange/codereview |
trying to create a button that will goto the next option in a selectmenu that has $selectmenu assigned to it.
$('option:selected', 'select').removeAttr('selected').next('option').attr('selected', 'selected');
works on a standard HTML select menu but not when it has the jquery $selectmenu assigned to it.
$('select#tool... | stackexchange/codereview |
I'm using Django 1.2 and django-mssql.
While performing the following
for unicorn in Unicorn.objects.all():
print unicorn.color
I'm getting the following error at around the 100th iteration:
com_error: (-2147352567, 'Exception occurred.', (0, u'Microsoft SQL Server Nativ
e Client 10.0', u'The object is in a zom... | stackexchange/codereview |
I know how to add new methods to every object - by augmenting the Object's prototype:
Object.prototype.foo = function() { };
But, is it possible to define new methods for DOM element nodes only? Do DOM element node objects have a prototype? Or is there maybe a prototype for DOM nodes in general?
Or do prototype ... | stackexchange/codereview |
I do not understand why but sometimes when I use .post() function the data are posted more than one time how can I control and stop this think? Thanks in advance.
best regards
That's my code:
case "mod" :
$.post("./php/"+eti[indice]+".php",
{azione: "carica", contratto:contratto},
... | stackexchange/codereview |
How can you change the size of a form field?
For example, see the following code:
class MyModelAdmin(admin.ModelAdmin):
def formfield_for_dbfield(self, db_field, **kwargs):
field = super(ContentAdmin, delf).formfield_for_dbfield(db_field, **kwargs)
if db_field.name == 'somefield':
field.widget.attrs['cl... | stackexchange/codereview |
I've played around with some different implementations of Model-View-ViewModel and consistently come across a situation where I am not sure of the correct way to proceed. I know one of the goals of MVVM is to decouple the View from the application logic so that the logic can be tested without the presence of a View. Pu... | stackexchange/codereview |
In WCF 4.0, How can I commit 3 different service operation as a single Transaction? (Commit in SOA)
I have 3 different WCF service like below, Each service method invokes DB operation
service1.CreateEmployee();
service2.SendSetupRequestForEmployee();
service3.GiveOfficePermissionToEmployee();
Even if one operatio... | stackexchange/codereview |
I just set up Apache Tiles 2 in my Spring MVC 3 application.
I created my template :
<definition name="baseLayout" template="/WEB-INF/jsp/baseLayout.jsp">
<put-attribute name="title" value="Template"/>
<put-attribute name="header" value="/WEB-INF/jsp/header.jsp"/>
<put-attribute name="menu" value=... | stackexchange/codereview |
I Would like to get these values following to make a datetime with 10 minutes in advance. And then return the new date time in this format: yyyy/mm/dd/HH/MM
int yyyy = 2010;
int month = 11;
int day = 18;
int hour = 12;
int minute = 10;
Datetime?
| stackexchange/codereview |
here I have stupid question, hope you can help me.
I create a menu using Select element and option like this:
<option selected="selected">Select type...</option>
<option value="1">Doctor</option>
<option value="2">Patient</option>
and every time I need to pick one value from this menu and use the submit button next to... | stackexchange/codereview |
I am using IFrame in my ASP.NET pages. For the page that I am referencing in my IFrame, I have a gridview (I also have CommandField that referencing another asp.net page) and paging enabled.
I wanted to display a new page (outside of Iframe) when a user clicks on the commandfield in the gridview. In order to do that ... | stackexchange/codereview |
I'm currently trying to parse a document with DOMDocument, and I'm having some serious problems. I created a script that runs fine on php 5.2.9, ripping out content using DOMNode::nodeValue. The same script fails to get any content on php 5.3.3 - even though it correctly navigates to the proper nodes to extract content... | stackexchange/codereview |
Possible Duplicates:
Why can't I set a nullable int to null in a ternary if statement?
Nullable types and the ternary operator. Why won't this work?
Whats wrong with the below
public double? Progress { get; set; }
Progress = null; // works
Progress = 1; // works
Progress = (1 == 2) ? 0.0 : null; // fails
Type of c... | stackexchange/codereview |
Reasonably new to MVC. My problem is that I have a controller that has 3 different ActionResult's which are called depending on an enum.
All three action results return the same view but with different lists as the views model. In the view the user should be able to click on an item in the list and view the details ba... | stackexchange/codereview |
I am new to OOP and hence, am looking for suggestions on good practice for coding something where the following issue arises.
I am defining a Seller(a, b, c, d) class. There are many attributes of this class, two of which are, mostRecentProfit and profitHistory. However, values of these two are not known when the class... | stackexchange/codereview |
Possible Duplicate:
Set up Python on Windows to not type python in cmd
When I use python on Linux, or even Mac OS from command line, I take advantage of the shebang and run some of my scripts directly, like so: ./myScript.py. I do need to give this script executable permissions, but that is all.
Now, I just installe... | stackexchange/codereview |
I made this function and need some help sorting out the logic flow. It works... to some degree and just need help weeding out the bugs.
My HTML:
<span style="float: left;"><input type="checkbox" id="top" name="position" value="top" /> Top </span>
<span style="float: left;"><input type="checkbox" id="bot... | stackexchange/codereview |
I know I can read the file /proc/$PID/maps, but I was wondering if there is an API to get process memory mappings.
| stackexchange/codereview |
This query in the form-Data-Record Source is working fine, returning exact values that i want
SELECT tblRevRelLog_Detail.RevRelTrackingNumber, tblRevRelLog_Detail.PartNumber, tblRevRelLog_Detail.ChangeLevel, tblRevRelLog_Detail.Version, tblRevRelLog_Detail.JobPnType, tblRevRelLog_Detail.EdsName, tblRevRelLog_Detail.De... | stackexchange/codereview |
From an end user perspective: Could I enter a passcode in the general settings for one iPhone, and then access the general settings for that iphone using my own iphone (along with entering a passcode)?
| stackexchange/codereview |
In porting some working unit tests from Linux to Windows I'm running across a strange problem. It appears that when my tests go to shutdown the server socket, shutdown() returns -1, but WSAGetLastError() returns 0 (and getsockopt( with SO_ERROR ) returns 0, and GetLastError() returns 0 )... So, shutdown() tells me ther... | stackexchange/codereview |
I'm currently learning about jsf 2.0 from core jsf 2.0 book + glassfish + cdi.
I would like to ask a question about handling validations that are not defined in the jsf pages or managed/named beans with bean-validation-framework.
I got these tiers in my head :
1) ui tier / jsf pages
1.5) jsf managed / named beans (i u... | stackexchange/codereview |
I use some custom attributes in my html, for jquery stuff. I saw there are data-XYZ attributes in HTML5, but I need to be xhtml 1.0 strict. What other options do I have?
| stackexchange/codereview |
I'm trying to make a screen recording app. Is there a way to use DirectX to capture the entire screen and store it as a texture? This would be in WDM. I know there's a way to get the texture for windows, but what about the entire screen.
I've tried the GDI method of using getDC(null) but that's rather slow for my uses... | stackexchange/codereview |
I recheck my code many times and I use something similar on another website where it is working.
Here is the link to the site:
http://bit.ly/34XhDb
//add hover intent to dropdown
jQuery(document).ready(function(){
var config = {
sensitivity: 3, // number = sensitivity threshold (must be 1 or higher)
interval: 100, ... | stackexchange/codereview |
I wanna detect the version of installed Visual Basic Power Packs in target system.
How can I do it with Registry values (Windows from Win XP)?
Or, How can I check the version of Visual Basic Power Packs assembly , e.g : how I can check the version of Microsoft.VisualBasic.PowerPacks assembly ?
| stackexchange/codereview |
What am I doing wrong?
I am trying to getNSDateFormatter to translate custom patterns for dates using the current locale.
Example:
dateFormat = [[NSDateFormatter alloc] init];
dateFormat.locale = [NSLocale currentLocale];
[dateFormat setDateFormat:@"MMM"];
output = [self.dateFormat stringFromDate:da... | stackexchange/codereview |
I'm trying to come up with a simple way of organizing some objects, in terms of what classes to create. Let's say I'm trying to keep track of books. A book can fall under a number of different genres and subgenres. I want to be able to recognize a book as one book and yet have it fall under these different categorie... | stackexchange/codereview |
i have written an Java Applet, which is loaded in HTML and its function is called through javascript.
The Applet ist loaded with this html-Code:
<applet id="xapplet" code="xapplet" archive="java/xApplet.jar" height="0" width="0"></applet>
In the applet is a function, which returns an ArrayList.
public ArrayList<String... | stackexchange/codereview |
I have a page(page_1.php) which has below code..
<?php
session_start();
error_reporting(1);
$_SESSION['CHECK']='Test...';
?>
and my other page is containing (page_2.php)
<?php
session_start();
error_reporting(1);
echo $_SESSION['CHECK'];
?>
But i am not getting session result
.I am getting blank screen.What i... | stackexchange/codereview |
I have a mobile web site and a mobile app for Android that can load this web site in a webview. I'd like to set the HTTP 'referer' request header from the Android app so that I track what Android app users do.
I there any way to set the HTTP request headers before calling loadURL() in WebView ?
EDIT:
It turns out in... | stackexchange/codereview |
all forms are showing.. I want just that #google-search to be active on page load. Thank you
$(".header-search-input").keyup(function() {
$(".header-search-input").val($(this).val());
});
var $searchByLinks = $("#search-by > a");
$searchByLinks.click(function() {
var $el = $(this)
$(".header-search... | stackexchange/codereview |
I'm pulling my hair out over this MSBuild issue.
We're using TeamCity to build a solution with two MVC websites in it. As part of the build we're deploying to a folder on the build server. IIS points to this folder to give us an integration build visible to management.
Here's the code from the MSBuild file that uses MS... | stackexchange/codereview |
I have two MySQL tables A and B. Table A has a member ref which is a ForeignKey reference to B.id. This makes for a 1:many association between B and A.
This has been in production for a few weeks, but I'm now adding more features to my code and have realized I got my original mapping wrong. I needed a many:1 relationsh... | stackexchange/codereview |
I've been looking all over the web and I can't find a solution. I am very new to jQuery as well.
My case:
I have a nav bar, each link in it activates/triggers a megamenu (each link has its own megamenu).
What I need:
I need a way to have each link activate its own megamenu, the megamenu should close when:
The user cli... | stackexchange/codereview |
I need to delete a lot of records at once and I need to do so based on a condition in another model that is related by a "belongs_to" relationship. I know I can loop through each checking for the condition, but this takes forever with my large record set because for each "belongs_to" it makes a separate query.
Here is... | stackexchange/codereview |
I am a beginner and I have two question.
Why does the video in the attached code is not running (get a message from the emulator that the application cannot run the video).
Can anyone please help me to understand how should I implement the onTouchEvent in order to capture a touch on the screen (don't care where on the... | stackexchange/codereview |
I was trying to be witty and use a VirtualPathProvider to find localized views. It takes the requested view path and modifies it when checking after the file. It returns a localized virtual file if found:
public pseudoclass MyFileProvider : VirtualPathProvider
{
bool FileExists(string requestedPath)
{
... | stackexchange/codereview |
With the help of this http://msdn.microsoft.com/en-us/library/ff742315.aspx I tried doing an conversion from docx to pdf on sharepoint ...
1) I created a cs file on the sharepoint server ...
2) I compiled with a a bat file to a console exe
3) The exe runs but gives an exception System.NullReferenceException: Object re... | stackexchange/codereview |
I am a beginner to Spring and I have to do a project for school. What kind of project can I do which I can use Spring Batch and Integration. I know that I can write files into directories, write, read and modify comma separated files but I can`t picture a scenario which I can combine these technologies.
| stackexchange/codereview |
Myself shweta dodiya.I am facing problem with nokia N97 related to change orientation for my game application.
I am using J2me technology.I want to pause my application when i open my slider.
Thanks in advance
| stackexchange/codereview |
So I am new to programming and working in C# and learning MVC. I have finally undertaken my first personal project to put to practice what I have been learning from the books/tutorials I have been following. My project is your typical store that list products, has a shopping cart, user account, admin site...etc.
I ... | stackexchange/codereview |
I'm making a banking model, and an Account class has an accountNumber field. The account number should never change, but I cannot set the field as final because this will prevent the constructor from setting it.
If it's not possible to do this, it doesn't matter. It's just for a CS assignment so I want to make sure I'm... | stackexchange/codereview |
i have no compilation errors, but it crashes on run-time,
that's my relevant code, first it's structs:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct Gas_Station *pgasStationHead = NULL;
typedef struct Gas_Station {
char *name;
double octan95SS;
double octan95FS;
double octan98SS;
double oc... | stackexchange/codereview |
Here's an example easyb scenario from the easyb website:
before "start selenium", {
given "selenium is up and running", {
selenium = new DefaultSelenium("localhost",
4444, "*firefox", "http://acme.racing.net/greport")
selenium.start()
}
}
scenario "a valid person has been entered", {
when "filling out the ... | stackexchange/codereview |
I would like to add a chat feature to my application, which runs on both iphone and android platform.
Do you have any idea on how to make this ?
I have seen that tutorial : http://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/, but I don't know if it will work using the android NDK
I have also think about... | stackexchange/codereview |
Is there any bad effect if there is context switch between thread.start and thread.join?
if a thread finish executing before join, what will happen?
| stackexchange/codereview |
if i remember correctly, when dos loads a programm, the programm gets to use all of the processor, i.e. dos doesn't do anything in the meantime, but somehow that doesnt figure for me, i.e. api calls still have to be evaluated. are the api calls hard coded into the programm when an asm file is assembled and linked? the ... | stackexchange/codereview |
I have successfully setup an iFrame based App using the Javascript SDK, and we are trying to enable it on a Page Tab.
It seems Facebook has changed some things lately, because the app breaks when added to the Page Tab. I even went as far as making sure that all external scripts were included in the main index.php file,... | stackexchange/codereview |
I want to open a file that is somewhere deep in my project tree. I know the name of the file, however I don't want to go searching the tree for it. I would like a way to enter just the file name, and have emacs search for me. I should also be able to enter the base directory I want to start the search from, and emac... | stackexchange/codereview |
I've added a custom order attribute and updated the onepage checkout page.
Now I'm trying to add this attribute to the new order form in the admin.
I'm trying to extend Mage_Adminhtml_Block_Sales_Order_Create_Form_Account and add a new field in the _prepareForm() method similar to the way the Group and Email fields are... | stackexchange/codereview |
Trying to understand from a high-level how this would be accomplished.
Use case:
Flash application embedded in HTML used to create Certificates (just an example).
User enters a bunch of data into a form (Name, Address, What certificate is for, etc.).
User clicks a button which causes the application to create a Certif... | stackexchange/codereview |
I currently use this way to center divs using a table and CSS:
<table width="69" border="0" align="center">
<tr>
<td width="59">
<div style="position:relative;">
<div style="position:absolute; text-align:left; top: 100px;">div2 content goes here</div>
<div style="position:absolute;text-align... | stackexchange/codereview |
I am working on a legacy rails codebase and need to implement some ACL logic that is not based around standard CRUD operations on objects, but instead around custom logic about what parts of a page are shown to different groups of users. These page "parts" are not defined by any objects in the database, so my guess is... | stackexchange/codereview |
I want to make a dummy progress dialog appear for 2 or 3 seconds. It won't actually do anything other than say detecting. I have the code:
ProgressDialog dialog = ProgressDialog.show(this, "", "Detecting...",
true);
dialog.show();
dialog.dismiss();
But what do I put in between the show, and ... | stackexchange/codereview |
I am developing initscripts for some of our software, and am having difficulty deciding how I should use it for a particular piece.
We have homegrown software responsible for passing data around out network, it's built on a standard pubsub model. There is a publisher process (two, actually, for two different use cases)... | stackexchange/codereview |
This doesn't work:
if(document.getElementById("iframe").innerHTML==''){
Is there a safe browser reliable way to check an iframe if its empty or not?
Thanks
| stackexchange/codereview |
Sometimes when I am debugging I get message like this.
Program received signal SIG44, Real-time event 44.
What does it means?
Thank you.
EDIT :
Platform is linux
| stackexchange/codereview |
I have a requirement where I need to play an audio file in receiver mode(earpiece).I am not sure whether higher versions of Android SDK supports this receiver mode.I went through some links which said about 1.5/1.6 having changes in these Audio APIs and hence not sure. :(
Can someone please help?
Thanks.
| stackexchange/codereview |
I read all the questions suggested while posing, but I just ended up getting confused :S I made a few changes and committed and pushed them. But later I came to know that the repository was pushed to, before I pushed to it. So My questions are:
Q1. Did my pushing overwrite the repository, i.e does the repository no lon... | stackexchange/codereview |
Possible Duplicate:
What is the difference between _tmain() and main() in C++?
OK, I have not clue of what is the problem here.
I am trying to read some file names by using the argv in C++ but for some reason only the first character of the file name gets passed.
I show you some part of the code.
int _tmain(int arg... | stackexchange/codereview |
My requirement is, i have a checkedlistbox, and i want the selected item should be inserted into the gridview using javascript, in grid i want only two columns i.e. selected item text and another is checkbox.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.