« first day (1619 days earlier)      last day (3344 days later) » 

12:11 PM
@DaveRandom yea, already saw that. Good idea btw ... didn't thought about getting it like that. Thanks for your help.
 
@Danack runtime execution complexity, not the logical one ) Strategies can help with logical complexity, but has a cost with performance. Traits are ugly, but can help with performance, keeping "if" blocks separately.
 
splitting that stuff into separate functions is still going to add a function call overhead....so I am not sure what you are trying to say.
 
@Danack blocks can be combined in the runtime, then performance will be better than multiple ifs blocks in the main method body
@Danack no, you put entire function in the body
so, separate trait with class-loader that has enabled "opcache" and "psr-4",
 
> Suggestion: it can be better to refactor this code to use inheritance or something like strategies to avoid extra level of code nesting. Complexity of the method will be lower.
 
Complexity of the method will be lower, yes. Because you clean some "ifs" into separate classes/traits.
 
12:25 PM
I have no idea what you are trying to say. You were saying that some other technique would be lower complexity, and now you're saying that would be achieved with traits. At best that is a trade-off, with function call overhead where there is currently none - but I can't even understand how it would be less complex, if you're saying the entire function would be in the body.
Spreading complexity around so it is harder to see, does not inherently make stuff less complex.
 
Imagine, that you have one single function with 10 level of ifs and cycles. What will be complexity for that?
 
No - I don't want to talk about abstract code. You commenting on a specific block of code, that's what we're talking about.
 
And then imagine class, that override this method body with concrete implementation without "ifs". Will complexity be lower?
 
And no, the complexity would not be lower if it's doing the same thing. The complexity would be hidden by having abstraction layers - but it's still there.
 
ThW
Morning
 
12:31 PM
My suggestion is to keep findFileWithExtension() as fast as possible at runtime. It can be better to prepare some code before startup and then has better performance. By adding one more "if" you can slow down the performance for the case, when this function is not available. It's possible to keep this extra conditions outside main method. Probably, by overriding this method fully and introducing you logic without "ifs" directly
This can be something like this: OpcacheOptimizedClassLoader extends ClassLoader
It can also help to keep SRP principle of main class...not harming it's readability and performance )
 
ThW
@lisachenko That sounds like a maintainability nightmare.
 
@ThW for performance needs it can be acceptable way...
 
ThW
PHP code structure and functions calls is the last point I'm looking for optimizations usually.
 
I do not insist, but suggest this. From my point of view, it will better to have only one "if" at runtime for determining the right class to use, that many "if"s in runtime cycle. My typical projects has ~5k classes. One request can trigger autloading of 1k of them. So 1k cycles with additional time for analysing this condition.
@ThW gc_disable() FTW! )
@Danack one more question, did you check you patch vs OPcache optimisation enabled + Composer dumpautoload -o + opcache.enable-file-override option ? It can win everyone, because dumping will produce nice mapping and file-override will effectively cache all positive checks, avoiding negative checks.
 
12:47 PM
@lisachenko Yes - the benchmark is in the PR.
 
Opcache optimized==opcache.enable-file-override option ?
Transaction rate: 81 trans/sec
?
 
ow wait - no. Not that combination.
 
yes, that what I want to check before merging this PR )
 
Feel free to add it.
 
Sure ) But my numbers can be different from yours...Maybe you can run this test on your existing environment? And add this information for comparison?
 
1:03 PM
Oh look yet another framework...
 
hm
can fpm serve static files?
 
@FlorianMargaine this should be a task for nginx ) no need to use fpm for that...
 
@FlorianMargaine sure why not. It has to have .php extension though
 
@nikita2206 ah...
 
1:09 PM
@nikita2206 Only if you've made your server be secure against some types of attack. If you disable that protection, it can serve them just fine. \o/
wait.
 
@Danack you sure? I'm not sure, but it goes kinda against the purpose of fcgi protocol
 
