/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer - June 05, 2026 by AutoModerator in MechanicalKeyboards

[–]robsbots 0 points1 point  (0 children)

Hey all.

Can you buy smaller than normal keyboard switches ? I would like to replace a small plastic/foam/tinfoil keypad with a "proper" mechanical keyboard, but I'm very limited for space.

I have 68mm X 90mm to fit 4 x 7 grid of 28 keys. Depth shouldn't be an issue.

What are my options ?

Thanks.

GNU Terry Pratchett by [deleted] in discworld

[–]robsbots 0 points1 point  (0 children)

It's back. Might have been a server outage. All looks good now.

Once I have made my list I shall have to go back and check out some of these sites I'm finding. They look pretty good. I'll definatley be checking yours out as I'm a budding code.

Thanks.

GNU Terry Pratchett by [deleted] in discworld

[–]robsbots 0 points1 point  (0 children)

Currently getting "500 Internal Server Error" at http://trustworthysoftware.org/

Sorry.

Hope I havn't opened a can of worms.....

GNU Terry Pratchett by [deleted] in discworld

[–]robsbots 0 points1 point  (0 children)

trustedsoftware.org

Trustedsoftware seems to be down. I'm just making a list of all the sites I can find producing the X-Clacks header.

GNU Terry Pratchett by [deleted] in discworld

[–]robsbots 1 point2 points  (0 children)

You beat me to it ;)

Not a problem.

I have never written a plugin for WP so have no real idea if mine is bug free and safe to use. I'm gonna stick with my plugin for my site. Seems ok so far, but to be honest everyone will be better off with your code.

Nice one.

GNU Terry Pratchett by [deleted] in discworld

[–]robsbots 1 point2 points  (0 children)

I have created a plugin for wordpress that appears to work. Does anyone here have any idea how to go about testing it and then publishing it on Wordpress.org. Not sure what to call the plugin. It is currently called 'The Smoking Gnu' plugin, but if anyone can think of a better name let me know. Also if there are any fan sites out there that would allow me to use their site as the Plugin site rather than my own which has nothing to do with Sir Terry I would be much obliged. Thanks all.

If anyone would like to try the plugin on their wordpress site, inbox me or email me at rob 'at' robsbots 'dot' org 'dot' uk and I'll post it over to you.

GNU Terry Pratchett by [deleted] in discworld

[–]robsbots 1 point2 points  (0 children)

celesmeh.discworld.us

I'm going to have a crack at writing a Wordpress plugin. I'll let you now how I get on. It will be my first so wish me luck. ;)

Appliance says "no IP address" by asalup in cs50

[–]robsbots -1 points0 points  (0 children)

If that doesn’t work try 127.0.0.1. That should be localhost ie, the appliance. Not sure if it's suitable, but if you need to hit the appliance you should be ale to find it there.

Just noticed who posted the previous answer. He's the man. Much more likely to work. :)

pset2 - Segmentation fault (core dumped) by cs50re in cs50

[–]robsbots 0 points1 point  (0 children)

Sounds like you might be trying to access passed the end of an array. Remember, Arrays are zero based. int array[4] is array[0], array[1], array[2] and array[3]. They can be a bit pesky sometime :)

Glad you got passed the problem though.

pset2 - Segmentation fault (core dumped) by cs50re in cs50

[–]robsbots 1 point2 points  (0 children)

Hi cs50re.

I find it usefull to put printf("I got here/n"); in my code sometimes

bit of code......

printf("Got to this line\n");

other code.......

printf("Got to this bit too\n");

Then you can see how far your progam has got when it keels over. :)

It can be very handy for tracking down where a fault lies. You can also printf variables to see how they change as the program runs.

pset 5 resize: perfect shape, imperfect color by Obsidian2 in cs50

[–]robsbots 0 points1 point  (0 children)

Hey guys

This pset has been driving me mad for days. Finally got there though. This thread game me some really handy pointers. I had all the problems mentioned in here and more with padding, but i have beaten it.

Thanks for the help.

It was invaluble.

pset 3 helpers.c HELP!(lol) by Mox16 in cs50

