spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
  Home » MISC » Page 1
Overlapping Marker Spiderfier + MarkerWithLabel
The issue stems from the optimized Marker attribute, which MarkerWithLabel forces to false. Leaving optimized as true (the default setting) should result in correct spiderfying. Doing so requires a patch to the MarkerWithLabel source though: removing the lines that set optimized = false: function MarkerWithLabel(opt_options) { opt_options = opt_options || {}; opt_options.labelContent = opt_o

Categories : Misc

Working with boards in Phabricator
You can plan an release and add milestones for product level and add multiple projects in it and spread it across team members in multiple projects in further small tasks. Then you will have an individual task board for each team on team level tasks. A team member then exist across multiple projects and you can also view , how an person is loaded across multiple projects. If you want to look at

Categories : Misc

Parse error on explode function
[] notation for arrays is only supported in PHP 5.4+, try this if you're using a lower version : while($row = $articlesQuery->fetch_object()) { $row->liked_by = $row->liked_by ? explode('|', $row->liked_by) : array(); $articles[] = $row; }

Categories : Misc

CRM 2013 refresh subgrid with fetchxml
Your fetch XML looks correct to me. When you set up the subgrid did you set "Records" = "All Record Types" in the Data Source section? If you did not then the subgrid will append a condition to your fetchxml so that it returns only records related to the specific relationship that you specified.

Categories : Misc

How to increase cache expiration date with firebase tools?
The source for the header isn't matching the input path of images in that folder - it needs to start with a /: { "firebase": "sistema-de-oficios", "public": ".", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ], "headers": [{ "source": "/css/images/*.@(jpg|jpeg|gif|png)", "headers": [{ "key": "Cache-Control", "value": "max-age=7200" }] }

Categories : Misc

Setting 2nd TextColor for NSTextField in NSOutlineView
http://blog.the-skylab.de/2013/03/21/custom-selectionhighlighting-colors-in-a-view-based-nstableview-or-nsoutlineview-badge/ I'm doing it like this. Subclass NSTextfield and overwrite drawRect: and add a backgroundStyle property. Works most of the time, but better than nothing. BackgroundStyle is not the same as highlight, but near ;)

Categories : Misc

Marking an Agent as abstract?
You can't declare anything abstract (class or method (AnyLogic function)) in a GUI-designed Agent, but you can create an Agent as a user-defined Java class (i.e., via New --> Java Class) which is abstract. You need to know the appropriate constructor signatures to do so, which AnyLogic doesn't document (but you can see them easily enough by viewing the generated Java code for any Agent). You'll th

Categories : Misc

How can you check if AC_PROG_CXX has failed?
You could try compiling a minimal program, e.g., AC_LANG_PUSH([C++]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [[#ifndef __cplusplus #error "broken C++" #endif]])],, [CXX=;]) AC_LANG_POP([C++]) If the compilation fails, we explicitly set CXX to an empty string. So depending on what you want to do: if test "x$CXX" != x ; then ... we have a working C++ compiler - setup optional stuff ...

Categories : Misc

IScroll not working if contents are 100% height?
The problem is that the height is always calculated relative to the next offset parent. Since the inner iScroll wrapper must be positioned relative it is every child's offset parent and thus the basis for their height calculation. There is a simple workaround though: Instead of height: 100% use height: 100vh in your CSS. Viewport units is something only few people seem to know about even though s

Categories : Misc

Twython : cursor on statuses/get_user_timeline returns my tweets instead of screen_name passed
This problem of getting the tweets from the authenticated user happened to me before. The reason was that I was giving as argument an non-existent user. Make sure you don't confuse the name with the screen-name.

Categories : Misc

Power Query Parameter works in one table but not another
so i had to insert a transform for pq to treat as a date. Even though in the Parameter pq (that loads the value from the parameter table) it is already transformed. replaced the first three lines before the source line with the following and it worked Date_Parameter = Excel.CurrentWorkbook(){[Name="Parameter"]}[Content], #"Changed Type1" = Table.TransformColumnTypes(Date_Parameter,{{"Value", type

Categories : Misc

WOWZA LiveAutoRecord
Don't make things more difficult than necessary (assuming you have Wowza 4.x; if you still have 3.x then I highly recommend to upgrade for free) Open the Engine Manager (http://your.server.com:8088) Go to "Applications" from the top menu Select your application from the left menu (e.g. "live") In the setup window for this application, click the blue Edit button Enable "Record all incoming strea

Categories : Misc

GNU Parallel multiple sets of commands
I assume you dont want Bs with your apples. Otherwise it is as simple as: parallel mycmd ::: [A-Z] ::: [a-z]* If A can be computed as the first char of the second arg, you can from version 20140722 do this: parallel mycmd '{= $_=uc(substr($_,0,1)) =}' {} ::: [a-z]* If you have a list of apples and the correspondin As like this: A,apples1 A,apples2 B,bananas1 B,bananas2 B,bananas3 then you

Categories : Misc

Extjs 5 insert() not working
Your data is getting sorted, delete store.sortInfo is not enough. Try this code instead: store.getSorters().clear(); store.getSorters().beginUpdate(); store.getSorters().endUpdate(); Fiddle: http://jsfiddle.net/vnneu76y/1/

Categories : Misc

Naming: time you have to wait before something is valid
I don't believe there is a standard computing term for "the time you have to wait before something is valid", but a common computing term used for waiting is (obviously!) "wait" or "delay". In my opinion "CLICK_GESTATION_HOURS" is not a good choice of variable name as it is very ambiguous i.e. the term gestation implies that click is going to give birth to something (another click?!). How about

Categories : Misc

Getting 2 Notice: Undefined Variable errors
You have these notices because the variable $HawA_Homes isn't declared in your code before being used at line 48 and 56. (These are just notices, they are not critical errors, you can avoid displaying them by adding error_reporting(E_ALL & ~E_NOTICE); at the begining of your code, like explained here) In fact, you used $HawA_Homes instead of $tableName in these lines. Replace them, you won't

Categories : Misc

calabash-android - What does resign do?
The resign is used if you need to sign the app to match your keystore. Copied from GitHub docs https://github.com/calabash/calabash-android/wiki/Running-Calabash-Android Instead of resigning you could also consider copying your debug keystore to your folder. The apk calabash android runs must be signed with the same keystore as the test-server. Use the command: calabash-android resign

Categories : Misc

Elmah is not logging NullReference exception
Well, Thomas Ardal answered right. Problem was in the FilterConfig.cs file. Because in default settings it didn't want log any 500 errors, dangerous requests, null reference exceptions etc, i have added this lines: public class ElmahHandleErrorAttribute : HandleErrorAttribute { public override void OnException(ExceptionContext filterContext) { if(filterContext.Exception is HttpRe

Categories : Misc

MTM has a test agent in "Ready" status, but can't connect
Aha! I have found the answer, and it is here. Basically, you have to reduce somewhat the security of your environment to allow RDP Clients that aren't the same version as the host OS expects to run.

Categories : Misc

Does Vertica DBD takes Inner Queries into account while configuring Projections?
It does take into account queries with joins, in the sense that it tries to look for a common key. After DBD is finished with the design, it's always a good idea to review the design before deploying. The best way to optimize for joins is by using primary & foreign keys, and possibly pre-join projections. Another approach is to look at your actual schema design as the goal should be to have

Categories : Misc

VLFeat's Image Mosaicing in Matlab
The content of box2 is simply the bounding box (corner coordinates) of the second image; box2_ is then this bounding box transformed into the coordinate system of im1 - in which you compute the range of coordinates (ur and vr) where to project im2 after transformation. The purpose of variable mass is just to indicate how many images cover each pixel: If only one image is nonempty at a given pixel

Categories : Misc

jsPlumb.fire("jsPlumbDemoLoaded", instance); what is this?
The same statement had me a little confused too. It seems to be calling an undocumented EventGenerator method. The first argument is the name of an event. The only event that seems to be set up by default is "ready". So the fire method checks if an event called "jsPlumbDemoLoaded" exists, then, when it's not found, the method returns. My guess is it's a leftover from an older version.

Categories : Misc

How good are modern recommender engines?
You are actually asking quite an interesting question. There is still a lively debate going on in the academic community about a) what a "good" recommendation even means, and b) the metrics to use for prediction accuracy, and other evaluation measures. You asked: What quality of recommendation do average and best recommender systems have approximately? The answer is - it depends on a lot o

Categories : Misc

buildroot does not copy C++ headers to sysroot
Buildroot is definitely copying the C++ headers, and people are building C++ applications every day with Buildroot. However, if when building your application you get "unsafe usage of /usr/include", then it means that the Makefile of your application is broken, as it passes -I/usr/include in the CFLAGS, which is really bad when cross-compiling. Fix this, and your C++ header will go away.

Categories : Misc

where is Pluglet in ibm rsa 9?
I resolved it with this : http://www-01.ibm.com/support/docview.wss?uid=swg21590669. To resolve the problem, you have to add new capabilities : Open the Preferences window by clicking Window > Preferences. Open the General node, then open the Capabilities page Enable pluglet development: On the Capabilities page, click the Advanced button. The Advanced Capabilities Settings window opens. Expand

Categories : Misc

Gsp / HTML page not supporting wcm tags
According to the docs I am right Here, three different Grails taglibs are being used to create the form: g:hasErrors is a Grails tag used to detect any errors on the submittedContent data and alerts the user if so wcm:submitContentForm creates a form that will submit content of a specific type, as set in the "type" attribute. So you need to use gsp and probably return a partial. I would look at

Categories : Misc

Guice: bind parameters that do NOT have an annotation
You don't have to target those injection points requiring the A implementation - you just need to write a binding for them. Recall that every binding in Guice is represented with a Key and make sure to add one for both cases. This way any I without a binding annotation gets A and any I properly annotated gets B. static interface I {} static class A implements I {} static class B implements I {}

Categories : Misc

Spring AMQP: Register BlockedListener to Connection
This is not currently available out of the box; please feel free to open an Improvement JIRA Issue. However, you can add a Spring AMQP ConnectionListener to the CachingConnectionFactory... connectionFactory.addConnectionListener(new ConnectionListener() { @Override public void onCreate(Connection connection) { Channel channel = connection.createChannel(false); channel.ge

Categories : Misc

How to calculate the cross section of a tetrahedron
Intersect all tetrahedron edges by the plane. You will get 3 or 4 intersection points. If 3 points then a single triangle. If 4 points, they form a convex quadrilateral. Take any 3 points, that form a first triangle. The other triangle if formed of the fourth point and the two endpoints of the edge that has this point to its right. Alternatively (for a more general solution), tag the intersecti

Categories : Misc

LAPACK/BLAS sgemm() slower than custom matrix multiplication
The BLAS routine is used correctly. The only difference is that BLAS is performing C = 0.0*C + 1.0*A*B and your loop C = C + A*B In your loop you are trying to improve usage of cpu's cache memory. There are variants of BLAS that perform similar actions. I suggest you to try openblas, atlas or mkl (intel compiler) libraries. You will get great time improvements.

Categories : Misc

How to solve race condition in etcd leader election?
In my understanding, you can save the cluster, but it isn't worth it. The cluster is not accepting new machines because it needs a quorum to add new machines and there is not a quorum of existing machines. The same goes for removing machines and deleting keys. If you can bring up enough machines listed as cluster members and have them successfully work as cluster members, you will have a quorum

Categories : Misc

SCP is creating subdirectory... but I just want it to copy directly
The problem is that if you don't use the asterisk (*) in the local part of the call, scp will create a new top level directory in the remote server. It should look like this: scp -r /usr/local/web/www/foosite/* scpuser@216.99.999.99:/usr/local/www/foosite This says "Copy the CONTENTS" (but not the directory itself) to the remote location. Hope this helps... Took me an hour or so to figure th

Categories : Misc

How to recover master from a backup on moosefs-ce.2.0
It is described in the documentation. You can find the documentation here: MooseFS Documentation. Paragraph 4.2 (page 19) of MooseFS User's Manual "Master metadata restore from metaloggers" says: 4.2 Master metadata restore from metaloggers In MooseFS Community Edition basic configuration there can be only one master and several metaloggers. If for some reason you loose all metadata files an

Categories : Misc

creating a vsam file using jcl
All messages will have an id (e.g., IEA1235) that can be used when searching for what generated the message. You need to specify space in your IDCAMS 'DEFINE'. Look in your manual (or online) for specifying space for VSAM clusters.

Categories : Misc

Virtualization is on but still getting the error while installing HAXM
Go into your BIOS setup and enable VT-x. I was unable to get it installed and ended up installing the GenyMotion Android Emulator. It worked and is fast.

Categories : Misc

Can't set the value of textItem.contents
Its hard to see whats going wrong when there is no code example. This works for me. Tested in PS CC 2014 Mac OSX // needs a Photoshop document with only one textlayer var d = app.activeDocument; var l = d.artLayers[0]; if(l.hasOwnProperty ("textItem")){ $.writeln("yes"); l.textItem.contents = "Hello World"; }

Categories : Misc

CSS3Pie - after changing style by jquery it doesnt work any more
jQuery's .css('x') method sets element.style.x behind the scenes; if you were doing that directly then you'd have to use element.style.PieBackground='...' so try formatting the property name that way here too: contentHeader.css('PieBackground', '...')

Categories : Misc

CrossRider - when do we need to use appAPI.JSON?
The appAPI.JSON.stringify and appAPI.JSON.parse methods are provided to support for these JSON methods in older browsers that do not natively support JSON.stringify and JSON.parse (e.g. IE7). Hence, it's a good practice to use them from the outset. [Disclosure: I am a Crossrider employee]

Categories : Misc

Can I have a data-pipeline as a part of my cloud-formation template?
CloudFormation does not support Data Pipeline. (It is not listed under supported services and also I have discussed this with AWS Professional Services) http://aws.amazon.com/cloudformation/ You can create Data Pipeline through a CLI script and as far as I know that is the only way to automate it.

Categories : Misc


Recently Add
Is there a way to disable zooming in svg-edit?
Overlapping Marker Spiderfier + MarkerWithLabel
Working with boards in Phabricator
Parse error on explode function
CRM 2013 refresh subgrid with fetchxml
How to increase cache expiration date with firebase tools?
Setting 2nd TextColor for NSTextField in NSOutlineView
Marking an Agent as abstract?
How can you check if AC_PROG_CXX has failed?
IScroll not working if contents are 100% height?
Twython : cursor on statuses/get_user_timeline returns my tweets instead of screen_name passed
Power Query Parameter works in one table but not another
WOWZA LiveAutoRecord
GNU Parallel multiple sets of commands
Extjs 5 insert() not working
Naming: time you have to wait before something is valid
Getting 2 Notice: Undefined Variable errors
calabash-android - What does resign do?
Elmah is not logging NullReference exception
MTM has a test agent in "Ready" status, but can't connect
Does Vertica DBD takes Inner Queries into account while configuring Projections?
VLFeat's Image Mosaicing in Matlab
jsPlumb.fire("jsPlumbDemoLoaded", instance); what is this?
How good are modern recommender engines?
buildroot does not copy C++ headers to sysroot
where is Pluglet in ibm rsa 9?
Gsp / HTML page not supporting wcm tags
Guice: bind parameters that do NOT have an annotation
Spring AMQP: Register BlockedListener to Connection
How to calculate the cross section of a tetrahedron
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.