@Patrick I didn't get to do doctrine yesterday, but it's still on my list ^^
 
aka - PHP should only serve php files, none of which should be writeable by an end-user.
 
1:14 PM
@Danack +1
 
Ok I have a strange one I am working on, and not too sure how to continue. Anybody fancy helping a guy out? Trying to get my head around what to do
 
youtube.com/watch?v=tna7TjLQLoQ <= offtopic but for some reason I just love this channel :-)
 
@JustSteveKing You should write your question before trying to get someone to agree to help you. If you write it in notepad, and then copy + paste it in here, even if no-one can help you now, you will have the question written down and you will be able to re-use it elsewhere aka sol.gfxile.net/dontask.html
 
1:31 PM
I am building a nice simple shell wrapper for something I am working on, and trying to make it so it is both extendable and secure.

The method I have come up with is so that we install a "library" to access the shell script through the command line instead of allowing direct access.
This may mean a little more work gettting things off the ground, however it seems to work much better as then we simple access that library with its options.

For example I am building an option for SOX so that I can process and manipulate audio. To call this I use the following :
 
@JustSteveKing I think the question you are asking is answered by "using an autoloader" e.g. the composer one - getcomposer.org/doc/01-basic-usage.md#autoloading
And you almost certainly want to be using Composer anyway.
 
Is there anyway to do this without an autoloader? I use composer quite often but was just wondering what else may be available?
 
hello

i need to make a select statement that if condition return no results , so it should execute another query
for example :

select username from users where id =(query1)

i want if query1 return null/0 results , so execute another query id=(query2)
IS that possible ?
 
@Bassem Yes, write some PHP code to look at the number of results, and call the next query if necessary.
 
@Bassem select username from users where id in(query1, query2)
 
1:37 PM
@JustSteveKing You're aware of autoloaders, you're aware of including files via require_once() - anyone trying to answer your question has to try to guess why those two things are not acceptable for you. Which makes it hard to give you a useful answer.
 
same as select username from users where id = this_value OR id = thie_value
@Danack I guess what I was asking was more - which is the best method for doing this?
 
Using the composer autoloader is good enough. And probably best.
 
@danack , i know but i am searching for a way to do it using sql only without php
 
@Bassem why?
 
@Danack also trying to figure out how I can run Lib::method
 
1:40 PM
@JustSteveKing What have you tried so far that isn't working?
 
@juststeveking no , IN will search in 2 quieres , i want to look in query 2 only in case no results in query 1
@danack i have control now on database only
 
wat.
 
@Danack I have tried $this->lib::$this->method; which didn't work
 
@Danack \o/
 
@JustSteveKing 3v4l.org/8hE54
Honestly though - don't do that.
 
1:43 PM
Also…
> #define class struct
#define private public
#define protected public
 
Just have a big switch statement that whitelists the allowed methods, and hook them up manually.
It's a far safer, and saner way of doing things, and allow sensible error messages when invalid methods are called.
 
@Danack I am not sure I get what you mean sorry
 
switch($method) {

case ('volumeUp'): {
$this->increaseVolume();
break;
}

case ('volumeDown'): {
$this->decreaseVolume();
break;
}

default: {
throw new UnknownCommandException("Method $method is not recognised.");
break;
}
}
/dat markdown.
 
Did you really put parens in case expression?!
 
Hell, yeah.
 
1:48 PM
@Danack Thanks man! Perhaps it may be easier for me to check if the method exists before I try and run ->execute()
 
or you know, use a router
 
@Danack
 
@iroegbu I am using method_exists($object, $method)
 
I suggested an edit
 
1:51 PM
> "I worked hard to deprecate that code that I worked hard to create so I could deprecate some other code that I also worked hard on," said Kelly Bolton, the spokesperson for the League Of Java Programmers For Deprecating The Living Shit Out Of Everything.
 
it got rejected and then the author of the question did the exact same edit
should I whine about it on meta?
 
