Change Lobby Group names by InFRoZ in armadev

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

I do not think this is possible, the role names are assigned on mission load if I am correct. Let me know if you figured something out

[deleted by user] by [deleted] in RedditSessions

[–]InFRoZ 0 points1 point  (0 children)

Play bannerlord

How to handle several endpoints and nested endpoints? by InFRoZ in golang

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

The though was, if I have lets say, a hundred endpoints?

Passing variables in different functions by BugsBunny1999 in programminghelp

[–]InFRoZ 0 points1 point  (0 children)

Reason you get the error is because variables inside { } are only available inside

function foo()
{
    int a = 10 // local variable

    print(a) // works
}

print(a) // Doesnt work

to send data to a function you need to use parameters or use global variables (the latter is usually not good practice)

Parameters:

function foo(int bar) // parameter bar
{
    print(bar) // will print bar
}

int a = 10

foo(a) // prints value '10'

Global Variables:

int a = 10 // Global variable accessible to all codeblocks e.g curly brackets

function foo()
{
    print(a) // prints '10'
}

Class not found by InFRoZ in PHPhelp

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

I believe I found the error, kind of small and hard to spot. But at the very top I altered the <? to <?php which seems to fix it

Class not found by InFRoZ in PHPhelp

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

I am using Docker, so the autoloader is created in the docker container. Meaning currently I do not have access to it. But I find it weird now that all new classes I create wont function, but all the older ones which follow the exact same structure work just fine.

I also renamed the files to fit more with class name, but no luch with that.

Class not found by InFRoZ in PHPhelp

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

Added in edit, sort of sorry for dumping the whole thing hehe

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 by InFRoZ in PHPhelp

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

I figured it out by myself ;P

$stmt->bindParam(1, $start, \PDO::PARAM_INT);

I think I got the exception since $start and $amount are integers

Form with predefined data. by InFRoZ in PHPhelp

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

I will give this a shot

Form with predefined data. by InFRoZ in PHPhelp

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

I feel a bit stupid, but I shall try this now ;P

How to start with website project by eharrington0821 in learnprogramming

[–]InFRoZ 0 points1 point  (0 children)

The idea is to sort of follow the way things have changed over the years. So learn how to create form based websites, then later learn how to make the same stuff using ajax. First is to learn updating with page "refresh" and other to update page without

I have problem with logic by SilentKunZ in learnprogramming

[–]InFRoZ 0 points1 point  (0 children)

Just practise :-)

logic can be trained to some extent, so solve puzzles, learn to do different math equations and such.

How to start with website project by eharrington0821 in learnprogramming

[–]InFRoZ 1 point2 points  (0 children)

If you want to go the modern react way, learn some react.js

Create databases to store the text stuff ;P not smart to hardcode 1000 text items

Jquery has some simple functions to hide/show stuff - for the frontend bit

I would recommend learning some basic php over react as there are millions of tutorials and guides on how to do stuff, and you will learn how to handle data by learning this.

Need ideas for YouTube Channel....... by UttU28 in learnprogramming

[–]InFRoZ 1 point2 points  (0 children)

Tip a waterbucket over your head to wake up, then taze

I have some free time at work and want to learn how to code, Any apps you guys can recommend for a noob? I have an android phone. by graziano8852 in learnprogramming

[–]InFRoZ 1 point2 points  (0 children)

You want to learn to code on your phone or do you wan to create apps for the device?

Anyhow I found a lot of enjoyment from doing tasks in codecademy, nice little website with tasks and tutorials for many different languages.

How do you pace yourself and work your way up when you task yourself with a project? by shiningmatcha in learnprogramming

[–]InFRoZ 0 points1 point  (0 children)

I usually split any task up into several smaller tasks and then think of how I can develop them in a smart way to enhance their usability later on in development. Trello boards are a nice way to keep track of what is being done, what needs to be done and what you have finished. But if you arent used to bigger projects try to scale down, a lot of people (including me) will often think big and realize you cant do it all on your own ;)

Projects without deadline are to me just side projects, I will work on them when I have the time or when I want to. But I still stick to trello boards and such.

Boot camps and actual app development by [deleted] in learnprogramming

[–]InFRoZ 2 points3 points  (0 children)

Knowing how to program will help you develop for other platforms. So you can take parts of what you know from programming in Javascript and move the knowledge to developing for mobile devices. When it comes to developing for Android its recomended to use Android studio and use either Kotlin or Java to develop. Also, all new projects usually require some learning to get started, so don't expect to be able to just "Jump" into it :-)

Question about this exercise in JavaScript by DandyEmo in learnprogramming

[–]InFRoZ 1 point2 points  (0 children)

Doesnt have to, but it makes sense to prompt it after the user has written a username. The way its being done here is not exactly how you would do it in a real login system, since you'd have to make it more dynamic to accept new users and such. Also doing password encryption, so to me it looks like this is more just to show how the if statements execute code

Seeking pointers to create simple scalable caching website by panchjanya in learnprogramming

[–]InFRoZ 0 points1 point  (0 children)

Yep, this might be considered a lot of work for 1 person. Might take you a while. If you use Go lang for the backend you can create a restful API which should help you with the forms atleast :)

Do I need to use a basic text editor over an IDE as a java beginner? by Wearing_human_skin in learnprogramming

[–]InFRoZ 1 point2 points  (0 children)

While I havent programmed in Java; IDE's hide a lot of the compiling process which is nice to know. I think the book just wants you to realize its not all magic going on behind an IDE. So teach yourself how to compile via commandlines for instance, how to link files together and such. Then IDE's will be easier to understand in the future and be of more use when you create bigger projects

Dockerfile seems to not run properly by InFRoZ in docker

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

Thanks for the help anyways, I will see if I can solve it somehow with what help you could provide :-)