instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
The following PHP code:
$someID = 124234454288758;
$queryStr => "SELECT a FROM b WHERE some_id = {$someID}";
is converted to:
"SELECT a FROM b WHERE some_id = 1.2423445428876E+14"
How can I get the result string as:
"SELECT a FROM b WHERE some_id = 124234454288758"
Thanks!
| stackexchange/codereview |
anybody know how to fix the orientation when use UIImagePickerViewController?
IT seems, it always rotate when you rotate iPhone
I want to take a picture only one orientation. so I can crop some place of the image
If it's not fixed. I need consider four situations
every orientation I need set the crop frame, it crashe... | stackexchange/codereview |
I have the code of video streaming that works perfectly in android 2.2
VideoView videoView = (VideoView) findViewById(R.id.surface_view);
MediaController mc = new MediaController(this);
videoView.setMediaController(mc);
videoView.start();
videoView.requestFocus();
videoView.setVideoURI(video);
videoView.start();
videoV... | stackexchange/codereview |
i am trying to sort unordered images into correct sequence. Here i am not getting the correct sequence. For this example i have chosen an object walk. Code is developed on c#.net. This is my code.
for (i = 1; i <imagecount; i++)
{
fir = getDifference(image[i], image[i + 1]);
for... | stackexchange/codereview |
Good day dear community. I am new to programming. And i want to digg deeper into Perl.
So i have a Mechanize example - quiete simple but too complex for me: need explanations. I need your help here with this!
use strict;
$|++;
use WWW::Mechanize;
use File::Basename;
my $m = WWW::Mechanize->new;
... | stackexchange/codereview |
I have been running a big Rails application for over 2 years and, day by day, my ActiveRecord migration folder has been growing up to over 150 files.
There are very old models, no longer available in the application, still referenced in the migrations. I was thinking to remove them.
What do you think? Do you usually pu... | stackexchange/codereview |
Please find a source code to get read and write permission on files and folders. I was google about it but no one helped me.
Example
Output
Path Read Write
---------------------------------------------------------------------... | stackexchange/codereview |
I have those kind of documents to index in Solr :
title
authorName
authorId
I want to make a facet on the authorId field , but I want to display the authorName (the authorId is the better way to know if an author is different or not from an other author.
Do you think it's possible ?
Thanks a lot,
Antoine
| stackexchange/codereview |
If anybody knows about 'voice to text' conversion using java, please give me some knowledge.
Thanks!
| stackexchange/codereview |
I try to export my local developed app to a shared hoster environment. By doing this I figured out that either I could use mod_rewrite nor virutal hosts.
Now my question is a) how do I have to change my app to deploy it and b) how do I do it in a secure way by c) letting the URL looking as nice as possible.
Please be m... | stackexchange/codereview |
In object oriented programming, a custom class (like Person class with data of Name, list of addresses, etc)holds data and can include collection objects too. A data structure is also used to hold data too. So, is a class considered advanced data structure conceptually ? And in design of efficient systems (in object o... | stackexchange/codereview |
I use the following code to return the Scroll View from the function.That Scroll View contain number of check boxes . I call this function and it return the Scroll View correctly.But how to get the value if any of the check box is checked i need to perform some action.How to do this ?
Scroll View return Function:
publ... | stackexchange/codereview |
How we can compare if two numbers are in any range in MFC(VC++)?
I want to compare if 172 and 185 lies in range 128-191 ?
How i can do this in VC++?
Thanks.
| stackexchange/codereview |
@a1 = qw(1 2 3)
@a2 = qw(1 2 3 4 5)
looking have the resultant of a calculation between a1 and a2 be inserted as the value of a2[0]. example would be 1+1 = 2 going into a2[0] as 2, then the next calculation would be 2+2 (a2[0] + a1[1]) resulting in a2[0] = 4, then 4+3 (a2[0]+a1[2]) resulting in a2[0] = 7, then move ... | stackexchange/codereview |
Dear All, I am eclipse3.1 IDE for java under fedora 8 environment. I installed fresh copy of eclipse and trying to run a program,it shows JRE system library not found exception popup. I added this library manually by BuildPath-----> Add external library but still i am getting that popup. How to solve this problem.
| stackexchange/codereview |
My current application send an .rtf in an attachement. I wish to send pdf instead of that.
Where in my code I should modify the same?
Below is my code
RichTextBox rtbReport = new RichTextBox(); //Creating instance of Richtextbox
AppResult objResult = null; //Object of Class
fr... | stackexchange/codereview |
Given this xml:
<results>
<result version="@2.15" url="some url"/>
<result version="2.14" url="some url"/>
</results>
How do I select the element containing version="@2.15"? I have trouble figuring out how to put the @-sign in the XPath.
Thanks in advance,
Erik
| stackexchange/codereview |
I would really appreciate it if someone would help me out with this issue.
I'm using SharePoint 2010. I created a Wiki Page Library without changing any of the library settings, and created a new Wiki page, all that went fine but once I started adding text and then tried to save the changes on the page, this message ap... | stackexchange/codereview |
I have a MySQL database with these two tables:
Tutor(tutorId, initials, lastName, email, phone, office)
Student(studentId, initials, lastName, email, tutorId)
What is the query to return the initials and last names of any student who share the same tutor?
I tried SELECT intials, lastName FROM Student WHERE tutorId = t... | stackexchange/codereview |
Suppose you are working in a javascript project with several external library dependencies, and want to compile your sources using the Google Closure Compiler in ADVANCED_OPTIMIZATIONS mode.
Since in this mode the compiler will rename your code calls to the external libraries objects and functions, you must provide ext... | stackexchange/codereview |
Present I see lot of web sites use true type fonts. I want to to know how to use true type fonts in our applications and does it affect the load time of the pages ?
| stackexchange/codereview |
I have a control declared with PartialCaching attribute, like this:
[PartialCaching(60 * 60 * 12)]
public class MyControl : Control {
// control contents ...
}
but I create it in code, using new keyword. The problem is that if the control is in cache I must not create the control again the next time, but I need to... | stackexchange/codereview |
I wanted to know one thing. When deploying a GWT application on
the server, lets say an application in which there are client files
Greeting.java(entrypoint), service.java,serviceAsync.java and server
file serviceImpl.java(), only the client files will converted to
javascript. After compilation, I take the war file an... | stackexchange/codereview |
I have this table that looks like this
CREATE TABLE `purchases` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`totalAmount` INT(10) NOT NULL DEFAULT '0',
`storeId` INT(10) NOT NULL DEFAULT '0',
`purchaseDate` DATETIME NOT NULL,
PRIMARY KEY (`id`)
)
I want to count all the purchases on a given day so I h... | stackexchange/codereview |
I am new to MSBuild and have a couple of questions:
What things can we achieve using MSBuild?
Is it possible to do testing using MSBuild?
How can I integrate MSBuild with TFS? What are the advantages of doing so?
| stackexchange/codereview |
I'm trying to find a way to close a child browser, the idea is when the browser pops up(currently using IE & tab for mozilla)it will load and then closes.
The only thing i can think of is inserting this after the browser opened
IE newIE = new IE();
newIE.Close();
Sadly it doesn't worked.I know watin can open two or ... | stackexchange/codereview |
I'm creating a small wrapper for HTML5 canvas, and one thing I'm doing is returning self/this from each of my wrapped methods to make easy call chaining.
For lack of a better name i'm calling my wrapper Canvas. It basically wraps the canvas and context together.
One thing I did is add the below methods to the Canvas... | stackexchange/codereview |
The problem we have are as follows:
We are using ANT to build our application. However, the application is built multiple times, once for each client (they have different skins / cms / i18n etc). Up to now, we had no need to compile them all at once (usually just work on one client at a time). Now, we want our build se... | stackexchange/codereview |
I was wondering if there was any way in JavaScript to loop through an object like so.
for(var i in myObject) {
// ...
}
But get the name of each property like this.
for(var i in myObject) {
separateObj[myObject[i].name] = myObject[i];
}
I can't seem to find anything like it on Google. They say to pass the nam... | stackexchange/codereview |
I'm using persistence in a project for school, and I have a problem when I'm try to deleting and updating object, all others queries works.
The exception is :
Illegal attempt to associate a collection with two open sessions
I close every session I have opened.
HibernateUtils code
public class Hibernate
{
protected st... | stackexchange/codereview |
I'm looking at some optimized, low level, cross platform, concurrency code designed to run on multi-core machines, and want to check some of its assumptions.
Support for hardware optimizations of some kinds aren't, probably, supported on multi core designs (for example, Out of Order Execution support [wikipedia] seems... | stackexchange/codereview |
I want to use SVN externals on my projects to include a number of third party plugins. I've found this blog post recommending saving the svn:externals value in a file (called svn.externals) with the destination/source pairs, like this:
akismet http://svn.wp-plugins.org/akismet/trunk
all-in-one-seo-pack http://svn.wp-pl... | stackexchange/codereview |
i use a xml file for creating a Zend navigation
$navContainerConfig = new Zend_Config_Xml(APPLICATION_PATH . '/configs/navigation.xml', 'nav');
$navContainer = new Zend_Navigation($navContainerConfig);
now my question ,could i use a table of database instead of xml file for creating zend_navgation
if it is possible... | stackexchange/codereview |
I'd like to convert my views to work for any orientation (especially since it recommended for iPad). I've been using IB to lay things out, and am not sure how to best proceed.
What I would ideally like is to rotate the view in IB, redo the layout, and save both orientations to the same XIB so that the view automatic... | stackexchange/codereview |
mvn -DgroupId=org.epseelon.samples -DartifactId=todolist archetype:create
Can anyone explain me the command here.
What is DgroupID?
What is org.epseelon.samples
What is DartifactID = todolist
What is archetype and create.
| stackexchange/codereview |
I have an silverlight application with the to following lines somewhere in the app:
txtMelding.Foreground = new SolidColorBrush(Colors.Black);
and
txtMelding.Foreground = new SolidColorBrush(Colors.Gray);
Later I want to have an IF that checks whenever the foreground color is black or gray. How?
| stackexchange/codereview |
I've found some tutorial teaching me how to upload a file to my server through PHP and html form.
Even throught I always fail in all of these tutorial :(... I still assume these tutorial is correct.
Most of these tutorial tall me that we can make metatdata form in PHP in our server, and use HttpURLConnection class in a... | stackexchange/codereview |
I had created a webservice , "service.asmx" and i need to add this service into my C# form application .
| stackexchange/codereview |
I am working on a web application. As per the requirement i need to create scrolling images effect when user swipe and on touch (or click) i need to move the specific image to some predefined destination.
So some stack of images has two events, on touch move it should scroll left or right and on touch start(click) it s... | stackexchange/codereview |
I have a need to group items in the Listbox similar to the OPTGROUP in a html SELECT.
Any suggestions is greatly appreciated.
| stackexchange/codereview |
if(isset($_POST["subSubmit"])){
if($_POST["subSubmit"]=="Send") {
$sentto = $_POST['txtSentto'];
$sentcc = $_POST['txtcc'];
$sel="insert into newmessage set sendto='".$sentto."',
sentcc='".$sentcc."'";
$selqur=mysql_query($sel) or die("Error (" . mysql_errno() .")" . mysql_error());
}
}... | stackexchange/codereview |
I have a mapview in my application.I have a Textfield where i type the location i need..when i press UIButton Item named GO..it searches and points to the location i have typed in textfield..now i want to refresh the mapview..as in i want the same view which was before i type anything in textfield..how do i do that???
| stackexchange/codereview |
There are a lot of statements where we can use any one of, conditional operator or if..else.
So in those statements, which one is the best from a performance point of view?
| stackexchange/codereview |
Continuation to the previous question, I tried to avoid the problem another way:
Just for the reminder:
My database schema is described below:
Form <-> Log
<--->>Seller1
<--->>Seller2
<--->>Seller3
I have a major entity (Form), one to
one relationship to another object
(Log) And one to many relationship to
the c... | stackexchange/codereview |
I am converting a c program into c++, and I encountered these error message:
error on line 57:
error: invalid conversion from ‘int*’ to ‘socklen_t*’
error: initializing argument 3 of ‘int accept(int, sockaddr*, socklen_t*)’
My code at line 57 is:
connected = accept(sock, (struct sockaddr *)&client_addr,&sin_size);
i ... | stackexchange/codereview |
file1.txt
10
file2.txt
05--Nov--2010--Friday 23:24:57,06--Nov--2010--Saturday 8:23:34
06--Nov--2010--Saturday 8:23:34,06--Nov--2010--Saturday 9:56:22
I want to create a thread file as below[ Using shell script].
file3.txt
10,05--Nov--2010--Friday 23:24:57,06--Nov--2010--Saturday 8:23:34
10,06--Nov--2010--Saturd... | stackexchange/codereview |
I have the following table setup in an oracle database:
Column Pk_foo1
Column Pk_foo2
Column Pk_foo3
How do I select the rows that are not unique if it were the case that Pk_foo1 and Pk_foo2 were the only primary keys.
An example of a select query would be appreciated. Thanks!
| stackexchange/codereview |
is there any efficient and easy way to execute statements similar to:
CREATE TABLE IF NOT EXISTS fubar ( id int, name varchar(80))
for columns as you perform insert statements.
I'd imagine it will be a lot more complicated, but just for the sake of explanation, i guess I'm looking for something like....
IF NOT EXISTS
... | stackexchange/codereview |
is it possible to find nearby iphone through iphone sdk? how can i identify it?i want to
store that device (may be ID), and find out when the device comes near my device when i open my app? any idea please?is possible to do in iphone 4.1?
| stackexchange/codereview |
I need to process pixeldata from a 1000x1000px *.bmp image (~1MiB) in javascript
At the moment i am a bit stuck, because the page freezes when i try to dump the data to the console.
the important code so far:
var img = new Image();
img.src = 'image.bmp';
context.drawImage(img, 0, 0);
console.log(context.getImageData(... | stackexchange/codereview |
I have a basic understanding of rails routing, but nothing too advanced. So far I've gotten by using the RESTful resource based routes and a few custom named routes.
I am nearly done my app now though and I wanted to make some pretty urls.
In my app, each user has many pages. What's the best way to make the URL's look... | stackexchange/codereview |
Suppose I create a thread from my "main" thread, which aims to monitor and print some variables in "main". But "main" is also generating some output, so I want to print the outputs of these two threads separately. How can I redirect the output of the new thread to a new console other than the one "main" thread is using... | stackexchange/codereview |
I have a default setup of Tomcat 7 and everything java-related configured to use utf-8.
This does not work (utf-8 characters are mangled):
<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ page import="java.net.*" %>
<%@ page import="java.io.*" %>
<%
URL target = new URL("ht... | stackexchange/codereview |
I am using RadUpload control of telerik.
I have added Rad upload on page and one asp Text box. what I want to do is OnClientFileSelected event selected file path get added in asp Text box at client side. I did tried following ways but i got only file name i.e. test.text or test.doc. I do want to add entire path in asp ... | stackexchange/codereview |
hi i have used the following code to launch an email client but it is launching only messaging app...so what should get modified in this code....
Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] {"vgsl.manju@gmail.com"});
emailInt... | stackexchange/codereview |
I'm trying to get my UIWebView's content to fit the screen. I've tried two approaches. First, I tried to set the viewport width using the viewport meta tag in the loaded html:
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0" />
This approach worked before I updated my simulator ... | stackexchange/codereview |
I'm trying to create a Linq query based on a user's input. Writing sql I could build a sql select string based upon the values selected but with linq to sql I'm not sure how to do it. I'm using linq to sql classes. Here's what I have
// Locals
TalentDBDataContext talentDB = new TalentDBDataContext()
... | stackexchange/codereview |
I'm trying to use MongoDB with REST interface on NodeJS express and I'm puzzled.
I've read about REST all day and I just cannot grasp it.
Let's say I have an untrusted (browser) client.
The untrusted client calls "GET /somecollection", the server verifies the client permissions and then calls "GET /somecollection" on t... | stackexchange/codereview |
The Java methods isFile() and isDirectory() only work if the file or directory actually exists what if it doesn't exist?
Is there any alternative to those methods?
example:
File f=new File(var);
Now, var is anything generated from the runtime so I don't know if it is a file or not and you can actually initialize the ... | stackexchange/codereview |
I've been banging my head against the wall try to understand how to get Devise to work with customer registration....
So On my landing page I want to show a registration form, so I added this to my view:
<%= render 'devise/registrations/new' %>
In that partial I have in the view a form tag like follows:
<%= form_for(u... | stackexchange/codereview |
How do I get the granted permissions for a stored procedure in sybase?
| stackexchange/codereview |
which db is good Access or SQL when it comes to small inventory system?
SQL requires SQL server installed on client machine but do access requires anything or just dotnet framework to work properly
| stackexchange/codereview |
What is the difference between 'a and '_l?
I was looking at this error, and couldn't comprehend it:
Error: This expression has type ('a -> float polynomial) list but an expression was expected of type float polynomial list derivlist: ('_l → float polynomial) list
| stackexchange/codereview |
I am reading < Windows via C/C++ 5th edition > and below is some quotation:
Each process' virtual address space is
split into partitions. On x86 32-Bit
Windows, the partition of 0x00000000 -
0x0000FFFF (inclusive) is called
NULL-Pointer Assignment Partition.
This partition is set aside to help
programmers ... | stackexchange/codereview |
I'm trying to write a program that will change a particular GUID in a table to a GUID that the user specifies.
The issue is when it tries to overwrite the old GUID with the new one it will give me the following error:
You cannot add or change a record
because a related record is required
in table tblEF
The data... | stackexchange/codereview |
I am working on a site which people already know the URL of. Naturally, I don't want them to see it in progress, so I wrote an .htaccess rule to redirect all traffic to www.example.com to /temp/index.html which is an under construction page.
What I want to do now is to have some sort of link that I can give to the cli... | stackexchange/codereview |
I need to share sessions between subdomain but my sessions are stored in weird format. For example if ill compare same session data (from session file) from different servers i see that in first case data are stored correctly but not in second one.
First server session string:
TEST_VAR|s:10:"TEST VALUE";
Second server... | stackexchange/codereview |
In my application I use the following pattern for calling the DB:
//do a transaction
using (TransactionScope transaction = new TransactionScope(TransactionScopeOption.Required))
{
OperationOnDb1();
//when we open the connection to the “other db” in this call, the transaction would become distributed
O... | stackexchange/codereview |
I am trying to extract & replace some of the assets in the Mac game "Luxor 3" with my own. Inside the Contents/Resources folder there is a big file called data.npk.
Opening it up in a hex editor, I see "NovaPack" in the header, and a number of strings referring to the filetypes I am looking to extract (in this case, og... | stackexchange/codereview |
i am using mvc contrib grid...........
So far i have used this coding for sorting but it is not working review my code.....
List View:
<%= Html.Grid<Product>(Model)
.Sort(ViewData["sort"] as GridSortOptions)
.Columns(column =>
{
column.For(c => c.ProductID);
... | stackexchange/codereview |
I need to add a User Control to a window at runtime. Now my problem is that i need to instantiate the window first and then add the User Control to that window. After all this the window only will be shown
My thoughts was this:
Create the instance of the User Control first:
string managedClassName = "SupplierModu... | stackexchange/codereview |
In short, I want to know how to pass an object from JSP page back to a Servlet. Specifically, I have a form element whose action tag references a servlet. On form submission, I want to embed an object in HttpServletRequest request object so that it can be dereferenced by servlet.
So far, I have tried setting request.se... | stackexchange/codereview |
I am having a problem copying the contents of a memo to a richedit component.
I thought it would be
Richedit.text := memo.text;
However if I use this the Richedit starts a new line when the memo text wraps to a new a new line (not CR/LF) but just wrapping. The richedit also starts a new line when the memo starts a new... | stackexchange/codereview |
I'm thinking of an approach something like this.
Please let me know if this can actually work this way:
For Sample XML:
<Root>
<Node>
<SubEl1>abc</SubEl1>
<SubEl2>def</SubEl2>
<SubEl3>123</SubEl3>
<SubEl4>456</SubEl4>
</Node>
</Root>
Want to go into <Node>, loop through check for the node/e... | stackexchange/codereview |
I am using WordNet 3.0. The WordNet documentation shows how to find synsets of a given word such as:
wn car -synsn
But, is there a way to find terms with
a) no noun synsets
b) with at least one noun synset and so on.
Thanks,
Sony
| stackexchange/codereview |
in my webapp there are two types of entities, which are in relation to each other.
At first i grab some entities of type a and then for every single one of them, i grab the related ones of type b as an array. All working.
When all requests are done, i need an array of all returned type-b-arrays. Not working!
Whats the... | stackexchange/codereview |
I'm doing this certain task that involves sending 6 sets of 8 requests each per user, and a total of about 2000 users. It's a bunch of GET requests, used to send commands.
To speed up the sending, I've constructed 4 curl multi-handles, each holding 8 requests, firing them off one after the other, and then continuing on... | stackexchange/codereview |
HI All,
I am using jquery-1.4.1.js file but when i open application in I.E.8 it is throwing error "Stack Overflow occur at line 2734 Out of stack space" but it seems running smoothly on FireFox.
Code lines are as below-:
if ( left.substr( left.length - 1 ) !== "\\" ) {
match[1] = (match[1] || "").replace(/\\/g, ""... | stackexchange/codereview |
I have a database of customer information. There are separate rows for billing address and shipping address with a flag signifying which it is; BA, SA. Many of the records are set to BA therefore I have duplicates for each customer. I need to set a duplicate record to SA.
I tried this but it updated ALL the records ... | stackexchange/codereview |
Below sample code for X86 arch,
# define INC(_lval,_lqual) \
__asm__ __volatile__ ( \
"lock ; incl (%0)" : /*out*/ : /*in*/"r"(&(_lval)) : "memory", "cc" )
Please somebody help me equivalent MIPS32 arch.
| stackexchange/codereview |
If we want to have two Keyspan PR PR03 presentation remotes controlling two different computers in the same room, is there a way to assign a unique ID or frequency to each so one remote doesn't control both computers?
| stackexchange/codereview |
When there is no DataSource assigned to my grid it doesn't render which is great!
When the datasource is empty it doesn't render - also great :-)
I am implementing some custom navigation so i want to know if there is a property that tells me if the dataview is rendered?
If it is rendered i can show my custom bits other... | stackexchange/codereview |
Given a registry path "\a\b\c\d", I would like to add a value to key 'd'. The catch is - I don't know whether a,b, or c even exist, and I want the code to generate them if they do not exist. Is there a quick way (using some .NET method I haven't seen) to do this? I could go the route of iterating through registry keys... | stackexchange/codereview |
I'm trying to make a call to the SharePoint Search Webservice from an Asp.NET 4.0 application that does not reside on the SharePoint server. Everything seems to work, accept it is using the AppPool's credentials (a domain service account) to authenticate to SharePoint, which only returns results that that pin has acces... | stackexchange/codereview |
How can I access the HttpServerUtility instance in ASP.NET MVC controller?
| stackexchange/codereview |
I have the following code:
var parentEls = $(root)
.find("credit standard")
.parents()
.map(function () {
return this.tagName;
})
.get()
.join(" > ");
alert(parentEls);
$(... | stackexchange/codereview |
I have a periodic function of period T and would like to know how to obtain the list of the Fourier coefficients. I tried using fft module from numpy but it seems more dedicated to Fourier transforms than series.
Maybe it a lack of mathematical knowledge, but I can't see how to calculate the Fourier coefficients from f... | stackexchange/codereview |
I have a client that's utilizing a windows service I wrote that polls a specified active directory LDAP server for users in specified groups within that LDAP server.
Once it finds a user, it fills out the user information (i.e. username, email, etc.) and attempts to retrieve the user's domain within that LDAP server.
W... | stackexchange/codereview |
My MySqlConnection class implements IDatabaseConnection interface. In update method, I want to call connect() but it cannot find this method, How can I call it?
class MySqlConnection : IDatabaseConnection
{
void IDatabaseConnection.connect()
{
...
}
void IDatabaseConnection.update()
{ ... | stackexchange/codereview |
I need to get started with Net::IMAP to write a Ruby script on Windows, so I've got the RubyInstaller for windows, but how do I install the IMAP gem? How do I setup my dev environment to write and run scripts?
| stackexchange/codereview |
I'm using an anonymous delegate in my code calling this example function:
public static int TestFunction(int a, int b) {
return a + b;
}
The delegate looks like this:
var del = new Func<int, int, int>(TestFunction);
My question is: how do you specify a void return type for TResult? The following doesn't work:
pub... | stackexchange/codereview |
I cannot convince why I cannot break line in notepad with coldfusion.
Here is my coding
<cfscript>
msg = "ppshein<CR>Coldfusion Developer<CR>Currently working in Singapore";
currentPath = getCurrentTemplatePath();
currentDirectory = getDirectoryFromPath(currentPath);
chgMsg = ReReplace(msg, "<CR>", "<CR... | stackexchange/codereview |
I want to raise a jQuery Dialog box which has 2 buttons. So that the user can decide to continue with the overwrite operation or not.
One button, the "no" button should do nothing except close the dialog window. The "Yes" button should call a function that make a jQuery post call to an action method on my controller. ... | stackexchange/codereview |
I try to execute a command in some plugin by pushing it's keyboard shortcut F2. But some other command is executed, instead. But that command gives an error. So it is not clear where the key mapping of that interfering command is defined. I want to change the mapping of that shortcut. To do this I need to find out what... | stackexchange/codereview |
I'm trying to translate automatic a string using the google translator! Using Zend_Http_CLient is not able to log in in the application and retrieve the translated words. It returns to me an authentication error.
I google and searched here something about it but had no success. Can someone give a hand on it and tell me... | stackexchange/codereview |
I'm new to EF4, usign CPT4 Code-First and SQLExpress (MVC2 + Ninject but does not matter). It's working good but I do have one question/problem. When I change my model the database get drop and created back because I added this line in my OnApplicationStart()
{ Database.SetInitializer<CorpiqDb>(new RecreateDatabaseIfM... | stackexchange/codereview |
I've got the following tiny Python method that is by far the performance hotspot (according to my profiler, >95% of execution time is spent here) in a much larger program:
def topScore(self, seq):
ret = -1e9999
logProbs = self.logProbs # save indirection
l = len(logProbs)
for i in xrange(len(seq) - l +... | stackexchange/codereview |
<%= link_to 'View the item', items_url(@item, :only_path => false) %>
Which is generating:
http://0.0.0.0:3000/items.124/
This is no good as it has a period where it should have a forward slash like:
http://0.0.0.0:3000/items/124/
Anyone know y? thanks
| stackexchange/codereview |
I want to use rich faces tab panel. How do I customize the look and feel of the tabs.
What are the css classes that I must override ?
| stackexchange/codereview |
I'm having a textarea in my contact form with php mail function. In php mail i have set the header to html.
But even if the user types like this
Line1....
Line2....
I'm getting in mail like this.
Line1....Line2....
What could be the reason?
Update:
The text area is as simple as this.
<textarea id ="msg" name="messag... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.