@bwoebi When it's less than 48 hours since you last broke PHP src - perhaps that's not the best time to be casting aspersions about how people write code?
 
http://stackoverflow.com/review/suggested-edits/7438767
http://stackoverflow.com/posts/29207865/revisions
 
@Danack Argument invalid.
 
@MarcelBurkhard If you an immortal and have infinite amounts of time available to you, then sure. Otherwise there will be more productive things for you to do.
 
user895378
1:53 PM
morning
 
@rdlowrey Mornings. Does clash of clans have a 'win condition' or is it just an infinite time sink?
 
user895378
@Danack infinite time sink. It's terrible.
 
How many trophies / level are you on?
 
user895378
I think I'm level 108 right now. The trophies are more just a user-selected difficulty level; they don't matter.
 
@Danack Any idea how I can start to build up a string as I go through chaining my methods? So $class->method("a")->method("b")->method("c"); would return $class->chained = "abc";
I know I need something like protected $method; when I start my class, but It does not like me pushing into a string if I use self or $this
 
2:00 PM
@Danack whoa, parens for case statements :(
my eyes
 
user895378
^^ that
 
@JustSteveKing what problem are you trying to solve?
 
I think I picked it up debugging switch statements on the PlayStation 1 - the hardware debugger would only work properly if the cases were enclosed like that.
 
@Patrick Basicall I am running through my chained methods. However I want to keep a "list" of what is passed first so I can return it as an object property
 
user895378
How long does it take travis-ci to update its php7 build after changes to master? i.e. will code using STH work now?
 
2:05 PM
@JustSteveKing that is your solution, not the problem
 
@rdlowrey They build a nightly - and so every PHP project that uses Composer that is trying to be built should fail now.
 
user895378
lol okay.
 
user895378
I'm going to need Jordi to get on that with the quickness.
 
@Danack most likely the nightly build will fail and travis won't update until this is fixed
 
I've already tweeted at the guy - no response....
 
2:07 PM
@Danack I think the stopped their builds, because they fail.
 
guys'n'gals, please suggest a tool for me that would be good for exchange of "read later" links between to systems
 
user895378
@tereško I just use chrome across my devices so my bookmarks are all shared
 
@kelunik I don't know the latest - but the PHP-src nightly builder is currently passing - travis-ci.org/travis-ci/php-src-builder
 
my bookmarks are measured in thousands
 
@Patrick Ok, my problem is I want to create a more secure and extendable way to run the shell_exec() function
 
2:08 PM
@tereško I just chat with myself on telegram.. :)
 
@Danack ... 3 days ago
 
@JustSteveKing and why do you need method chaining? are you creating a DSL?
 
I'm not sure how nightly their nightly build really are
 
@Patrick DSL??
 
