Go Back   Freethought Forum > The Marketplace > Computers & Technology

Reply
 
Thread Tools Display Modes
  #226  
Old 01-24-2020, 10:16 PM
Ensign Steve's Avatar
Ensign Steve Ensign Steve is offline
More of a "before rehab" friend
 
Join Date: Jul 2004
Location: Silicon Valley
Gender: Bender
Posts: XXXDCIX
Images: 66
Default Re: Bits and PCs - a Computers and Tech Miscellany

Quote:
Originally Posted by Ari View Post
I decided to start learning python, itís amusing what things itís picky about and what itís ok with. Somewhere in previous programming I got in the habit of using indents to make things more readable to me, this is both good and bad. Omg yes Python, I know thatís not supposed to be indented.
This still makes me itch on a fundamental level. Whitespace choices should be made for the benefit of a human reader, not the compiler/interpreter.* :shakecode:

Quote:
My previous programing experience includes a variety of different basics and a little bit of C but where I spent most of my time was a combination of assembly and hypercard (which is a hilarious combination, given hypercard is basically scripted powerpoint and in assembly youíre controlling individual clock cycles and memory registers), which means I focused on fighting with the languages to do what I wanted as much as actually making things.
Wow. You're right, that is hilarious. :popcorn:

Quote:
I wrote a quick Fizz Buzz* program and a terminal tic tac toe game, and my versions feel quite kludgy and BASIC style, so now itís time to find some videos and do some reading, if anyone has any suggestions of Python for intermediates, Iíve found lots of Python for beginners but some are a bit too beginner.

There are a lot of code in my tic tac toe game that feel like there should be an option to condense things and let the language take over, like Iím sure thereís a way to make an array or matrix for my tic tac toe board instead of faking one with a few dozen independent variables.

I like this video:


It's not really beginner or intermediate, it's about taking your existing (and possibly inherited) code base and making it more pythonic.

Quote:
*Fizz Buzz was stolen from a youtube video and is said to be an interview question. Write a program that outputs 1 to 100 but where ever thereís a multiple of 3 say Fizz, whenever a multiple of 5 say Buzz and a multiple of 3 and 5, FizzBuzz. I think FizzBuzz should be adopted as the thing after Hello world, since Hello World always felt a bit too simple to me for any language beyond assembly.
This was a very popular interview question here before it got banned for being leaked all over the internet. It's still one of my go-to mock interview questions.

* I can think of at least two exceptions to this, but they are esoteric as hell. Don't @ me.
__________________
:kiwf::smurf:
Reply With Quote
Thanks, from:
fragment (01-25-2020), Stormlight (02-18-2020)
  #227  
Old 01-24-2020, 10:47 PM
Ari's Avatar
Ari Ari is offline
I read some of your foolish scree, then just skimmed the rest.
 
Join Date: Jan 2005
Location: Bay Area
Gender: Male
Posts: MXCMLXXXIII
Blog Entries: 8
Default Re: Bits and PCs - a Computers and Tech Miscellany

As a kid I liked the early cd puzzle game Myst and discovered that not only was it written in Hypercard with a bunch of add on libraries but that the game on the mac disc was just a bunch of hypercard stacks hiding as game files and could be copied out and fed back into hypercard in an editable way. Which means a bunch of my early programing experience was from a game that hacked around the pitfalls of hypercard.
I also learned 68k Assembly on the same machine, and I think anyone who programs seriously should be forced to work in some sort of assembly just so they can thank the many features of a higher level language. Which may or may not have to do with friends being unimpressed when telling them I made a line and animated it to spin in a circle (to the detriment of any input besides a hard debugger break, Computer: “I guess spinning this line is my life now...”)

Oow, that looks interesting!

I like that there are a couple different ways to tackle Fizzbuzz and IMO *take in a sequence, perform a check or operation on it and output a modified sequence* is so much more computery than *show static text*
Reply With Quote
Thanks, from:
Crumb (01-25-2020), Ensign Steve (01-24-2020), Stormlight (02-18-2020)
  #228  
Old 01-24-2020, 11:07 PM
JoeP's Avatar
JoeP JoeP is online now
YELLOW HAIR FAKE ANIMAL
&
FLOOFIN CHONKO
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXVMMDCXIX
Images: 18
Default Re: Bits and PCs - a Computers and Tech Miscellany

inb4 ceptimus recommends Project Euler - yes they are mathematical puzzles but quite a range of different kinds, and that will help you look at different kinds of programming approach.

