instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am using cakephp ACL component to make site secure but the problem is when i am trying to deny a particular action for eg.cake acl deny Group.3 Notes 'delete' , it denies all the action of the controller for that group.The aros_acos table is as follows----
id aro_id aco_id _create _read _update _delete
1 1 ... | stackexchange/codereview |
In c#/wpf I added a progressbar and mediaelement to my window. The idea was that progressbar is displaying how much is been played in the mediaelement.
I tried it with the following xaml:
<Window x:Class="TestApp.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schem... | stackexchange/codereview |
I upgraded to RoR 3.0.1 and Ruby to 1.9.2. Now all the strings in my views are ASCII-8BIT?
I believe I have my app set up to use UTF 8
application.rb
config.encoding = "utf-8"
database.yml
development:
adapter: mysql
encoding: utf8
I'm running
OS X
RVM rvm 1.0.16
Ruby ruby-1.9.2-p0
Rails 3.0.1
I'd expect that... | stackexchange/codereview |
I need to change only xoffset of my textfield on a particular event . I am writing the following line .
fileNametext.frame.origin.x = 300.0;
But I am getting the following error .
error: lvalue required as left operand of assignment
Can somebody please help me ? Thanks in advance .
| stackexchange/codereview |
How would you structure a large project with most of the business logic already inside stored procedures?
Here is a little bit of background :
We are moving from classic ASP to ASP.NET (VB) and pretty much all the business logic is inside stored procedures.
Getting the logic out of there is pretty much impossible since... | stackexchange/codereview |
I will need to handle a piano key that can respond as fast as possible without high CPU load with repetitive key press and release on virtual piano in Flex application.
Is calling function much effective or Switch?
Example:
switch(keyNote)
case 'c4': keypress.button=down;
case 'c4': keypress.button=down;
case 'c4': ke... | stackexchange/codereview |
SVG images aren’t bitmaps, so (unless I’m missing something) you can’t do spriting like you can with other images files used on web pages (see http://www.alistapart.com/articles/sprites).
But is there an equivalent mechanism to display only part of an SVG image as a CSS background?
E.g. imaginary syntax:
div.my-special... | stackexchange/codereview |
Here's an example:
import org.scala_tools.time.Imports._
...
val dt1 : DateTime = new DateTime ("2010-09-01T12:00Z")
val dt2 : DateTime = new DateTime ("2010-10-01T12:10Z")
println (dt1 < dt2) // This is the Main.scala:48 line mentioned in the stack trace below
...
If I compile and run it, I get
java.lang.NoClass... | stackexchange/codereview |
I create a Sample to test jqgrid.
GetDataService.asmx:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Web.Script.Services;
using System.Web.Sc... | stackexchange/codereview |
Using the Entity Data Framework, I have a model defined called Client which simply contains an id and a name. I then have an association with another model called Appointment containing an id and a date.
For the form, I wish to allow users to create a new client and on the same form, add appointments (before the client... | stackexchange/codereview |
I just need clarification about something.
I am currently job hunting - I put my CV on Monster on Monday and have had about 8 agencies phone up about jobs they have available. One of them said that he notices VB.Net is on my CV but asked if I know ASP.Net. I replied that ASP.Net encompasses both VB.Net and C#.Net - as ... | stackexchange/codereview |
I use (global-hl-line-mode) to enable hl-line-mode, But i want to use
it in certain mode like cc-mode, so i add this line to mode-hook,
(setq hl-line-mode t), it doesn't work, i enable hl-line-mode use
M-x, it shows disabled, which means at first, it's really enabled, but
i can't see any highlight.
Same problem oc... | stackexchange/codereview |
I am trying to upload an image,create thumbnail but i get an error.
Here is my controller.
<?php
class Upload extends Controller {
function Upload()
{
parent::Controller();
$this->load->helper(array('form','url','file'));
}
function index()
{
$this->load->view('upload_fo... | stackexchange/codereview |
how can i get variable in class which is override multiprocessing in python:
#!/usr/bin/env python
import multiprocessing
import os
class TestMultiprocess(multiprocessing.Process):
def __init__(self):
multiprocessing.Process.__init__(self)
self.myvar = ''
def myfunc(self):
return os.g... | stackexchange/codereview |
Why RWTime is giving 1 hour more
#include <rw/rwtime.h>
#include <rw/rwdate.h>
#include <rw/rstream.h>
main(){
RWTime t; // Current time
RWTime d(RWTime::beginDST(1990, RWZone::local()));
cout << "Current time: " << RWDate(t) << " " << t <<
endl;
cout << "Start of DST, 1990: " << RWDate... | stackexchange/codereview |
I am using Eclipse IDE for Java Developers Helios. I have mainly done desktop applications before but now I would like to learn about Servlets. I have installed Jetty on my computer. And I wrote a simple Servlet in Java using Eclipse. But how do I compile it and export it to a war file in Eclipse? I have found some tut... | stackexchange/codereview |
As the title reads, I'm looking for open source alternatives to balsamiq mockup for prototyping. Anyone knows of an equally good alternative that's open source or basically freeware.
| stackexchange/codereview |
How do I prevent it from coming to the front. Flowplayer doesn't behave this way...
| stackexchange/codereview |
Just curious: Why is the syntax for try catch in C# (Java also?) hard coded for multiple statements? Why doesn't the language allow:
int i;
string s = DateTime.Now.Seconds % 2 == 1 ? "1" : "not 1";
try
i = int.Parse(s);
catch
i = 0;
The example is for trivial purposes only. I know there's int.TryParse.
| stackexchange/codereview |
Saw several similar questions here, but none of them seemed to quite be my issue...
I understand (or thought I understood) the concept of closure, and understand what would cause Resharper to complain about access to a modified closure, but in the below code I don't understand how I'm breaching closure.
Because prim... | stackexchange/codereview |
I'm learning how to use the jQuery validation plug-in.
What'd I'd like to do is only show an ICON (css bkg) if the field is valid or in error.
Right now the plugin requires me to add text, but I don't want any...
Ideas?
Code Below:
/* Sign In Form Validation */
$(document).ready(function() {
// validate signup for... | stackexchange/codereview |
I've written an application for the iPad that I'd now like to get working on the iPhone (a universal application).
At the moment it runs in the iPhone simulator, but the UIKit elements are positioned using pixel positions - so a lot of them are offscreen. Additionally my UIImages are too big, and need to be scaled to f... | stackexchange/codereview |
The x-height is a font metric, that is given in terms of the em-height,
and is approximately 0.48 of an em, but this depends on the font...
In CSS these two units are available, I am interested in the ex unit. There is also an em unit, such that the ex unit is given in terms of it.
The following table shows some metric... | stackexchange/codereview |
I am using Anythingslider in one of my projects, and I want to display more than one image in the panel, the same way jCarousel does. I googled around and found nothing that can help. I appreciate any help ( code snippet or idea ). thanks
http://css-tricks.com/anythingslider-jquery-plugin/ AnythingSlider
| stackexchange/codereview |
i have try some command like system(reboot) exec(reboot)
and system("/ect/init.d/networking restart");
but not happen something
how can i do?
| stackexchange/codereview |
Can someone please help me. I understand the equation of a line and how to solve for the zero intercept on paper, but I have trouble converting it to code. More specifically, I need to calculate the point at which a line intercepts any given X or Y coordinate with two different functions...
double CalcLineYIntercept(LI... | stackexchange/codereview |
Ruby 1.9.2, RoR 3.0.1. When I run 'rspec spec' I get this error. Can't really make sense of it.
connor@connor-desktop:~/rubystore$ rspec spec
/usr/local/lib/ruby/gems/1.9.1/gems/rspec-core-2.0.1/lib/rspec/core/backward_compatibility.rb:20:in `const_missing': uninitialized constant Admins (NameError)
from /usr/local/li... | stackexchange/codereview |
I have 4 PCs which are connected through the LAN. I am making a PHP program that will
differentiate each PC separately and i will keep each pc record.
But when i am getting an IP address i am getting same IP for all. I guess i should retrieve MAC address for all pcs separately, but i don't know how will i fetch MAC a... | stackexchange/codereview |
using replication in sql srv causes the addition of this guid field, it also adds a value to it
but when i insert new records to the db, i have to give somthing or the guid field
it should be like aaaaa-aaa-something and unique!!
this is a problem for me , how am i supposed to do this keeping it unique every time?
sho... | stackexchange/codereview |
I am fairly new to coding in php and have come accross a bit of a problem which I think is very simple. I am trying to capture the IP address of anybody that visits my website and stores that in my database. The code is as follows, I am not even sure the code will work but I do get the following error Parse error: synt... | stackexchange/codereview |
Hey all, I am wondering how to set variables to the output of the following query string:
SELECT count(*) fees_quantity,
1.5 fees_price,
1.5 * count(*) fees_amount,
round(SUM((CONVERT(int,Points) * .1)),0)) redep_amount,
round(SUM((CONVERT(int,Points) * .1)),0)) + 1.5 * count(*) total_amount
FROM tblHGP HGP... | stackexchange/codereview |
I am writing a sinatra app with haml and sass. When I try to link in the stylesheet with a scss extension located in my views folder I get the following error: NoMethodError at /nav.css undefined method `scss'
Here is my get method
get '/nav.css' do
content_type 'text/css', :charset => 'utf-8'
scss :nav
end
... | stackexchange/codereview |
I currently have the following menu:
<Menu Grid.Row="1" Margin="3" Background="Transparent">
<MenuItem Name="mnuFile" Header="File" Background="#28FFAE04" Foreground="#FFFED528">
<MenuItem Name="mnuSettings" Header="Settings" Background="#28FFAE04" Foreground="#FFFED528" />
<Menu... | stackexchange/codereview |
I have tried:
<!--...-->
<script type="text/javascript">
var myVar = "some string";
</script>
<!--...-->
<input name="&{myVar};" ... />
<!--...-->
But using FireFox, the name is set to the literal string: "&{myVar};" instead of the value of myVar...
UDPATE: I see this called JavaScript Entities and hasn't been suppo... | stackexchange/codereview |
I have one link button with a click event. When Clicked I want to change its click event handler to call another method. I am using this :
$('#' + test).bind('click', function () { return LikeComment(test, CommentsWrapper, activityID, textAreaID, btnAddCommentID, addCommentBox, textUnLike, textLike, likeWrapperID); });... | stackexchange/codereview |
I'm trying to get values from xml, and I have problem with empty value. I'm using this query to get all not empty values from Attribute "RODZ", and this code works, but it return me empty values too :/
XDocument loaded = XDocument.Load(@"c:\TERC.xml");
var q = (from c in loaded.Descendants("catalog")
... | stackexchange/codereview |
I'm trying to import a large dataset into Google Fusion Tables using the csv-import function. The data contains Danish æ-ø-å characters. The original encoding of the data seems to be ANSI (or "windows-1252"). Data uploadet in that encoding is not displayed correctly. I've tried to reencode the various strings in most o... | stackexchange/codereview |
sorry this may be a simple question
i want to call a bpl and get the value of a string inside the pakage
where and how can i declare a constant(or variable) and how to call it by a delphi exe
| stackexchange/codereview |
i have written a daemon to fetch some stuff from mysql and make some curl requests based on the info from mysql. since i'm fluent in php i've written this daemon in php using System_Daemon from pear.
this works fine but i'm curious about the best approach for connecting to mysql. feels weird to create a new mysql conn... | stackexchange/codereview |
I implemented a TOC into my report as described in the official Jasper Report examples.
It works well within the limitations mentioned in the example:
This operation has apparently only one inconvenience. The final document does not reflect the
modification in the order of pages. You can see that in our sample, the ... | stackexchange/codereview |
This is my SLSB:
@Stateless
public class MyService {
PersistenceContext(unitName = "abc")
EntityManager em;
public boolean exists(int id) {
return this.em.find(Employee.class, id) != null;
}
}
This is my persistence.xml (I'm using Glassfish v3):
<persistence>
<persistence-unit name="abc">
<provider>o... | stackexchange/codereview |
I'm going to put a new application I created the last few weeks in production.
Is there a hosting company that is best for Symfony or doesn't that matter at all?
Or are there hosting companies you recommend or don't recommend in my case?
It's a very small application written in php (Symfony 1.4) and a db mysql with php... | stackexchange/codereview |
Ok lets say I have div with form elements inside of it. I want to be able to clone that div with a button click using jQuery and add a version 2 of the form, so ALL of the element IDs will increment by 1 in their name.
<div id="card">
<!-- PART 1 -->
<h1 class="card_build">Build your card options:</h1>
<... | stackexchange/codereview |
I must admit, that usually I haven't bothered switching between the Debug and Release configurations in my program, and I have usually opted to go for the Debug configuration, even when the programs are actually deployed at the customers place.
As far as I know, the only difference between these configurations if you d... | stackexchange/codereview |
I have a line of coldfusion code that includes an cfm file encoded with the utf-8 charset and saves it to a variable. The problem I am having is that there is no way to specify a charset in cfinclude and the resulting variable does not seem to be reading utf-8 correctly so any non ascii characters are rendered incorre... | stackexchange/codereview |
I have a login page using j_security_check and I need to redirect to different pages depending on the user's privileges. For example, user A has to be redirected to page1 and user B to page2.
How can I do this using j_security_check?
| stackexchange/codereview |
I'm trying to update a price list from one workbook to another except I don't want to send the Customer the macros from the Master Price List...
The Master will eventually have one tab for each vendor.
The Master Copy is will be sent to the customer without the macros..
Here's my code as of now..
I keep getting an ... | stackexchange/codereview |
I use Tiles 2 in my web application, and the basic setup I've got in my tiles.xml file is this:
<tiles-definitions>
<definition name="mainLayout" template="/jsp/layout.jsp">
<put-attribute name="header" value=""/>
<put-attribute name="menu" value="/jsp/defaultMenu.jsp" />
<put-attribute name... | stackexchange/codereview |
How can I programmatically click the browser's Back button from within my Flex application.
I'm using deep linking to allow the user to navigate back/forth inside my application. I want this to work when BACKSPACE is clicked inside the application as well, but Flex captures BACKSPACE and the browser doesn't get the eve... | stackexchange/codereview |
I have tried to compile some pixel shader examples.
But all of them give the same error message.
"Cannot mix shader model 3.0 with earlier shader models. If either the vertex shader or pixel shader is compiled as 3.0, they must both be."
The problem seems to be that the pixel shader uses ps_3_0 and sprite batch has ear... | stackexchange/codereview |
I have 2 classes which have many to many relationship. I take the 'Question' and 'Tag' as an example to make the case more understandable.
For each question, you have several tags. The same as for tag.
What I would like to do is to get all questions (and their corresponding tags) if the question contain a tag says ... | stackexchange/codereview |
I'm trying to run unit tests on my Android app and I'm getting a NoClassDefFoundError when referencing 3rd party jars.
The classes in those jars are only referenced by the app itself, not the unit tests. The jars are on the apps classpath and have been exported in the eclipse settings to allow tyhem to be found by depe... | stackexchange/codereview |
I am retrieving data from my SQL database...
data exactly as it is in the DB = (21:48:26) <username> some text here. is it ok?
when i try and echo $row['log']."<br>";
it displays it as = (21:48:26) some text here. is it ok?
i assume this is due to the <> brackets making it think its an HTML opener... would this be the ... | stackexchange/codereview |
I have already asked a question but I wanted to ask it in another way with another question. Is that possible call a method 10 times in asynchronous mode without specifying a return value. I am doing everything in a single page. I do not need to visit any other page. I have got a set of operation, each operation should... | stackexchange/codereview |
I’m writing a web service (and client) in Java by using Axis2. In one of the web methods I want to throw an exception and in the client side I am going to catch this exception. Unfortunately it seems like this is not an easy task to do with Axis2.
Does anybody have an idea about how to do it in Axis2?
| stackexchange/codereview |
Firstly, I've asked this question elsewhere, but meta.stackoverflow.com seems to think that asking the same questions elsewhere is fine, so here goes. I'll update both if/when I get an answer.
I'm doing a lot of conversion between simple types and I wanted to handle it as nicely as possible. What I thought would be nic... | stackexchange/codereview |
I'm trying to print the values in a struct timeval variable as follows:
int main()
{
struct timeval *cur;
do_gettimeofday(cur);
printf("Here is the time of day: %ld %ld", cur.tv_sec, cur.tv_usec);
return 0;
}
I keep getting this error:
request for member 'tv_sec' in something not a st... | stackexchange/codereview |
Here's a very easy question for someone :)
Trying to update an SQL column with the following:
UPDATE [NameOfTable]
SET [HtmlContent] = 'a href="/sell-your-boat/"'
WHERE HtmlID = 123456
But am getting the following error message: Incorrect syntax near '/'.
I know it's because I need to escape the / character ... | stackexchange/codereview |
I need to replace & with \& when & is not at the end of the line and it is not preceded by \. I can successfully find & when it is not preceded by \, but I can not exclude those that are at the end of the line.
line 1 &
line 2
line 3 another &
line 4 & is at the middle
In above four lines, I only want to replace & wit... | stackexchange/codereview |
I'm using xmlrpc-c as XMLRPC Client for my C project,
my question is how can I pass following parameters to my Remote Procedure Call ?
string1, int1, string2, int2, struct (name : age), string3
Here is the cmdline tool of xmlrpc command
xmlrpc http://www.oreillynet.com/meerkat/xml-rpc/server.php
meerkat.getIt... | stackexchange/codereview |
I need to order a select query using a varchar column, using numerical and text order. The query will be done in a java program, using jdbc over postgresql.
If I use ORDER BY in the select clause I obtain:
1
11
2
abc
However, I need to obtain:
1
2
11
abc
The problem is that the column can also contain text.
This que... | stackexchange/codereview |
So I am trying to default to having the first row in a tableView selected when my view first loads. I am doing this my viewWillAppear method:
NSIndexPath *tempPath= [NSIndexPath indexPathForRow:0 inSection:0];
[theTable.delegate tableView:theTable didSelectRowAtIndexPath:tempPath];
Which fires the method, but the ce... | stackexchange/codereview |
I have the below query, everytime i change it i need to change the stockclientid. I would like it where i only have one where statement to apply to all the sub queries.
Is there also a way to apply the same code to return multiple rows? I would like to have the results display for all stockclientIDs rather than just 1.... | stackexchange/codereview |
I have special strings like name1="value1" name2='value2'. Values can contain whitespaces and are delimited by either single quotes or double quotes. Names never contain whitespaces. name/value pairs are separated by whitespaces.
I want to parse them into a list of name-value pairs like this
string.magic_split() => { "... | stackexchange/codereview |
When trying to install rails 3.0 on a redhat 4.0 server, the 'bundle install' fails during the installation of mysql2.
Is it possible to solve this?
'bundle install' command returns the following output:
~/rails/trial# bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0... | stackexchange/codereview |
I'm trying to write ObjectQuery with few consistent GroupJoin, it means that there should be one main table selection + few additional LEFT JOIN. I'm doing it as following, with SelectMany method, because without it I can't access field RoleID :
var routesQuery = entities.Routes.Join(
entities.Loca... | stackexchange/codereview |
I've created a custom form element that allows me to place text in an arbitrary location in my form:
<?php
class Plano_Form_Element_Note extends Zend_Form_Element_Xhtml
{
public $helper = 'formNote';
/**
* Default decorators
*
* @return void
*/
public function loadDefaultDecorators()
... | stackexchange/codereview |
We have a site and we developed a chat system for it using strophe.js library and ejabberd XMPP server. We use session attachment that was initiated with PHP (using an in-house library). What we do is get the RID and SID from the PHP script, then use strophe's session attachment. The said RID and SID is stored on a coo... | stackexchange/codereview |
I need restriction for time changes coming from different sources.
The best way, as i think, is to hook WINAPI function SetSystemTime (and maybe SetLocalTime).
I tried to hook this by using EasyHook library with injection in all running processes, owned by current system user. But it had no effect.
How can I do that?
| stackexchange/codereview |
I've been told to create a 'manifest' to achieve Reg-Free-Com between a VB6 .EXE and a .NET DLL.
What is a 'manifest' in this context?
What does it mean to 'embed' a manifest?
| stackexchange/codereview |
A question of ColdFusion ORM
We are using ColdFusion 9 for the past 6 months and while we've used some of the new features, ORM is something we've avoided because we usually work on the same very large website. Over the years we've used Apache OBJ but then we moved back to CF and used our own DAO objects generated from... | stackexchange/codereview |
does anyone know a php templating system that is very simple, something like almost as simple as str_replace("{variable}", $variable); ?
I need this for a series of textareas in the administration panel, where the site admin should change templates for various elements of the website (not complex stuff like pages etc, ... | stackexchange/codereview |
I am receiving an error message
"Recursive call to Automation Peer API is not valid"
When loading a datagrid with a datatemplatecolumn containing a combobox column. The error ends up caught in our unhandled exception code. This seems to be an issue on my machine, and google has provided no source of guidance on reso... | stackexchange/codereview |
Can anybody recommend me a tool or an approach to measure the performance of silverlight object inside of Internet Explorer object?
An approximate test scenario is
Start Timer; Open the page, Wait until the silverlight object raise an event (for ex. OnDisplayed()); Stop Timer;
OR
Start Timer; Open the page, Wait until... | stackexchange/codereview |
Let's presuppose that you have R running with root/admin privileges. What R calls do you consider harmful, apart from system() and file.*()?
This is a platform-specific question, I'm running Linux, so I'm interested in Linux-specific security leaks. I will understand if you block discussions about R, since this post ca... | stackexchange/codereview |
How does résumé upload work? I have a site in PHP and right now users can build their résumé line by line, because it is stored in db table. How can a user upload a resume in Word or other common format and have it uploaded into my db? Is it something to do with regex? Are there any scripts out there available that can... | stackexchange/codereview |
I found a code snippet on http://www.41latitude.com/post/1268734799/google-styled-maps:
[
{
featureType: "administrative",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
},{
featureType: "poi",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
},{
... | stackexchange/codereview |
I think that you have heard of message/event buses, it's the single place when all events in the system flow. Similar architectures are found in computer's motherboards and LAN networks. It's a good approach for motherboards and networks as it reduces the number of wires, but is it good for software development? We don... | stackexchange/codereview |
There's this line of code inside of some repeater's ItemDataBound event that includes e.Item.ItemIndex..Now I get it that ItemIndex is the index of the item in the list..
What's "e" and "Item" here ? Actually I do have an idea. Just want to be more clear. Could someone please tell me in simple terms ? Thanks.
| stackexchange/codereview |
Suppose I have an ELF binary that's dynamic linked, and I want to override/redirect certain library calls. I know I can do this with LD_PRELOAD, but I want a solution that's permanent in the binary, independent of the environment, and that works for setuid/setgid binaries, none of which LD_PRELOAD can achieve.
What I'd... | stackexchange/codereview |
So there's one piece of technology new to Snow Leopard that I haven't heard of. Sudden termination (see Sudden termination in this Apple doc) is apparently a mechanism for telling the system when it is OK for your application to be killed brutally instead of going through the standard quitting mechanism. This is suppos... | stackexchange/codereview |
How would I compare 2 Arrays in PHP to find which values each array have in common.
Example would be
Array 1
Array
(
[0] => ace
[1] => one
[2] => five
[3] => nine
[4] => elephant
)
Array 2
Array
(
[0] => elephant
[1] => seven
[2] => ace
[3] => jack
[4] => queen
)
Output
Array
(... | stackexchange/codereview |
Just when i thought I had everything figured out .. i got this problem.
the scenario.
I got a simple tableView. and with a search bar in navigation item's titleView. The SearchBar is added to navItems titleView via a uibarbuttonitem in view controllers toolbar.
NOW, normally
After initiating the searchbar with [begi... | stackexchange/codereview |
I ran tests in Firefox 3.6.11, if that matters, and eval misbehaves in the context of call and apply. It somehow jumps over the current 'this' object. Why?
dojo.provide("yal-js.tests.javascript");
function evaltest () {
var dis=this;
// it works now... returns 2 on call and apply
return eval("(function() {... | stackexchange/codereview |
The title essentially is the question, how do I open the .swf without the browser's control bar junk? and maximize the window?
| stackexchange/codereview |
When calling ConfigParser.read you are allowed to pass a list of strings corresponding to potential locations for configuration files and the function returns a list of those files that were successfully read.
What is the default behaviour when multiple configuration files are loaded that have overlapping sections/key... | stackexchange/codereview |
I have been experimenting with creating an Excel add in in C#. I was wondering if it is possible to programatically create a drop down list for a column where the items do not have to be in the worksheet? That is, I know it can be done using a data validation and a range of cells but I do not want the list of drop do... | stackexchange/codereview |
Assembled elders of the Cocoa-Touch, I have a question for you all about Drag & Drop on the iPad.
I am attempting to drag an item from a popover onto an underlying canvas. Employing the UIPanGestureRecognizer class I can detect a drag-start and create a UIView to drag with the finger tip. My application runs in landsc... | stackexchange/codereview |
I would like to be able to set a background on our homepage which can expand and contract with the window size whilst keeping the original images aspect ratio.... I'm guessing this will need some clever Javascript or similar.
The effect has been implemented here whereby then the window exceeds around 1500 pixels in wid... | stackexchange/codereview |
I'm interested in learning how to AJAX a modal dialog. Typically if I wanted to add a modal dialog to my web site I added the jquery UI dialog code in my main JS file and binded it to an ID.
I believe with Rails I can create a Link, which fetches all the dialog code from the server and then opens the dialog.
Is this tr... | stackexchange/codereview |
When I add text to a div in a chrome extension popup, the text appears for a fraction of a second and then immediately dissappears again.
This is a small example:
<html>
<head>
<script>
function show() {
var newName = document.showMe.textToShow.value;
var txt = document.createTextNode(newNam... | stackexchange/codereview |
I need to get the URL of an element's background image with jQuery:
var foo = $('#id').css('background-image');
This results in something like url("http://www.example.com/image.gif"). How can I get just the "http://www.example.com/image.gif" part from that? typeof foo says it's a string, but the url() part makes me ... | stackexchange/codereview |
I have a django application that i serve using gunicorn. I do that by using the method prescribed on the gunicorn site - embedding gunicorn into my django application.
I'm trying to set up a proxy into my application so that when you go to "http://mysite.com/proxy/" it does proxy you to "http://mysite.com:8100".
I know... | stackexchange/codereview |
var j = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?\//;
I want to restrict only one / coming at the end of the string. How can I restrict that in the above regular expression?
| stackexchange/codereview |
I inherited an environment that has a "compiled" perl script on Unix. Is it possible to de-compile, reverse engineer (whatever the term is) it, and obtain the source code from the compiled object code ?
Might not be possible, but thought I'd ask rather than assume.
Thanks,
-Kevin.
| stackexchange/codereview |
I am writing a class library where i need to extend System.DateTime to have a property called VendorSpecificDay such that
DateTime txnDate = DateTime.Today;
VendorSpecificDayEnum vendorDay = txnDate.VendorSpecificDay;
public enum VendorSpecificDayEnum
{
Monday, Tuesday, ShoppingDay, HolidayDay
}
I realize that ... | stackexchange/codereview |
I have a grouped table view; the table's background is a custom image. In one type of cell, I have just an image, and it doesn't fill up the entire cell width, and it's centered in the cell.
I've set that's cell's background to UIColor -clearColor, so that the table's background view shows through, but the cell is sti... | stackexchange/codereview |
ImproperlyConfigured: Middleware module "report" does not define a "ReportMiddleware" class
But I had defined this, but probably defined in wrong place, so where should I place this class file?
| stackexchange/codereview |
In perldoc perlvar, I read this:
Note that currently "ARGV" only has
its magical effect within the "<>"
operator; elsewhere it is just a plain
filehandle corresponding to the last
file opened by "<>". In particular,
passing "*ARGV" as a parameter to a
function that expects a filehandle may
not cause your... | stackexchange/codereview |
Is there a way to take a plain text file and convert it to a simple HTML?
A couple of 'sophisticated' stuff that will be great
identify hyper-links.
identify (tab delimited) tables.
UPDATE
I just found this HTML::FromText. Checking to see if it meets my needs...
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.