2:09 PM
A domain-specific language (DSL) is a computer language specialized to a particular application domain. This is in contrast to a general-purpose language (GPL), which is broadly applicable across domains, and lacks specialized features for a particular domain. There is a wide variety of DSLs, ranging from widely used languages for common domains, such as HTML for web pages, down to languages used by only a single piece of software. DSLs can be further subdivided by the kind of language, and include domain-specific markup languages, domain-specific modeling languages (more generally, specification...
like doctrine's DQL
 
Good morning
 
user895378
@ircmaxell morning
 
@Patrick Basically what I am doing is : $command->cal("library_name")->addSub("method", "argument") so that I can load in my library as an object and call the method passing whatever argument I may need. It is a way for me to interface with a small handful of command line tools for linux like sox, avconv and pocketsphinx
 
@JustSteveKing that's really terrible when you have to debug it
 
@tereško There won't be too much debugging
8
 
2:13 PM
@JustSteveKing is addsub a method on $command or something that cal() returns? -> avoid method chaining, it obfuscates
@JustSteveKing famous last words
 
user895378
Is ereg totally removed from 7?
 
@rdlowrey yes
 
@rdlowrey afaik yes
 
@Patrick hahaha I know. But it is a simple enough process. I chain a few things so that I know I am loading my Sox library and running this method on it. The method will translate to a command line optio, but what it actually does
@Patrick so addSub("mono", "filename.wav") turns into sox filename.wav -c 1 filename.wav meaning that I make a mono track out of the input
Which for what my eventual goal means that I will write less code to achieve what is required
 
@JustSteveKing $command->getString() maybe?
 
2:16 PM
what's going on?
 
@Patrick I guess I could make the name a little more obvious?
 
that's always a good idea
 
All I am really doing is chaining the method on the library - in simplified stupid terms
It is so it makes it readable for any other devs who may not be well versed in OOP
 
@Danack haha
 
user895378
Jun 29 '12 at 1:46, by rdlowrey
user image
8
 
2:18 PM
Instead of $lib = $command->lib("sox"); $method = $command->addSub("mono", "filename.wav"); $lib->method();
@rdlowrey Everyone likes a good old chain hahah
 
@JustSteveKing please do not chain ever if not all methods are returning $this...
 
@Patrick Everything is returning $this because I create a command object and then ass I build up my command I am adding properties to it. Which at the end I can run through and execute certain things. Which has left me the option to check a few things along the way so nothing is halting or causing issues. I can check if an object and set properties etc etc, then check if is a method on object passed, etc etc
 
@JustSteveKing either way, I don't like method chaining at all. It makes it hard to read code and know what's going on
 
ThW
@JustSteveKing avoid abbreviations.
 
@Patrick Personally I find it easier and more logic to the way I build things
 
2:24 PM
@Patrick makes sense sometimes... DBAL are a good example
 
@FlorianMargaine yes. But that's not what he is doing :)
 
object builders, not DBALs
a query builder is a DSL builder
 
@Ocramius he wasn't so pedantic and got my point :P
 
ThW
@Ocramius exactly
 
That's why I asked him if he is writing a DSL ;)
 
2:29 PM
@Patrick I am trying to add an abstraction layer between my php code and the OS underneath. So that only selected commands can be passed through to shell_exec() and this can also be extended to add certain things into it.
So I can add more commands that make sense to what you are doing. For example instead of pocketsphinx_continuous -infile filename.wav -lm language_model.lm.dmp which runs a wav file through pocketsphinx_continueous I can run $command->lib("pocketsphinx")->addSub("recognise", "filename.wav");
 
@rdlowrey we have an entire company providing only devops here
 
Which I am sure you can agree is alittle nicer on the eye. And if you do not know the pocketsphinx library then you know what is going on anyway, because the method has a more human readable name
 
They produce work hours.
 
user895378
@Ocramius oh geez
 
user895378
2:31 PM
sounds terrible
 
Yeah, I won't go into details, but they're like a bad version of a DBA: tells you what to do and doesn't understand the problem
 
@Patrick I didn't want to use a pre-built library. I wanted to see what I could achieve on my own without looking for something similar. This way I know what level I have achieved when I do eventually look
Kind of a learning and using exercise
 
@Ocramius Isn't that just a regular DBA?
 
@DaveRandom except that there's 40 of them, and they're called DEVOPS.
 
@JustSteveKing also called reinventing the wheel
 
2:34 PM
@Patrick This is true, however if all I do is load in libraries and use them what sort of developer will I become
 
@Ocramius Ahh I see, 40 people misunderstanding the problem in slightly different ways, even better!
 
Every now and then it is worth re-inventing the wheel just so you know who it works properly
 
@DaveRandom it's like dilbert.com :P
 
@JustSteveKing Yeh I never liked the original wheel. Not enough blackjack or hookers.
 
@DaveRandom There is never enough hookers
 
2:37 PM
@JustSteveKing one that gets stuff done and builds new things
 
user895378
E_WHEEL_NEEDS_MOAR_ROULETTE
 
@Patrick That is true, however will I ever fully understand and be able to debug these libraries? It is a slippery slope to just being a developer who knows how to use this library or that library and forgets about the language itself
It is like front end developers being more proficient in bootstrap than css ....
 
will this be ever possible function something(int $a): string[] ? in the future ?
 
@someone we do not have typed arrays, no. In the future? Who knows (but IMO unlikely)
There was an RFC that was rejected before 5.6. The issue is that arrays are just hashmaps and don't carry any type information, so when a type declaration like that is checked it would be O(n) every time. There's no way to avoid this without having "real" typed arrays, which is not really "the PHP way"
 
why it always have to be hash tables why you don't introduce immutable data structure in the language ?
 
2:42 PM
This is actually not possible at all for pure arrays to be generically typed in php because of existence of references
It would be possible to implement with OO-interface though, if we get generics
 
user895378
Yeah Chris, why don't you introduce immutable data structure in the language?
 
i mean you declare a fixed length you can't change it. numeric indexes search takes o(n)
it uses less memory and useful in some cases
real arrays
 
@someone try using SplFixedArray if you need real arrays (not Map<Int, Anything> though)
 
@DaveRandom can't we do SplTypedArray?
 
2:46 PM
@someone The argument that is generally put up against it, in summary, is "PHP is a dynamic language and strong typing is not the way we do things", although people do somewhat pick-and-choose how that philosophy is applied. I'm not going to offer an opinion on this atm as I don't have time to discuss it properly, but suffice it to say that I doubt it will happen in the near future
@FlorianMargaine You couldn't hint for the underlying type, though
 
and... SplStruct
 
@FlorianMargaine Didn't Derick have a typed-array extension somewhere?
Ahh I was thinking of QuickHash
 
user895378
There's nothing stopping you from implementing this in userland right now by validating types on input when you add them to your objects.
 
user895378
Just create and typehint against a custom user type.
 
Object Composition without Static Typing: source: http://imgur.com/9f5CWDf http://t.co/jyBPpiOgB5
 
user895378
2:53 PM
hehe
 
@NikiC Ceterum autem censeo zend_parse_parametersinem esse delendam.
 
@nikita2206 it's called SplFixedArray and there is setSize :)
it's not fixed
 
@someone if you need immutability wrap it
It was created for different purposes
 
@NikiC the best part is not only do we have literally thousands of tests that only check zpp functionality, they're almost all near-duplicates of other tests with minor changes
 
3:03 PM
posted on March 23, 2015 by kbironneau

/* by L0fty85 */

 
@Andrea gender assignment intentional or artifact of quote?
 
O_O
 
@Andrea yup, totally useless...
 
@NikiC I have no knowledge of Latin grammar, so I just swapped out "Carthag" with "zend_parse_parameters"
I realise it's almost certainly incorrect
 
3:06 PM
My first official PHP source contribution. :D
Thanks to @ircmaxell for the help on getting started with working in the source. :)
 
