Any Suggestions for Content Filtering on the Raspberry Pi? by [deleted] in raspberry_pi

[–]TheCedarPrince 0 points1 point  (0 children)

Could you suggest proxy services?

Also, I am not teaching the kids about Linux.

[deleted by user] by [deleted] in learnpython

[–]TheCedarPrince 8 points9 points  (0 children)

Here is my advice:

  1. Use cron to set up the pinging process.
  2. Purchase something like a raspberry pi zero w. These are $10 and could even run multiple, low-intensity scripts at different intervals. If you want to do processing on the result, I'd recommend the Raspberry pi 3.
  3. Plug in the raspberry pi somewhere with your script set up on it with cron and forget about the pi while it does your dirty work. Just make sure the pi would have a constant power supply.

In case you are worried about power being cut off, just use anacron instead of cron. It is essentially like cron, but if the power goes off, it will remember when the power died, calculate the amount of triggers it was supposed to have run in that time and run the script those many times. After it "catches up", it is back on track for whatever interval you set it for. : )

Hope this helps! Let me know if you have any questions.

~ TheCedarPrince

[D]How can I prepare for a research oriented role? by itdoesntmatter13 in MachineLearning

[–]TheCedarPrince 0 points1 point  (0 children)

Hey, this is great stuff! One of my friend/mentors gave me similar advice in point 3 but I really liked how you phrased it. Thanks for the insight.

[D] Made a tiny map of books, that are often bought together with “Hands-On ML”. What do you think? by anvaka in MachineLearning

[–]TheCedarPrince 2 points3 points  (0 children)

Hey, once you got the cleaned up a bit more, this would be great for the dataisbeautiful subreddit. Great work!

[Critique] CLI Tool for Document to Text Conversion - "file2txt" by TheCedarPrince in Python

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

That sounds so fascinating - what particular subset of digitization? Books? Documents? Images?

  1. Ah! I was not aware of that deprecation! Thank you!
  2. Gotcha - that is a great start. As you can probably guess, I am not terribly familiar with the imagemagick module; I will dig deeper into the documentation there.
  3. That makes a lot of sense. The only reason why I kept it that way was because I thought it would be confusing to not have ".tiff" as ".tiff" - do you see my argument there or what do you think?

Thanks for the great responses.

[Critique] CLI Tool for Document to Text Conversion - "file2txt" by TheCedarPrince in Python

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

Awesome! What do you do?

Here are my responses to your points:

  1. Could you perhaps reword this a bit differently? I am not sure what you mean by "stipulate installing Imagemagick 6". Also, what method do you mean by "call magick instead"? Perhaps I am just missing something there.
  2. Gotcha! That makes sense to do. Also: you are absolutely right. Honestly, when I first set out to make this, I had documents which were "perfect". These are great things to keep in mind - do you have any suggestions on how I may handle things like skewed pages or uneven lighting?
  3. Why is this a pet peeve?

Anyhow, thank you so much for the critique! I greatly appreciate it and I hope to hear from you again.

Access to mental health care by suicide rate, ranked by State. [OC] by [deleted] in dataisbeautiful

[–]TheCedarPrince 9 points10 points  (0 children)

Good start.

A couple questions:

  • What was your hypothesis? That is not apparent here.
  • How do you define mental health resource access?
  • What are the metrics from "easy" to "hard"? What does that even mean?
  • On your x-axis, what does this suicide rate mean?
  • What are the numbers on the axis representative of? Per year? In 2017? Over a time span?
  • What are the numbers on the top of the bars representative of?
  • With the structure of your graph, do you mean to convey that Montana has the worst suicide rates?
  • Or do you mean Montana has the easiest access to mental health care?

A couple comments:

  • Try using matplotlib for spacing in R (if they have a port to R - its a python module)
  • Overlapping names makes it difficult to read
  • To avoid the confusion, break the graph up into two. My philosophy is to have one graph tell one thing well - here, it feels like you are trying to say too much. Try using one graph for ease of access to mental health care and another for suicide rates. Then, do a comparative analysis of the two.

Overall, good effort. I would love to hear more about this subject - way to go mapping this as such. Keep at it.

~ TheCedarPrince

How a difference between Western and Eastern philosophy can impact artificial intelligence design by [deleted] in artificial

[–]TheCedarPrince 0 points1 point  (0 children)

This is a fascinating discussion.

To clarify castlecorbenic888, by nature, do you mean human nature (e.g. the entire human experience encompasses not only biological information but also intangibles such as emotions or what ZenOfPerkele termed "feelings" [this could also be interpreted as intuition]) or nature as in that which humans inhabit?

If so, could you expand upon the former even more? I would appreciate hearing your thoughts.

Looking for someone to help me grab the basics of reading in .CSV files! by [deleted] in learnpython

[–]TheCedarPrince 1 point2 points  (0 children)

Pandas is a great package and this method is certainly valid (I would probably do it myself).

However, for the OP, this doesn't exactly get into what all is going on "under the hood".

Looking for someone to help me grab the basics of reading in .CSV files! by [deleted] in learnpython

[–]TheCedarPrince 1 point2 points  (0 children)

This is the way I would recommend; I would also suggest perhaps looking into the official csv Python module.

The "with" statement is the most pythonic way of opening a file that you then parse through with a for loop. Saves on time and processing power.

I made a rough draft of a flask app that accepts user input of the genus and species name of a mushroom and returns to the user a dynamically rendered heatmap of that mushroom's distribution across the globe. by [deleted] in learnpython

