profile
viewpoint
Tomas Benedikt bednic Logio s.r.o Prague

bednic/json-api 3

PHP implementation for JSON-API standard

bednic/docker-php-runtime 0

Docker PHP Runtime Image

bednic/graphhopper 0

An open source route planning library and server using OpenStreetMap.

bednic/kotlin-web-site 0

The Kotlin Programming Language Website

bednic/litegraph.js 0

A graph node editor similar to PD, it works in a HTML5 Canvas and allow to exported graphs to be included in applications.

bednic/mkn 0

Czech MKN dictionary

bednic/orm 0

Doctrine Object Relational Mapper (ORM)

bednic/PHP-SQL-Parser 0

A pure PHP SQL (non validating) parser w/ focus on MySQL dialect of SQL

bednic/POData 0

OData for Poor PHP Devs

bednic/postgresql-for-doctrine 0

PostgreSQL enhancements for Doctrine2. Provides support for advanced data types (json, josnb, arrays), text search, array operators and jsonb specific functions.

created tagbednic/json-api

tag6.3.1

PHP implementation for JSON-API standard

created time in 9 hours

push eventbednic/json-api

Lasicka

commit sha 5c899979c6d04e44af47b77d00b05f4e64e2f539

fix: Meta didnt accept very short prop names Fix meta to accept key names shorter then 2 chars.

view details

Lasicka

commit sha 84669337803982c54cdc1524686fb3294a080434

chore(release): 6.3.1

view details

push time in 9 hours

created tagbednic/json-api

tag6.3.0

PHP implementation for JSON-API standard

created time in 9 hours

push eventbednic/json-api

Lasicka

commit sha 3c857eba0e081b462deb004f4881542512044fab

chore(release): 6.3.0

view details

push time in 9 hours

push eventbednic/json-api

Lasicka

commit sha b8ef68c52c2509a2a37524932eec2b3bcbe3f805

feat: ResourceCollection::toArray New method, returns array of the collection

view details

Lasicka

commit sha dd7119df06c76aa1246187ff19705eaf23f11a25

refactor: Change constructor now constructor use ::setProperty method, not just strait assign

view details

push time in 21 hours

created tagbednic/json-api

tag6.2.3

PHP implementation for JSON-API standard

created time in a day

push eventbednic/json-api

Lasicka

commit sha 24178ef6f77943df7ea3d788ec740e6acfc9dc61

chore(release): 6.2.3

view details

push time in a day

push eventbednic/json-api

Lasicka

commit sha 01a0278d1a19209c9d67d0e73188bab478d4b845

test: add test on meta for Document

view details

push time in a day

push eventbednic/json-api

Lasicka

commit sha 71fc53cb83f1c82a32a1a9b19945b7f566145286

test(Middleware): add body content to middleware test

view details

push time in a day

push eventbednic/json-api

Lasicka

commit sha 2ab1b1554f11155aefa9703df91736ac726e25a1

refactor: Resource::type is now not required Resource type now will be generated from class name, if not provided.

view details

push time in a day

created tagbednic/json-api

tag6.2.2

PHP implementation for JSON-API standard

created time in 2 days

push eventbednic/json-api

Lasicka

commit sha b2a1de0583539e47d797e6e965dc8cf654b9fcd5

chore(release): 6.2.2

view details

push time in 2 days

push eventbednic/json-api

Lasicka

commit sha 923aee80ddbbbada1d24c94c8d510f291f6fb9ef

fix(Middleware): add body rewind after reading contents

view details

push time in 2 days

created tagbednic/json-api

tag6.2.1

PHP implementation for JSON-API standard

created time in 3 days

push eventbednic/json-api

Lasicka

commit sha c1dc9e037cb92028efdf7a3c6eaee5dbf309b5b4

chore(release): 6.2.1

view details

push time in 3 days

push eventbednic/json-api

Lasicka

commit sha c582c48ccc4a86cdda4a90f91519f4a50b48e98d

fix(Middleware): POST request throws false exception Cause schema provided by JSON:API cannot accept resource without ID, but specification allowes send document without ID.

view details

Lasicka

commit sha 621e3ac3860fcd11be6caf39dea06822c2d8188a

ci: change default image

view details

push time in 3 days

push eventbednic/json-api

Lasicka

