Posts

windows - Snort ./ at beginning of my RULE_PATH -

i trying configure snort on windows have weird problem. error: error: ./c:\snort\rules\local.rules<0> unable open rules file "./c:\snort\rules\local.rules": invalid argument. my snort.conf var rule_path c:\snort\rules i know problem ./ before path. had issue before , resolved it, today forgot how did it. thanks help.

Jenkins fails due to NoClassDefFoundError: org/sonatype/aether/version/VersionConstraint -

i'm attempting set jenkins on server after building job things turn south. can view console here: http://ci.lolmewn.nl/job/acceptrules/4/console at first thought issue me not having configured nexus yet (since error contained sonatype, makers of nexus), when built 1 of jobs without having repository pushing, still happened. any clues? see there's question mine, unanswered however, here have @ maven explanation it. might error. https://cwiki.apache.org/confluence/display/maven/aetherclassnotfound

php - How to name an array when using map function on a collection in Laravel -

i need build structure collection in laravel. each block should have subarray named $operators_participants , each of these should have 2 fields (operators , role_operator_id).. this attempt: $blocks = $dd->participants->map(function ($i, $k) { $operators_participants = $i->operators->map(function ($item, $key) { return [ 'operator' => $item, 'role_operator_id' => $item->pivot->role_operator_id ]; }); return $operators_participants; });

How to parse all nodes of given XML to an array in python -

how parse nodes of following xml array in python <?xml version="1.0"?> <carlist> <car> <model>benz</model> <specifications> <engine>turbo</engine> <fueltype>petrol</fueltype> </specifications> </car> <car> <model>fiat</model> <specifications> <engine>diesel</engine> <fueltype>petrol</fueltype> </specifications> </car> </carlist> xmltodict python module makes working xml feel working json example: s = """<?xml ... </carlist>""" parsed = xmltodict.parse(s) car in parsed['carlist']['car']: print(dict(car)) {u'specifications': ordereddict([(u'engine', u'turbo'), (u'fueltype', u'petrol')]), u'model': u'benz'} {u'specifications...

javascript - How to restrict components in Google Maps geocoding API request URL -

i'm using google maps geocoding api given town/city's latitude , longitude. i'm trying restrict json response cities/towns within france. have gone through documentation found @ https://developers.google.com/maps/documentation/geocoding/start however request returns me coordinates if location have entered not city. following json request url have built. https://maps.googleapis.com/maps/api/geocode/json?address=abc&components=postal_town:abc|country:fr&key=api_key when use above request returns me following json although "abc" not valid town. { "results" : [ { "address_components" : [ { "long_name" : "4", "short_name" : "4", "types" : [ "street_number" ] }, { "long_name" : "rue auber", "short_name" : "...

java - get parameter in servlet for for each loop -

i have jsp page this <c:foreach var="product" items="${products}" > <div class="col-md-3"> <div class="panel-body"> <div> <a href="description.html"> <div class="thumbnail"> <img src="data:image/jpeg;base64,${product.base64encodedimage}" alt="image"> <div class="caption" align="center"> <p> <h4>${product.name}</h4> ...

elasticsearch - No result when using search analyzer -

i'm trying search string using query_string in elasticsearch accented characters. when use query_string without analyzer query result on exact match (i'm searching string "Ředitel kvality" when dot "reditel kvality" no results) when use same analyzer it's used in mappings no results both string or without ascended characters. analyzers & filters: "analysis": { "filter": { "cs_cz": { "recursion_level": "0", "locale": "cs_cz", "type": "hunspell", "dedup": "true" }, "czech_stemmer": { "type": "stemmer", "language": "czech" }, "czech_stop": { "type": "stop", "stopwords": "_czech_" } }, ...