Posts

Showing posts from July, 2015

command line drawing unicode boxes for a graph -

Image
i don't know correct keywords trying achieve. i have rainbarf tmux afaik written in perl. wondering if there library, extension or functionality in node.js enable me draw bars ones rainbarf draws, in order write tmux monitors (wifi, gpu usage, etc). edit i think correct term unicode boxes have found a page documents them . they seem unicode geometric shapes guessing correctly printing them screen (assuming terminal supports them) should achieve same result? they appear small pixel-sized boxes constrained size of font. rainbarf inspired on spark . there several implementations of spark in javascript (and other languages), check here: https://github.com/holman/spark/wiki/alternative-implementations

string - C# split with StringReader -

i have little problem method . first load html web hardware. little tinny : here code web: <!doctype html> <html> <head> <title></title> <meta charset="utf-8" /> </head> <body> <p>001;20151006;0000;1800;1000;999;1;</p> <p>001;20151006;0100;1300;990;999;1;</p> <p>001;20151006;0200;1100;1000;999;1;</p> <p>001;20151006;0300;1500;1100;999;1;</p> <p>001;20151006;0400;2200;500;999;1;</p> <p>001;20151006;0500;1900;100;999;1;</p> <p>001;20151006;0600;0700;990;999;1;</p> <p>001;20151006;0700;0300;998;999;1;</p> </body> </html> i need take body , load second , 3th row yyyymmdd hh:mm. here code to this: char[] pommidchar = { ';' }; webrequest request = webrequest.create( "http://localhost:49443/wyniki.html"); request.c...

python - Converting 1D numpy array into top triangle of matrix -

is possible take 1d numpy array containing 171 values , place these values top triangle of 18x18 matrix? i feel should able use np.triu_indices somehow can't quite figure out! thanks! see what efficient way kind of matrix 1d numpy array? , copy flat list of upper triangle entries full matrix? roughly approach is result = np.zeros(...) ind = np.triu_indices(...) result[ind] = values details depend on size of target array, , layout of values in target. in [680]: ind = np.triu_indices(4) in [681]: values = np.arange(16).reshape(4,4)[ind] in [682]: result = np.zeros((4,4),int) in [683]: result[ind]=values in [684]: values out[684]: array([ 0, 1, 2, 3, 5, 6, 7, 10, 11, 15]) in [685]: result out[685]: array([[ 0, 1, 2, 3], [ 0, 5, 6, 7], [ 0, 0, 10, 11], [ 0, 0, 0, 15]])

ruby on rails - FactoryGirl: Factory not registered for Engine project -

i've gone through these pages , tried many things found on pages: factorygirl: factory not registered: user (argumenterror) cannot factory_girl running under rails 3.0.5,unexpected tconstant 'factory not registered' error in rails 4 factorygirl: factory not registered but keep getting "factory not registered: user" the file test/factories.rb (also tried test/factories/user_factory.rb) looks like: factorygirl.define factory :user login 'mbrown@yahoo.com' email 'mbrown@yahoo.com' end end stub test: 'just_a_test_of_testing' u = factorygirl.create(:user) end doesn't work, gives me "argumenterror: factory not registered: user" does know "right solution"? seems "engine" related, don't know try next, ideas? maybe has fact user model of test/dummy app? did configure definitions path in spec/support/factory_girl.rb file factorygirl documentation suggests? fa...

Connection to Virtuoso Database with sparqlib PHP -

i using php connect endpoint virtuoso. i have found sparql library , have made queries. problem if insert huge string, virtuoso doesn't allow me. when query conductor, inserted. want connect database through sparqlib , insert username , password. haven't found this. possible?

winapi - User Mode Scheduler (UMS) returns ERROR_NOT_SUPPORTED -

i want use windows user-mode scheduler api every sample c or c++ have found in internet fails. invariably error_not_supported. my computer running windows 10 pro 64-bits in x64 processor. using vs2015 , application x64 console application. notably not every call fails, in 4 samples i've tested either enterumsschedulingmode createremotethreadex fail error_not_supported. necessary things going, example createumscompletionlist or getumscompletionlistevent not. the api not trivial use having hard time believing of them wrong. i've debugged bit happens inside enterumsschedulingmode , seems things go wrong when calling ntsetinformationthread inside rtlpattachthreadtoumscompletionlist although of less sure. here one , here another of samples i've tried.