Learning Python is a laudable goal, but I find (my experience and others') that "learning a language" as a goal gets pretty tedious. You get a lot further if you try to build something that interests you, and learn the language as you go along. Don't feel you need to learn anything more than you probably already know before tackling something big. Don't feel you need to make your first efforts "Pythonic". But do embrace the idea of rewriting what you've done to make it more pythonic, to make it more modular, to make it more flexible - those are things we should all be doing at all stages (do what I say not ...)

I don't remember any single tutorials or sites being particularly helpful, just a lot of googling for answers and advice, and a lot of reading the official documentation.

You could always post one of your programs for feedback here :)
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
Thanks, from:
Ari (01-24-2020), ceptimus (01-24-2020), Crumb (01-25-2020)
  #229  
Old 01-24-2020, 11:10 PM
JoeP's Avatar
JoeP JoeP is online now
YELLOW HAIR FAKE ANIMAL
&
FLOOFIN CHONKO
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXVMMDCXIX
Images: 18
Default Re: Bits and PCs - a Computers and Tech Miscellany

Quote:
Originally Posted by Ari View Post
I like that there are a couple different ways to tackle Fizzbuzz and IMO *take in a sequence, perform a check or operation on it and output a modified sequence* is so much more computery than *show static text*
You mean like this ...
Code:
print(1)
print(2)
print('Fizz')
print(4)
print('Buzz')
...?
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
Thanks, from:
Ari (01-24-2020), Crumb (01-25-2020)
  #230  
Old 01-25-2020, 09:30 AM
Kamilah Hauptmann's Avatar
Kamilah Hauptmann Kamilah Hauptmann is offline
I'm a regular Victor Victoria
 
Join Date: Mar 2016
Posts: VMMDCCCLXXVI
Default Re: Bits and PCs - a Computers and Tech Miscellany

What is it called when you're reading a web page and some ad shoots you through a series of pages to make it hard to back up from?
__________________
Sometimes you herp a derp, sometimes the derp herps you.

:BC: :canada:
Reply With Quote
  #231  
Old 01-25-2020, 11:27 AM
JoeP's Avatar
JoeP JoeP is online now
YELLOW HAIR FAKE ANIMAL
&
FLOOFIN CHONKO
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXVMMDCXIX
Images: 18
Default Re: Bits and PCs - a Computers and Tech Miscellany

A fuckup of history-button proportions?
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
  #232  
Old 01-25-2020, 11:53 AM
JoeP's Avatar
JoeP JoeP is online now
YELLOW HAIR FAKE ANIMAL
&
FLOOFIN CHONKO
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXVMMDCXIX
Images: 18
Default Re: Bits and PCs - a Computers and Tech Miscellany

Redirect chain abuse?

I have a feeling the problem you describe does have some semi-informal name.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
Thanks, from:
Ari (01-27-2020), Kamilah Hauptmann (01-25-2020)
  #233  
Old 01-25-2020, 01:51 PM
Pyrrho's Avatar
Pyrrho Pyrrho is offline
Man in Black
 
Join Date: Dec 2004
Location: Over here.
Gender: Male
Posts: MDXLVI
Default Re: Bits and PCs - a Computers and Tech Miscellany

I use a MacBook for iOS programming. It is managed by the company. I have to change passwords every 3 months. The login is connected somehow to my company network login. What happens is that I change my password as required...and the MacBook lags behind the rest of it all, meaning that I have to log in on the MacBook using the previous password. Then I get a prompt to enter the new password, separate from the Mac login window. Then I get a prompt to update the Keychain password. Which seems to fail silently, generating a new login Keychain. Then my signing certificate for Xcode for the MacBook can't be found in the new Keychain. I've learned how to find the previous Keychain and rename it and add it to the Keychain Manager but then I have to enter the password for that old keychain. It is driving me nuts. Is there a way to import items from the old keychain into the current login keychain, and how am I to know which oneses I needses? At least I have the signing certificate available but geez oh man I do not understand the nefarious intricacies of Keychain management.
__________________
The flash of light you saw in the sky was not a UFO. Swamp gas from a weather balloon was trapped in a thermal pocket and reflected the light from Venus.
--
Official Bunny Hero :bugs:
Reply With Quote
Thanks, from:
Ari (01-25-2020), Ensign Steve (01-26-2020), JoeP (01-25-2020), lisarea (01-25-2020), slimshady2357 (01-26-2020)
  #234  
