Posts

ip - How to transmit a file larger than 65,536 bytes using IPv4 -

i wanted know if there way send larger files 65,536 bytes using ipv4 you shouldn't using raw ip. there's reason implementation of tcp/ip typically called "stack". communication typically done layering protocols on top of each other. each layer takes layer below it, , either abstracts away aspect of lower-level protocol or adds useful functionality. a web server, example, ends using several layers of protocols: ethernet, wifi, or other such protocols, provides physical (or radio) connection , signaling rules enable machines talk each other @ all. ip, adds concept of routing , globally available addresses. tcp, adds concept of "ports", allows several apps use same ip address @ same time without stepping on each other's toes; abstracts discrete packets of ip full-duplex, arbitrary-length stream of bytes; and adds detection , correction of errors , lost/duplicate data. ssl and/or tls (sometimes), adds semi-transparent encryption ...

php - how to extend the get() method in eloquent -

how extend method get() in eloquent class, add code join whenever called. whenever method all() , find or get() called, add join: static::join('clientes', 'clientes.id', '=', 'faturas.cliente_id'); thanks have tried eager loading ? can set protected $with = array('clients'); in model. you overload newquery method extending model class. class basemodel extends model { public function newquery($excludedeleted = true) { $builder = parent::newquery($excludedeleted); $builder->join('clientes', 'clientes.id', '=', 'faturas.cliente_id'); return $builder; } }

Sign up counter - PHP? -

i looking find out how http://getfixedapp.com/ able show amount of users signed above sign link. used developer tools try see used. help? would easy php. on backend, increment variable each time signs up, , store variable inside database. you not able see using developer tools : php executed on server side , invisible on front end.

sql server - what are rdbms access methods and can I use thrift with rdbms? -

i reading professional nosql book,and there list of different nosql db access methods,but dont know access method in rdbms? odbc/jdbc , drivers counted access methods? or ado.net,linq sql,entity frame work,are counted access methods? what difference between ado.net/linq sql/entity frame work , odbc/jdbc,i mean both used access databases,so how differ? and other question why cant thrift/avro/rest/protobuf used rdbms,they services,why used nosql dbs? sounds pretty other question, @ least 75% of :-) what difference between ado.net/linq sql/entity frame work , odbc/jdbc, mean both used access databases,so how differ? they differ in several ways. first, dbms typically support few ways how connect them. less, more, heavily depends on dbms. next, of methods listed, linq, not available in environments. example, take arbitrary programming language not based on .net technology, , linq no longer option. and other question why cant thrift/avro/rest/protobuf used rdb...

javascript - Saving and printing a google chart -

i have been trying save and/or print google chart no luck. have tried has been suggested https://gist.github.com/battlehorse/1333906 , can google visualization: pie chart output png image? cant seem working. copied , pasted code notepad , saved .html , opened firefox. when click save button, download box appears not recognise png , not download anything. anyone have ideas wrong it? thanks the download never recognized png - had rename manually. tested nverba fork of code, updates code reflect improvements in visualization api, , functions in chrome not firefox. since code used work in firefox, assume either update firefox or canvg library broke functionality in firefox (there's nothing specific in visualization api cause functionality in firefox break). since highly browser-specific tool anyway, recommend using chrome handle chart-to-image conversion.

How to generate event handlers with loop in Javascript? -

this question has answer here: javascript infamous loop issue? [duplicate] 5 answers for example, have 10 tags generated ajax response: <a href="#" id="b1">b1</a> <a href="#" id="b2">b2</a> <a href="#" id="b3">b3</a> <a href="#" id="b4">b4</a> <a href="#" id="b5">b5</a> <a href="#" id="b6">b6</a> <a href="#" id="b7">b7</a> <a href="#" id="b8">b8</a> <a href="#" id="b9">b9</a> <a href="#" id="b10">b10</a> i need assign onclick event each of them via loop: for(i=1; i<11; i++) { document.getelementbyid("b"+i).onclick=function() { ...

perl - How to run test in xt at once? -

is possible run tests in xt directory @ once command line? the prove tool has many options can tweak. useful invocation prove -l -r xt , includes lib/ folder in @inc , recurses subdirectories, , starts in xt folder. run test in directory structure like lib/ foo.pm xt/ 000-start.t 001-sometests/ 001-foo.t 002-bar.t