javascript - realign Labels only to single Chart or type chart on highcharts -

i followed tutorial: http://jsfiddle.net/yrygy/270/ , worked fine. but, have chart in same view. line chart. this second chart assume realign labels too. how can use function single chart container id, or type of chart, like: var chart = new highcharts.chart({ chart: { renderto: 'container', type: 'column' }, the function im using: function realignlabels(serie) { $.each(serie.points, function (j, point) { if (!point.datalabel) return true; var max = serie.yaxis.max, labely = point.datalabel.attr('y') if (point.y / max < 0.35) { point.datalabel.attr({ y: labely - 100, }); } }); }; highcharts.series.prototype.drawdatalabels = (function (func) { return function () { func.apply(this, arguments...

ios - UIButton with background image and title using auto layout -

i face problem when using uibutton. have background image designed others this: background image , need place title button right after white vertical bar in background image. tried set left edge content since used auto layout, frame different different screen size(3.5", 4.7"...). there way put text in position related background want auto layout. thanks i split left side of background image right side. way can have 2 uibuttons next each other horizontal space constraint of 0. right side of button have placed inside uiimageview can set image property of view rather button's background. don't have of course, prefer solution easier manage across different screen sizes. here visual representation of explained above: separated views single uibutton you need route touch events of both buttons run same method or function, both right side , left clickable. note: i'm not sure had in mind highlighting of button, have tested , adapted desired effect. ...

android - Setting input type in EditTextView programmatically makes the cursor go back to the start of EditTextView -

when user typed # in edittextview set input type inputtype.type_text_variation_visible_password. doing effect cursor going start of edittextview. you should able add following after setting input type edittext.setselection(edittext.gettext().length()); i know it's not ideal i'm pretty sure it's way behavior want.

php - Laravel 5.0 how to add a custom check before registration -

