w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
  Home » MISC » Page 1
Embedded OpenMQ HA broker not shutting down due to Non deamon thread
According to Amy Kang of Oracle "The HATimerThread in HAMonitorService is supposed to run as long as the broker is not terminating or util broker calls System.exit() to terminiate or restart itself. However it can be made daemon thread." see OpenMq users forum

Categories : Misc

New command line feature
The command line option for the existing instances in the project has been removed. Now it only shows while you are creating the new instance. However, for the existing ones you can see the REST Equivalent.

Categories : Misc

jquery-2.1.1.min.js Openwrt Luci
SSH into your router and issue following commands to download jquery-2.1.1.min.js at an appropriate location in the web directory of your device. $ cd /www/luci-static/resources $ wget http://code.jquery.com/jquery-2.1.1.min.js Include the downloaded JQuery source in your HTML file as follows: <script type="text/javascript" src="/luci-static/resources/jquery-2.1.1.min.js.js"></script&

Categories : Misc

Derive Monad from Fay newtype in order to enable do notation
Looks like I need to enable {-# LANGUAGE RebindableSyntax #-} to override the functions, that the do notation is calling. Then I need to implement the wrapping and unwrapping to/from the newtype in the functions that I plan to use in the do notation and shadow the Prelude ones: myFayReturn :: a -> ReadFay a myFayReturn x = ReadFay $ return x myFayBind :: ReadFay a -> (a -> ReadFay b

Categories : Misc

How to get notified when MKMapKit zoom level changed?
You want: mapView:regionWillChangeAnimated: mapView:regionDidChangeAnimated: If you want a true zoom level, check out this category method for the math: https://github.com/mapbox/mbxmapkit/blob/ade77616e9c74dbeb46df0629fc22ca4f56cf4a5/MBXMapKit/MBXMapKit.m#L30-L39

Categories : Misc

'thrust::system::system_error' error when running GPGPU database engine Alenka
The problem was raised due to minor errors which summed up to this confusion. When a load command is fired on alenka, it creates binary files containing data from each column of the table. These files will be overwritten if they are load again, however if the column names are changed it would create a new file along side the old ones. So its a good idea to delete those files after renaming colum

Categories : Misc

Error "Object does not support property or method 'selectize'" on selectize initialization
yes... i'm using jQuery. I load dependencies in this order: microplugin.min.js sifter.min.js selectize.js selectize.default.css do you think is this the wrong order?

Categories : Misc

how to export kendo-chart to pdf
This JS code exports all rendered to container element with ID 'your_container_with_charts_inside' charts to PDF: $( document ).ready(function() { var $element = $('#your_container_with_charts_inside'); kendo.drawing.drawDOM($element) .then(function (group) { return kendo.drawing.exportPDF(group, { paperSize: "auto", margin: { left: "1cm", top: "1cm",

Categories : Misc

Gravity Server push - Need data to be pushed to client where request has been made
You have to use selector property of your GDS consumer object. var consumer:Consumer = new Consumer(); consumer.destination = "quotes"; consumer.selector = "id='hereIdOfTheConsumerLogged'"; and send message from your java server for example like that : myMessage.setStringProperty("id", "hereIdOfTheConsumerLogged"); If "hereIdOfTheConsumerLogged" equals "10", only user with id=10 for selector

Categories : Misc

Load HTML error or navigation timeout
You should first check that the HTML page you convert is accessible in a browser on the server where you run the conversion. You can find more details in troubleshooting page in online documentation on EVO website. Here is a copy of the relevant information: The conversion fails with 'Navigation interrupted', 'The remote host name was not found', 'The remote server refused the connection' or 'Unk

Categories : Misc

How do I use dynamic arguments in my SpecFlow scenario background?
So I did some searching and couldn't find a solution that didn't require a lot of coding so I made this up: this is what the background looks like Background: Given I have selected my test data: | Scenario | ID | | DirectCredit_GBP | 20003 | | Cheque_GBP | 20004 | | ForeignCheque_GBP | 20005 | And in order to find which row it should use the method behind it uses ScenarioCo

Categories : Misc

IIS Express doesn't keep session data
This is a correct behavior, to understand this you need to understand the working of IIS worker process, which hosts the application. Every time it recycles the worker process, all the data will be lost, as worker process restart. Following are your options: Maintain the data that you need in server side structures like Session (which is per user implementation) or Cache (Application wide), whic

Categories : Misc

Repository layout with Ivy in Artifactory
You can store both ivy.xml and pom files in Artifactory, it will give you the ability to migrate to maven (if you wish), although Artifactory fully support automatic conversion of layouts from ivy layout to maven2 layout and vice versa. You can also use the convention user plugins to generate ivy.xml out of pom.xml and vice versa as well. Here are the docs on Artifactory Ivy support.

Categories : Misc

How to match 'any' parameter type while mocking private method in Jmockit
Note the API documentation for the any field says: "In invocations to non-accessible methods or constructors (for example, with Deencapsulation.invoke(Object, String, Object...)), use withAny(T) instead." That is, you need to use withAny(Department.class) with the invoke(...) call.

Categories : Misc

Is that possible to dynamically add a web source client to Icecast?
Currently there are no Icecast web source clients. And yes it is possible to dynamically add source clients, since having a <mount> section is generally not required, only if advanced mountpoint configuration is used. So just point the source client to an unused mountpoint location and use the general source password and the username source to identify.

Categories : Misc

Using pymc.potential to prevent evaluation of function at meaningless parameters values
I am not aware of a way of ordering the evaluation of the potentials. This might not be the best way of doing so, but you might be able to check if the parameters are within reasonable at the beginning of the simulation. If the parameters are not within reasonable bounds you can return a value that will create your posterior to be zero. Another option is to create a function for your likelihood

Categories : Misc

how to start selendroid inspector and find the webelement in UI
Run your test case in debug mode and add breakpoints to the test method. Then open your browser and http://localhost:4444/inspector You can inspect elements.

Categories : Misc

facebook Graph api fetch list of all friends
After Graph API 2 and above you can no longer do this. You can only fetch the list of those friends who use your app i,e who have given permission to your app. This has been done by fb for security reasons.

Categories : Misc

Eclipse PDT - What does "Build Project" command do?
What is doing on server, is doing on server. This is an IDE. Build project with PHP Language nature doing similar thing as with Java, JavaScript and other languages in Eclipse IDE: Indexing Parsing Validating Caching Special plugins may also autorun external command.

Categories : Misc

Laravel 5: POST whithout CSRF checking
My hack to the problem: CSRF is now a "middleware" registered globally in AppHttpKernel.php. Removing it will default to no CSRF protection (Laravel4 behavior). To enable it in a route: Create a short-hand key in your app/Providers/RouteServiceProvider.php : protected $middleware = [ // .... 'csrf' => 'IlluminateFoundationHttpMiddlewareVerifyCsrfToken', ]; You can now enable it to an

Categories : Misc

System table to extract foreign keys in sap hana
Check system table REFERENTIAL_CONSTRAINTS: select * from "REFERENTIAL_CONSTRAINTS" That's where foreign keys are listed - just as it can be found in the system documentation.

Categories : Misc

Windows Phone 8.1 override back button on a certain page
Consider hard if this is what you really want to do. A more user friendly flow would be to save the data and let the user back out of the app and return. Also consider what happens if the user exits in a different way such as the window or camera button. That said, the code you list will work if that's the only navigation handling that you have (try it in the BlankPage template). I suspect that i

Categories : Misc

Load mask for Jasny bootstrap plugin
Any characters after "?" are optional <input class="form-control" id="txtEIN" type="text" data-mask="9?999" /> jsfiddle

Categories : Misc

Spring WebSocket is not send queue-suffix after connection
I am using the annotation-based configs and messaging classes. I'm also using SpringBoot 1.2.0.RC1 which pulls in Spring 4.1.2.RELEASE. So, given that I set up my websockets & STOMP as follows: @Configuration @EnableWebSocketMessageBroker public class WebSocketProdConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void registerStompEndpoints(StompEndpointRegi

Categories : Misc

h:selectOneMenu with EnumConverter are updating to null value
The problem persisted until I used the property ajaxSingle="true" (default is 'false'), as shown below: <a4j:support event="onchange" oncomplete="dadosAlterados(true)" reRender="otherPanel" ajaxSingle="true" /> Magic?

Categories : Misc

Pass by-reference in Promela
Put your variables into an array and then pass around the array index. Something like: // A type to identify VARs; we pass these values to simulate 'by reference' #define var_id byte // A VAR typedef var_struct { bit val; // The var's value }; #define VAR_COUNT 3 // allocate the VARs var_struct var_array [VAR_COUNT]; // Access the value for VAR (based on var_t #define VAR_VAL(id) var_

Categories : Misc

how to understand the browser-side vs. client-side of atom-shell
A regular Node.js application has the concept of "server-side" code and "client-side" code. There is code that you write that is to be executed using Node.js on your server. This could be an express app, or even it could be a basic API that simply serves JSON. The counter-part to this is "client-side" code which is embedded and run on the web page after it is loaded up by the client (usually a web

Categories : Misc

how to backup Cloudant to mass low cost storage such as AWS Glacier?
Here are the approximate steps: a server running CouchDB (e.g. in EC2) continuous replication from Cloudant --> CouchDB periodic (e.g. nightly) cron job to copy the relevant .couch file over somewhere zip it up use AWS command-line tools to put the zipped file on S3 use AWS command-line tools to send that S3 file to Glacier Things to remember: Glacier keeps everything unless you say "kil

Categories : Misc

How to split a table by two columns in FastReport?
FastReport has two ways to make a column report. You already discovered one of them "band columns" - this method prints band from left to right and then down. The second way is a page columns. With Page column FR prints band till the end of the page and then moves to next column. I think this method exactly what you are looking for. To make a page columns just double click on the page in the rep

Categories : Misc

What does filterApplyIdx mean in parse.js?
As I posted to the mailing list filterApplyIdx is an array of indices on the out (output) array at which filters will be applied. When the parser finds a filter it will apply it to the out array at the index of the last value in filterApplyIdx. For example: if the out array has the following ['(', 'my_var'], the filterApplyIdx should be [0, 1]. (it will apply first to my_var, and second to every

Categories : Misc

How to solve INVALID DATA SET ATTRIBUTES using DFSORT?
You cut off the most important part of the message, the message-code (I've edited into the question). When you get a message out of DFSORT which you do not already recognize, you have a few choices: locate the manual DFSORT Messages, Codes and Diagnosis Guide for your release; use the IBM LookAT webservice (http://www-03.ibm.com/systems/z/os/zos/bkserv/lookat/); an internet search; ask your colle

Categories : Misc

How to change the background color of a row in RDLC report on mouse over?
$('table:contains("ID"):last tr') is to get the report table. "ID" is used to find out the report table from the form. JQuery function ColorRow() { $('table:contains("ID"):last tr').addClass('trrr'); } CSS .trrr:hover { background-color: orange; cursor: pointer; } Code in ASPX.CS page Report viewer Load Event (call the JQuery Function) Note: Must add below

Categories : Misc

Why is it not possible to construct a finite state machine in this case?
The language you posted is not regular, only regular languages (i.e. defined by a regular grammar) can be accepted by a finite state machine. The reason for this is, non formally, that finite automata can not count because they have a finite number of states. This would be required for comparing i to j in your example. The construct that will be able to accept your language would be a stackautom

Categories : Misc

Is it possible to replace maya geometry cache with alembic cache?
I just answered this in a previously asked question. To overcome the non-matching name target problem: When you import the abc file into Maya, it creates an abc Node in the Maya scene. If the object name doesn't match your scene's object name, you can connect it manually. The way you do this is as follows. The alembic node has a bunch of output plug Arrays, like outPolyMesh, outNSurface etc.

Categories : Misc

Push Operation in TortoiseHg
Can I do it just by using Push outgoing changes button? Yes If I push, then from where my change sets will move to server? Welll, try to read docs? From local repository. With Mercurial, you interact with 3 entities: Working directory (you have real physical files in it and changes made here) Local repository: .hg subdir in Working directory (you commit changes from WD into it) Remot

Categories : Misc

Rackspace Cloud Files - [curl] 6: Couldn't resolve host 'identity.api.rackspacecloud.com' Exception thrown
Adding Google DNS nameserver, solves the problem. In server, the nameserver defined in /etc/resolv.conf is nameserver 83.138.151.80 nameserver 83.138.151.81 which is recommended nameserver by Rackspace for UK. So the curl in command prompt works, but not work in php. So I decide to add google DNS along with it. Now the /etc/resolv.conf like this: nameserver 83.138.151.80 nameserver 83.138.15

Categories : Misc

Can I use my own labels for carrot2
Unfortunately, you can't provide your own labels for clustering with Lingo. On the other hand, the label-to-document assignment algorithm is very simple in Lingo -- if the document contains the label's words, it will be assigned to the label. Therefore, you can achieve the same effect by, for example, indexing your documents in Lucene and then querying the index using the predefined labels you h

Categories : Misc

dos2unix support for file with unicode characters
It depends which implementation and version of dos2unix you use. This implementation (http://waterlan.home.xs4all.nl/dos2unix.html) supports Unicode since version 6.0.

Categories : Misc

We want to have a customized subscription form, that includes a coupon code input
It's definitely supported. Just add an input and use the data-recurly="coupon" attribute: <input type="text" data-recurly="coupon"> You can see it in the pricing section of the R.JS docs.

Categories : Misc




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.