This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_without_protocol | |
add_host! | |
assert_equal('//www.basecamphq.com/c/a/i', | |
W.new.url_for(:controller => 'c', :action => 'a', :id => 'i', :protocol => '//') | |
) | |
assert_equal('//www.basecamphq.com/c/a/i', | |
W.new.url_for(:controller => 'c', :action => 'a', :id => 'i', :protocol => false) | |
) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I recently upgraded from Snow Leopard to Lion and Xcode 4.1, and word jumping stopped working in both Terminal and iTerm2. Did the mappings change? | |
This is with and without a homebrew installation of readline. | |
My .inputrc looks like this: | |
"\e[1;5D": backward-word | |
"\e[1;5C": forward-word | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMPILING iText 2.0.8 ------------------- | |
get sources: http://grepcode.com/snapshot/repo1.maven.org/maven2/com.lowagie/itext/2.0.8 | |
$> jar -xvf itext-2.0.8.jar | |
$> cd itext/ant | |
replace pom.xml with https://gist.github.com/ksob/9469713 | |
copy core/com dir to ant/src/main/resources (maven will filter out resources like *.awf *.html itself, you can just copy whole dir) | |
$> mvn compile | |
$> mvn package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.lowagie</groupId> | |
<artifactId>itext</artifactId> | |
<packaging>jar</packaging> | |
<name>iText, a Free Java-PDF library</name> | |
<version>2.0.8</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* $Id: BaseFont.java 3061 2007-12-03 20:08:33Z xlv $ | |
* $Name$ | |
* | |
* Copyright 2000-2006 by Paulo Soares. | |
* | |
* The contents of this file are subject to the Mozilla Public License Version 1.1 | |
* (the "License"); you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at http://www.mozilla.org/MPL/ | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /Users/developer/work/Sage/project_fuji/fuji_support/lib/pdf_server | |
COMPILING CreatePdf.java ------------------- | |
javac -cp jars/iText-2.0.8.jar:jars/core-renderer.jar:jars/xml-apis-xerces-2.9.1.jar:jars/jtidy-r938.jar:jars/core-renderer-minimal.jar:. src/CreatePdf.java | |
cp src/CreatePdf.class lib/pdfserver/ | |
COMPILING PDFServerThread.java ------------------- | |
javac -cp jars/iText-2.0.8.jar:jars/core-renderer.jar:jars/xml-apis-xerces-2.9.1.jar:jars/jtidy-r938.jar:jars/core-renderer-minimal.jar:lib:. src/PDFServerThread.java | |
cp src/PDFServerThread.class lib/pdfserver/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SoplAccounts | |
class FixedAsset < ActiveRecord::Base | |
self.table_name = :fixed_assets | |
belongs_to :business | |
has_one :sales_invoice, class_name: 'FujiInvoicing::SalesInvoice' | |
has_many :fixed_assets_amortizations, class_name: 'SoplAccounts::FixedAssetsAmortization', dependent: :delete_all | |
after_initialize :set_placed_in_service_date_defaults, | |
:set_acquisition_date_defaults, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUNNING PDF SERVER------------------------------------ | |
cd /Users/developer/work/Sage/project_fuji/fuji_support/bin | |
$> ./fuji_pdf_server start | |
STOPING PDF SERVER------------------------------------ | |
MODIFY fuji_pdf_server like this: | |
stop = "ps -ef | grep PDFServer | grep java | awk '{print$2}' | xargs kill -9" | |
$> ./fuji_pdf_server stop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There is a problem that shows up in Ruby 2.1.x (Jenkins is running it) | |
Chuck LeDuc Díaz: I downgraded your mysageone_pl build to 2.0.0-p451 and it works | |
Chuck LeDuc Díaz: http://jenkins.sage1.es/job/mysageone_pl/42/console | |
Chuck LeDuc Díaz: we have the same problem in sageone_es | |
Chuck LeDuc Díaz: but I don't know what causes it. | |
I copied promo code functionality from _es but have problem with tests. | |
Working locally on my Mac all tests passes (bundle exec fudge build) but on UAT, the Jenkins build fails. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The string is properly sent from ruby pdf_generator because we are sending: | |
const unsigned int modFileSize = 2089; | |
const char modFile[] = { | |
0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6F, 0x6E, 0x3D, 0x22 | |
, 0x31, 0x2E, 0x30, 0x22, 0x20, 0x65, 0x6E, 0x63, 0x6F, 0x64, 0x69, 0x6E, 0x67, 0x3D, 0x22 | |
, 0x75, 0x74, 0x66, 0x2D, 0x38, 0x22, 0x3F, 0x3E, 0x0A, 0x3C, 0x46, 0x3E, 0x0A, 0x20, 0x20 | |
, 0x3C, 0x44, 0x3E, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x3C, 0x4E, 0x3E, 0x46, 0x61, 0x6B, 0x74 | |
, 0x75, 0x72, 0x61, 0x20, 0x73, 0x70, 0x72, 0x7A, 0x65, 0x64, 0x61, 0xC5, 0xBC, 0x79, 0x3C | |
, 0x2F, 0x4E, 0x3E, 0x0A, 0x20, 0x20, 0x20, 0x20, 0x3C, 0x4F, 0x64, 0x62, 0x69, 0x6F, 0x72 |
OlderNewer