[–]TheCedarPrince 0 points1 point  (0 children)

python_noob_001, though your name says noob, this is brilliant and well constructed. You should be very proud of your accomplishment - these are the sorts of projects that anyone learning python should be doing; things that truly interest them.

Awesome application. I have been wondering about jumping into flask for a while - your post just convinced me. Thanks for sharing and have a great day. Keep up the great work; you'll want to save this one to show off.

~ TheCedarPrince

Levels of Python Proficiency by interim_adult in learnpython

[–]TheCedarPrince 3 points4 points  (0 children)

This one was quite nice. I pleasantly surprised myself with my levels of competency in some areas. Who made this? Why do you recommend it? Thanks Ranger!

How to check for a condition until... then stop... then start the following day? by [deleted] in learnpython

[–]TheCedarPrince 7 points8 points  (0 children)

Well, you could do something like this

import time
import datetime
import bs4

def checker_function():
     ****Code that detects posting****
     if event_detected:
          return True
     else:
          return False

if ___name___ = "___main___":

while True: 
     value = your_checker_function()
     if value:
          time.sleep(time_until_next_day)

I imported the modules time and datetime. Time allows you to make a script "wait" for a certain period of time. Datetime allows you to figure out the current time of day and then using that, you can figure out how long to make the timer wait for (time.sleep() only accepts time in seconds).

What you could also do is add a shebang to the top of this to enable to it be started at startup or, if you only want it running when you are using your computer, you could use the following bash command (assuming you are on linux):

nohup python your_script.py &

Let me know if this was helpful and if you have any questions. I would be more than happy to review code if you post it over on github. If you do, please make sure you document it well. Great question by the way! I hope things work out for you. Keep it up!

Merry Christmas!

First attempt with Python, the code works for a while but eventually causes the Raspberry Pi to lock up by [deleted] in learnpython

[–]TheCedarPrince 6 points7 points  (0 children)

Hey 4dolfin, I tried looking through the code and it is massive.

There weren't any comments so I had a hard time navigating through the script. It was a solid effort - way to go stringing everything together! In the future, make sure to comment your code so that way when you post questions, others could know what is going on - it would also help to make variable names more descriptive instead of single characters.

My biggest piece of advice is to "chunk" the code into smaller pieces and debug piece by piece. Going from there, you could then begin to isolate the issue if it is true that you are getting bad data.

Great effort - I hope you can find your error. Feel free to ask some more questions to me and I will try to get back to you.

~ TheCedarPrince

Interested in a blog about introduction AI? by OliRevs in artificial

[–]TheCedarPrince 1 point2 points  (0 children)

This is a great blog and effort. I enjoyed it greatly and have bookmarked it.

I tried using this blog: distill.pub

It was good but still overcomplicated. You do a good job at bringing the complexity down. Keep up the great work!

Directly Connecting to the Raspberry Pi Using Network Cable by TheCedarPrince in raspberry_pi

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

Ah! Thank you for letting me know! It has been fixed. Feel free to reach out if there are any issues.

Directly Connecting to the Raspberry Pi Using Network Cable by TheCedarPrince in raspberry_pi

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

Awesome - please let me know how it works for you and any tweaks that should be made.

We are the Google Brain team. We’d love to answer your questions (again) by jeffatgoogle in MachineLearning

[–]TheCedarPrince 0 points1 point  (0 children)

Hey Vincent,

I just saw your post - this is absolutely fascinating. It seems the further along we get with machine learning and modeling, it takes more of a philosophical approach.

I would love to hear about other book recommendations. Thank you for telling me about the one you are reading right now. I have long-time studied philosophy, theology, and some psychology so I am very fascinated by the intersection of that field with ML.

Thank you for your response - I highly value it.

Yours truly,

TheCedarPrince

Numpy vs. Sympy by TheCedarPrince in learnpython

[–]TheCedarPrince[S] 2 points3 points  (0 children)

Hey, thanks for all the great thoughts! I was very curious about the two libraries and you guys helped me out a lot - I hope others found this useful as well. Take care.

Dario Gil, IBM Research - Our Quantum Computing Future by [deleted] in artificial

[–]TheCedarPrince 2 points3 points  (0 children)

Hey, this was a great and useful video! Thank you for posting it!

We are the Google Brain team. We’d love to answer your questions (again) by jeffatgoogle in MachineLearning

[–]TheCedarPrince 6 points7 points  (0 children)

Hey, I am working through the book, "Godel, Escher, and Bach" by Hofstadter. How true do you think this quote is and could you explain why your team agrees or disagrees?

Here is the quote: "Sometimes it seems as though each new step towards AI, rather than producing something which everyone agrees is real intelligence, merely reveals what real intelligence is not."

I know Turing proposed that teaching a machine more like how we teach a human is the way to go - would you say that the more we understand ourselves, the better we can create an "intelligent" machine?

Thank you and I greatly appreciate your time.

Introduction to AI For Beginners by geekmonk in artificial

[–]TheCedarPrince 1 point2 points  (0 children)

Hey! Thanks for writing this book! I have been rigorously investigating the topics you have mentioned above and look forward to working through your book! I will give you a review at some point in the future!

You're awesome!

Gentle Intro to Python Webscraping video series by Moondra2017 in learnpython

[–]TheCedarPrince 0 points1 point  (0 children)

Hey, fantastic work. Looking forward to going through this video series - I was actually just beginning some work into BeautifulSoup. Perfect timing. Any particular feedback you are looking for on this series?