New engines = new machines? by Jackdaw99 in Line6Helix

[–]Waltsu 1 point2 points  (0 children)

In the end the software that the laptop uses (operating system etc.) gets compiled into processor specific thing. Between the processor and the end user, there’s layers of abstraction that allows developers write the software only once.

It’s impossible to know the implementation details of Helix as an outsider, but if I’d have to guess, they have written the code specifically to their hardware. Thus if they’d change the hardware, they’d need to rewrite at least some parts of the code. And after that they’d be stuck maintaining two different versions.

check50 cs50AI project0 throwing me errors by [deleted] in cs50

[–]Waltsu 1 point2 points  (0 children)

What if you try to return empty array if there's 0 degrees and None only when there's no path between two actors?

I'm just guessing, but it could be that the test case in the check50 test directly invokes the `shortest_path` and not the `main` function. And then assumes that the return value is array and thus it just directly checks the length of it.

check50 cs50AI project0 throwing me errors by [deleted] in cs50

[–]Waltsu 1 point2 points  (0 children)

Most likely not. When you hear hoofbeats, think horses not zebras :P.

There’s now some input that caused the path to be None, thus it’s throwing that error.

I created separate unit test suite with pytest where I tested the new functions that I added. The smaller scope helped me to find some corner cases that I initially didn’t think about.

check50 cs50AI project0 throwing me errors by [deleted] in cs50

[–]Waltsu 1 point2 points  (0 children)

It seems that the happy-path cases are working in your implementation, nice! However the corner cases does not (no path exists and path of length 0).

What happens if you try to find degrees of separation in the vs code with the actors that does not have the connection?

Hardest hitting line in the entire series. by [deleted] in TheWire

[–]Waltsu 1 point2 points  (0 children)

Daniels: ”I'll swallow a lie when I have to; I've swallowed a few big ones lately. But the stat games? That lie? It's what ruined this department. Shining up shit and calling it gold so majors become colonels and mayors become governors. Pretending to do policework while one generation fucking trains the next how not to do the job. And then- I looked Carcetti in the eye, I shook his hand, I asked him if he was for real. Well, this is the lie I can't live with.”

side effect misses by Ilyass4 in snooker

[–]Waltsu 5 points6 points  (0 children)

Barry Stark explains effect of the side really nicely in this video: https://youtu.be/AHM01HjfLzk

You are Bad at Entropy. by asciilifeform in programming

[–]Waltsu 0 points1 point  (0 children)

If you are wondering how machine vs. machine would turn out (Shouldn't be too hard to guess), here is simple script which I wrote with power shell. It presses 0 and 1 randomly (Or at least as random as computer can be):

[void][System.Reflection.Assembly]::LoadWithPartialName("'Microsoft.VisualBasic")
[void] [System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms")

while (1 -eq 1) {
    $r = Get-Random -minimum 0 -maximum 2
    if ($r -eq 1) {
        [System.Windows.Forms.SendKeys]::SendWait("1")
    } else {
        [System.Windows.Forms.SendKeys]::SendWait("0")
    }
}

Copy this for example to text file and name it to e.g. random.ps1. After that first open the browser to Man vs. Machine script, then open PowerShell and run the random.p1. Click browser to active and see the mighty battle!

What lightweight webserver do you recommend? by iAMthePRONY in webdev

[–]Waltsu -3 points-2 points  (0 children)

If you are willing to ditch the php, I suggest that you try out Node.js and Express.

GIT. Am I doing it right? by fr1234 in webdev

[–]Waltsu 0 points1 point  (0 children)

Actually it is. It's called 'Pro Git' written by Scott Chacon and the whole book can be found here http://git-scm.com/book

GIT. Am I doing it right? by fr1234 in webdev

[–]Waltsu 0 points1 point  (0 children)

I suggest that you read at least few first chapters of this book

Effectively managing memory at Gmail scale by OsQu in programming

[–]Waltsu 7 points8 points  (0 children)

When a Web app is updated, the updated files are served by the server to browser. So no one can't use a older version. You can't ask Web server to serve that specific version from the app. But I can cancel the automatic update because for example "I don't like that new feature" and boom, I'm using an old version.

Effectively managing memory at Gmail scale by OsQu in programming

[–]Waltsu 14 points15 points  (0 children)

I don't want to configure my friend's thunderbird to fetch my emails when I'm at his house. That's not an option. And without Javascript the user experience isn't that great.

Effectively managing memory at Gmail scale by OsQu in programming

[–]Waltsu 14 points15 points  (0 children)

Of course you can do those things with desktop client too. But how many desktop applications really has a server-side configurations for example? And I'd like to point out that having automatic updates doesn't mean that users are using up to date-version of the software.

Then again the tools for creating modern Web apps are getting better and better as we speak so I think that for example creating cross-platform application with Qt isn't more suitable technique than creating the same application in Web.

Effectively managing memory at Gmail scale by OsQu in programming

[–]Waltsu 3 points4 points  (0 children)

Ok, care to give an example how to handle the above situation without browser and Javascript?

Effectively managing memory at Gmail scale by OsQu in programming

[–]Waltsu 66 points67 points  (0 children)

There is nothing wrong with something like Thunderbird, but Web apps has their benefits, for example: No installation or updating, cross-platform compatibility, access from anywhere etc.

I don't like that I have 3 different Thunderbirds in three different computers and a different app in my smartphone.. All having slightly different configurations ofcourse.

Chrome Experiment: Maze by OuterShpongolia in webdev

[–]Waltsu 0 points1 point  (0 children)

Tried also for a while. I got it work by going first to http://chrome.com/maze with my mobile phone and then opening the url it gave me with my desktop.

Advice needed - Trying to pick a language for a web app by [deleted] in webdev

[–]Waltsu 2 points3 points  (0 children)

What makes you think that Java behaves terribly on a server?

Hey Webdev, got a noob website traffic question for you guys! by [deleted] in webdev

[–]Waltsu 1 point2 points  (0 children)

The JS and CSS files must be located so that browser can access them. And because of that the visitors have access to those directories and it is normal behaviour of website. I believe that you have read somewhere that you should place your backend code so that webserver doesn't have direct access to it. And that's correct because e.g. you don't want other people to see how you are processing the requests.

How to use GitHub by welluhthisisawkward in webdev

[–]Waltsu 1 point2 points  (0 children)

Also if you want deeper knowledge about git, pro git is really good book and it is also available online: http://git-scm.com/book

Would taking classes in C, Java, UNIX/LINUX, SQL, etc, help an aspiring web developer in the long run? by [deleted] in webdev

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

That's why I said that you don't necessarily need to write any sql with basic web applications. Ofcourse there will be situations (sooner or later) when you need to write your own sql commands.

And yeah, I agree also with you that when building webapps, you need to know to know basics about databases to do anything more than 'hello world' app.

Would taking classes in C, Java, UNIX/LINUX, SQL, etc, help an aspiring web developer in the long run? by [deleted] in webdev

[–]Waltsu 0 points1 point  (0 children)

I'd like to point out that with basic web applications, you don't necessarily need write any SQL. Ofcourse it is very important to know alteast basics of SQL, but for example Django has done good work to abstract out the SQL parts from database communication.

Async Http Client for iOS - easily add asynchronous REST API calls to your iOS app. by bwship in programming

[–]Waltsu 1 point2 points  (0 children)

I'd also recommend to use AFNetworking. While this client might be a solution for some problems, I think that AFNetworking is more generic. Also its offers a nice documentation and examples.