i working laravel project (laravel 5.0) , came across roadblock. trying make people email domain (let's @gmail.com example) register. have looked through of files registration , can't seem find add check. the code simple: if (substr($email,-10,10)!="@gmail.com") { echo "we have issue here"; } now, preferably, wouldn't echo error, rather include in list of errors such when leave name field blank. if know how this, please post code , file put said code in. thanks again! p.s. using of default authentication built laravel 5.0 registration , login. first thing need create custom validator there several ways make custom validator in laravel prefer doing so: firstly create custom validator class, serve place can register custom validators in future, mine located in app\customs - created customs directory doesn't exists. <?php namespace app\customs; use illuminate\validation\validator; class validators extends valida...

php - Yii2 DynamicForm Input File Image always empty or NULL -

Image
i'm using wbraganca yii2-dynamicform , kartik yii2-widget-fileinput. form works fine when i'm trying getinstance upload images null. this controller. public function addmultipleimage($model){ $modelsoptionvalue = model::createmultiple(optionvalue::classname()); model::loadmultiple($modelsoptionvalue, yii::$app->request->post()); foreach ($modelsoptionvalue $index => $modeloptionvalue) { $modeloptionvalue->sort_order = $index; $file[$index]= uploadedfile::getinstancebyname("optionvalue[".$index."][upload_image]"); var_dump($file[$index]); if($file[$index]){ $ext = end((explode(".", $file[$index]->name))); // generate unique file name $modeloptionvalue->img= yii::$app->security->generaterandomstring().".{$ext}"; $path[$index]= yii::getalias ('@web') ."/img/". ...

c++ - Adding the end of a string, not containing a delimiter, to a vector -

i have small program takes sentence like: "i ,love go running!" , ignores punctuation , whitespace , counts words , displays each word line line. this example output 5 number of words in sentence. program output each word in sentence individually. i love go running the program works fine if strings ends delimiter, delimiter being of 1 of these characters: ![,?._'@+] if strings ends without delimiter. for example, i love go running, pops the program count 5 words not 6 , output 5 love go running the word pops ignored. my question going on when happens, why happening? here code: int main() { string s = ""; string t = ""; vector<string> words; getline(cin,s); int size = s.length(); for(int i=0; < size; ++i) { if((s[i]>='a' && s[i]<='z') || (s[i]>='a' && s[i]<='z')) { t += s[i]; } else { if(t != "...

javascript - Syncing data between model instances in Angular -

i'm angular newb. i've followed tutorial http://www.bradoncode.com/tutorials/learn-mean-stack-tutorial/ , have modified things (i have items instead of categories). i've created mean app, 2 models, users , items. add property items model called "owner" stores username of user created model. isn't hard, problem arises if user changes username - "owner" property doesn't change in item model instances created user. gather there ways of syncing data between views/models/controllers, how sync data between different model instances of different models. appreciated, thanks. here item.client.controller.js 'use strict'; // items controller angular.module('items').controller('itemscontroller', ['$scope','$stateparams', '$location', 'authentication', 'items', function($scope, $stateparams, $location, authentication, items) { $scope.authentication = authentication; $scope.cur...

python - Django Tables 2 limiting fields from form -

i trying limit fields in table. way see through persontable object field property fields = [first_name, last_name]. want request form. tried override get_queryset() method did not work passed in less data columns still there blank. there way generic view? class person(models.model): first_name =models.charfield(max_length=200) last_name =models.charfield(max_length=200) user = models.foreignkey("auth.user") dob = models.datefield() class persontable(tables.table): class meta: model = person fields = [first_name, last_name] class personlist(singletableview): model = person table_class = persontable if runs same issue, there exclude instance variable on table class can override get_table , in view: class personlist(singletableview): model = person table_class = persontable template_name = "person.html" def get_table(self): table = super(personlist, self).get_table() colu...

javascript - How to apply custom JSON data over a preformatted HTML page -

i have json feed displays room bookings multiple rooms. problem shows timeslots booked , not show empty slots/appointments in data object. first attempt @ this question printing selection of json array data out page using jquery , not show empty timeslots. ok came idea have preformatted html 'template' page data present - overlay json data in booked timeslots , leave empty timeslots static html. the 'simplified' json file (just selection of whole object): var response={ "bookings": { "group_id": 12306, "name": "public meeting rooms", "url": "http:theurlfeed.from.libcal", "timeslots": [{ "room_id": "36615", "room_name": "meeting room 2a", "booking_label": "mahjong", "booking_start": "2016-01-20t10:00:00+10:00", "booking_end": "2016-01-20t11:00:00+10:0...

asp.net - Could not load file or assembly 'System.Management.Automation' -

i've written asp.net mvc 3 web application ('adreporter') on local machine uses powershell retrieve data. if run application locally, works fine. i'm trying run on windows 2008 server when i'm trying access it, following stack trace: server error in '/adreporter' application. not load file or assembly 'system.management.automation' or 1 of dependencies. strong name signature not verified. assembly may have been tampered with, or delay signed not signed correct private key. (exception hresult: 0x80131045) description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code. exception details: system.io.fileloadexception: not load file or assembly 'system.management.automation' or 1 of dependencies. strong name signature not verified. assembly may have been tampered with, or delay signed not signed correct private key. (exception hresult: 0x80131045)...

Applescript for ant command -

can me apple script write ant command? ant command is: ant init clean compile run do shell script "ant init clean compile run" applescript reference: shell script

c# - Upload a file upon an asmx web service -

i have problem while uploading file via asmx webservice. here html code : <form method="post" action="/_wscommunity_/publiccommunity.asmx/uploadtemppicture" encoding="multipart/form-data" enctype="multipart/form-data" id="form_upload" target="upload_target"> <input type="file" name="file[]" id="file_upload"> <input type="submit" name="action" value="upload"> <iframe name="upload_target" id="upload_target">&nbsp;</iframe> </form> on javascript file on onchange event : $("form_upload").target = 'upload_target'; $("form_upload").submit(); when form submit receive in post : parts multipart/form-data file[] gif89a �÷�������3��f����ÃŒ��ÿ�+��+3�+f�+�+ÃŒ�+ÿ�u��u3�uf�u�uÃŒ�uÿ���3�f��ÃŒ�ÿ�ª��ª3�ªf�ª�ªÌ�ªÿ�Õ��Õ3�Õf�Õ�ÕÌ�Õÿ�ÿ��ÿ3�ÿf�ÿ�ÿÌ�ÿÿ3��3�33�f3�3�ÃŒ3�ÿ3+�3...

python - Which Toolkit to develop Mac OSX/Windows Daemon service -

i need develop daemon service has presence in system tray. system tray icon allows users customize/access options through right click menu. might open window manage options in better way. the app communicating restful service, posting , downloading files. now know daemon service, needs native. don't have luxury maintain 3 different dev pipelines, specially since app experimental(but might land in hands of users) i have experience in java/scala, followed c++/python/js. prefer java/scala (existing codebase) open frameworks in other languages. i thinking of doing scala based app swing windowing, not pretty. ideas? we have app, same base code, running on windows, osx , linux (with system tray) using these 2 set of components: the tanuki java service wrapper handle lifecycle of app. allows installing component "native" windows service. version 3.2.3 under lgpl if helps. the java 6 java.awt.systemtray supported on platforms. on osx, use modified versi...

javascript - How can I save a frame from a video? -

i posted here saving image canvas in javascript asking saving image (frame) video. way going wrong (posting video frame canvas, , saving image). there anyway this? i'm trying play video, , when pause want save frame image. ideas? thanks, andre.

sql - LONG text in Oracle cut short by SSIS source? -

Image
i migrating database oracle database sql server 2008 r2 schema using ssis. there column in 1 of oracle tables long text in it. in order fit desired schema using sql command in oledb source uses number of joins desired data. on migrating instead of whole long string first 100 characters transferred source , rest trimmed. after tried query without joins able extract whole text intact. while running query on oracle client proper result came out. please suggest direct way rectify problem? using sql table temporarily transfer data before extracting data oracle database joinless query. so found solution embellishment of written above. i needed joined data, , didn't want have pull "raw" copies of joined tables, pull in 2 sources: 1 raw copy of table long column using table direct method, not sql command (filtered take primary key , relevant long column) - mentioned above preserves complete contents of long text. source joins , long columns excluded (calle...

javascript - react-router children not propagating -

Image
i trying use react-router not able propagate children components. index.js import 'babel-polyfill'; import react 'react'; import { render } 'react-dom'; import { router, route, browserhistory } 'react-router'; import app './app'; import login './containers/login'; const rootelement = document.getelementbyid('app'); render(( <router history={browserhistory}> <route path="/" component={app}> <route path="login" component={login}/> </route> </router> ), rootelement); app.js import react, { component, proptypes } 'react'; import { login } './containers'; export default class app extends component { constructor(props) { super(props); } render() { const { children } = this.props; return ( <div classname="content"> {children} </div> ); } } app.proptype...

java - httpclient timeout for many requests -

to simulate webapplication many users, have used loop, know still different single thread , that. code below public closeablehttpclient gethttpclient() { try{ sslcontext context = null; trustmanager[] trustallcerts = new trustmanager[] { new x509trustmanager() { public java.security.cert.x509certificate[] getacceptedissuers() { return null; } public void checkclienttrusted(java.security.cert.x509certificate[] certs, string authtype) { } public void checkservertrusted(java.security.cert.x509certificate[] certs, string authtype) { } } }; try { context = sslcontext.getinstance("ssl"); } catch (nosuchalgorithmexception e1) { e1.printstacktrace(); } try { context.init(null, trustallcerts, new java.security.securerandom()...

asp.net mvc - How to decompress a varbinary file in database to a ZIP file? -

in application, have upload zip file , have make available can download file again. new mvc, have used varbinary store data in database. here view code: @using (html.beginform("upload", "createnews", formmethod.post, new { enctype = "multipart/form-data" })) { @html.antiforgerytoken() <div class="form-horizontal"> <h4>createnew</h4> <hr /> @html.validationsummary(true, "", new { @class = "text-danger" }) <div class="form-group"> @html.labelfor(model => model.categoryid, htmlattributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @html.editorfor(model => model.categoryid, new { htmlattributes = new { @class = "form-control" } }) @html.validationmessagefor(model => model.categoryid, "", new { @class = "text-danger" }) </di...

php - counter ID number instead of random ID number? -

good day, have problem , dont know how counting id number instead of random numbers, please me. thank you. codes working on random id, want in counting number id. thanks <?php $hostname_conn = "localhost"; $database_conn = "user_id"; $username_conn = "root"; $password_conn = ""; $conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error(mysql_error(),e_user_error); mysql_select_db($database_conn,$conn); // run endless loop while(1) { $randomnumber = mt_rand(10, 100);// generate unique random number $query = "select * tblrand the_number='".mysql_real_escape_string ($randomnumber)."'"; // check if exists in database $res =mysql_query($query,$conn); $rowcount = mysql_num_rows($res); $id=$randomnumber; // if not found in db (it unique), insert unique number da...

salesforce - Community customization -

i have requirement have created community. contact create account. give them access portal can login community @ point , can fill out applications programs. no tabs home screen user’s contact info link on left: account applications groups chatter once application approved, user made member of corresponding group. if part of community not part of programs, have access general chatter group pages – have separate chatter , home page. can please me this?

objective c - Why doesn't a generic NSDictionary warn me about incorrectly-typed key inserts/assignments? -

why don't following nsdictionary / nsmutabledictionary calls produce error or warning? i expect error here because rhs nsdictionary literal doesn't match generic types of nsdictionary lhs local variable. nsdictionary<nsstring *, nsnumber *> *foo = @{ @(42) : @"foo" }; i expect error here because key type doesn't match nsmutabledictionary 's key generic type: nsmutabledictionary<nsstring *, nsnumber *> *foo = [nsmutabledictionary new]; // neither of these calls produces error. :( foo[@(42)] = @(42); [foo setobject:@(42) forkey:@(42)]; i see error when try assign improperly-typed value, know generics errors working somewhat: nsmutabledictionary<nsstring *, nsnumber *> *foo = [nsmutabledictionary new]; foo[@"foo"] = @"bar"; causes following warning: foo.m:81:16: incompatible pointer types sending 'nsstring *' parameter of type 'nsnumber * _nullable' why don't literal assignment or ...

jquery - Adding tax total based on tax name for each type of tax -

i have created invoice page below format item name desc discount unitprice tax1 tax2 price at below there subtotal 540 vat @5% 550 tax2@12% 430 tax3@13% 543 .... total here each item have maximum 2 taxes want display tax based on tax name , each item sum of taxes total for tax 1 i'm using: <span id="item_tax1"> <input type="text" name="tax1name" value="vat" class="tax1name tax input-mini"/> <input type="hidden" name="tax1value" value="5" class="tax1value input-mini"/> <input type="hidden" name="tax1" value="44" class="tax1 input-mini"/> </span> for tax 2 i'm using: <span id="item_tax2"> <input type="text" name="tax1name" value="service" class="tax2name tax input-mini"/> <input type="hidden...

eclipse - Fixed error in Liferay IDE, but the red mark does not disappear -

Image
i had made error in liferay ide. fixed error still shows up, after cleaning project , restarting liferay ide: how refresh real rid of error status? full details i generated entities using liferay's service builder, in particular getname() method got generated (with 0 argument). started writing jsp using these entities. @ first wrote getname(locale) , remembered method takes no arguments fixed it. cleaning , restarting liferay ide second time did trick.

Expression expected help android studio -

package com.example.android.game; import android.graphics.typeface; import android.support.v7.app.appcompatactivity; import android.os.bundle; import android.widget.textview; public class main2activity extends appcompatactivity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main2); typeface font = typeface.createfromasset(getassets(), “gill.ttf”); textview tv=(textview) findviewbyid(r.id.textview0); tv.settypeface(font); } } just before "gill.ttf"); , after (getassets(), expects expression, don't know , i'm new programmer :) the error comes part of code: typeface font = typeface.createfromasset(getassets(), “gill.ttf”); ^ ^ these culprit in other word: it's “ s used in code. compiler doesn't un...

php - Sort symfony users by roles -

i have user entity. implements basic user-interface. want sort users roles , don't know how it. (it send message admins message entity targeting user entity on manytoone relation) $query = $this->getdoctrine()->getentitymanager() ->createquery( 'select u mybundle:user u u.roles :role' )->setparameter('role', '%"role_my_admin"%'); $users = $query->getresult(); offload work db server. query shouldn't take long return, 100,000+ records.

matlab - How to find bridges (community connecting nodes) in large networks represented using the adjacency matrix -

i have networks of 10k 100k nodes connected. these nodes typically grouped clusters of communities connected many edges between them , there hubs etc. between communities there nodes few edges bridging / connecting communities together. these datasets in adjacency matrices i have tried spectral clustering ( ding et al 2001 ) slow on large data sets , seems stop working when there lot of ambiguity (bridges not bridge route cluster- other communities can act alternative proxy routes). i have tried of methods martelot such newman algorithm modularity optimisation have not incorporated stability optimisation functions in effort (could crucial?). on synthetic data sets clusters created random graphs (er graphs) methods work on real ones there nested hierarchy results scattered. using standalone visualization application/tool bridges evident though. what methods recommend/advise try? using matlab. what want do, exactly? detect communities, or bridges between them? 2 dif...

search - Is there any way to see all the indexed terms in a Mongodb text index? -

i'm trying make mongodb collection searchable. i'm able text search after indexing collection text db.products.createindex({title: 'text'}) i'm wondering if it's possible retrieve list of index terms collection. useful auto completion , spell checking/correction when people writing search queries. there no built in function in mongodb. however, can info aggregation query. let's assume collection contains following documents: { "_id" : objectid("5874dbb1a1b342232b822827"), "title" : "title" } { "_id" : objectid("5874dbb8a1b342232b822828"), "title" : "new title" } { "_id" : objectid("5874dbbea1b342232b822829"), "title" : "hello world" } { "_id" : objectid("5874dbc6a1b342232b82282a"), "title" : "world title" } { "_id" : objectid("5874dbcaa1b342232b82282b"), ...

linux - Difference between net.nf_conntrack_max and net.netfilter.nf_conntrack_max -

does knows difference between net.nf_conntrack_max , net.netfilter.nf_conntrack_max ? i have found no related documents on internet relation between 2 sysctl keys. no difference whatsoever. both names control same internal value. (writing 1 change both.)

amazon s3 - AWS S3 HTTPS API request(URL) signed with temporary security credentials to access object -

how generate https api request(url) signed temporary security credentials access aws s3 object.i able access object using amazon java sdk generate complete url temporary security credential pre signed url. package com.siriusxm.repo.test; import java.io.bufferedreader; import java.io.ioexception; import java.io.inputstream; import java.io.inputstreamreader; import com.amazonaws.auth.basicsessioncredentials; import com.amazonaws.auth.profile.profilecredentialsprovider; import com.amazonaws.regions.region; import com.amazonaws.services.s3.amazons3client; import com.amazonaws.services.s3.model.getobjectrequest; import com.amazonaws.services.s3.model.objectlisting; import com.amazonaws.services.securitytoken.awssecuritytokenserviceclient; import com.amazonaws.services.securitytoken.model.credentials; import com.amazonaws.services.securitytoken.model.getsessiontokenrequest; import com.amazonaws.services.securitytoken.model.getsessiontokenresult; import com.siriusxm.repo.downloadservi...

Spring Consul app crashes when there is no agent up -

we have started explore spring cloud consul , see if consul agent down app crashes when started... expected behavior? have expected app wait agent , retry @ least several times or @ least behavior configurable... also if agent @ start registers service in catalog if @ point agent went down several seconds app fail talk agent , not retry talk agent again... cause scenario app no longer talking agent again expect retry... it open issue tracking.

sql delete - use bulkDestroy in Sequelize -

i'd know how delete values in array, array contains ids like: [1,2,3,4] , i've tried: models.products .destroy({where: {req.body.ids}}) .then(function(data){ res.json(data) }) but got data undefined, , nothing deleted... you've missed id criteria. model.destroy({ where: { id: [1,2,3,4] }})

lambda - Boolean functors in lisp -

i find myself in situation when need combine several predicate one. there standard way of doing this, similar compliment ? suppose there several simple predicates (e.g. is-fruit-p , is-red-p , grows-on-trees-p etc.) , list of objects subset must filtered out using more 1 predicate. what's better way of achieving following: (remove-if #'is-fruit-p (remove-if #'is-red-p (remove-if #'grows-on-trees-p list-of-objects))) i'm not sure if such function available box. if need combine functions can determine in compile time can write macro this. if have detect predicate functions dynamically can write function loop throw list of functions , accumulate results until false condition. the macro can this: (defmacro combine-predicates (combine-func &rest preds) (let ((x (gensym))) `(lambda (,x) (,combine-func ,@(loop p in preds collecting `(funcall ,p ,x)))))) and can use this (remove-if...