crossfilter filterAll missing value - crossfilter

I am having a strange issue. After clearing all filters on one dimension, one of the entries is missing from that dimension but it is still in the crossfilter. See example code here:
types.filter('visa');
payments.remove();
types.filterAll();
For more details look at that fiddle: http://jsfiddle.net/RFontana/6YWSd/

It appears this has been fixed as of version 1.3.7
See http://jsfiddle.net/RFontana/6YWSd/7/
types.filter('visa');
payments.remove();
types.filterAll();

Related

Increase maxTokensPerLine in Atom.IO

How can I increase maxTokensPerLine in my own Atom.IO environment?
I've got some long lines causing syntax to not be recognized properly, for example not highlighted correctly and brackets not taken note of etc.
But this seems to be a current source containing it. It seems to be taken as a parameter which suggests it could be configurable?
grammar-registry.coffee
I found
this.maxTokensPerLine = (_ref1 = options.maxTokensPerLine) != null ? _ref1 : Infinity;
on line 22 of /usr/share/atom/resources/app/apm/node_modules/first-mate/lib/grammar-registry.js
maxTokensPerLine also appears in
/usr/share/atom/resources/app/apm/node_modules/first-mate/lib/grammar.js
I tried adding maxTokensPerLine: 1000 in config.cson under *, core and editor, but it had no effect.
(old) maxTokensPerLine
syntax.coffee
You can use the package grammar-token-limit, which will handle changing it for you. All you need to do is specify which value you want in the package settings.
I guess if you want to do it yourself, this package would be the place to start looking.

Qt OpenGL: Depth Test not working

I am working on Qt/openGL and I have some issue to activate my depth buffer.
At every frame, I activate the following states:
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
Plus I checked that the size of my depth buffer is not null (glGetIntegerv(GL_DEPTH_BITS) gives me 24, which is the expected value)
however the depth test is not working and some fragments that should be discarded by depth test are not.
Any idea?
OK, so problem fixed!
Here is the method I used if anyone gets the same issue.
I installed GDebugger, and checked that depth buffer was indeed not written.
I exported the openGL current state and here are the states relative to depth test:
GL_DEPTH_BIAS=0
GL_DEPTH_BITS=24
GL_DEPTH_CLEAR_VALUE=2147482496
GL_DEPTH_FUNC=GL_LESS
GL_DEPTH_RANGE={0, 1}
GL_DEPTH_SCALE=1
GL_DEPTH_TEST=TRUE
GL_DEPTH_WRITEMASK=FALSE
Everything seems okay except GL_DEPTH_WRITEMASK which is false.
I activated it using:
glDepthMask(GL_TRUE);
and everything is working!
EDIT: Actually, the activation of the state must be done at every frame for correct rendering
I was facing the same problem, and setting the GL_DEPTH_BUFFER_BIT in the glClear function solved my problem.

Variable Properties in LESS CSS

I am trying to create me a PX/REM converter in LESS CSS but I am facing a problem.
The following lines do not want to compile, the problem comes from #{propertyValue}:.
.rem(#propertyValue; #sizeValue) {
#remValue: #sizeValue / unit(#base-font-size);
#{propertyValue}: ~"#{remValue}rem";
}
But yet I think the syntax is good... at last I thought! Can you help me?
Thank you!
Are you using at least LESS 1.6? Variables as property names were added in 1.6. Prior to 1.6 there are some solutions but none are pretty.
Your snippet works in this LESS previewer which is running 1.6.0: less2css

Looking for a filter to modify the months

Hi making a simple plugin that replaces the wrong russian month with the right ones.
But I can't find any filters that works.
I have tried these filters without success:
add_filter('get_the_modified_date', 'russian-month');
add_filter('the_modified_date', 'russian-month');
add_filter('date_rewrite_rules', 'russian-month');
Just found out that you can use more functions as filters and not only the ones on http://codex.wordpress.org/Plugin_API/Filter_Reference#Date_and_Time_Filters
add_filter('get_the_date', 'russian-month');
did the trick for me :)

Why does Qt add more than three columns when I use restoreState() on a QTableWidget?

My code looks somehow like the following:
table = QTableWidget()
table.horizontalHeader().restoreState(settings.value("savedState"))
table.setColumnCount(3)
settings.setValue("savedState", table.horizontalHeader().saveState())
If I run it the first time it there are only 3 column headers. The second time there are 6 and the third 9... The strange thing is table.columnCount() is always 3. If i remove table.setColumnCount(3) there are no columns at all.
Why is this happening and is it a bug or intentional?
UPDATE
Adding table.clearContents() before table.setColumnCount(3) made it work. I still think it's a bug.
Which platform and what Qt version is this? http://chaos.troll.no/~hhartz/tablecolumns.tar seems to work fine using latest Qt 4.5
What happens with?
table = QTableWidget();
table.setColumnCount(3);
table.horizontalHeader().restoreState(settings.value("savedState"));

Resources