commit sha caaef1bba506ce0762b48ea79a510c98036614c0

refactor(OAS): Add examples to OAS <parameters> schemas

view details

push time in 3 days

push eventbednic/docker-php-runtime

Tomas Benedikt

commit sha 3bb5045d399b47fc8232599d42ce334ebe6c0fc6

feat: add mysql support

view details

push time in 4 days

issue commentnodejs/node

Inaccuracy in division

Well, you are right, after all. Thanks all for clarification and effort.

bednic

comment created time in 4 days

issue commentnodejs/node

Inaccuracy in division

Thx guys, I'm not such a greenhorn to don't know, how to get accurate result. I've been just curious how two scripting languages, which are used together very often, can provide two diferent result with same approach. This just mean to me, that I have to be more thoughful where I will do the math.

bednic

comment created time in 4 days

issue commentnodejs/node

Inaccuracy in division

Well I gues you are right, I try it in PHP with 13 precision digits and it returns same mistake. What bothers me is this: JS: (20.4*100).toString().split(".")[0] returns 2039 and PHP: explode('.','' . (20.4*100))[0] returns 2040.

Same logic different result. If I'm still at bad place to make my point, you can close this as invalid issue, I'll understand it. P.S.: If you could, please tell me where I can rise my question.

bednic

comment created time in 5 days

issue openednodejs/node

Inaccuracy in division

<!-- Thank you for reporting an issue.

This issue tracker is for bugs and issues found within Node.js core. If you require more general support please file an issue on our help repo. https://github.com/nodejs/help

Please fill in as much of the template below as you're able.

Version: output of node -v Platform: output of uname -a (UNIX), or version and 32 or 64-bit (Windows) Subsystem: if known, please specify affected core module name -->

  • Version: 12.6.1, 14.9.0, 15.0.0
  • Platform: WIN 64x
  • Subsystem:

What steps will reproduce the bug?

<!-- Enter details about your bug, preferably a simple code snippet that can be run using node directly without installing third-party dependencies. --> just try in node console calculate:

20.4*100 = 2039.9999999999998 
20.1*100 = 2010.0000000000002

How often does it reproduce? Is there a required condition?

everytime

What is the expected behavior?

20.4*100 = 2040.0000
20.1*100 = 2010.0000

<!-- If possible please provide textual output instead of screenshots. -->

What do you see instead?

20.4*100 = 2039.9999999999998 
20.1*100 = 2010.0000000000002

<!-- If possible please provide textual output instead of screenshots. -->

Additional information

I suppose that the mistake with 20.1 is normal and will be ignored in aproximation, but if I got 2039 instead 2040 it's bad isn't it? <!-- Tell us anything else you think we should know. -->

created time in 5 days

push eventbednic/docker-php-runtime

Tomas Benedikt

commit sha 9eda40988f517219a5c771897c6e8788c89d4731

chore: add .gitignore

view details

push time in 6 days

push eventbednic/docker-php-runtime

Tomas Benedikt

commit sha efe0e9e267e321756de22da08ba49a5af97bcd8e

feat: add version 7.4

view details

push time in 6 days

create barnchbednic/docker-php-runtime

branch : master

created branch time in 6 days

created repositorybednic/docker-php-runtime

Docker PHP Runtime Image

created time in 6 days

created tagbednic/json-api

tag6.2.0

PHP implementation for JSON-API standard

created time in 11 days

push eventbednic/json-api

Lasicka

commit sha 6db02d1e4d18ffa7d9eae01e37d78d923cf10566

docs: standard release imlpements configuration neccessary for standard release

view details

Lasicka

commit sha 701f56e78abcb08e777324db9f05ba19a051aec5

chore(release): 6.2.0

view details

push time in 11 days

created tagbednic/json-api

tag5.2.0

PHP implementation for JSON-API standard

created time in 11 days

delete branch bednic/json-api

delete branch : 30-psrjsonapimiddleware-can-t-handle-unknown-size-of-body-stream

delete time in 11 days

push eventbednic/json-api

Lasicka

commit sha 02a55ef6ca7ef6db5e43ffa2c0763c8840a6a307

chore(release): 5.2.0

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha 97212ac2ba5b08c87ceafac8c3be12bab14c7a83

