Skip to content

Instantly share code, notes, and snippets.

View pschyska's full-sized avatar
🤔
Aber das geht doch besser‽

Paul Schyska pschyska

🤔
Aber das geht doch besser‽
View GitHub Profile
class Base
def config
@config||=configuration
end
def configuration
# no op
end
end
this.on('componentload', function (instance) {
switch (instance.name) {
case "email":
this.email.on("addrecipients", function(parameters){
console.info("addrecipients event parameters:", parameters);
console.info("this:", this);
this.addRecipients(parameters);
});
this.email.on('sendmessage', function(message_id){
this.sendMessage({message_id: message_id});
private boolean isColumnTrimmable(int paramInt)
throws SQLException
{
switch (this.fields[(paramInt - 1)].getSQLType())
{
case -4:
case -3:
case -2:
case -1:
case 1:
<?xml version="1.0"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.0.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_0_0.dtd">
<liferay-portlet-app>
<portlet>
<portlet-name>Content Browser</portlet-name>
<icon>/icon.png</icon>
<instanceable>true</instanceable>
<ajaxable>false</ajaxable>
<header-portlet-css>/css/main.css</header-portlet-css>
20:32:29,343 ERROR [MinifierFilter:136] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
Benchmark Summary
Section Description Score Geekbench Score
Geekbench 2.2.6 for Mac OS X x86 (32-bit) What does this score mean?
Integer Processor integer performance 2929 3554
Floating Point Processor floating point performance 5131
Memory Memory performance 2621
Stream Memory bandwidth performance 2092
System Information
Operating System Mac OS X 10.7.2 (Build 11C74)
Model MacBook Pro (15-inch Mid 2009) Motherboard Apple Inc. Mac-F22587A1 MacBookPro5,4
Loading development environment (Rails 3.1.3)
1.9.3-p0 :001 > ActiveLdap::Base.schema.dump
NOTE: Gem.available? is deprecated, use Specification::find_by_name. It will be removed on or after 2011-11-01.
Gem.available? called from /Users/pasc/.rvm/gems/ruby-1.9.3-p0@invoice_receipt_ldap_admin/gems/activeldap-3.1.0/lib/active_ldap/connection.rb:214.
{"objectClasses"=>
["( 2.5.6.0 NAME 'top' DESC 'top of the superclass chain' ABSTRACT MUST objectClass )",
"( 1.3.6.1.4.1.1466.101.120.111 NAME 'extensibleObject' DESC 'RFC2252: extensible object' SUP top AUXILIARY )",
"( 2.5.6.1 NAME 'alias' DESC 'RFC2256: an alias' SUP top STRUCTURAL MUST aliasedObjectName )",
"( 2.16.840.1.113730.3.2.6 NAME 'referral' DESC 'namedref: named subordinate referral' SUP top STRUCTURAL MUST ref )",
"( 1.3.6.1.4.1.4203.1.4.1 NAME ( 'OpenLDAProotDSE' 'LDAProotDSE' ) DESC 'OpenLDAP Root DSE object' SUP top STRUCTURAL MAY cn )",
1.9.2 (main):0 > book1=Book.first
Book Load (0.5ms) SELECT `books`.* FROM `books` LIMIT 1
+----+-----------+-------------------+-----------+-----------+-------+------+--------+---------------------+----------------------+---------------------+--------------+
| id | author_id | title | exemplars | digitized | notes | tags | rating | created_at | updated_at | last_read_at | published_on |
+----+-----------+-------------------+-----------+-----------+-------+------+--------+---------------------+----------------------+---------------------+--------------+
| 4 | 32 | Journey to Ixtlan | 4 | | | | | 2012-02-03 23:22... | 2012-02-03 23:22:... | 2011-12-13 11:12... | 2011-12-13 |
+----+-----------+-------------------+-----------+-----------+-------+------+--------+---------------------+----------------------+---------------------+--------------+
1 row in set
1.9.2 (main):0 > book2=Book.first
Book Load (0.6ms) SELECT `books`.* F
<script type="text/javascript">
//<![CDATA[
Ext.ns("Netzke.classes.Inspector");
Ext.define('Netzke.classes.Inspector.Summary', Netzke.chainApply({
extend: 'Ext.panel.Panel',
alias: 'widget.inspectorsummary',
constructor: function(config) {
Netzke.aliasMethodChain(this, "initComponent", "netzke");
Netzke.classes.Inspector.Summary.superclass.constructor.call(this, config);
class Base
attr_accessor_with_default :config, OrderedOptions.new
def initialize passed, parent
# how do we handle class_level default config and delegatestodsl config in a way that it's overridable by the user?
@config.merge! passed
end
def js_config
@config.reject {