Posts

jsf - Bootsfaces scrollUp and Gliphicon -

i'm working jsf project uses bootsfaces 1.1.3 i've tried following without luck <b:scrollup text="" distance="150" class="glyphicon glyphicon-chevron-up"/> how can set glyphicon icon using b:scrollup? i didn't try yet, according documentation of plugin have set attribute image="true" . image must defined in css snippet: #scrollup { background-image: url("../../img/top.png"); bottom: 20px; right: 20px; width: 38px; /* width of image */ height: 38px; /* height of image */ } to use glyphicon, it's best approach glyphicon definition , copy css snippet: .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'glyphicons halflings'; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .glyphicon-c...

performance - Java: Creating massive amount off new Objects -

i working on simple gameoflife program , try out optimizations it. problem when create cells game (small class 6 primitives) can take long time (especially when create 10000*10000 ). so question if has idea how faster? cells = new cell[this.collums][this.rows]; (int x = 0; x < cells.length; x++) { (int y = 0; y < cells[0].length; y++) { cells[x][y] = new cell(x * this.cellsize, y * this.cellsize, this.cellsize); } } if you're big (or quasi-unlimited) game fields, should not model single cells objects in first place. the field in game of life not populated much, it's better modelled sparse matrix. there huge number of trick optimize game fo life implementation - both data storage performance (copmuting field on next step). check question, instance: sparse matrices / arrays in java it might idea have cell instances representing single cells, , might work relatively small fields. if aim larger fields, won't work well. in case...

java - Spring boot client app (XML security) with remote authorization by oauth2 SSO -

i have app spring security in xml file connect sso server(oauth2) authorize app (client) , user (real person). login page on sso. i'll wanna use authorization code flow. in java configuration annotations it's simple how make in spring-security.xml? sso done, problem in client app.

reporting services - Omitting clients from a report based on a summed value -

i working on report sums virtual bank accounts clients , displays them in list total each account right of account. @ end sum accounts specific client. users want ability omit client on report if total sums accounts equal zero. not matter sums of each account when they're summed @ end, if equals 0 omit client report. this easier on server. i'm assuming using sql server here, make no mention of data in question. something this... select * ( select clientid, accountid, accountamount , sum(accountamount) over(partition clientid) balance clientaccountamounts ) caa balance !=0

reactjs - React loop over an object with array -

data = [ { "2017-08-09": [ "09:00", "09:30", "10:00", "10:30", "11:00", "11:30", "13:00", "13:30", "14:00", "14:30", "15:00", "15:30", "16:00", "16:30" ] } ] i'm trying map on array of objects , display info follows: date 2017-08-09 available hours 09:00 09:30 10:00 ... i'm having trouble looping on data structure, https://codesandbox.io/s/qzrvlvx9nj i've updated link. did not use lodash, nested map() calls. first map through initial array, , within each object grab keys of object. after that, map through keys of object, , 1 last map() through times of each date. you can refer below code: const data = [ { "2017-08-09": [ "09:00", "09:30...

find - How to identify renamed files on linux? -

i using 'find' command identify modified files. i've noticed method identifies content-modified files , new files. not identify files change rename. there way use 'find' identify renamed files? if not, there other linux command can used this? here current method identifying changed files going 1 month (this method not identify renamed files): $ touch --date "2017-09-10t16:00:00" ~/desktop/tmp $ find ~/home -newer ~/desktop/tmp -type f > modified-files you should replace option -newer \( -newer -o -cnewer \) in order catch modifications file metadata well.

c# - Microsoft Device client too heavy for Windows FormAplicattion -

Image
os: windows10 sdk: microsoft.azure.devices v1.3.2 language: c# hello, i´m developing windows form application on c#. in app, i´m sending messages iot hub using nuget packet microsoft.azure.devices v1.3.2 , receive messages on raspberry pi. ony package install, app 30 mb, , that´s ok me. problem need receive messages iot hub in app too, did install nugetpacket microsoft.azure.devices.client v1.5.0 me receive messages, if install package, increases weight of app 300 mb more, , that´s way heavier want it. my question is, there other way receive message iot hub in windows form application without weight? missing package me in more easy way? thank in advance. you can use eventhubclient receive message azure iot hub, in windowsazure.servicebus . windowsazure.servicebus has no dependencies, 3m. , more, can sample source code azure-iot-sdk-csharp . tool of deviceexplorer use eventhubclient receive message. there dependencies microsoft.azure.devices.client v1.5.0. when ...