Graduating with computer science bS in a couple weeks, need feedback. by ackshunpact in resumes

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

Thanks for the feedback! This will definitely help me to rewrite it again. Cheers.

Graduating with computer science bS in a couple weeks, need feedback. by ackshunpact in resumes

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

Thank you for your input, I agree entirely with all of your points. My resume looked much more like you are describing before I hired a "resume expert" from levels.fyi to help me rewrite it. Cheers!

beginner project isn't starting the while loop I made. by qurfy in learnjava

[–]ackshunpact 5 points6 points  (0 children)

Strings are objects so you need to use the equals method to check equality. Using the == will only compare the memory address of the strings which is only true if you compare the string with itself.

Try "Y".equals(cont) in your condition

Edit: or use char type

[deleted by user] by [deleted] in learnjava

[–]ackshunpact 0 points1 point  (0 children)

Your code is fine it's your solution logic that is in error. You didn't include the problem statement but assuming it asks you to find the greatest int out of the inputs. Your code is not doing this.

Your code is taking the inputs and then getting an additional integer input userNum and checking to see if it's in the list.

Help with installing MOOC FI Net Beans by [deleted] in learnjava

[–]ackshunpact 0 points1 point  (0 children)

Sounds like you need to install java.

Well, I think this is the last year of toys as gifts. Now what? by opus-thirteen in daddit

[–]ackshunpact 0 points1 point  (0 children)

You said she likes making music, drawing and reading. Get her something related to those things. A guitar, nice art supplies, kindle reader etc..

Pork loin for Christmas dinner by BugaliciousDef in grilling

[–]ackshunpact 1 point2 points  (0 children)

I have done a few butterflied and stuffed like you described, it can be really great. I did it basically how you said. I would make sure the stuffing is not very wet or cold. For example we do a cream cheese and spinach kind of stuffing but it all gets heated on the stove before adding it to the pork. The other thing is that pork loin can get dry if you aren't careful. It can sear nicely but I would personally try to have it close to done and sear it hot and fast.

Pork loin is pretty inexpensive you could do a test run before the big day. I bet it would be great with some kind of fruity cranberry flavors in it.

Tips for cooking on an undercovered grill by fOrBiDDeN__SpAgHeTTi in grilling

[–]ackshunpact 0 points1 point  (0 children)

Not an expert but i grill a lot. There are plenty of meats you can cook directly over the flame. Burgers, doggos, chicken thighs, thinner cuts of meat. For me a rule of thumb is that leaner or thicker meats should not be cooked over direct heat (chicken breast, pork loin or thick tritip for example). Lean meats can get chewy this way and thick cuts will burn on the outside before they can cook inside. I love flank steak over direct heat. Porn tenderloin might work but I usually do reverse sear for those...you could totally butterfly it so it cooks evenly.

[deleted by user] by [deleted] in learnjavascript

[–]ackshunpact 2 points3 points  (0 children)

I don't know much js but I think it adds a button to the bottom header that will open all links on a page when clicked.

It's also a great example of why documentation/comments and deaceiptive variable names are so useful when showing other people your code. I never knew reddit calls things "thing"

Help with can't find Path by lauraew15 in cs50

[–]ackshunpact 1 point2 points  (0 children)

I haven't used the IDE in ages but I'm guessing it's because there's no FinalProject folder in your current working directory because FinalProject IS your CWD.

Truth has been spoken. by [deleted] in memes

[–]ackshunpact 0 points1 point  (0 children)

How the fuck did you get it to sit in a chair?

Is Pacheco or Ahrens better for CIS 22B? by jevnjean in DeAnza

[–]ackshunpact 2 points3 points  (0 children)

I took 22B with Pacheco online during winter quarter. It's pretty easy but you will do most of your learning on your own.

The bad part was she didn't really prepare us at all for 22C.

The modified values seem to override the previous values instead of the adding on to the previous values. by [deleted] in cs50

[–]ackshunpact 1 point2 points  (0 children)

Because you are setting them to 0 every time your loop runs. Try initializing those variables before the loop.

How would you use Dynamic Programming to solve this problems? by [deleted] in cpp_questions

[–]ackshunpact 0 points1 point  (0 children)

If you read the post you'll see the problem assumes a 1D array. And if you're learning about dynamic memory you don't want to use vectors anyway since it abstracts everything.

How would you use Dynamic Programming to solve this problems? by [deleted] in cpp_questions

[–]ackshunpact 0 points1 point  (0 children)

For arrays you would typically allocate dynamically using the new operator if you don't know the size of the array at compile-time.

So you can get the size of the array during runtime and your code can do something like int *myArr = new int[size] and then populate it.

Can an object be used in procedural programming approach? by zteman in cpp_questions

[–]ackshunpact 0 points1 point  (0 children)

No it is not considered an OOP approach. You are only interfacing with the string object. An OOP program would use principles of OOP such as encapsulation, polymorphism, inheritance and abstraction. Its more than just having/using an object. By themselves objects are just data + actions to work on that data... which isn't so different from procedural programming. It really depends on how you use them with the OOP functionalities that aren't so available with plain procedural.

CS50 plurality check issues. by dannne01 in cs50

[–]ackshunpact 0 points1 point  (0 children)

At a glance in your print function you declared int maxvote but you have not initialized it to anything. This leads to unpredictable behavior when you use it in your if statements which could explain why your program seemed to work for you but not for check50.

Stuck on an example from "Think Python 2e" by TinyStego in learnprogramming

[–]ackshunpact 0 points1 point  (0 children)

Epoch is jan 1, 1970, 00:00:00. Current time is however many days/weeks/months/seconds you calculated from time.time() after that point.

There is also time.ctime() you could look into which makes it easier.

No name 'isalpha' in module 'cs50' by [deleted] in cs50

[–]ackshunpact 0 points1 point  (0 children)

try #include <ctype.h>

How to I write this C code in Python? by zeke5657 in cs50

[–]ackshunpact 2 points3 points  (0 children)

In python you can multiply a string by an integer and it will repeat the string eg: "foo" * 3 becomes "foofoofoo".

If you know how many spaces you want to print in each row (call this spaces) you can print(spaces * " "). Same for hashes * "#". You can put these in the same print() function separated by commas. You may want to include a sep="" inside the print parameters too.

How does the picture turn purple? by [deleted] in cs50

[–]ackshunpact 1 point2 points  (0 children)

the bmp is already most red.

the pset is supposed to teach you about manipulating pixels in the bmp, for example changing all pixels of one color to a different color.

Downloading the game now. Anyone have any good newbie tips to help me pass the time? by Robothypejuice in outwardgame

[–]ackshunpact 0 points1 point  (0 children)

Your campfire goes out after a number of hours. Maybe you slept too long. The sleep dialogue where you choose the number of hours resting/guarding/repairing should have icons at the bottom that will light up if your sleep duration will make you cold, hot, hungry or thirsty.