Skip to content

Instantly share code, notes, and snippets.

View robinsmidsrod's full-sized avatar

Robin Smidsrød robinsmidsrod

View GitHub Profile
select author, sum(volatility) as sum_volatility
from distribution
group by author
order by sum_volatility desc
select author, sum(volatility * fail) as most_fails
from distribution
group by author
order by most_fails desc
(2009-07-10 10:43:05) #perlcms: mode (+nt ) by magnet.shadowcat.co.uk
(2009-07-10 10:49:50) zby [~zby@19-tor-3.acn.waw.pl] entered the room.
(2009-07-10 10:50:05) robinsmidsrod: hopefully Theory at some point
(2009-07-10 10:50:07) zby: heh - I see
(2009-07-10 10:50:09) robinsmidsrod: (David)
(2009-07-10 10:50:14) zby: OK
(2009-07-10 10:50:31) zby: anyway first the problems I see
(2009-07-10 10:50:36) robinsmidsrod: in fact, I'm thinking that maybe we don't need to actually choose a framework
(2009-07-10 10:50:39) zby: I think you need to choose a platform
(2009-07-10 10:50:45) zby: Mojo is interesting
int main(int argc, char **argv) {
char *socket_path = "/var/run/dovecot/auth-master";
// Specify alternate path to socket
if ( argc >= 2 ) {
socket_path = argv[1];
}
...
./dovecot-auth /tmp/filealskjflaskfjøalsdfjaølskjfdløkasjdflaskøjfløaskjdfløaksjdfløkasjdfløkasjdfølkajsdfløkjsadfløkjasdløfkjasødljkf
connect() failed
*** stack smashing detected ***: ./dovecot-auth terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f3a550782c7]
/lib/libc.so.6(__fortify_fail+0x0)[0x7f3a55078290]
./dovecot-auth[0x400bab]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f3a54f975a6]
./dovecot-auth[0x4007f9]
======= Memory map: ========
root@server:/var/lib/dpkg/info# cat zlib1g.md5sums
7a397605c5e38502ee677603273732d5 usr/lib/libz.so.1.2.3.3
d80cac43557da93775aa37ea83730ac1 usr/share/doc/zlib1g/changelog.gz
b864456ff86681d287ddec30166bb86c usr/share/doc/zlib1g/copyright
2887c710c335d514bd7f82d284113ae2 usr/share/doc/zlib1g/changelog.Debian.gz
<?xml version="1.0" encoding="utf-8"?>
<assessmentItem xmlns:inspera="http://www.inspera.no" identifier="replaceWithIdent" title="Hvilke elementer er særlig viktige å bevisstgjøre når du jobber med kroppen?" adaptive="false" timeDependent="false">
<responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
<correctResponse>
<value>A4</value>
</correctResponse>
<mapping defaultValue="0" lowerBound="">
<mapEntry mapKey="" mappedValue="2.0"/>
</mapping>
</responseDeclaration>
package IMS::LOM::LangString;
use Moose;
with 'IMS::Include::XMLNode';
with 'IMS::Include::XPathContext';
with 'IMS::Include::findvalue';
use IMS::Include::Attribute::XPathValue;
has 'language' => (
package IMS::Include::Attribute::XPathValue;
use Moose::Role;
has 'xpath_query' => (
is => 'ro',
isa => 'Str',
required => 1,
);
has '+lazy' => (
my $manifest = IMS::CP::Manifest->new( file => $manifest_filename );
foreach my $org ( @{ $manifest->organizations } ) {
my $counter = 1;
foreach my $item ( @{ $org->items } ) {
my $res = $item->resource;
if ( found( $res->href ) ) {
my $data = {
type => 'imscp_resource',