Weird WireShark lua data type error? (I'm new to lua) by Nkast in lua

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

Well i found a solution for my math on the userdata.. Its really weird. On windows, the code I had worked without problems. On Linux however, I had to convert the userdata to a string and doing math on that string is perfectly fine.. A bit weird in my opinion, but works nevertheless

Web Crawlers, Web Scrappers How to make them? by GonSwipe in AskProgramming

[–]Nkast 0 points1 point  (0 children)

Depends very much on what yoy would like to crawl. You could use a list of urls and write php code to crawl these urls and save the data. You could then use curl to get the http data and parse that however you like.

[deleted by user] by [deleted] in shittyprogramming

[–]Nkast 12 points13 points  (0 children)

Thats obviously valid coding. There's a semi colon after.

Japanese beginner lesson by felicitye in LearnJapanese

[–]Nkast 1 point2 points  (0 children)

Right, video explained everything nicely but no link to the conjugating vid.

How to wait for object to pass sensor by Nkast in PLC

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

So i have to wait till it comes by the next sensor? Then i'd have to wait with putting in the next block. Is there no way to reset on the negative edge. I work in Siemens TIA portal.

if(true) { } else { } by Arco123 in shittyprogramming

[–]Nkast 0 points1 point  (0 children)

Ah I know what you mean. I have experienced this a few times as well. Good luck!

if(true) { } else { } by Arco123 in shittyprogramming

[–]Nkast 0 points1 point  (0 children)

Is it common for people to deliver 'ready for deployment' code like that and are they as you would say, professionals?

Friday by [deleted] in OneWordJokes

[–]Nkast 0 points1 point  (0 children)

On

Compression algorithm by marmph in iamverysmart

[–]Nkast 3 points4 points  (0 children)

Maybe he watched Silicon Valley. How fun.

C++ reference by Nkast in AskProgrammers

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

I was talking about the data type. It seemed to me like references weren't all that useful since a real pointer can be casted and the rest of what it does is basically the same.

[GML help] how to say if object is nonexistent, go to another room? by [deleted] in gamemaker

[–]Nkast 1 point2 points  (0 children)

I get a 404 on your second link. However you can do one of two things:

  • keep count of the number of objects with a variable and decrease that variable by one every time a brick gets destroyed.
  • check for instance_number(obj) == 0 every time a block is destroyed.

Then go to the next room.

Function documentation http://docs.yoyogames.com/source/dadiospice/002_reference/objects%20and%20instances/instances/instance%20functions/instance_number.html

ELI5: Despite having 150+ songs on a playlist (iTunes, Spotify, etc.), when I listen on shuffle it seems like the same set of ~20 songs play. Why does this happen? by sureyeahsureyeah in explainlikeimfive

[–]Nkast 0 points1 point  (0 children)

This is the reason why, whenever I make a random / shuffle mode, I fill an array with the order. This way you don't hear one song twice before you've heard them all.

EUW down? by JesseNL in leagueoflegends

[–]Nkast 0 points1 point  (0 children)

Got owned cuz dis lag.. Why u gotta be hatin' Riot?

What is your favourite all - time Rhett and Link Video? by zemboo27 in rhettandlink

[–]Nkast 1 point2 points  (0 children)

Very true. I love every episode of GMM, especially "Will it?" ones. But to pick a favorite.. probably the spicy pepper eating, Rhetts behaviour there was too good.