fix: request body getSize may return null Fix PSR 7 implementation on getSize, which may return null when body length is unknown, thus body parsing fails and request data could be empty Closes #30

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha 701ba6d9a9cd7f9d22fa4fe532d464146b123905

feat: Add ResourceObject::hasAttribute & ResourceObject::hasRelationship Add new methods on ResourceObject class, to check if resouce has attribute/relationship by key Closes #29

view details

Lasicka

commit sha 97212ac2ba5b08c87ceafac8c3be12bab14c7a83

fix: request body getSize may return null Fix PSR 7 implementation on getSize, which may return null when body length is unknown, thus body parsing fails and request data could be empty Closes #30

view details

push time in 11 days

delete branch bednic/json-api

delete branch : 29-add-resourceobject-hasattribute-method-2

delete time in 11 days

push eventbednic/json-api

Lasicka

commit sha 8311afb6f2299b194ef21128a6c7ce6913432080

docs: update

view details

Lasicka

commit sha 4ac825be5e1b1a3c684c434008f62fdb423ee5de

fix: request body getSize may return null Fix PSR 7 implementation on getSize, which may return null when body length is unknown, thus body parsing fails and request data could be empty Closes #30

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha 701ba6d9a9cd7f9d22fa4fe532d464146b123905

feat: Add ResourceObject::hasAttribute & ResourceObject::hasRelationship Add new methods on ResourceObject class, to check if resouce has attribute/relationship by key Closes #29

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha 82bbc1c2c3b064b79964583a40a7b77df1f43a8e

fix: request body getSize may return null Fix PSR 7 implementation on getSize, which may return null when body length is unknown, thus body parsing fails and request data could be empty Closes #30

view details

push time in 11 days

push eventbednic/json-api

Tomáš Benedikt

commit sha 111e711495c5ba02e69eefe2760ad205032501f4

feat: Add ResourceObject::hasAttribute & ResourceObject::hasRelationship Add new methods on ResourceObject class, to check if resouce has attribute/relationship by key Closes #29

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha 8311afb6f2299b194ef21128a6c7ce6913432080

docs: update

view details

Lasicka

commit sha 701ba6d9a9cd7f9d22fa4fe532d464146b123905

feat: Add ResourceObject::hasAttribute & ResourceObject::hasRelationship Add new methods on ResourceObject class, to check if resouce has attribute/relationship by key Closes #29

view details

push time in 11 days

push eventbednic/json-api

Tomáš Benedikt

commit sha 111e711495c5ba02e69eefe2760ad205032501f4

feat: Add ResourceObject::hasAttribute & ResourceObject::hasRelationship Add new methods on ResourceObject class, to check if resouce has attribute/relationship by key Closes #29

view details

Lasicka

commit sha 82bbc1c2c3b064b79964583a40a7b77df1f43a8e

fix: request body getSize may return null Fix PSR 7 implementation on getSize, which may return null when body length is unknown, thus body parsing fails and request data could be empty Closes #30

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha 843e9fa3ff8a8fec0ee1f603ae4f470885a27fa2

test: fix test timezone

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha 6a4d38641c3503e832057ada462fc411f9bf59f9

fix: request body getSize may return null Fix PSR 7 implementation on getSize, which may return null when body length is unknown, thus body parsing fails and request data could be empty Closes #30

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha 8311afb6f2299b194ef21128a6c7ce6913432080

docs: update

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha a44a38c3ac3c17d545558742fe9352d06683b8b8

feat: Add ResourceObject::hasAttribute & ResourceObject::hasRelationship Add new methods on ResourceObject class, to check if resouce has attribute/relationship by key Closes #29

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha 9a57232f6fe389383ddede4ae449e4483ce1443f

feat: Add ResourceObject::hasAttribute & ResourceObject::hasRelationship Add new methods on ResourceObject class, to check if resouce has attribute/relationship by key Closes #29

view details

Lasicka

commit sha d5083c48fc9017d82e9318a29a3204ae7e4cf2bb

test: fix test timezone

view details

push time in 11 days

push eventbednic/json-api

Lasicka

commit sha f01a5adfd57dacf9d22c6525329a06ee3eb33578

fix: request body getSize may return null Fix PSR 7 implementation on getSize, which may return null when body length is unknown, thus body parsing fails and request data could be empty Closes #30

view details

push time in 11 days

create barnchbednic/json-api