Old 01-25-2020, 03:58 PM
lisarea's Avatar
lisarea lisarea is offline
Solitary, poor, nasty, brutish, and short
 
Join Date: Jul 2004
Posts: XVMMCCXXIII
Blog Entries: 1
Images: 3
Default Re: Bits and PCs - a Computers and Tech Miscellany

Quote:
Originally Posted by Kamilah Hauptmann View Post
What is it called when you're reading a web page and some ad shoots you through a series of pages to make it hard to back up from?
It's a type of callback, but I don't know if it has a name of its own other than back button hijacking.

Here is me complaining about them before. I went back to find that to see if anyone had said what they're called, but nobody did.

Last edited by lisarea; 01-25-2020 at 04:11 PM.
Reply With Quote
Thanks, from:
Ari (01-27-2020), Ensign Steve (01-26-2020), JoeP (01-25-2020), Kamilah Hauptmann (01-25-2020), Pyrrho (01-25-2020), slimshady2357 (01-26-2020)
  #235  
Old 01-27-2020, 12:40 AM
Ari's Avatar
Ari Ari is offline
I read some of your foolish scree, then just skimmed the rest.
 
Join Date: Jan 2005
Location: Bay Area
Gender: Male
Posts: MXCMLXXXIII
Blog Entries: 8
Default Re: Bits and PCs - a Computers and Tech Miscellany

Ok 6 problems in to projecteuler and Im hooked. There are clearly some I canít do but ones I can are just enough of a challenge to feel like a small accomplishment getting a green check.
Reply With Quote
Thanks, from:
ceptimus (02-06-2020), Ensign Steve (01-27-2020), JoeP (01-27-2020)
  #236  
Old 02-06-2020, 03:10 AM
Pyrrho's Avatar
Pyrrho Pyrrho is offline
Man in Black
 
Join Date: Dec 2004
Location: Over here.
Gender: Male
Posts: MDXLVI
Default Re: Bits and PCs - a Computers and Tech Miscellany

Er um yeah about that button that is supposed to close the overlay but isn't there in the app build I sent today...it's there but it's not visible because I set the underlying view layer to a Z-index > 0 which kinda sorta obscures that button...just tap where it used to be, up there in the corner. Maybe draw one on your iPad screen with a Sharpie for now.
__________________
The flash of light you saw in the sky was not a UFO. Swamp gas from a weather balloon was trapped in a thermal pocket and reflected the light from Venus.
--
Official Bunny Hero :bugs:
Reply With Quote
Thanks, from:
Ari (02-06-2020), Ensign Steve (02-06-2020), JoeP (02-06-2020), Kamilah Hauptmann (02-06-2020)
  #237  
Old 02-06-2020, 03:19 AM
Ari's Avatar
Ari Ari is offline
I read some of your foolish scree, then just skimmed the rest.
 
Join Date: Jan 2005
Location: Bay Area
Gender: Male
Posts: MXCMLXXXIII
Blog Entries: 8
Default Re: Bits and PCs - a Computers and Tech Miscellany

Patch notes: print on transparency and patch this overlay on to the ipad screen to fix bug where overlay close button wasnít appearing. Notice: this button does not close the overlay on the screen but does close the on screen overlay.
Reply With Quote
Thanks, from:
Ensign Steve (02-06-2020), Pyrrho (02-07-2020)
  #238  
Old 02-06-2020, 10:14 AM
JoeP's Avatar
JoeP JoeP is online now
YELLOW HAIR FAKE ANIMAL
&
FLOOFIN CHONKO
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXVMMDCXIX
Images: 18
Default Re: Bits and PCs - a Computers and Tech Miscellany

Quote:
Originally Posted by Pyrrho View Post
Maybe draw one on your iPad screen with a Sharpie for now.
I have drawn an additional :thanked: on my screen for this point alone.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
Thanks, from:
Ensign Steve (02-06-2020), Kamilah Hauptmann (02-06-2020), Pyrrho (02-07-2020)
  #239  
Old 02-07-2020, 08:47 AM
Kamilah Hauptmann's Avatar
Kamilah Hauptmann Kamilah Hauptmann is offline
I'm a regular Victor Victoria
 
Join Date: Mar 2016
Posts: VMMDCCCLXXVI
Default Re: Bits and PCs - a Computers and Tech Miscellany

__________________
Sometimes you herp a derp, sometimes the derp herps you.

