235
votes
0answers
6k views

How to use Shapeless in a Quasiquote?

I'm trying to call a Shapeless macro from inside a quasiquote with Scala and I'm not getting what I would like to get. My macro doesn't return any errors but it doesn't expand Witness(fieldName) ...
129
votes
1answer
1k views

Does GHC-mod have to use full names for types?

I'm trying to use the ghc-mod vim plugin to do type/syntax checking etc. However, I found that ghc-mod always uses full paths of types in the error messages, for example: test.hs|71 col 13 error| ...
110
votes
0answers
2k views

Netflow record can't get octets (jnca)

I'm using jnca library to collect NetFlow records sent by a router. The version of the NetFlow record sent by the router is version 9. When the NetFlow packet is observed from the Wireshark the flow ...
97
votes
0answers
938 views

Scalaz iteratees: “Lifting” `EnumeratorT` to match `IterateeT` for a “bigger” monad

If I have an EnumeratorT and a corresponding IterateeT I can run them together: val en: EnumeratorT[String, Task] = EnumeratorT.enumList(List("a", "b", "c")) val it: IterateeT[String, Task, Int] = ...
93
votes
0answers
889 views

Display a MPI typemap

The type map is an important but confounding concept in MPI. I would like a routine to display or print a type map for me. For example (taken from the MPI-3 standard), MPI_TYPE_CREATE_RESIZED(...
78
votes
3answers
4k views

How to train the Stanford Parser with Genia Corpus?

I have some problems to create a new model for Stanford Parser. I have also downloaded the last version from Stanford: http://nlp.stanford.edu/software/lex-parser.shtml And here, Genia Corpus in 2 ...
73
votes
1answer
1k views

Required tags not present when using Delphi XML Data Binding Wizard

I am using the XML Data Binding Wizard in Delphi XE2. The schema has required tags of this type: <xs:element name="MyReport" type="MyReportType" /> <xs:complexType name="MyReportType"> &...
68
votes
1answer
2k views

Erratic hole type resolution

I recently found out that type holes combined with pattern matching on proofs provides a pretty nice Agda-like experience in Haskell. For example: {-# LANGUAGE DataKinds, PolyKinds, TypeFamilies, ...
57
votes
0answers
811 views

Steps to make an existing JNDI HornetQ service as HA?

TL;DR What are the steps to configure a HA-JNDI service with a HornetQ setup? I believe the documentation is a little scattered. I have read through the docs here but doesn't seem to illustrate in ...
56
votes
0answers
717 views

EWS API - Error when recreating notification subscriptions

When working with pull subscriptions to Office365 calendar folders, I've been getting a lot of ErrorReadEventsFailed messages in the SendNotification request. This error essentially means that the ...
52
votes
1answer
335 views

How to handle changing the implementation of Events when using Data.Acid

I have a moderately sized application that uses Data.Acid for persistence and I've encountered a situation where I need to update the implementation of one of my Update events for the next version of ...
51
votes
2answers
949 views

Ember js - Hasmany relationships breaks after updating other tables

I am using Ember.js with local-storage-adapter. I have a weird problem while updating records. I have a post and comments model with hasMany relationships: App.Post = DS.Model.extend({ title: ...
50
votes
0answers
802 views

HowTo: Custom Field in Lift-Record-Squeryl

I'm trying to make a EnumListField in Lift/Record/Squeryl, similar to MappedEnumList in LiftMapper. The storage type should be Long/BIGINT. I understand that if I define: def classOfPersistentField = ...
49
votes
0answers
1k views

Create custom User Control for Acumatica

I am attempting to create a custom User Control that is usable in the Acumatica Framework. Documentation is very limited so I was hoping someone may have some experience/examples of how best to ...
46
votes
0answers
659 views

How to deal with Mac OS X Helper/Main app architecture regarding core data, shared preferences and notifications?

I'm having some architectural doubts about a project (Mac OS X app) I'm working on. It basically consists of two elements: a daemon that runs in the background gathering some data and a viewer used to ...

15 30 50 per page