RSS We Heart Code
哪吒推荐该订阅
简介:a discourse on programming
原站:http://www.weheartcode.com
点击立即订阅,“We Heart Code”的内容有更新,哪吒第一时间提醒您
“We Heart Code”的内容更新
累计:43 篇(自 2007-04-25 起)
更新:约9篇/年,最后更新761 天前
We Heart Code
it may look like your delete statement is hung, but ff your table has foreign keys in another table without indexes on that column oracle will full table scan that other table for every row that you’re deleting. hopefully this saves someone some time.bookmark to:<a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no... (314 天前)
We Heart Code
here's how to generate a luhn mod-10 check digit. it's implemented as a function in oracle pl/sql. i spent 2 hours looking for this online, then decided to implement it myself since it's not that hard. anyway, i thought i'd post it here for the next person trolling google for it. this is useful for generating credit card numbers or any other place you ne... (314 天前)
We Heart Code
i was burned one to many times by chaining dependent java programs together in a bash script.by default the java executable will return zero if the program exited manually, and 1 if there was an uncaught runtimeexception.let's say test.sh runs a java program, we want to run it 3 times, but if it fails during any of the runs we want to abort our run.#!... (314 天前)
We Heart Code
I am using mod_wsgi instead of mod_python for my trac .11 install.I’m also using the AccountManager plugin for authentication, and don’t have anonymous access setup.Anyway, authentication wasn’t working (through XML RPC) hence mylyn didn’t have the perms to do anything, and was silently defaulting to anon mode. even though I had the XML RPC plugin ... (314 天前)
We Heart Code
Here's an (I think elegant) way to create flat files with Groovy.I want this script to be easy to read by future developers. So if someone wants to know what the format of the file is they can see it just by opening the script.Classes We'll UseGroovy:SQL: We'll use this library to access the database, it has some nice closure methods like eachRow whi... (314 天前)
We Heart Code
I've found myself using Java as a "scripting" language lately due to the necessity of working in mixed *nix and windows environments where I can't count on a standard scripting language being installed like python,perl, or ruby. What's more I either don't have the rights to install a binary of said scripting languages or don't want to go through the bure... (314 天前)
We Heart Code
This is nothing fancy, but may help some of you log4j newbies.I found myself replacing a project's hideous System.out.println statements with log4j log calls.Just do a File Search in eclipse , tick the regular expression box and do a Replace:Find: System\.out\.println\("(.+?)"\);Replace: log.info("\1");Now you just have to go in and add your imports... (314 天前)
订阅者 ( 1 )
sagasw
相关订阅源
RSS IT与人性|Src's Blog

it法人,人法地,地法天,天法道,道法自然!

标签: it blog it与人性|srcs web2.0 人性

指数 | 110人订阅  

RSS 草根网

草根网关注互联网行业变化,关注草根创业,关注项目的运营,草根网是以DIGG +点评方式阅读IT资讯,交流思想,积累知识的学习型互助社区。

标签: 草根网 it it资讯 草根 it资讯精读

指数 | 2077人订阅  

我要反馈