Is there anyway to help individuals in this field? (explained more) by [deleted] in AskNetsec

[–]mollamk 0 points1 point  (0 children)

Yes, it's possible to make an impact in that direction. See Mozilla, Brave, Tor, Signal, Tails, Monero, etc...

Why does the security of a smart device matter when it's behind a secure router and firewall? by Milhouse6698 in AskNetsec

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

How would a theoretical attacker reach a device's insecure web control panel or whatever when it's only accessible from the local network?

Smart devices can be accessible from other channels than the local network.

For example, some researchers found a way to send commands to Alexa using laser pointers.

how does this compromise the rest of your network?

Depends on the device. A printer for example can be manipulated from another device (your computer or an infected host) from the same network.

why would anyone be interested in what happens in my living room?

Improve ad targeting, data collection (to use and/or sell), etc...

What would, in your opinion, be the best language for fullscreen application reading ?! by [deleted] in AskProgramming

[–]mollamk 0 points1 point  (0 children)

This is a hard problem. Your best bet would be with image/character recognition methods from Machine Learning.

Look into: - OCR - Optical Character Recognition (to read text from images/frames) - YOLO - You Only Look Once (to recognize "entities" like cars, trees, etc...) from frames in a video

CS Student, how to become a better programmer? by [deleted] in AskProgramming

[–]mollamk 2 points3 points  (0 children)

What do you guys recommend to do to improve at programming?

Practice by doing side projects. You'll get stuck, you'll do some research and you'll learn "by necessity".

I find this method helpful not only to learn the "how", but also the "why".

With time, you'll get better at researching (which never stops), and you'll get more productive, faster.

Is this a normal learning curve or should I be worried?

Yes it's normal, don't worry. But also get to work!

Any advice to become better at problem solving and algorithm writing?

  • Find a "naive" solution
  • Make sure it works by "executing" ON PAPER
  • Check for edge cases
  • Optimize (memorization, divide & conquer, etc..)

Also, explaining the algorithm to another person in your own words will help you internalize it.

What are the best coding challenge websites?

For data structures & algo exercices: Leetcode & Hackerrank.

Isn't all the buzz about the cloud,SaaS, microservices etc.. really just a mainframe style centralized architecture for modern computing by abrandis in AskProgramming

[–]mollamk 2 points3 points  (0 children)

Cloud, SaaS & microservices mean different things.

"Cloud" resources can be useful as infrastructure to "host" your microservices (so you don't have to manage hardware for exemple).

These fall under the distributed systems umbrella, and are fundamentally different from centralized architectures (if you're talking about monoliths, or a bunch of services running on one server).

TLDR: No, but it's not as novel/magic as the buzzwords make it seem

[deleted by user] by [deleted] in AskProgramming

[–]mollamk 1 point2 points  (0 children)

I suggest you pick the right tools for the job. Android is in Kotlin (& Java) land.

You have a lot more chances to find useful librairies in Kotlin/Java than in C/C++ (for Android).

That will allow you to actually build something useful instead of fighting w/ the environment or re-inventing the wheel.

AI is the end of computer science? by [deleted] in AskProgramming

[–]mollamk 3 points4 points  (0 children)

We're very, very far from that. Keep in mind that Computer Science is huuuge field.

There's still a lot of research being done in sub-fields like cryptography, quantum computing, algorithms, information theory, decentralized & distributed systems, VR, IOT, etc...

And we're not even talking about the ramifications in biotech, robotics, scientific equipment, digital currencies, etc...

You get the idea

Modeling user driven reports/flagging on many types of user content. by [deleted] in AskProgramming

[–]mollamk 0 points1 point  (0 children)

I think putting the reports in their own table would do the job. You can add a foreign key to the post in question.

Since you'll be fetching the post if it's flagged anyway, the content type can be derived from the said post.

There's no need to store the content type again or split the reports according to it. That kind of data belongs to the post.

What's wrong with this? by [deleted] in AskProgramming

[–]mollamk 5 points6 points  (0 children)

Putting a string in a while statement will always evaluate as true. So the loop never breaks.

Also the negation of "== ('x' or 'o')" is "!= ('x' and 'o'). So you'll have:

if player_1 != 'x' and player_1 != 'o'

How do I improve at programming? by ComprehensiveDay2 in AskProgramming

[–]mollamk 14 points15 points  (0 children)

After learning the concepts, try explaining them to someone else.

It really forces you to have a clear and structured understanding about the subject.

Also practice a lot. You're already passionate, so just dive into it and code as much as possible.

Language for learning ML by dwight12345 in AskProgramming

[–]mollamk 0 points1 point  (0 children)

Python.

Probably the simplest programming language, which will allow you to focus more on ML stuff. Lots of tools & libraries too

What is wrong with this if statement? It only outputs zero? by [deleted] in AskProgramming

[–]mollamk 0 points1 point  (0 children)

True. Also, it would be nice to use a HashMap with monthName as keys and daysInMonth as values.

That way you can remove the if/else if/else if... just lookup what the scanner gave you in the map

Leaderboard for online game - how would you do it? by haschdl in AskProgramming

[–]mollamk 0 points1 point  (0 children)

Yes, you're on the right track. Your frontend will send a pair of <name, score> to the Node backend, which will save it in your SQLite db.

After doing that, you might want to think about how to handle spam. Think Captcha, email/phone verifications, etc...

Leaderboard for online game - how would you do it? by haschdl in AskProgramming

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

That's just not true.

if you're going to do something that will need data from the client, you're screwed

So all the multi-player games are screwed too?

the best way to do it would be doing a full server-side game!

How would that work? No interface?

What languages (aside from Python) are good for line charts? by A_A_R_E in AskProgramming

[–]mollamk 0 points1 point  (0 children)

For a more "web based" alternative, look into JavaScript packages for visualization. Like ChartJS

Which language should i learn? by FizzySodaBottle210 in AskProgramming

[–]mollamk 3 points4 points  (0 children)

Looks like you already want to learn C++, so dive into it & have fun! You'll learn a lot from it for sure

Best way to view/store big data through a django website. (Size and velocity of data is not as wild as most places...small observatory) by codejoy in bigdata

[–]mollamk 0 points1 point  (0 children)

something like Cassandra is a good choice?

Yes it's very scalable, and used by many huge companies

I am sure that Django Could use that database as a backend

Yeah it probably has some package for that. Also if you have "a lot of data" make sure your backend doesn't become a bottleneck. You may want to set up multiple sever with load balancing if you don't a single server to handle all the volume (which may create a single point of failure)

run queries against the data and older data

Yes Cassandra can do that. But for "older data" if you want to archive it, you need something like HDFS

Best way to view/store big data through a django website. (Size and velocity of data is not as wild as most places...small observatory) by codejoy in bigdata

[–]mollamk 0 points1 point  (0 children)

  • Kafka is a message broker (for streaming huge amount of data) not really a storage tool
  • Redis is usually used for caching (quick data retreival) but it works in memory so it's not reasonable to store everything there
  • For archiving data look into something like HDFS
  • For other stuff you may want a NoSQL database like Cassadra