Congrats @Rican7 :)
 
@Rican7 I'm so sorry
3
 
Thanks! :)
hahahaha
dat make -j8
saved my life
 
user895378
@Rican7 make -j8 ftw.
 
user895378
Otherwise you'll have a lot of "reading time"
 
3:08 PM
is there an equivalent for HHVM
/broken-record
I don't even repeat that just to upset HHVM engineers
I genuinely might contribute to HHVM were it not for the build times :1
 
@Andrea make -j274877906944
3
 
@rdlowrey seriously, haha
@rdlowrey xkcd.com/303
 
@Andrea It's not really so bad assuming you have an ssd, and give your vm all available cores and a few gb of memory
 
@NikiC I am using a laptop which has 2 cores and 4GB of RAM. It does have an SSD (a very fast one!), but I probably don't have space to check out the HHVM source.
 
Is it really better to have a VM for it?
 
3:12 PM
@rdlowrey Joe introduced me to nice make -j16
 
@bwoebi I don't think HHVM even builds on Darwin
let alone runs
 
@bwoebi uh no, but I do everything with vm, so
 
Maybe it does build but not run. Anyway, I think only Linux is supported just now
 
Is there a branch of php-src that is 5.4-HEAD for bugs fixes? Or should they be done against 5.4.whatever the current release is?
 
