How to install custom Java class for ColdFusion 10

How to install custom Java class for ColdFusion 10

We have just deployed CF 10 onto some new servers. I'm trying to follow this process, which we had working without any issues on CF8. However I'm not sure how things are structured in CF10.Our directory path in CF 10 appears as:Coldfusion10

deploy war file on Tomcat and run without project name [duplicate]

deploy war file on Tomcat and run without project name [duplicate]

This question already has an answer here: Deploy war on Tomcat without the war name in the URL 4 answers I 've just created war file of my web project

How do I remove a node in xml using ElementTree in Python?

How do I remove a node in xml using ElementTree in Python?

I've read the remove example here and the example here is not applicable to me.My xml file reads: some text other text more textWhat I want to do is to remove the second from the xml. I do not know what text it holds. But I have the ind

Installing PHPUnit on MAMP 2.1.3 (Mountain Lion)

Installing PHPUnit on MAMP 2.1.3 (Mountain Lion)

I'm struggling with this issue.Here's what I've tried :$ cd /Applications/MAMP/bin/php/php5.4.10/bin/$ sudo ./pear channel-update pear.php.net$ sudo ./pear upgrade pear$ sudo /Applications/MAMP/bin/php/php5.4.10/bin/pear channel-discover pe

JPA Criteria api with CONTAINS function

JPA Criteria api with CONTAINS function

I'm trying to crete Criteria API query with CONTAINS function(MS SQL):select * from com.t_person where contains(last_name,'xxx')CriteriaBuilder cb = em.getCriteriaBuilder();CriteriaQuery cq = cb.createQuery(Person.class);Root root = cq.from

Calculating roots with bc_math or GMP

Calculating roots with bc_math or GMP

I'm having trouble calculating roots of rather large numbers using bc_math, example: - pow(2, 2) // 4, power correct - pow(4, 0.5) // 2, square root correct - bcpow(2, 2) // 4, power correct - bcpow(4, 0.5) // 1, squ

Multiple Inheritance in Java since All classes extend from Object class? [duplicate]

Multiple Inheritance in Java since All classes extend from Object class? [duplicate]

This question already has an answer here: Java : If A extends B and B extends Object, is that multiple inheritance 11 answers I have a simple question:

Base URL in .htaccess

Base URL in .htaccess

I wonder if this is possible to tell via .htaccess or any other manners to set a base URL. ExampleMy CSS in the index.php is set like thisEverything works fine when i'm on the first directory to load my file and pages. But when I have a pag

Composer installs jQuery components in wrong directory

Composer installs jQuery components in wrong directory

I'm trying to install jQuery components via Composer in CakePHP app, the composer.json:{ "name": "affiliate", "require": { "cakephp/cakephp": "2.5.*", "cakephp/debug_kit": "2.2.*@dev", "cakedc/utils": "dev-deve

Create Stored Procedures with PDO in PHP

Create Stored Procedures with PDO in PHP

I am reading a TEXT file from PHP and trying to execute commands from it, like creating a DB and all the tables and procedures it has. My code creates the tables but does not create Stored Procedures given in the file. DELIMITER $$ DROP PRO

Rowset does not support scrolling backward

Rowset does not support scrolling backward

I am trying to query a MySQL database with the below code:'declare the variables Dim ConnectionDim RecordsetDim SQL'declare the SQL statement that will query the databaseSQL = "SELECT * FROM CUSIP"'create an instance of the ADO connection a

Build script error, unsupported Gradle DSL method found: 'android()'!

Build script error, unsupported Gradle DSL method found: 'android()'!

I'm using Android Studio 0.4.5 and having troubles syncing gradle.When I try to do that I get this error:Gradle 'MyApp' project refresh failed: Build script error, unsupported Gradle DSL method found: 'android()'!My solution contains 4 modu

how to parse xml to hashmap?

how to parse xml to hashmap?

I have an example of an xml I want to parse attribute 1 of detail a attribute 2 of detail a attribute 3 of detail a attribute 1 of detail b attribute 2 of detail b I would like fr

acquire monitor physical dimension [duplicate]

acquire monitor physical dimension [duplicate]

Possible Duplicate: How do I determine the true pixel size of my Monitor in .NET? How to get the monitor size I mean its physical size how width and height and diagonal for example 17 inch or what I don't need the resolution , I tried usi

Write Log4j output to HDFS

Write Log4j output to HDFS

Has anyone tried to write log4j log file directly to Hadoop Distributed File System ?If yes, please reply how to achieve this.I think I will have to create an Appender for it.Is this the way?My necessity is to write logs to a file at partic

Ruby find string in file and print result

Ruby find string in file and print result

It's been a very long time since I've used ruby for things like this but, I forget how to open a file, look for a string, and print what ruby finds. Here is what I have:#!/usr/bin/env rubyf = File.new("file.txt")text = f.readif text =~ /str

How do I document AMD + Backbone project with JSDoc3

How do I document AMD + Backbone project with JSDoc3

I have a Backbone boilerplate based project, that I want to document with recent jdoc-toolkitThough I can't get it to generate anything but empty _global classCode sample:/** * This is a root model for DLClass * @module models/DLClass */def

Read XElement from XmlReader

Read XElement from XmlReader

I'm playing around with parsing an XMPP XML stream. The tricky thing about the XML stream is that the start tag does not get closed until the end of the session, i.e. a complete DOM is never received. .... network sessi

Return JSON for ResponseEntity

Return JSON for ResponseEntity

I have a method in my controller that should returns a String in JSON. It returns JSON for non primitive types:@RequestMapping(value = "so", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)ResponseEntity so() { re

Serializing WITHOUT xmlns

Serializing WITHOUT xmlns

I have a couple extension methods that handle serialization of my classes, and since it can be a time consuming process, they are created once per class, and handed out by this method.public static XmlSerializer GetSerializerFor(Type typeOf

TFS Shortcut to do a diff on all modified files with latest version

TFS Shortcut to do a diff on all modified files with latest version

I'm looking for a way to kick off a diff on multiple files very easily. I find it very tedious to have to:Right click on every file Click compareClick with work space version.Rinse and repeat for every file in my change setIdeally, I'd lik

Replace a text with a variable [duplicate]

Replace a text with a variable [duplicate]

This question already has an answer here: sed substitution with bash variables 4 answers How can I do this?sed -i 's/wiki_host/$host_name/g' /root/bin/

How to run mysql commands from terminal on a MAMP install?

How to run mysql commands from terminal on a MAMP install?

I just installed mamp (xampp) from the mamp.info page and it is working on my mac (both apache, php, phpmyadmin, and mysql). The only problem is when i try to run mysql -u root -pWhich connects to mamp from the mac os terminal, i get a comm

Flattening JSON when keys are known only at runtime

Flattening JSON when keys are known only at runtime

Let's say we have a JSON structure like the following (commonly used in Firebase's Realtime Database):{ "18348b9b-9a49-4e04-ac35-37e38a8db1e2": { "isActive": false, "age": 29, "company": "BALOOBA" }, "20aca96e-663a-493c-8e9b-cb7

Recursively find all text files in directory

Recursively find all text files in directory

I am trying to get the names of all of the text files in a directory. If the directory has subdirectories then I also want to get any text files in those as well. I am not sure how to make the process continue for any number of subdirectori