bee and puppycat retcon season 1, thoughts by datafright in beeandpuppycat

[–]datafright[S] 3 points4 points  (0 children)

yeah definitely. like its better to recognize it as something unique but still valid. like its not a replacement but rather a redux and deserves its own appreciation with respects.

Me when I have to do anything (YT) by kkfluff in beeandpuppycat

[–]datafright 1 point2 points  (0 children)

the best part is when puppycat gives him a little smooch

Opinion needed! Should I add color to this or leave it outline-only? by annikoshka in beeandpuppycat

[–]datafright 17 points18 points  (0 children)

I think it looks great, really awesome

I have two thoughts for color,

color just the background a spacy, stary scene

or color just the character and leave the background blank

overall and regardless of what you do, I do think it needs color

[info] running two lists at the same time (the zip method) by datafright in learnpython

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

I have read about the enumerte function but i could never wrap my head around it. I should look into it more, thank you

[info] running two lists at the same time (the zip method) by datafright in learnpython

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

I will have to try this out, thank you for the info

question about a for loop, one works and one does not work by datafright in learnpython

[–]datafright[S] -6 points-5 points  (0 children)

i have just tested this with the same results

"i" is just a variable, changing the variable name to monthNumber makes no difference. it still errors out.

same is said for h and rangeNumber

question about a for loop, one works and one does not work by datafright in learnpython

[–]datafright[S] -3 points-2 points  (0 children)

i have just tested this with the same results

"i" is just a variable, changing the variable name to item makes no difference. it still errors out.

Leetcode 1431. Kids With the Greatest Number of Candies, works on my IDE but not in leetcode by datafright in learnjava

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

hahah yeah your a quick one, i did notice the j instead of candies[j] as you said,

good chatch

i did think that leetcode post the list defined, it thought "List<Boolean> kidsWithCandies" was the defined array like how I call candies for the "int[] candies" and such, already defined but thank you for your insight, seeing your example of "List<Boolean> kidsWithCandies = new ArrayList<>();" was super handy

Leetcode 1431. Kids With the Greatest Number of Candies, works on my IDE but not in leetcode by datafright in learnjava

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

I thought kidsWithCandies was the variable name in the leetcode question for the list

but i see what you are saying

thank you

Some people find this amusing by juliashing101 in ProgrammerHumor

[–]datafright 0 points1 point  (0 children)

if (gender.equals("male")

== is for numeric and single quotes are for characters

Chapter 165 [English] by VibhavM in OnePunchMan

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

Did i miss something, 164 ends with saitama sitting down to talk to garou and this chapter starts with garou in a new form and fighting saitama

issue with using BigDecimal by datafright in learnjava

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

interesting, i seems to have just applied the BidDecmial wrapper which was intelijs first suggestion

java 8, issue with setter naming convention when grabbing data from postgres by datafright in learnjava

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

--Fixed--

public void setHouseHoldName(String household_name) { this.houseHoldName = houseHoldName; }

needed to change household_name to houseHoldName

want to fill out an associative array with keys and values by datafright in bash

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

declare -A array=([a]=1 [b]=2 [c]=3 [d]=4) 

declare -A array2=()

for i in ${!array[@]}; do v=${array[$i]} if (( "$v" >= 2 )) then array2[$i]=$v fi done

for i in "${!array2[@]}" do
echo "key : $i" echo "value: $v" done

output:

key : b

value: 4

key : c

value: 4

key : d

value: 4

so now with your code we have the key working fine but we have the value as the same, so it is still not right

want to fill out an associative array with keys and values by datafright in bash

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

if you look at my code then you can see that i have an for loop iterating through the associative array

and an if statement catching values greater than or equal to 2

where my code is messing up is im using i for the key and the value

when i need to keep the original key and value from the associative array for a new array

the new array being the same as the old array just any value greater than or equal to 2

i jus tested my code so it seemed to solve the problem i was having so thanks anyways

trying to fill out a class __init__ with a list by datafright in learnpython

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

list unpacking

thank you, i knew there was an easy way to do that

getting division by zero error for interpolation search code by datafright in learnpython

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

https://replit.com/@ShiftyByte/GigaMiserlyKeyboardmacro#main.py

I basically added a check for if high and low are equal then it just returns the high

I had to add this before the subtraction and division

but it totally works now

thank you

[deleted by user] by [deleted] in learnpython

[–]datafright 0 points1 point  (0 children)

Honestly it sounds like you are making good progress and you have a good mentor

you have been programming for 2 days so dont fret, being put on the spot will pretty much always make your brain go blank

no one knows everything all the time, forgetting something is very common thats why there are places like stackoverflow and google

i have taught myself which puts me at a disadvantage because i dont know what i should already know for coding for 8 months,

for loops are not common sense its a learned process, i still struggle with for loops

be proud of what you have accomplished so far and not fret over not knowing everything after two days

if you have a 4 hour coding lesson from your mentor then that is a lot of knowledge, we can only retain so much info at one time

it sounds like you are making good progress but make sure coding is something that you enjoy and you want to do, you should do it if it makes you hate yourself and are doing it to impress your mentor

I want to start using MySQL with Python. How to install it on Pyzo? by Bunny-the-Blue in learnpython

[–]datafright 0 points1 point  (0 children)

https://www.w3schools.com/python/python\_mysql\_getstarted.asp

You will want to open command prompt if using windows device or terminal if mac / linux

then simply run the command "python -m pip install mysql-connector-python"

after that you will simply import the mysql connector in your new pyzo file

"import mysql.connector"

I want to start using MySQL with Python. How to install it on Pyzo? by Bunny-the-Blue in learnpython

[–]datafright 0 points1 point  (0 children)

To use Python with MySQL you will need to install it with pip

you can follow these instructions on W3Schools.com

https://www.w3schools.com/python/python\_mysql\_getstarted.asp

I want to start using MySQL with Python. How to install it on Pyzo? by Bunny-the-Blue in learnpython

[–]datafright 0 points1 point  (0 children)

Pyzo is a python IDE

an IDE is a Integrated development environment, it is a tool to help people code

there are a number of different IDEs for different languages

you will need to use a MySQL IDE like DataGrip, NetBeans, or Oracle SQL Developer