user895378
@Danack Just do it against 5.4
 
3:14 PM
@Danack PHP-5.4 ...?
 
user895378
That's what is tagged and branched for each new bugfix release
 
ah k.
 
user895378
I still don't understand why we have to create a branch for each bugfix release as opposed to using tags.
 
@Danack 5.4 is security fixes only
 
@NikiC You have Windows as host system or why?
 
3:14 PM
@Danack But for PHP 5.4 you should mail your patch to security@php.net instead
 
user895378
Seems a little ridiculous (and totally unsustainable) to create a branch for every bugfix release forever going forward.
 
@bwoebi yeah, of course
 
of course :-)
 
@rdlowrey yea, I agree. Not sure if it makes the upstream any easier, but I can't see how it would..
 
@rdlowrey because tags are supposed to be immutable
 
3:18 PM
@rdlowrey it's because RCs… so that if bugfix were wrong or if something ultra-urgent appears, things can still make it in.
 
@rdlowrey Allows concurrent development on the bugfix branch and the mainline
 
What NikiC said.
 
Yeah, what bob said basically
 
wow, double-indirection
 
lol
 
user895378
3:19 PM
Why can't we just tag 5.4.x-RC1? 5.4.x-RC2? 5.4.x?
 
user895378
^^ ?
 
user895378
Why do we need branches for that?
 
$nikic =& $bwoebi;
$andrea =& $nikic;
 
you just love causing us pain
 
user895378
3:20 PM
I suppose you'd have to prevent people from merging in new things that don't belong in the release in the interim to make that work.
 
@rdlowrey to be able to not include things in a release after RC1 was tagged
 
@rdlowrey Exactly. Which is not feasible if your RC phase is longer than an hour
 
user895378
What if we just had 5.4, 5.4-dev, 5.4-release?
 
@rdlowrey that would require cross-merging, wouldn't it?
where dev and release are merged into each other
 
user895378
yeah it would. I'm just trying to figure out good ways to not have a million different branches.
 
user895378
3:24 PM
In particular because the branch serves no purpose once the release is out in the world. That is specifically what tags are for.
 
@rdlowrey eih, essentially the micro branches become useless after the release following that one was done…
You theoretically can remove them
As long as we have the tag…
 
You can replace the branch with a tag of the same name. Enough git commands just take refs in general and not specific branches/tags, so it works well.
 
So wait... now that I've done some documentation improvements and I have code in php's source... does that mean I get an RFC vote? ;)
 
@ircmaxell I dunno, pretty epic
 
:-)
 
3:30 PM
@Rican7 A few more docs patches wouldn't go amiss. *wink*
 
haha, yea, this doesn't mean I'm done contributing
its only just begun. muahhaahaha
 
@Rican7 you'll need a php.net account for that
 
@FlorianMargaine well now, how do I go about doing that? Email internals?
 
@Rican7 what do you need it for? there won't be any RFC before a while anyway
if you keep making PRs, someone will just give it to you
 
true
just not sure why I'd kick the can
 
3:36 PM
email internals, ask for karma for php-src and php-doc, mention kittens ...
 
haha
 
Don't email internals directly
 
@JoeWatkins nope...
 
@Rican7 once you feel you've done your deed (i.e. wrote enough stuff to be worthy of a php.net account), use salathe's link
 
3:37 PM
oh yeah the form thing ...
 
I would really recommend a few more PRs/docs patches before asking, though.
 
@Danack yeah true, and thus I didn't...
 
user895378
@dracony If you don't know anything about the subject it's best just to avoid commenting: reddit.com/r/PHP/comments/2zy64z/…
 
good advice
 
@rdlowrey My understanding is that they are supposed to be removed, but people either don't bother or forget to remove the branch from the remote, or something else
 