branch : 29-add-resourceobject-hasattribute-method-2

created branch time in 12 days

create barnchbednic/json-api

branch : 29-add-resourceobject-hasattribute-method

created branch time in 12 days

issue commentslimphp/Slim

Slim 4 Release Feedback

@snoopy72 I'm trying to be objective. I see what is bothering you and from your point of view, you are right. But... From dev team point of view, they make huge step, tag this release as major, to show others to be careful, and did their best to update documentation of major changes, good enough? Maybe, maybe not. Anyway before updating you must expect some complications, incompatibilities etc. The example issue #3006 didn't just point to unnecessary changes, but it point in your mistake too. As senior you should prefer constants before strings. So if you did this right, you could just change string in constant from 'get' to 'GET' and voila, it works.

Anyway, objectively boths sides could make decisions which leads to problems. It's not optimal to demand case sensitivity of http method name as parameter and is bad practice using plain string in code if neccessary. To solve them, you need to cooperate. Cooperations is about to communication and finding solutions/compromises. Good communication is about to showing respect to the other side and make constructive proposals. But in the issue the problem was your attitude, that's all. And in your comment here, it's again, your language, your frenziness. Just let your anger go, no one is pushing you to upgrade right tomorrow, am I right? Just try to be kind and nice and maybe they will help you. It's open-source here, no one, who pays you, give a shit, what you are using, we did this to help each other, for free, and that deserve respect, always.

In my opinion on issue #3006 there shouldn't exist something like 'get' or 'GET', based on https://tools.ietf.org/html/rfc2616 (which says GET is right form) and fact that Slim is PSR compliant (PSR follows most of HTTP RFC's), all these strings should be replaced by RequestMethodInterface::METHOD_GET this could prevent all of misunderstandings.

Maybe you could try new way in other cases, like in case of setArgument, maybe it is not bad idea to accept others scalars, like an array. Now it's all on you, would you try change your manner?

l0gicgate

comment created time in 22 days

issue commentslimphp/Slim

Slim 4 Release Feedback

@snoopy72 and you constructive feedback is what? I see only hate with some threats. But where is your useful advice? Where is some PR with fixes, which helps with backward compatibility, changes in documentations, something that helps. How you, senior developer, as you say, are helping these guys, which in their spare time, created a tool, you use for free?! So calm down and help. In other way it's just hateful speech of desperate man and I recommend others to ignore your comment.

l0gicgate

comment created time in 22 days

push eventbednic/json-api

Tomas Benedikt

commit sha 290390177081dcd604d89dd7ca6b3f7d2150120f

feat: add several function to ExpressionBuilder itnerface

view details

push time in a month

create barnchbednic/json-api

branch : collection

created branch time in a month

push eventbednic/json-api

Tomas Benedikt

commit sha 0b553c86389dc48ea0f789c3bf664a25d0793306

test: fix timezone missmatch

view details

push time in a month

push eventbednic/json-api

Tomas Benedikt

commit sha aa60fa7623a8ee6cf4cb68b9aa8b0dd46ddb2012

ci: update image increase limits

view details

push time in a month

push eventbednic/json-api

Tomas Benedikt

commit sha db125874f6fcfc23e9d5a8bfbb3fadda7a12ba01

ci: phpstan

view details

push time in a month

push eventbednic/json-api

Lasicka

commit sha 698b7f85e5e7562eba5454b647f63d97e6c2190c

chore: remove php stan because using nette

view details

push time in a month

push eventbednic/json-api

Tomas Benedikt

commit sha e3ed9fd0a488cddc0b1d1e8e127d3abd6422e29c

fix: Fix potential bugs Accomplish PHPStan level 2

view details

push time in a month

push eventbednic/json-api

Tomas Benedikt

commit sha 18850ad46ec26c0300e62856a712ab3103a5e8f3

style: add phpstan

view details

push time in a month

created tagbednic/json-api

tag6.1.0

PHP implementation for JSON-API standard

created time in 2 months

push eventbednic/json-api

Lasicka

commit sha 2d9d008fc134a8cd0e5d21c7283abecaec375218

feat: JSON conversion interfaces because bednic/tools will be abandoned, it's replaced by symfony/string

view details

push time in 2 months

created tagbednic/json-api

tag6.0.0

PHP implementation for JSON-API standard

