This file contains 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
List list = Collections.synchronizedList(new ArrayList()); | |
synchronized (list) { | |
Iterator i = list.iterator(); // Must be in synchronized block | |
while (i.hasNext()) | |
foo(i.next()); | |
} |
This file contains 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
rpm -i VirtualBox-4.2-4.2.4_81684_fedora16-1.x86_64.rpm | |
warning: VirtualBox-4.2-4.2.4_81684_fedora16-1.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY | |
Creating group 'vboxusers'. VM users must be member of that group! | |
No precompiled module for this kernel found -- trying to build one. Messages | |
emitted during module compilation will be logged to /var/log/vbox-install.log. | |
Stopping VirtualBox kernel modules [ OK ] | |
Recompiling VirtualBox kernel modules [FAILED] |
This file contains 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
FitNesse (v20111024) Started... | |
port: 9999 | |
root page: fitnesse.wiki.FileSystemPage at ./FitNesseRoot | |
logger: none | |
authenticator: fitnesse.authentication.PromiscuousAuthenticator | |
html page factory: fitnesse.html.HtmlPageFactory | |
page version expiration set to 0 days. | |
Custom symbol types loaded: | |
fitnesse.wikitext.widgets.MavenClasspathSymbolType |
This file contains 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
Repository is at: | |
git@github.com:maartenl/testing.git | |
git+ssh://git@github.com/maartenl/testing.git | |
Export svn to git: | |
/var/lib/gems/1.8/bin/svn2git | |
svn+ssh://maartenl@www.karchan.org/home/maartenl/subversion --nobranches | |
--exclude build --exclude build.xml --exclude dist --exclude gclient | |
----exclude nbproject --exclude src --exclude test --exclude web |
This file contains 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
/** | |
* A person. | |
*/ | |
@Entity | |
@Table(name = "mm_usertable", catalog = "mmud", schema = "") | |
public class Person implements Serializable | |
{ | |
@Id | |
@Basic(optional = false) | |
@NotNull |
This file contains 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
function helloWorld() | |
{ | |
alert("Hello, world."); | |
return | |
{ | |
world: "Hello" | |
} | |
} | |
result = helloWorld(); |
This file contains 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
-- provides an employees mobile phonenumber or his/her | |
-- regular phonenumber if he/she doesn't have one | |
nvl(empl.mobile_phonenumber, empl.phonenumber) | |
-- changed to | |
coalesce(empl.mobile_phonenumber, empl.phonenumber) |
This file contains 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
-- provides percentage taxation | |
DECODE (tax.taxtype, 'VAT', tax.vat, tax.general) TAX, | |
-- changed to | |
CASE tax.taxtype | |
WHEN 'VAT' THEN tax.vat | |
ELSE tax.general | |
END TAX, |
This file contains 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
-- provides percentage taxation | |
DECODE(tax_notice.taxtype ,'VAT',NVL(tax.vat, tax.general) | |
,'PROP',NVL(tax.property_tax, tax.general) | |
,'INC',NVL(tax.income_tax, tax.general) | |
,'TAR',NVL(tax.tariff, tax.general) | |
,tax.general) | |
-- changed to |
This file contains 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
-- provides all employee that are not higher management | |
-- includes employees without a job title | |
SELECT * FROM employees | |
WHERE jobtitle (+) not in ('manager', 'department head', 'president') | |
-- changed to | |
select * from employees | |
where jobtitle not in ('manager', 'department head', 'president') |
OlderNewer