:BC: :canada:
Reply With Quote
Thanks, from:
Ensign Steve (02-07-2020), JoeP (02-07-2020), lisarea (02-09-2020), Pyrrho (02-09-2020), slimshady2357 (02-07-2020)
  #240  
Old 02-14-2020, 04:03 AM
Pyrrho's Avatar
Pyrrho Pyrrho is offline
Man in Black
 
Join Date: Dec 2004
Location: Over here.
Gender: Male
Posts: MDXLVI
Default Re: Bits and PCs - a Computers and Tech Miscellany

Website I manage...has a contact form...sends email via standard PHP mail() function to an account on the server which we access via webmail and/or email client specially set up for that purpose. New bosses have demanded that the form send the email directly to them. Explained the concept of spam to them. Also explained that their corporate email system automatically blocks emails from their web server because it's on a different system from their in-house system and the form emails will go into a bitbucket someplace that we can't do anything about.

Them: WE DEMANDS R EMAILS!! CONFIGURE FORM TO SEND DIRECTLY!!

Okay then! One less thing for me to monitor.

It's okay though, because the form gets like 2 or 3 spammers filling it out each week. Even the spambots are staying away in droves.
__________________
The flash of light you saw in the sky was not a UFO. Swamp gas from a weather balloon was trapped in a thermal pocket and reflected the light from Venus.
--
Official Bunny Hero :bugs:
Reply With Quote
Thanks, from:
Ari (02-14-2020), BrotherMan (02-14-2020), Crumb (02-18-2020), Ensign Steve (02-14-2020), JoeP (02-14-2020), Kamilah Hauptmann (02-14-2020), lisarea (02-14-2020), Sock Puppet (02-15-2020)
  #241  
Old 02-14-2020, 09:34 AM
JoeP's Avatar
JoeP JoeP is online now
YELLOW HAIR FAKE ANIMAL
&
FLOOFIN CHONKO
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXVMMDCXIX
Images: 18
Default Re: Bits and PCs - a Computers and Tech Miscellany

Quote:
Originally Posted by Pyrrho View Post

It's okay though, because the form gets like 2 or 3 spammers filling it out each week. Even the spambots are staying away in droves.
Want that to change? :mafioso:
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
Thanks, from:
Ari (02-14-2020), BrotherMan (02-14-2020), Crumb (02-18-2020), Ensign Steve (02-18-2020), Kamilah Hauptmann (02-14-2020), lisarea (02-14-2020), Pyrrho (02-14-2020), Sock Puppet (02-15-2020)
  #242  
Old 02-14-2020, 08:47 PM
Ari's Avatar
Ari Ari is offline
I read some of your foolish scree, then just skimmed the rest.
 
Join Date: Jan 2005
Location: Bay Area
Gender: Male
Posts: MXCMLXXXIII
Blog Entries: 8
Default Re: Bits and PCs - a Computers and Tech Miscellany

E-mailís so slow and outdated, we want to stay on the pulse, clearly the form send to their personal sms instead!
Reply With Quote
Thanks, from:
BrotherMan (02-15-2020), Crumb (02-18-2020), Ensign Steve (02-18-2020), Kamilah Hauptmann (02-15-2020), lisarea (02-14-2020), Pyrrho (02-14-2020)
  #243  
Old 02-17-2020, 10:14 PM
Kamilah Hauptmann's Avatar
Kamilah Hauptmann Kamilah Hauptmann is offline
I'm a regular Victor Victoria
 
Join Date: Mar 2016
Posts: VMMDCCCLXXVI
Default Re: Bits and PCs - a Computers and Tech Miscellany

Soviet Calculators History
__________________
Sometimes you herp a derp, sometimes the derp herps you.

:BC: :canada:
Reply With Quote
Thanks, from:
Ari (02-18-2020), ceptimus (02-20-2020), Ensign Steve (02-18-2020), lisarea (02-18-2020), slimshady2357 (02-19-2020)
  #244  
Old 02-19-2020, 01:45 PM
JoeP's Avatar
JoeP JoeP is online now
YELLOW HAIR FAKE ANIMAL
&
FLOOFIN CHONKO
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXVMMDCXIX
Images: 18
Default Re: Bits and PCs - a Computers and Tech Miscellany

My metadata has metadata. :deepsigh:
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
Reply

  Freethought Forum > The Marketplace > Computers & Technology


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

 

All times are GMT +1. The time now is 03:06 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Page generated in 0.58367 seconds with 15 queries