instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
So i want to run a script that requires me to input the name of a file. For example: /userthatisnotme/bin/move filename So I want to make it easier for me to remember, so I can just type move filename instead of that whole path. How can I do this?
stackexchange/codereview
I am using VS2010, .Net 4. I am trying to add a ScriptManager to my page, so I can reference an AJAX Enabled WCF Service. When I add the ScriptManager control to my page and view it - I get the error shown below. I have no clue how to resolve it. I get the error by simply putting the control on my page (not referen...
stackexchange/codereview
i have one text file that contains only one line the line only contains one math expression for example 12+(3.0*(4)-1)/sqrt(121) my program needs to read this express as string and then give the result 13 is there any simple way or 3rd party dll/lib to make this out? COMMENT ADDED: Evaluating a string of simple mathem...
stackexchange/codereview
My wordpress site is not reachable, how can I manually activate a theme? (the current theme has a bug in it, I want to revert to the other theme)
stackexchange/codereview
Background OpenOffice Writer lacks the ability to link to an ASCII text source file, apply syntax highlighting, wrap it in a frame, and update the frame contents whenever the source file changes. However, OpenOffice Writer can link to images, and will update the images automatically when they change. Problem The images...
stackexchange/codereview
In the documentation for Clojure special forms (http://clojure.org/special_forms) the example for :pre and :post looks like this: (defn constrained-sqr [x] {:pre [(pos? x)] :post [(> % 16), (< % 225)]} (* x x)) How can Clojure tell if the map containing the meta-data is not the definition of the function...
stackexchange/codereview
Hi is their a calendar view component i can use to display the month week and day? In j2me there was no such thing and we had to develop and implement one ourselves which was a pain and took months to complete
stackexchange/codereview
Possible Duplicate: Python try-else Comming from a Java background, I don't quite get what the else clause is good for. According to the docs It is useful for code that must be executed if the try clause does not raise an exception. But why not put the code after the try block? It seems im missing something im...
stackexchange/codereview
just changed over form visualsvn to AnkhSVN. Loving it... but i need to add files and directory that are on my disk to SVN ... but the files and directory are not part the solutions (Vs2010) ... Its basically i directory where i store some dlls but if the directory is not present then i have missing references. Is this...
stackexchange/codereview
We need to design a webpage layout. Using table we can divide layout into six zones (cells) as shown below: ZONE 1 ZONE 2 ZONE 3 ZONE 4 ZONE 5 ZONE 6 Now, it is possible to merge ZONE 2, ZONE 5 and ZONE 6? We need to use DIV?
stackexchange/codereview
What's the easiest way to extract the datetime captured timestamp from a video recorded with a Canon camera?
stackexchange/codereview
I'm looking for a rich text editor that allows for locking regions so that they can't be edited by the user. These locked regions would contain markup, not just plain text. TinyMCE has a plugin to support this but it is quite buggy.
stackexchange/codereview
I'm a total noob when it comes to linking and building with Visual Studio. I would like to integrate Lua into my C++ console application. Can someone give a step by step on how to do this from getting the Lua dependencies from lua.org, to actually running a "Hello World from Lua" in VS, and all the steps in between. F...
stackexchange/codereview
Is it possible to run a .swf on Android running Froyo 2.2? If so, how do I do it? I am basically trying to do a cool animation and it is done in Flash but I have no idea how to show that animation on the Android.
stackexchange/codereview
I Have a Custom WCF Service Host (webServicehost2) and Factory that is doing some dependency injection (implementing a custom IInstanceProvider) and also some custom authentication (impementing a custom RequestInterceptor). I Have a very small issue in that when i navigate to a REST resource that does not exsist. for e...
stackexchange/codereview
I am wondering if is there a way to compute a field in the admin site based on a concatenation of multiple fields. Basically I have a Product model with different fields associated to various attributes (colour, size, length etc). I would like to compute the code value to be a concatenation of the values of the variou...
stackexchange/codereview
I am trying to make my editable UITextView resign the keyboard (resignFirstResponder) when the user taps "Done." Using a UITextField, I have been able to do this with the following code: - (IBAction)doneEditing:(id)sender { [sender resignFirstResponder]; } ... and then to attach it to the relevant UITextField in I...
stackexchange/codereview
I am using PHP to generate dynamic dropdown, the dropdown list items are fetched from database. Here's the php code for that and it works. <select name="title[]" id="title"> <?php $categories = Category::find_by_cid(5); foreach($categories as $category): ?> <option value="<?php echo $category->name; ?>"><?php echo $cat...
stackexchange/codereview
I've got a slightly odd requirement that I'm not sure how to properly articulate. I essentially want to prioritise the most recent requests to an ASP.Net handler. I'm not sure if this should be client-side or server-side. I'm leaning towards server side to ensure it's enforced on all clients. So, as requests come in, t...
stackexchange/codereview
Say I wanted the following URL scheme, which I got to work by setting the following URI route. http://www.domain.com/profile/jimbob123 $route['profile'] = "profile/index"; $route['profile/(:any)'] = "profile/index/$1"; Now, let's say I want my URL to look like the following when I want to display a "status." http://ww...
stackexchange/codereview
We have a database with a bunch of wide tables (40-80 columns each) and just found a bug that introduced NULL values into about 500 of the records. The NULL values can appear in any of the columns (all are integer columns, see image below) but these NULL values are causing issues with one of our reporting systems that ...
stackexchange/codereview
I want to use Mako templates with GAE instead of Django templates. I found this post http://blog.pansapiens.com/2008/06/24/mako-templates-in-google-app-engine-seems-to-work-for-me/ I downloaded Mako from this page by using easy_install http://www.makotemplates.org/download.html But that gave me a "beaker" file c:\pyth...
stackexchange/codereview
any way to have the autocompletion feature for paths that there is on the linux command line (you know pushing tab..)? Regards Javi
stackexchange/codereview
On a Linux server I need to add the following line to .htaccess file. AddHandler application/x-httpd-php5 .php Is there something similar for a windows server running php4?
stackexchange/codereview
I do use jQuery live() to bind a 'click' event to certain images. This results in the following internal live-selector: #tblViews tbody tr[rel=view_4].next() table.editable.includes span.actions img.remove When I click on such an image, the following error occurs: Syntax error, unrecognized expression: ) I think the ...
stackexchange/codereview
In Rails 2.3 I always used render :json => { :success => true, :data => @foobar} to send JSON data to my frontend. In Rails 3 I'm using respond_to :json ... respond_with @foobar But what I'm missing: I need the 'success' value within the JSON structure. What's the right way to inject such data into JSON response in R...
stackexchange/codereview
I have created a static HTML page with anythingslider to show sliding portfolio works. In that static HTML page it works just fine. Now I am trying to convert this page to a WordPress template page. At first, I just copy contents of the static main container page (excluding header and footer) and it stops working. It g...
stackexchange/codereview
How is exactly that we talk about "true random" numbers when we are actually measuring something. I mean, isn't measuring almost the opposite of randomness. Som articles says that, for example, throwing a dice is "true random". Of course it isn't Pseudo-random, but is it even random?? If you could have a machine that t...
stackexchange/codereview
I have a database which contains a lot of geospatial data ... basically information on 10s of thousands of people, with coordinates for each of them. The coordinates are currently stored as two floats for latitude and longitude, and I use a function to determine the distance between the coordinates in that record and ...
stackexchange/codereview
I want to create a BufferedImage from a image but it not run. what is this exception? code: BufferedImage src = toBufferedImage(image1); public static BufferedImage toBufferedImage(Image image) { if (image instanceof BufferedImage) { return (BufferedImage) image; } // This code ensures that all the...
stackexchange/codereview
How can I get just the table comment from a mysql table? I tried the following, but they didn't work for various reasons. I want to figure out how to get just the string 'my comment' (ideally via perl =) Any help? -- Abbreviated output for convenience. SHOW TABLE STATUS WHERE Name="foo" +------+--------+---------+---...
stackexchange/codereview
Given two points on a webpage and a set of DOM elements, how to find out the subset of those DOM elements that sit inside the rectangle area defined by the two points? I am working on a web-based gallery, in which every photo is wrapped in a li tag. When a user drag out a rectangle area with mouse, all li elements insi...
stackexchange/codereview
I need to see all files (with full pathname), along with their file permissions, on a folder which DO NOT match -rw-r--r-- This didn't work as I thought it should have: #ls -laR | grep --invert-match '-rw-r--r--' grep: invalid option -- -
stackexchange/codereview
I have the following XML structure: <?xml version="1.0" encoding="ISO-8859-1"?> <articles> <article id="1"> <title>Article title 001</title> <short>Short text</short> <long>Long text</long> </article> <article id="2"> <title>Article title 002</title> <short>Short text</short> <long>Long te...
stackexchange/codereview
I'm creating a basic blog application and I'm running into issues displaying error messages when a user tries to submit a blank comment. Instead of getting a nice looking error message, an active record error message with the correct validation erorrs. Such as ActiveRecord::RecordInvalid in CommentsController#create ...
stackexchange/codereview
Would it be possible send a click message using SendMessage to a control in parent window? Apparently, the following doesn't seem to be working SendMessage(hParent, WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(x, y)); SendMessage(hParent, WM_LBUTTONUP, 0, MAKELPARAM(x, y)); //x and y are location of child control on parent ...
stackexchange/codereview
I want to creat my own control: public class DataGrid : System.Windows.Controls.DataGrid In the style definition, I want to add a button above the grid, so I wrote: <Style TargetType="local:DataGrid"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="local:Da...
stackexchange/codereview
I can't figure out a regex that will grab every word besides MD5 hashes. - I'm using [a-zA-Z0-9]+ to match every word. How do I augment that so that it ignores something I'm thinking is like [a-fA-F0-9]{32} which would match the MD5 hashes. My question regards Regex. 8e85d8b3be426bc8d370facdb0ad3ad0 string stringString...
stackexchange/codereview
Greetings, I am trying to create a bar chart of the data posted below (referred to in my code as topTwoTable), disaggregated by group type. I've scanned through multiple online forums, as well as Hadley's website, and stuck when it comes to manually altering the fill color of the bars on the basis of treatment type. A...
stackexchange/codereview
Currently I am considering: VMWare Hypervisor ESXi CentOS 5.5 Memcached 1.4.5 and dependencies That is ALL. Is there anything else I need/any substitutions?
stackexchange/codereview
iOS 3.2 introduced [UIScreen screens] which allows me to determine how many screens are connected to the device. However, I'm looking for a way to determine this on a device with a previous version, prior to 3.2. Any thoughts?
stackexchange/codereview
I have one form which need to submit data into two different tables in same DB. at past time, i have asked how to submit form into two tables, but it impossible. Then, I try to submit this form use two submit buttons with different destination. Could you give some advise to submit this form after click them?
stackexchange/codereview
I have an existing multi-tenant ASP.NET application where all users authenticate against a single SQL Server database. This database also contains several other settings type data that is used within the application. Each client after authentication, utilizes their own SQL Server database for data storage, for isolatio...
stackexchange/codereview
I am aware of of the infamous Considerations for server-side Automation of Office from Microsoft and it clearly lists products from the 2010 suite. However, today I was made to believe by an IT ops techie that Office 2010 does not suffer from the issues mentioned in that article and can be used without issues within a ...
stackexchange/codereview
in have an Excel File Named (a.xlsx) in A Folder Named (ExcelFiles). the ExcelFiles Folder Is located in the root Of my project. so my connection string for getting excel file data is like this : <add name="xlsx" connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=aaa\ExcelFiles\a.xlsx;Extended Properties=E...
stackexchange/codereview
I have an assignment for school call Poker game. I have to deal a random card of five using HTML. I also need to have an array to deal the cards. My main question is can you have images in an array and if so how can it be done? I tried this method: $my_array = array(img src="2Spade.gif", img src="2Club.gif") but this...
stackexchange/codereview
I have an Android service which sends broadcast intents. I'm trying to get those intents in another application, which is an Android service. I wrote this in my manifest: <!-- Service --> <service android:enabled="true" android:name="...MyService"></service> <!-- Receiver --> <receiver android:name="...MyReceiver"> ...
stackexchange/codereview
I have two activities A & B. In A i have three ArrayLists. I want to access these ArrayLists in activity B . How can I do that? These two activities are in same package.
stackexchange/codereview
I'm creating a optimized web page for mobile devices with C#. Is there a way to offer a page for larger screens and one for smaller screens on android devices? With Apple i can differentiate between iPad and iPhone, but how can I do this with the galaxy tab or a regular android phone? I don't want to use any javascript...
stackexchange/codereview
Everything I have tried requires the end user to sign in to yahoo...this won't work because the end user doesn't know the password or the username. This should be automated otherwise flickr wont work
stackexchange/codereview
We have a lot of jars which have been added over a period of years to the project and their usage has not been documented anywhere. I want to figure out references of any class in the jar in java or jsp files. Now for our new jars we don't have this issue as we use Maven and it helps us maintain dependency etc much bet...
stackexchange/codereview
We have to make our system highly scalable and it has been developed for windows platform using VC++. Say initially, we would like to process 100 requests(from msmq) simultaneously. What would be the best approach? Single process with 100 threads or 2 processes with 50-50 threads? What is the gain apart from process me...
stackexchange/codereview
This question: Launch iPhone app from link in email suggests that it's possible to launch a particular iPhone application from a link in an email. Is it possible to include an app-launching link of this type in a text message, so that the reader has the option of pressing it (and launching the app) in the same way tha...
stackexchange/codereview
I'm writing a canvas-powered multiuser drawing application in Node.js, and want to maintain an internal canvas element with the current drawing. Is it possible to create and interact with a canvas element in Node.js? My latest try was the jsdom module available here: http://github.com/tmpvar/jsdom var jsdom = require(...
stackexchange/codereview
I have created a database "test" with some tables in MS SQL Server 2008 R2 (i.e. MS SQL Server Management Studio). Now, I need to export this database as a MDF file. What should I do?
stackexchange/codereview
can anyone give me an example of function overloading in c++ with 4 function prototypes ? i still don't get them quite good .. sorry newbie question, thanks for looking in. Adam Ramadhan
stackexchange/codereview
var val= $('#num').val(); // 01 if(isNaN(val) || val > 59 || val== ''){ alert("error"); } In this case, has not alert error var val= $('#num').val(); // 01 val = parseInt(val);
stackexchange/codereview
I am trying to generate random integers over the range (-32768, 32767) of the primitive data type short. The java Random object only generates positive numbers. How would I go about randomly creating numbers on that interval? Thanks.
stackexchange/codereview
I'm trying to run a simple job process in powershell 2.0 and it doesn't seem to run. $job = Start-Job { Return "Some string." } When I call $job, the status says it's running. But the problem is that it never completes. Tried the same thing on my Windows 7 machine and it completes immediately. I'm running powersh...
stackexchange/codereview
My url should look like this: localhost/Products/Details/1/asus-intel-core-2-duo. As you can see, the slug is generated from existing fields: brand-processorBrand-ProcessorModel. My title will also look like this, without the dashes. I generate this slug in my Service layer. I have 2 questions: Where and how should I ...
stackexchange/codereview
I have django 1.2.3.0 Final and I am using Python 2.7 In my setting, I have 'sqlite3' filled for the DATABASE_ENGINE. I am able to work with the sqlite3 (at the level of djano manage.py shell) until I am told that I need to access python manage.py dbshell At first I got the error "sqlite3 is not recognized...." Then...
stackexchange/codereview
We're setting up a TeamCity build server for continuous integration. To keep things clean, we don't want to install Visual Studio on the build server. I'm wondering how we can build Silverlight 4 apps without it? I'd expect there to be a Silverlight 4 SDK which installs separately from VS - but so far I haven't found o...
stackexchange/codereview
Possible Duplicate: Delphi 64-bit Preview Compiler available? Hello! I know this message will annoy some people, but anyway... Does anybody know if something is going on with 64bit Delphi? Does Embarcadero or anybody else developing compiler for 64 bit computers? Can we expect something in near future? I looked arro...
stackexchange/codereview
I have problem with a Gallery. I can't scroll via touch. Scrolling via DPAD or trackball works fine. Here is some code: The xml layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" andr...
stackexchange/codereview
I have bound at top the Width of the UserControl to the Width of the ButtonGrid at top. It does not work. I want my UserControl always that wide as the width of the ButtonGrid. The problem is loading documents with a long name > Sum(Width of 3 buttons) makes the UserControl as wide as the document name. Now imagine hav...
stackexchange/codereview
With having the with statement, is there ever a need to open a file/check for exceptions/do manual closing of resources, like in try: f = open('myfile.txt') for line in f: print line except IOError: print 'Could not open/read file' finally: f.close()
stackexchange/codereview
Is there any way to check all dependencies are downloadable from at least one listed repository? I was once omitted a required repository from my pom.xml. But maven didn't complain because those dependencies already had been installed in my local repository (~/.m2/repository). That could be a problem for CI or on anoth...
stackexchange/codereview
I have a string in a textbox and want only one of the words to be in bold. Is there a way to do that in code without appending the text? Sort of like how it would be done in xml/html... How about an underline, too? Prefer not using xml or html for this - prefer to keep it a string in java code... Thanks
stackexchange/codereview
I am trying to graph with Flot some data over time. The data being graphed contains: time: unix epoch time (whole seconds since 1/1/1970) value: it varies but it's always an integer between 0 and 10000 The time values can be in intervals of 5, 60 or 3600 seconds. How do I coerce Flot into drawing me graphs where it...
stackexchange/codereview
I had this: if Setting["Language"] == "en": f.m_radioBox3.SetSelection(0) elif Setting["Language"] == "pt": f.m_radioBox3.SetSelection(1) elif Setting["Language"] == "fr": f.m_radioBox3.SetSelection(2) elif Setting["Language"] == "es": f.m_radioBox3.SetSelection(3) Then ...
stackexchange/codereview
I want to make html select tag only activated when a check box is checked,how can i??
stackexchange/codereview
Is there a way to bypass the Silverlight port range (4502-4532) security restriction for TCP connections? Maybe a 3rd party implementation of TcpSocket that does not enforce the 4502-4532 port range?
stackexchange/codereview
I have a Windows Form with a Rich Textbox control on the form. What I want to do is make it so that each line only accepts 32 characters of text. After 32 characters, I want the text to flow to the next line (I do NOT want to insert any carriage returns). The WordWrap property almost does this, except that it moves all...
stackexchange/codereview
What should be documented by javadoc comments (classes, methods, constructors and fields? Or only classes methods and constructors?)? Is there any convention about that ? Please provide links to relevant resources in your answer whenever possible. Thank you EDIT: The question is not about how is it usualy done or what ...
stackexchange/codereview
I've been teaching myself Objective-C for about 6 months and like using the language a lot. However I haven't found any good coding standards, so the code I write always ends up looking like an inconsistent mess. Things like naming conventions carry over just fine, but spacing, indentation and the (impossible?) 80 char...
stackexchange/codereview
I have written a Formula in Excel that Sums up Items in 1 Column (Text) the Column is a Dynamic Named Range (Invoice_list_Item) the Formula sets a Value (Of my Choice) based on each Item in the Range and Sums those Values, I am now using a Userform where I would like to Display that Equation rather than in the workbook...
stackexchange/codereview
I have an external JavaScript file and whether in FireFox or Chrome, whether all browsing data is cleared, it will NOT update no matter what. I believe something happened when I made a backup of my file, which I simply added "_thedate" to the end of the name. Then Save As back to the original name. Now I cannot seem to...
stackexchange/codereview
I want to generate QR codes in ruby on rails, to run in the background of my website written in rails. Saw this http://code.google.com/p/qrcode-rails/ but cannot work out how I could get this to work for me. Basically in RoR I want to: Pass a generator a string, my unique code, a 20 character length number (e.g. 320329...
stackexchange/codereview
I'm just wondering how $ works: I was expecting > (flip (+).digitToInt) $ '4' 4 <interactive>:1:24: Couldn't match expected type `t -> Char' against inferred type `Char' In the second argument of `($)', namely '4' 4 In the expression: (flip (+) . digitToInt) $ '4' 4 In the definition of `it...
stackexchange/codereview
I've got a UISlider in my main view, but it doesn't receive touches at the right end. I thought it could be a pesky view covering it, but it definitely isn't. Has anyone got any other ideas?
stackexchange/codereview
There has to be an easy way to do this, but I'm new to JS. I have a javascript program that (1) takes user input, (2) updates the webpage based on that input, then (3) performs a lengthy calculation. The trouble is that the webpage doesn't register the update till after the lengthy calculation. Isn't there a way to...
stackexchange/codereview
Imagine a web site, where there are 2 drop down controls like min age and max age. After I choose min age and max age, I would like to hit the search button. How do I get the search results into an output stream and then I could navigate the DOM HTML. I already know how to naviate through dom html via htmlagilitypack. ...
stackexchange/codereview
I'm trying to remove query strings from my calendar, but my mod_rewrite is not appending the query string. The website is http://cacrochester.com/Calendar and if you click the link to go to a different month, the query string is usually http://cacrochester.com/Calendar?currentmonth=2010-11 With my rule below, it just d...
stackexchange/codereview
I was given a framework written by other programmers to access the core data. In this situation i receive a pre-loaded NSFetchedResultController which I need to filter, to display a part of it's data. Here is what I tried: NSPredicate *predicate = [NSPredicate predicateWithFormat:@"category==%@", @"current"]; [NSFetche...
stackexchange/codereview
For instance in Flex 4 ?xml version="1.0"?> xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"> <s:layout> <s:VerticalLayout/> </s:layout> <fx:Script> <![CDATA[ private function setLabel():void { trace ("the id is "+myButton.id); m...
stackexchange/codereview
I have 4 SQL server(2008 version) tables 1) USER- to store user information (Fields : UserId,UserName) 2) FILES - to store files uploaded by user (FileId,FileName,UserId) 3) PHOTOS -to store files uploaded by user (PhotoId,PhotoName,UserId) 4) GROUPS= to store groups created by user ( GroupId,GroupName,UserId) Now I ...
stackexchange/codereview
I'm experimenting with s3 but im running into a permission problem (i think). Output: AWS::S3::PermanentRedirect in CkeditorController#create The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. I'm using ckeditor. My Ckeditor::Pict...
stackexchange/codereview
here is my perl script(a.pl) #!/usr/bin/perl $logfile = "./a.log"; open(LOGFILE_Handle, ">$logfile") or die "Error : Can not open $logfile !!! \n\n "; print LOGFILE_Handle "a.pl: 1 "; system "./a.exp "; here is my expect script(a.exp) #!/opt/sfw/bin/expect -f log_user 1; set logfile "./a.log"; set LOGFILE_Handle ...
stackexchange/codereview
We have to web projects that we want to generate web deploy packages for on nightly build. One MVC2 project and on WCF project. We have a script that listens for new versions of these packages and deploys them as there are dropped new versions. The problem with this is that the packages gets deployed inside the TFS dep...
stackexchange/codereview
When I click on "Request and Invite", you'll notice that there's a JQuery error...but it's weird. http://bit.ly/cuq5KV The code is pretty simple. The error seems to be happening on JQuery's file. I tried previous versions of JQuery (both compressed and uncompressed), but there were always problems.
stackexchange/codereview
I would like to generate email inside a Struts2 application, using Freemarker. As I am also using Freemarker for my view, I would like to "reuse" the same config. There is already a similar question for doing the same thing with Spring. Getting template text from FreeMarker in Spring app I am not sure where to start. I...
stackexchange/codereview
I am trying to use Setup project. Want my setup to create a desktop shortcut with my application. I donot understand how to do it. Clicked on User's desktop, I created Shortcut to User's desktop, changed the properties Target and Working Folder as 'Application Folder' But it does not connect with MyApplication.exe Wh...
stackexchange/codereview
I have a problem with button event in web user control First i have an aspx like this: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddTest.aspx.cs" Inherits="AddTest" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=...
stackexchange/codereview
I'm trying to draw text to an image from Java in the Google App engine, but I've found no methods (since the java.awt.image.* isn't whitelisted) to do it with. I'm also trying to "layer" one image on top of another, which I can't figure out how to do. Is there any way to draw text on an image or overlay one image over ...
stackexchange/codereview
Last night I made some admin changes to my webserver. I use php. The php processor failed after the update and if someone went to my homepage, the php page would simply download and show the proprietary code and password to anyone visiting. So I was wondering if there is a way to prevent any form of download for php fi...
stackexchange/codereview
Hello everyone I got trapped when Im using jquery loading some content into my page. The code is like this: $("#holder").fadeout(); $("#holder").load("test.html", callbackfn); function callbackfn(){ $("#holder").fadein(); } test.html <div style="background-image:url(1.jpg);">test</div> That's the main idea, and ...
stackexchange/codereview
As a JS developer, I always keep my design layer separate from my business layer. Meaning, HTML is always alone, CSS and JavaScript files are external and included. Now, in the case of jQuery Templates, a declared template must apparently live within a script block of the page. How in the world are you supposed to keep...
stackexchange/codereview
i am sorry to ask again since i asked something similar to this earlier, but am in serious need of help here. situation is this, i have an Arraylist with values of strings, which i have converted to an array i want to query a "NAME" column in my sqlite database and return rows that have the string values in the name co...
stackexchange/codereview
I'm trying to create a number of strings based on one long string that i'm passing. Basically this is an example of my long string StrMain = AL123456 - PR123456 - RD123456 - LO123456 So in this case I want to create 4 separate strings. Str1 = AL123456 Str2 = PR123456 Str3 = RD123456 Str4 = LO123456 But there isn't a...
stackexchange/codereview
I'm considering a web-version of some of our programs and considering HTML5 and Flash. Anyone know if it's even possible to record audio with HTML5?
stackexchange/codereview