3:44 PM
@salathe @FlorianMargaine @JoeWatkins thanks guys :)
 
I'd argue that one should probably keep the branch around until after the following release, so that you can easily go back to it if you fuck up a release or find that you need another release that's identical but for one security patch or something
 
@Rican7 Looking forward to your contributions. :)
 
:)
 
indeed
anyone got a wireless logitech mouse ?
or keyboard, or both
 
user895378
@JoeWatkins I have both :)
 
user895378
3:47 PM
what's up?
 
use rechargable batteries?
 
user895378
Nope. I hate planet earth. I throw em out and use new ones as needed.
 
I'm changing batteries every other day
 
user895378
They last a really long time for me.
 
tried new batteries ...
 
user895378
3:48 PM
I go ~six months without needing to replace anything (and I'm using the mouse/keyboard a lot).
 
after a few hours they start to mess about like something is interfering or they are going flat ...it is maddening ...
 
Hi people
 
user895378
Weird :/ not sure what to tell you.
 
@JoeWatkins I got a wireless logitech keyboard. batteries last months for me.
 
@JoeWatkins Have you been buying cheapo batteries?
 
3:50 PM
Duracell, rechargeable ones ...
 
@JoeWatkins a lot of rechargeable batteries have a lower voltage than regular batteries, which means they can't always provide enough power. It's worth paying a bit more to get semi-decent ones: maplin.co.uk/p/…
Or just get a mega-pack of hating the planet ones: ebay.co.uk/itm/…
 
@JoeWatkins Ahh, well you may have issue with rechargables unless you have 1.5V ones, which are less and less common these day what @Danack said
 
user895378
@Danack yeah that strategy has worked well for me
 
they are 1.2v
that's the most sensible answer to the problem
 
user895378
I bought a mega pack like two years ago and have barely put a dent in it.
 
3:52 PM
I'll try to hate the planet a little more ...
 
user895378
They last so long I'm considering throwing batteries at the nuisance squirrels that throw acorns at my window. Just because I have so many left.
 
I buy huge packs of duracells from costco, works well for me
 
user895378
costco <3
 
this seems to go through batteries pretty quickly anyway, is the logitech keyboard with a trackpad built in
 
user895378
Oh, I don't have a trackpad in mine.
 
3:53 PM
I'd expect the trackpad to use more power, but not months -> days
 
I've had keyboards that last months on a set ... when I first got this I'd get about 3 weeks maybe, now I'm getting hours ...
 
I don't think I've ever replaced the batteries in this ~6mth old keyboard
 
but there's nothing in the thing that could deteriorate to explain that is there ? so maybe there really is something interfering ?
 
@JoeWatkins FTR we have a costco in Southampton.
 
user895378
I told you it was a bad idea to position your microwave oven adjacent to the keyboard.
 
3:55 PM
Does anyone know a good methodology for finding the average time complexity of a REST request?
 
@JoeWatkins Not deteriorate necessarily, but if something is keeping the signal stream active all the time that will destroy your battery life. But their very nature, keyboards are a small blast of signal every time you hit a key but a mouse is potentially a constant stream of data, if something went wrong (or e.g. the pad got dirty and thought it had a finger on it all the time) that could eat battery pretty quickly.
 
ah, so if the touch bits of the pad malfunction, this explains draining battery without really noticing that the mouse isn't working ...
100 internet points for the first person to tell me how to debug mouse touches ...
 
I'd start by giving it a wipe with a damp cloth
Actually, I'd probably start by buying a real mouse :-P
 
anyway, I think I have all the ammo I need to get a new keyboard, they have this in white now ...
I love this keyboard, this is the second one of the same type I've had ...
I hate mice ...
can work trackpad with little finger ... never been able to do that, not even on a laptop ...
if they stop making this keyboard, I quit IT ...
 
user895378
3:59 PM
I live in constant fear that some product on which I'm totally dependent will be discontinued.
 

« first day (1619 days earlier)      last day (3344 days later) »