[ rss / options / help ]
post ]
[ b / iq / g / zoo ] [ e / news / lab ] [ v / nom / pol / eco / emo / 101 / shed ]
[ art / A / beat / boo / com / fat / job / lit / map / mph / poof / £$€¥ / spo / uhu / uni / x / y ] [ * | sfw | o ]
logo
technology
Subject   (new thread)
Message
File  [] []
close
whiteline
01801DDF-DD81-424C-8824-CF67527C9368.jpg
275022750227502
>> No. 27502 Anonymous
14th July 2020
Tuesday 6:27 pm
27502 spacer
How uncommon is it to not pay for a TV license? I don't use the BBC, watch or record any live television and my TV is not connected to an aerial. As far as I can tell, I'm not breaking any laws, but I'm hesitant to go about declaring this as I don't understand on what grounds it's determined you need a license, at this time as well I really don't want someone I don't know coming into my home to tell me I need to pay for something I wouldn't be using.
5 posts omitted. Expand all images.
>> No. 27509 Anonymous
14th July 2020
Tuesday 7:20 pm
27509 spacer
>>27506

it is a live broadcast.
>> No. 27513 Anonymous
14th July 2020
Tuesday 7:39 pm
27513 spacer
>>27508
>You are under no obligation to inform them that you don't need a license if your premises is currently unlicensed.
This. You can basically ignore them. They send cycles of scary letters, but after a while you'll get the pattern. They only bother doing house calls if they have enough of them in the area to justify it, and in any case you don't even have to answer the door.

Some people will tell you about various notices you can send them. Ignore this advice. TVL have some funky powers when it comes to search warrants, to the point where "obstructing a warrant" is a separate offence. They don't have much of a budget for actually doing this, so they use these sparingly, and sending them nastygrams is a really good way to get yourself on their radar.

In short: just ignore them.
>> No. 27514 Anonymous
14th July 2020
Tuesday 7:44 pm
27514 spacer
If they don't have you name to the address, there's nothing they can do. Same with bailiffs.
>> No. 27517 Anonymous
15th July 2020
Wednesday 8:58 am
27517 spacer
I haven't had a licence in over ten years. In that time I've had two or three 'I called.' notices throught the door, one of which I actually stood there and watched the guy put through the letterbox without ringing the doorbell. Clearly they couldn't give a toss so I've never even had the chance to deploy my 'nah mate it's only for Netflix' line.
>> No. 27518 Anonymous
15th July 2020
Wednesday 9:01 am
27518 spacer
>How uncommon is it to not pay for a TV license?
>TV Licencing
>You don't need a license.

Lads, stop fucking about.

whiteline
PYMTitleImage_Sept2018_help-child-exposed-to-porn-.jpg
274882748827488
>> No. 27488 Anonymous
21st June 2020
Sunday 9:02 pm
27488 spacer
I have an old laptop that I want to give to my mum as she's currently stuck with an iPad. I'm a naughty boy though so I preferably need to remove any traces of smoking and porn. Anything you lads would recommend and is there anything you recommend I install for a pensioner when I set her up?