created time in 2 months

push eventbednic/json-api

Lasicka

commit sha b690ae3e3efddbfc7d5756d3fccc21a0c58dbbf2

docs: Update readme Release doc update

view details

push time in 2 months

push eventbednic/json-api

Lasicka

commit sha 3e0c0c5bcd80bcdc6d97730f2051b85eefc1df35

refactor: chenge getUriParser to uri and add method param request This change should make it more clear

view details

push time in 2 months

push eventbednic/json-api

Lasicka

commit sha 7fb43ebf00c23638089715f19a9968fe4392aac3

fix: metadata cache loading

view details

push time in 2 months

push eventbednic/json-api

Tomas Benedikt

commit sha 800dcc067c17a1b355ffc7344925ee2de3630530

fix: loading resource metadata

view details

push time in 2 months

push eventbednic/json-api

Tomas Benedikt

commit sha fa22e787ea7e11f93f530dcffe9a0ac27f84fc02

fix: bug when multiple metadata caches are created

view details

push time in 2 months

push eventbednic/json-api

Tomas Benedikt

commit sha 7d1908d02b6f38de81ea6b9f8e9894da0fedbb5e

fix: bad variable

view details

push time in 2 months

push eventbednic/json-api

Lasicka

commit sha f86233811dc39f8c3a0b46522092e086e6c390f1

build: composer + fix remove unused library, remove forgotten fn call in middleware

view details

push time in 2 months

push eventbednic/json-api

Lasicka

commit sha 615fed9577a93b22eb0c81b0db4cb454a95006af

feat: allowing to have multiple instances of API in same project Encapsulating API and simplify document building

view details

push time in 2 months

push eventbednic/json-api

Lasicka

commit sha 0fa6044539ca75f5e04a0d7b959154b7b8752155

refactor: add inclusion to encoder to smarter handling of compound document and relationships wihtout data

view details

push time in 2 months

push eventbednic/json-api

Lasicka

commit sha c61c357a0c5cda3290a4e4ea1671684fb4565ac8

fix: sonar issues

view details

push time in 2 months

created tagbednic/json-api

tag5.1.7

PHP implementation for JSON-API standard

created time in 2 months

push eventbednic/json-api

Lasicka

commit sha 519e425d8bc0820296a94f04d3cddcdc95ddcb6a

build: change dev-master default branch in composer.json

view details

push time in 2 months

create barnchbednic/json-api

branch : 6.x

created branch time in 2 months

push eventbednic/json-api

Lasicka

commit sha 8b07ab212d15886d6161090d7389a27a6aa37a65

docs: update readme

view details

push time in 2 months

push eventbednic/json-api

Tomas Benedikt

commit sha f9756c0ac859393064dc1cc84147bb53520512d6

build: composer update

view details

push time in 2 months

created tagbednic/json-api

tag5.1.6

PHP implementation for JSON-API standard

created time in 2 months

push eventbednic/json-api

Lasicka

commit sha d47e3ba713735b2f461d4dd2f698d961a35ea3ac

fix: next link generation condition

view details

push time in 2 months

created tagbednic/json-api

tag5.1.5

PHP implementation for JSON-API standard

created time in 3 months

push eventbednic/json-api

Lasicka

commit sha 98f6af75b2c0645e39267d4437131cb5144ef453

fix: error when empty base url occurs

view details

push time in 3 months

push eventbednic/json-api

Lasicka

commit sha 8474591d1edddc8fd3d79202faa26948a1b53c7d

fix: path parsing

view details

push time in 3 months

created tagbednic/json-api

tag5.1.4

PHP implementation for JSON-API standard

created time in 3 months

push eventbednic/json-api

Lasicka

commit sha 8d9158fef8ea11024dc1c61c296d64551d9e19ef

fix: bad behavior of default condition value

view details

push time in 3 months

created tagbednic/json-api

tag5.1.3

PHP implementation for JSON-API standard

created time in 3 months

push eventbednic/json-api

Lasicka

commit sha 9fb7acc9a04adffe2701335549956a5da3b9bab7

fix: add exception to context in logger in middleware, catching exception

view details

Lasicka

commit sha 0eed90fb99b6723cd3c719a392efbfc3e4cc5228

fix: add exception to context in logger in middleware, catching exception

view details

push time in 3 months

more