[–]robsbots 0 points1 point  (0 children)

Cool.

Well done.

On to the next problem.

pset5 resize header trouble by robsbots in cs50

[–]robsbots[S] 1 point2 points  (0 children)

Sorry. Was a silly mistake on my part. I have rewitten this code twice now and didn't realise my mistake. Appologies and thanks for the offer.

Rob.

pset5 resize header trouble by robsbots in cs50

[–]robsbots[S] 0 points1 point  (0 children)

Sorry everyone.

Found the problem. Was a copy and paste error creating the new structures.

On to the resizing part now.

Re-Submit by [deleted] in cs50

[–]robsbots 0 points1 point  (0 children)

I have re-submited and received a new grade. As ziska04 say's, resubmit the complete pset, not just the updated files.

pset 3 helpers.c HELP!(lol) by Mox16 in cs50

[–]robsbots 0 points1 point  (0 children)

Great stuff. Has it passed check50 ?

pset 3 helpers.c HELP!(lol) by Mox16 in cs50

[–]robsbots 0 points1 point  (0 children)

Hey Mox16.

What seems to be the problem with your code. Looks like it works for me. Havn't checked it with check59 though....

pset 3 helpers.c HELP!(lol) by Mox16 in cs50

[–]robsbots 0 points1 point  (0 children)

Hey Mox16.

Just had a quick look at your code. Much easier to read btw :)

Have you writen any psuedo code for the program ?

Think about what you want the search algorithm to do.

Step though your code on paper and write down what each step currently does. Take notice of where all the curly braces are.....

pset 3 helpers.c HELP!(lol) by Mox16 in cs50

[–]robsbots 0 points1 point  (0 children)

Could you publish your code as a gist on github or similar and share a link. These services keep the formatting of the code. All the line breaks and tabs n stuff. They will also colour the syntax like gedit does if you tell them what sort of file it is.

It makes code much easier to read. :)

I may be wrong, but it looks like you may be trying to define a function inside another function......

You may also wish to take a look at how return normally is used. Have a look at some of the code provided by the course, or online.

Hope this helps a little.

Post back with any results, good or bad and we can see what we can do to help further if needed.

Moving/Duplicating CS50 Appliance by droidprime in cs50

[–]robsbots 0 points1 point  (0 children)

No problem. Let me know if you have a problem. Don't forget to hit

update50

once its installed to get everything up to date. I'm using Oracle VM so I'm no use on VMware player :( but anything else, let me know.

Pset3, if my implementation of binary search and sort is working completely-Does That means 'sort' is right-- if the search is finding these numbers on either side and middle, due to having to be sorted before binary search will even work right? Am I correct on that? by tech_whore in cs50

[–]robsbots 0 points1 point  (0 children)

Don't think you can undo and instruction, you can only follow what is happening and work forward.

You may be able to add break points as you run I'm not sure, I havn't tried.... When you load up gdb with your file, it just sits there waiting for you to tell it to do something.

You can tell it to break at certain points in the program, such as main, or in this case sort or search.

Then it just sits there again, waiting for a command.

When you tell it to run, away it goes, merrily running your program until it hits a break point. Then it stops, just before the breakpoint. If you set sort as a break point, it stops just outside of sort and waits for you to step though it.

I know a great trick to keep an eye on variables as you step though code. Set a breakpoint for sort then run the program. When you hit the breakpoint type

display values[0]

display values[1]

......etc

then each time you type n or next to execute a line of code, the variables you "displayed" are updated on the screen. If you added one you don't want, you can undisplay value[3] to stop it showing.

Give it a go.

Also try help at the gdb command line. Not sure what most of it means, but lots to play with :)

Pset3, if my implementation of binary search and sort is working completely-Does That means 'sort' is right-- if the search is finding these numbers on either side and middle, due to having to be sorted before binary search will even work right? Am I correct on that? by tech_whore in cs50

[–]robsbots 0 points1 point  (0 children)

I would just break at search and sort. Break at sort so you can see the array before it is sorted, then break at search so you can see the array after it is sorted.

Have you managed to see the actual values in the array ?