At a minimum I need to give it a fresh install and use a can of gas to get rid of all the tobacco crumbs. I'll probably have to open it up and shake out the crumbs as well. I'll be a bit paranoid if that's the limit though, maybe replace the fan?
1 post omitted. Expand all images.
>> No. 27490 Anonymous
21st June 2020
Sunday 9:37 pm
27490 spacer
>>27488
I'm pretty sure a full OS reinstall will format the drives, so any trace of porn will be deleted. If you want to give the discs a good scrub, you could use CCleaner with adjusted settings for multiple overwrites but it'd be unncessary if your parent is a layman (and it'll take a long time to overwrite unused diskspace).

I'm guessing you could use a solvent to de-tar the fan and bodywork, if required. Get a little bottle of isopropl or something from the chemist, tell them you want it for degreasing/cleaning.

Speaking of CCleaner; the company was bought out by Avast a few years ago. Apparently the company is notorious for poor secuity and the program was compromised shortly after their takeover of Piriform. The problem was rectified but it's left me wondering - is it still a trustworthy program?
>> No. 27491 Anonymous
21st June 2020
Sunday 9:42 pm
27491 spacer
>>27490

>you could use CCleaner

Don't bother - Microsoft provide a secure deletion tool that isn't horrendously suspect. Download it, run "sdelete -c" from the command line and it'll wipe your free space.

https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete
>> No. 27492 Anonymous
21st June 2020
Sunday 10:55 pm
27492 spacer
>>27491
>that isn't horrendously suspect

Elaborate?
>> No. 27493 Anonymous
21st June 2020
Sunday 11:04 pm
27493 spacer
>>27492

https://blog.talosintelligence.com/2017/09/avast-distributes-malware.html
>> No. 27494 Anonymous
13th July 2020
Monday 4:14 pm
27494 spacer
Killdisk + reinstall

whiteline
UK-weather-heatwave-warning-met-office-hot-tempera.jpg
274162741627416
>> No. 27416 Anonymous
4th April 2020
Saturday 9:50 pm
27416 spacer
Now that it's gotten a bit warm outside, I've remembered that I don't actually own a fan anymore and was too lazy to buy one in winter like I said I would. And I bet it's going to be a proper scorcher this year with all of us trapped inside and having to duct-tape our windows shut to keep out the virus.

Do either of you have any recommendations for fans or other ways to prepare for a heatwave? I've noticed that bladeless seems to be taking off but they all still seem a bit too dear unless I go for the cheap as chips version:
https://www.amazon.co.uk/EZSMART-Bladeless-Negative-Leafless-Floor-standing/dp/B07VS2GRW7

You reckon one of these will keep me alive? I'm not fucking around, there's going to be a rush in a few days on fans and my tiny studio flat is going to turn into an oven if I'm not sorted.
11 posts and 1 image omitted. Expand all images.
>> No. 27429 Anonymous
5th April 2020
Sunday 8:34 am
27429 spacer
I bought a few USB clip-on fans last year, and they were surprisingly good.
Like https://www.amazon.co.uk/IREENUO-Rechargeable-Operated-Portable-Personal/dp/B07CWPYS5M - I just searched if USB battery fan.
They go for quite a while on battery, and if you just want to blow the sweat off, they're great. Obviously no use for doing a whole room.
Wondering about a ceiling fan for the bedroom this year, the Mrs likes her pedestal fan, but it's annoying.
>> No. 27430 Anonymous
5th April 2020
Sunday 8:53 am
27430 spacer
>>27423
The main downside is that they only work in dry heat. On a humid day they're useless to worse than nothing.
Otherwise, the small cheap ones you can get from china for £20-30, I really don't know how good they'll be, just for the fact that they probably can't physically move enough air through them to be useful. There's some bigger units around £100 that may be a better but then it's ending up being quite expensive for something that's only going to be needed a few days or weeks a year.
>> No. 27431 Anonymous
5th April 2020
Sunday 1:51 pm
27431 spacer

cond.jpg
274312743127431
I wonder how hard it would be to turn a car A/C compressor into a room-sized air conditioner. You'd need some sort of motor to drive it, but I suppose a 500W electric motor should do the job.

It'd be more the supporting pipework, and putting the radiator mounts in appropriate places, and I'm no plumber.
>> No. 27432 Anonymous
5th April 2020
Sunday 3:25 pm
27432 spacer
>>27430
How humid are we talking? We don't get real humidity here, do we?

Anyway, I am effectively non-functional for ~2 months of the year when the heat arrives. If there's something out there for shy of £100 that can help, it's getting fucking bought.

>>27431
I've often pondered this. I'm happy to get stuck in with DIY but mounting radiators on a wall two storeys up is a bit beyond me.
>> No. 27433 Anonymous
5th April 2020
Sunday 3:33 pm
27433 spacer
>>27432
Not him but I reckon this comes down to where abouts you live. Near any rivers or lakes you will already be aware of the humidity difference, fucked if you get hot-rain like we had last year.

I just copied >>27425 and ordered a Meaco 650. Seems to have rave reviews and will hopefully be enough for one person.

whiteline
>> No. 27411 Anonymous
28th March 2020
Saturday 12:24 am
27411 spacer

https://www.youtube.com/watch?v=szdbKz5CyhA

Remember when computers were exciting?
Expand all images.
>> No. 27412 Anonymous
28th March 2020
Saturday 1:32 am
27412 spacer
>>27411
I don't think much of that outro music.
>> No. 27413 Anonymous
28th March 2020
Saturday 1:59 am
27413 spacer
Christ, that's a women.
>> No. 27414 Anonymous
4th April 2020
Saturday 9:05 pm
27414 spacer
I wonder what became of the Greens. The fact that the computer was owned in a cooperative must've been a fucking nightmare.
>> No. 27415 Anonymous
4th April 2020
Saturday 9:10 pm
27415 spacer
Why did so many men in the '80s look like Stephen King? Alternatively, why does Stephen King still look like he's from the '80s?

whiteline
fast-business[1].jpg
274042740427404
>> No. 27404 Anonymous
22nd March 2020
Sunday 3:33 pm
27404 spacer
https://www.bbc.com/news/technology-51974866

This is almost /101/, but look at this lot, pretending they're reducing the bitrate to save this beleaguered society in our time of need, when really they're just cutting their bandwidth bill in anticipation of everyone's monthly usage going through the roof. Sanctimonious cunts.

Anyway. The BBC there are saying that a 2GB movie is HD. Are they just counting wrong (wouldn't be the first time), or are some of those paid streaming services actually that tight-fisted with their bitrate? I've been vaguely tempted to leave the "blurays and usegroups" approach behind. It's served me well, but it might be time to move on. I'll be fucked if I'm putting up with 2GB "HD" movies, though. Anyone use these things, any thoughts or observations?
1 post omitted. Expand all images.
>> No. 27406 Anonymous
22nd March 2020
Sunday 3:54 pm
27406 spacer
>>27404
If you shift as much data as Netflix does, you'd be a muppet to pay for transit bandwidth instead of peering. Netflix has some of the most resilient and scalable systems around. To get there, they've built and deployed Chaos Monkey, which randomly switches things off. They happily run it in production, so somewhere in the world right now something of theirs is down and nobody cares.
>> No. 27407 Anonymous
22nd March 2020
Sunday 4:05 pm
27407 spacer
>>27406
I've heard of that rogue process daemon, "Chaos Monkey" is it.

The web is littered with articles about how Netflix are grudgingly paying ISPs, though, so clearly they pay the piper somehow.
>> No. 27408 Anonymous
22nd March 2020
Sunday 5:48 pm
27408 spacer

wapo-netflix-comcast-graph.png
274082740827408
>>27407
It's mainly in the US with domestic ISPs, who held them to ransom by deliberately throttling their traffic until they paid up.
>> No. 27409 Anonymous
22nd March 2020
Sunday 6:37 pm
27409 spacer
>>27406

Netflix go well beyond peering - they provide free caching servers to ISPs, deployable down to the PoP level. If you're in a city, it's likely that your Netflix stream isn't travelling any further than your local telephone exchange.

Of course, none of that helps if ISPs have ridiculously high contention ratios. The problem is particularly acute for Virgin Media because of the architecture of DOCSIS - they can offer massive "up to" bandwidth, but they can't cope with peak demand.
>> No. 27410 Anonymous
22nd March 2020
Sunday 6:37 pm
27410 spacer
>>27409

https://openconnect.netflix.com/en_gb/

whiteline
320px-Oil_spill_on_laptop_-_ermin (1).jpg
273182731827318
>> No. 27318 Anonymous
30th November 2019
Saturday 5:58 pm
27318 spacer
I spilled water on the corner of my laptop keyboard and now it won't turn on. I'm hoping it's just a fucked battery, or something to do with the power, and that the motherboard is still alive. There was no smell, no other symptoms. It crashed and I switched it off, unplugged it, then set it upside-down overnight. I couldn't get the battery out as that requires unscrewing and I had no tools on me.

It's still dead, but it's been so cold that it wouldn't surprise me if there's still some moisture knocking around inside.

I'm going to buy a screwdriver set and have a poke around, but I'm not really sure what to look for -- how can I tell what part broke?

Am I better off taking it to a repair shop? Perhaps they test the components individually?

Model is a Lenovo Ideapad 320, if that matters.
2 posts omitted. Expand all images.
>> No. 27321 Anonymous
30th November 2019
Saturday 6:50 pm
27321 spacer
>>27320

Well, tits. I'll wait it out. Thanks lad.
>> No. 27367 Anonymous
28th January 2020
Tuesday 3:27 pm
27367 spacer
>>27318

Lol what are you doing here mate? It says up at the top "No Faggotry"

take it into a repair shop and quit shitposting

(A good day to you Sir!)
>> No. 27368 Anonymous
28th January 2020
Tuesday 3:31 pm
27368 spacer
>>27318
Is this /g/'s own version of helmetlad?
>> No. 27369 Anonymous
28th January 2020
Tuesday 4:43 pm
27369 spacer
>>27368

Who on earth is helmetlad?

Also, I had my laptop fixed by someone else, who replaced the motherboard.
>> No. 27370 Anonymous
28th January 2020
Tuesday 4:54 pm
27370 spacer
>>27369
>>/emo/29163

whiteline
Film.png
273392733927339
>> No. 27339 Anonymous
17th January 2020
Friday 6:17 pm
27339 Screen Capturing
I need some good free screen-capturing software for windows which records audio too. In need of a quick response.

I'm using Windows 7 if that makes any difference.
22 posts and 2 images omitted. Expand all images.
>> No. 27362 Anonymous
22nd January 2020
Wednesday 4:31 am
27362 spacer
>>27361
It's really, really not.
>> No. 27363 Anonymous
22nd January 2020
Wednesday 4:56 am
27363 spacer
>>27362

Yes it is. It just comes back after every update.

There's many different ways to automate the process though.
>> No. 27364 Anonymous
22nd January 2020
Wednesday 10:10 pm
27364 spacer
Okay now I'm on Win 10. How do I get rid of all the spyware?
>> No. 27365 Anonymous
22nd January 2020
Wednesday 11:31 pm
27365 spacer
It's disabled my headphones somehow.
>> No. 27366 Anonymous
26th January 2020
Sunday 11:40 am
27366 spacer
>>27364
I use ShutUp10, it's got quite fine-grained control over various privacy-related settings, but it needs to be run after each update. There's probably an auto-updating solution.

whiteline
noscript-header.jpg
273272732727327
>> No. 27327 Anonymous
31st December 2019
Tuesday 9:34 pm
27327 Apparently Javascript was invented to run toasters.
Does NoScript actually protect my computer from anything? The only real benefit i'm aware of is preventing all these embedded youtube links from requesting data.

Sometimes during a google search i'll see a brief view of the full site before noscript filters it back to basics.

It's interesting to see how many companies demand access through various sites. For example, I've never seen doubleclick.net on britfa.gs before - i guess it's coming through Youtube or something. It's like a giant web, all the internet must be covered.

To be honest i'm not even sure what a script is.
4 posts omitted. Expand all images.
>> No. 27333 Anonymous
1st January 2020
Wednesday 12:29 pm
27333 spacer
>>27332
>I was using Ublock-origin on Firefox at one stage for maximum autism.
Say what? That's the most mainstream adblocker out there. There's zero autism involved if like most people you just install it and fuhgeddaboudit.
>> No. 27334 Anonymous
1st January 2020
Wednesday 12:58 pm
27334 spacer
Pihole is pretty good.
>> No. 27335 Anonymous
1st January 2020
Wednesday 1:24 pm
27335 spacer

matrik.jpg
273352733527335
>>27332
uBlock is for blocking ads; if you want to block scripts you need uMatrix.
>> No. 27336 Anonymous
1st January 2020
Wednesday 1:52 pm
27336 spacer
I use NoScript and once you've been using it a few months and whitelisted everywhere you visit regularly it really isn't that much of a pain as it is usually described. Yes when you visit a new site you will need to whitelist a whole bunch of other sites but it helps you understand what's going on under the hood, and it's a small price to pay to never be hijacked again by either someone trying to install malware, or the 'you are an idiot ha ha ha' pop ups.
>> No. 27337 Anonymous
1st January 2020
Wednesday 4:31 pm
27337 spacer
>>27335
Oh that's what I meant, but when I was experimenting with Vivaldi after Firefox fucked up extensions for a weekend.

whiteline
.png
273262732627326
>> No. 27326 Anonymous
18th December 2019
Wednesday 9:55 pm
27326 spacer

https://www.youtube.com/watch?v=s0dMTAQM4cw

When I was a kid the future was exciting. Now it's almost here I'm shitting it.

whiteline
Capture.jpg
271762717627176
>> No. 27176 Anonymous
26th July 2019
Friday 4:27 pm
27176 spacer
how to remove empty parts of these mpg files?

only the blue parts of the files were available in the torrent, the red parts are all zeroes

i can do it manually in hxden but it's a pain in the arse, is there a program that can do it automatically?
5 posts omitted. Expand all images.
>> No. 27182 Anonymous
29th July 2019
Monday 11:16 am
27182 OP
it's ok now, i downloaded them from another place

they're jana model videos
>> No. 27322 Anonymous
6th December 2019
Friday 2:13 am
27322 spacer
I wrote this in python. It works but it's a slow as fuck.

Adjust the 3 constants at the top accordingly.

import sys src = r'' output = r'' blockSize = 1024 * 1024 with open(src, 'rb') as inFile, open(output, 'wb') as outFile: nZeroes = 0 eof = False while not eof: inByte = inFile.read(1) if not inByte: eof = True elif inByte == b'\x00': nZeroes = (nZeroes + 1) % blockSize else: for _ in range(nZeroes): outFile.write(b'\x00') nZeroes = 0 outFile.write(inByte) for _ in range(nZeroes): outFile.write(b'\x00')

>> No. 27323 Anonymous
11th December 2019
Wednesday 4:21 pm
27323 spacer
>>27322

how to speed up code?

(A good day to you Sir!)
>> No. 27324 Anonymous
11th December 2019
Wednesday 4:32 pm
27324 spacer
>>27323
With grease
>> No. 27325 Anonymous
11th December 2019
Wednesday 5:28 pm
27325 spacer
>>27323
>>27324
pip install grease

then
import grease


whiteline
outer_screen.jpg
273022730227302
>> No. 27302 Anonymous
26th November 2019
Tuesday 10:21 am
27302 New toy, broken. Sadness
New phone arrived this morning, a year after ordering (yay, indiegogo). It's a lovely jewel of a thing, and the keyboard feels excellent.
Bastard thing's got a cracked outside screen cover, so I'm guessing I'm going to have to send it back, to a company that's in the throes of shipping and unlikely to be very responsive, but I've contacted them.
Arse. I was really looking forward to this.
It doesn't look user-replaceable, and as it's a 'perk' not a purchase, I don't know where I stand.
Whinging here rather on their forum because their forum is full of the most insufferable pricks.
2 posts omitted. Expand all images.
>> No. 27305 Anonymous
26th November 2019
Tuesday 1:19 pm
27305 spacer
>>27303

l33t hacking?
>> No. 27312 Anonymous
26th November 2019
Tuesday 5:21 pm
27312 spacer
>>27303 I dunno I think PDAs have had their day.

That's probably why you didn't buy one, and I did.
I've had Nokia Communicators, teeny tiny laptops, the Gemini and now this. It's hardly a PDA, it's a computer with a small but tolerable keyboard. I really don't like touchscreens for text entry, and this is something I can easily pocket, and which has a decent battery life so it'll probably work when I want to use it.
As for 'why' - it's a fine email machine, and fine for hammering out words for code or documents. I still tend to go back to a real machine for editing, but for getting the first cut of things, if I can't be arsed to fire up a laptop or find somewhere to perch it, it works nicely. I played with various OSes on the Gemini, but lacklustre support for the Mediatek means I ended up back on Android. I'll try again on the Cosmo.
>> No. 27313 Anonymous
26th November 2019
Tuesday 5:30 pm
27313 spacer
>>27305 l33t hacking?

it does make a decent ssh / remote desktop / X box, which seems to be what the kids think l33t hacking is all about.
>> No. 27314 Anonymous
26th November 2019
Tuesday 5:41 pm
27314 spacer

o2xda-1485761598-0.jpg
273142731427314
>>27313

That is basically what I meant, joking aside. I only have personal projects to faff about with but have still often wanted a 'proper' keyboard for this sort of thing. Even just for emailing in the field in my real job, though personally I prefer a good software keyboard over an "okay" mini keyboard. A thumb board is preferable to both, something in the XDA format would be genuinely useful for my work, but a the clamshell of this or the Gemini or the GPD Pocket are just not ideal for the outdoor-ish work I find myself doing, and modern smartphones are still pretty excellent at typing while standing up, walking etc, but lack the ability to run weird old proprietary software I use, and they don't play well with our VLAN either.
>> No. 27315 Anonymous
26th November 2019
Tuesday 7:02 pm
27315 spacer
Yeah, the clamshells aren't good for standing use.
It's stunning that blackberry managed to shit the bed so comprehensively. They had the best thumboards, good screens, a decent understanding of power and security. I loved the thumbwheel thingy, that's a fine navigation tool, fast and accurate.

whiteline
ikwyd.png
272742727427274
>> No. 27274 Anonymous
3rd November 2019
Sunday 1:19 pm
27274 spacer
I don't get it. These aren't proper ip addresses yet they show up on iknowwhatyoudownload.com
6 posts and 1 image omitted. Expand all images.
>> No. 27281 Anonymous
10th November 2019
Sunday 10:45 am
27281 spacer

Screenshot 2019-11-10 at 10.43.40.png
272812728127281
>>27279
Seems like it's a mobile phone/SIM in France; could be anywhere.
>> No. 27282 Anonymous
10th November 2019
Sunday 9:57 pm
27282 spacer
>>27279

ummmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
>> No. 27283 Anonymous
11th November 2019
Monday 12:09 am
27283 spacer

ikwud.png
272832728327283
Wow. I didn't know I was this bad.
>> No. 27284 Anonymous
11th November 2019
Monday 8:46 pm
27284 spacer
>>27275
>MyFamilyPies
You're on the right board.
>> No. 27285 Anonymous
11th November 2019
Monday 9:01 pm
27285 spacer
>>27284

There's a disappointing lack of auntiefucking in porn. Something needs to be done.

whiteline
Actualidad_6759756_128986377_1000x600[1].jpg
272542725427254
>> No. 27254 Anonymous
17th September 2019
Tuesday 9:58 pm
27254 Bluetooth keyboard/mouse dropping out
Alright lads. Here's the situation. I bought a fancy Microsoft Surface Ergonomic bluetooth keyboard, and every time I step away for more than ~5 minutes it does this thing where I have to press a key and then wait for 1-3 seconds. During this time the system is completely locked - whatever's on screen freezes in place and any sound or music stops.

This happens under Linux as well as Windows.

I've looked in power settings in Windows for dongle and mouse and switched it to never sleep wherever possible.

I've looked for others with the same problem, found a handful. Nobody had a solution.

As it happens, I've been given a Surface mouse for free. It also seems to suffer the same problem. My next step would be to buy another bluetooth dongle, but I'm broke and I'd rather not spend the money if can avoid it.

Is there an easy way of pinging bluetooth devices? Or any other way of keeping a bluetooth device awake? I don't mind charging batteries if it'll fix the problem.
6 posts omitted. Expand all images.
>> No. 27261 Anonymous
18th September 2019
Wednesday 2:47 am
27261 spacer
Yeah Bluetooth threads belong in /101/, surely.
>> No. 27262 Anonymous
18th September 2019
Wednesday 3:33 am
27262 spacer
>>27257
>Save yourself bother now and buy a wired keyboard and mouse.
Seconding both this advice and the sentiment. The only time I've ever had trouble with a wired connection was when I tried a stupidly long PS/2 cable, which was hilarious but entirely understandable.
>> No. 27263 Anonymous
18th September 2019
Wednesday 9:57 am
27263 spacer
>>27259
>>27262
Please, lads. I'm asking for help with one very specific fault, not general observations about bluetooth's reliability.
>> No. 27264 Anonymous
18th September 2019
Wednesday 10:52 am
27264 spacer
>>27263
You've had the best advice you're going to get. I'm not sure what else there is to say.

(A good day to you Sir!)
>> No. 27297 Anonymous
20th November 2019
Wednesday 8:05 pm
27297 spacer
>>27263

I've probably missed the boat on this one, apologies for necroposting, will be sure to sage etc.

> During this time the system is completely locked - whatever's on screen freezes in place and any sound or music stops.
This sounds like an issue with the Bluetooth Stack or possibly a very badly behaved driver. (I'm assuming here that the lock-up only happens during the 1-3 seconds that the device is waking up, if so there's potentially some idiotic while loop blocking all other I/O, although given the number of different busses involved I still find that .... weird to say the least).

> Is there an easy way of pinging bluetooth devices? Or any other way of keeping a bluetooth device awake? I don't mind charging batteries if it'll fix the problem.

On linux you can use lp2ping. I'm not sure if there's a windows port, but you might get it to run under WSL if you're using Windows 10. You might also want to dig out the technical specification document for your keyboard and see if there's a vendor specific HCI command for setting its sleep timeout or what have you.

whiteline
Fritz Honka.jpg
272172721727217
>> No. 27217 Anonymous
21st August 2019
Wednesday 12:35 pm
27217 https://pastebin.com/2X1w76RJ
Ihave made a mental arithmetic brain trainer.

It generates expressions at random like "6 * 3" that you have to evaluate as fast as possible.

It's set to use numbers 1-10 but you can gradually increase the range as you get better.

I recommend training for 20 mins a day.
16 posts and 1 image omitted. Expand all images.
>> No. 27237 Anonymous
22nd August 2019
Thursday 6:42 pm
27237 spacer
Would it be overkill to make an Operator class like this:

class Operator: def __init__(self, fn, symbol): self.fn = fn self.symbol = symbol

>> No. 27246 Anonymous
26th August 2019
Monday 12:59 pm
27246 spacer
>>27233

Regex should be anchored like this:

^[+-]?\d+$

>> No. 27249 Anonymous
28th August 2019
Wednesday 4:40 pm
27249 spacer
import random, re #Custom classes ############################################ class Operator: def __init__(self, fn, symbol): self.fn = fn self.symbol = symbol #Functions ############################################ def getHi(): try: with open('hi.txt', 'r') as file: return int(file.readline().strip()) except: return 10 def incrementHi(): with open('hi.txt', 'w') as file: file.write(str(hi + 1)) #Constants ############################################ lo = 1 hi = getHi() nQuestions = 250 passingMark = 98 #integer percent add = Operator((lambda x,y: x+y), '+') sub = Operator((lambda x,y: x-y), '-') mul = Operator((lambda x,y: x*y), '*') #Start ############################################# print('''Using numbers in range {}-{}. {} questions. Passing mark is {}%. Press ctrl+c to exit early. ---------------'''.format(lo, hi, nQuestions, passingMark)) nCorrect = 0 for i in range(nQuestions): if i == nQuestions - 1: print('\n---Last question---') elif i > 0 and (nQuestions - i) % 25 == 0: remaining = nQuestions - i s = '' if remaining == 1 else 's' print('\n---{} question{} remaining---'.format(remaining, s)) a = random.randint(lo, hi) b = random.randint(lo, hi) op = random.choice([add, sub, mul]) answer = op.fn(a, b) print('\n{} {} {} =\n'.format(a, op.symbol, b)) userIn = input().strip() if re.match(r'^[+-]?\d+$', userIn) and int(userIn) == answer: nCorrect += 1 else: print('\nWRONG. Answer is {}.'.format(answer)) score = (100.0 * nCorrect) / nQuestions print(''' --------------- Score: {0:.2f}%'''.format(score)) if score >= passingMark: print('\nLesson passed. Number range will be increased by 1 next lesson.\n') incrementHi() else: print('\nLesson failed. Lesson will be repeated.\n') print('Press enter to exit.') input()

>> No. 27250 Anonymous
28th August 2019
Wednesday 7:16 pm
27250 spacer
>>27249

Add this operator:

pow = Operator(lambda x,y: x***y, '^')

>> No. 27253 Anonymous
1st September 2019
Sunday 6:00 pm
27253 OP
I've developed this a bit more. I've added division, square and cube questions and refactored the code a bit.

import math, random, re #Custom classes ############################################ class Question: def __init__(self, equation, answer): self.equation = equation self.answer = answer #Functions ############################################ def getHi(path): try: with open(path, 'r') as file: return int(file.readline().strip()) except: print('''---Error: Unable to access "{}" and load 'hi' value.--- ---Using default value of 10.---\n'''.format(path)) return 10 def incrementHi(path, newHi): try: with open(path, 'w') as file: file.write(str(newHi)) except: print('---Error: Unable to access "{}" and increase number range.---\n'.format(path)) def findBiFactorisations(n): factors = [] for i in range(2, n + 1): for j in range(2, n + 1): if i * j == n: factors.append((i, j)) return factors def isComposite(n): for i in range(2, int(math.sqrt(n)) + 1): if n % i == 0: return True return False def findNonPrimes(lo, hi): nonPrimes = [] for i in range(lo, hi + 1): if isComposite(i): nonPrimes.append(i) return nonPrimes def makeAddQuestion(): a = random.randint(lo, hi) b = random.randint(lo, hi) return Question('{} + {} ='.format(a, b), int(a + b)) def makeSubQuestion(): a = random.randint(lo, hi) b = random.randint(lo, a) return Question('{} - {} ='.format(a, b), int(a - b)) def makeTimesQuestion(): a = random.randint(lo, hi) b = random.randint(lo, hi) return Question('{} * {} ='.format(a, b), int(a * b)) def makeDivQuestion(): a = random.choice(nonPrimes) b, answer = random.choice(findBiFactorisations(a)) return Question('{} / {} ='.format(a, b), int(a / b)) def makeSquareQuestion(): a = random.randrange(lo, hi) return Question('{} ^ 2 ='.format(a), int(a ** 2)) def makeCubeQuestion(): a = random.randrange(lo, hi) return Question('{} ^ 3 ='.format(a), int(a ** 3)) #Constants ############################################ hiFile = r'hi.txt' lo = 1 hi = getHi(hiFile) # must be at least 4 nonPrimes = findNonPrimes(lo, hi) nQuestions = 250 passingMark = 98 # integer percent questionMakers = [makeAddQuestion, makeSubQuestion, makeTimesQuestion, makeDivQuestion, makeSquareQuestion, makeCubeQuestion] #Start ############################################# print('''Using numbers in range {}-{}. {} questions. Passing mark is {}%. Press ctrl+c to exit early. ---------------'''.format(lo, hi, nQuestions, passingMark)) nCorrect = 0 for i in range(nQuestions): if i == nQuestions - 1: print('\n---Last question---') elif i > 0 and (nQuestions - i) % 25 == 0: print('\n---{} questions remaining---'.format(nQuestions - i)) question = random.choice(questionMakers)() print('\n{}\n'.format(question.equation)) userIn = input().strip() if re.match(r'^[+-]?\d+$', userIn) and int(userIn) == question.answer: nCorrect += 1 else: print('\nWRONG. Answer is {}.'.format(question.answer)) score = round(100 * nCorrect / nQuestions, 2) if score % 1 == 0: score = int(score) print(''' --------------- Score: {}%'''.format(score)) if score >= passingMark: print('\nLesson passed. Number range will be increased by 1 next lesson.\n') incrementHi(hiFile, hi + 1) else: print('\nLesson failed. Lesson will be repeated.\n') print('Press enter to exit.') input()


whiteline
Delete Post []
Password  
[0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18]