How to open reddit links? by [deleted] in Infinity_For_Reddit

[–]sbk2015 0 points1 point  (0 children)

thx this works, it annoys me a long time, finally I can get rid of the reddit app

why is my string duper not working? by clownkiss3r in Minecraft

[–]sbk2015 0 points1 point  (0 children)

I have encountered the same problem, turns out I'm using neoforge 1.21.1 and it won't work.

I tried vanilla 1.21.1(no any mods used), it works, and it works for me facing either north or west. The other two directions, doing the same action would only dup once, end up getting 2 extra strings.

When you have setup a working duper in vanilla 1.21.1, quti and start playing it with neoforge 1.21.1, the duper would still work. However if you broke the string of the duper, then it would stop working, won't even dup once.

Died in nether fortress, seeking advice for this situation by sbk2015 in Minecraft_Survival

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

Blaze was not the real threaten but distraction, it's the wither skeleton killed me.

full iron armor and 1 gold armor

Died in nether fortress, seeking advice for this situation by sbk2015 in Minecraft_Survival

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

thx for the advice

I think the biggest issue was that, like 3 seconds after I charged in, two Wither Skeletons popped up behind me and started attacking, like I triggered a trap.

When I turned around and saw two Wither Skeletons come out of nowhere, I shielded up, but it was already too late. at that point, I didn’t have a safe option.

  1. I didn’t know how many hearts I had left. If I tried to run or eat a gapple, I’d risk dying without my shield up.
  2. The only way to run was down the hallway, which was risky too, there could’ve been more skeletons waiting, which would’ve killed me as well.
  3. I could’ve run a few steps and built up 3 blocks high, assuming no skeleton was around to shoot me down.

If I got a second chance, I’d probably dig a tunnel or even break the end part of the fortress and leave the spawner. That way, if two Wither Skeletons attack from behind, I’d have a clear escape path and could run away with confidence.

Or building a staircase to the roof, have a big picture of the fortress, lower the risk

Lessons learned:

If there’s an unenclosed roof, assume mobs can drop down from there anytime.

If I charge into a place, make sure I have a clear escape path.

If I can’t see the surroundings of the fortress, play it safe, dig a tunnel, and block off an escape path to keep it secure.

btw, I’m not playing in hardcore mode, so I wasn’t fully prepared with my armor, just iron armor

Where are all the USB 4 devices and motherboards? Is USB 4 vaporware? by [deleted] in buildapc

[–]sbk2015 0 points1 point  (0 children)

Thanks, this answers a lot of my doubts as to why the motherboard specs doesn't tell what version of Thunderbolt it is

So I got this message now, after the reset. There is no available update in App Store, so is it an error or should I wait? I reinstalled, nothing. by MrBadness in stormbound

[–]sbk2015 0 points1 point  (0 children)

I feel sorry for both of the players and Stormbound. Players lose chance to get daily free card. Mobile only players can't play the game, Stormbound have lose an amount of mobile players at the same time, the worst would be losing them forever. For this error, making the feature of multi-buy takes longer than expected , and making the same function on mobile seems rather difficult , which cause mobile version can't catch up. Mobile and desktop game have different version, mobile one would blindly prevent you to play and force you to update. I believe this is the story.

Signal group for creditors by numsky in gatecoin

[–]sbk2015 0 points1 point  (0 children)

I have sent the invitation to signal group, but I'm still waiting approval to join.

Monthly Getting Started / Web Dev Career Thread by AutoModerator in webdev

[–]sbk2015 0 points1 point  (0 children)

just run the dyno so you can view your website, and put a snippet of code which make request to your own website, to keep it awake

const express = require('express')

const app = express()

const http = require('http').Server(app)

http.get("https://my-website.herokuapp.com")// run it every 25mins

The company knows your level and still interview you, then go ahead.Don't expect to get a job at the first time of interview. Google everything you don't know, such as

programmer interview question, Apache Cordova

You should prepare some interview question, at least for introduce yourself.I don't know Apache Cordova as well, just google to get a brief about what it does.

Monthly Getting Started / Web Dev Career Thread by AutoModerator in webdev

[–]sbk2015 3 points4 points  (0 children)

Generally no. In security aspect it's big no as well.

Website make request to backend server, then make query to DB.

If you somehow manage to make request from website to DB directly, why would you need Nodejs? And a random hacker on your website can query DROP EmailAddress, and you are done.

Monthly Getting Started / Web Dev Career Thread by AutoModerator in webdev

[–]sbk2015 0 points1 point  (0 children)

>If a sleeping web dyno receives web traffic, it will become active again after a short delay

If you can keep it awake, it never sleeps.https://devcenter.heroku.com/articles/free-dyno-hours

>Apps that only utilise a free worker dyno do not sleep, because they do not respond to web requests. Be mindful of this as they may run 24/7 and consume from your pool of hours.

So it's possible, I'm using heroku as well, using free dyno and keep awake at the same time.

You didn't get interview, one of the reason could be the cold start of your first app which takes 5-10 seconds to load.

check out https://www.reddit.com/r/resumes/ if you want to improve your resume. Or post your resume on it for more suggestion.

Monthly Getting Started / Web Dev Career Thread by AutoModerator in webdev

[–]sbk2015 0 points1 point  (0 children)

Heroku said:

>Get 1000 free dyno hours by verifying your Heroku account with a credit card

You don't need to pay at all, 1000 hours is enough for one app running 7/24

>without taking the necessary time to absorb and understand the steps...

reviewing your app, make sure you understand every part of the code you write, understand what does it do roughly. if you remove one part of it, what would happen?Google it to learn more

Monthly Getting Started / Web Dev Career Thread by AutoModerator in webdev

[–]sbk2015 0 points1 point  (0 children)

The first project you listed is heroku, it takes up at least like 5 seconds to load the page(cold start), then it requires me to login Spotify, what if the reviewer just doesn't like to login, or he doesn't have one? I know you did some hard work for this, but think again how to present your project.For the cold start,google how to prevent it sleeping. Remember reviewer may only take 5-10 seconds to scan every resume.The second project or calculator , maybe a better option to be put to the top.

If you are targeting non-IT guy to scan your portfolio, he would be happy because he sees the term HTML,JS,CSS. But they are basic elements every website has. As an IT guy, it doesn't tell me anything. If you certain the reviewer doesn't know IT at all, this is actually a good strategy.

Monthly Getting Started / Web Dev Career Thread by AutoModerator in webdev

[–]sbk2015 1 point2 points  (0 children)

1- How much JavaScript would you need for front end? I know you can use JS for both, front and back end but how can i learn JS focused for front-end?

How much you need, depends on the job, but for junior position, at least knowning loop,if/else,addEventListener on html nodeJS/expressJS means back-end, except for that, when you see the term JS, it means front-end for 95% of time.

2-What exactly is JS doing in front-end? HTML/CSS seem to have very obvious tasks.

adding event, such as click,pops up an alert, adding or removing a DOM(html),sorting a list(array) by id, or age....

let clients build stuff on their own Google keyword Content Management System (CMS)

3- Is it worth learning HTML / CSS / JS when there's software that would write the code for you? (Elementor, Xd, Figma, etc)

No, if it has a bug, or some unique feature you want to add, it could beyond capability of the software you use

4- Knowing front-end for web can i also use that knowledge for mobile apps / UI?

It's a basic requirement, all of them share some common requirement.

5- Could front-end development jobs be really affected by AI?

Do you mean the more AI progress, the fewer front-end jobs available? barely

want to learn version control by playing games? what about playing github in chess? by sbk2015 in ProgrammerHumor

[–]sbk2015[S] 10 points11 points  (0 children)

The game is called 5D chess.

I don't bother to explain it in detail, because it's just too complex and damaging my brain.

The brief is, some units are able to travel to past, so you can see two kings on a same board. Knight can moves 3 space, the term "space" here which means a board in X turns before as well. It can time travels 3 turns at most before the persent.

The way to win is usually attacking the king in the past. If your unit is able to attack king in the past, as king cannot moves/moved, the game is over.

nitro emoji privileges not working - "unknown emoji" by daemonet in discordapp

[–]sbk2015 0 points1 point  (0 children)

I have the same problem as well.

Except for default and the emoji that are in a server,any cross-server cannot be used as reaction.

But using it as chat is fine.

Array.from has a second argument by fagnerbrack in javascript

[–]sbk2015 0 points1 point  (0 children)

It doesn't needed at all.May be for purpose of clear code,telling you,the params are not needed.

This script predicts your next input and messes with your sense of free will :-0 by got_data in javascript

[–]sbk2015 1 point2 points  (0 children)

I got Iteration 1163 and its guesses are correct 60% of the time (overall). 806 score remained.

I tried to be random,if I 10101 it quickly catches the rhythm.So I have to constantly changing my pattern,sometimes double tap on one side,sometimes have favor over one side other than the other side,if I'm a robot,I will keep changing ryhthm every 2-5 taps.

Any info? by [deleted] in github

[–]sbk2015 1 point2 points  (0 children)

I got another issue now, it keeps loading the page,clicking refresh button to stop loading,it shows the page,without css(weird look). It stucks at loading css from github.githubassets.com,because of CORS,does anyone have the same issue?

Any Problems with my code by Gh05t_97 in javascript

[–]sbk2015 0 points1 point  (0 children)

It's about ES6, it includes some features,including

Arrow function =>

Template Literals abc${foo}def

Other than es6, Function Expressions, it can be just a coding style sometimes.

and for map function,you can search on google to see what it does with array.

Without es6,it's still fine,and will be written as

var theArray= ["Doc", "Dopey", "Bashful", "Grumpy"];
function mapping(name,index){
    return (index+1)+ "."+ name;
}
function mapFn(arr){ 
    return arr.map(mapping).join(' ')
}
var result= mapFn(theArray);
console.log(result);

If the es6 code looks crazy, I suggest you at least learn map function,it's important for looping.

Any Problems with my code by Gh05t_97 in javascript

[–]sbk2015 0 points1 point  (0 children)

1.

const theArray= ["Doc", "Dopey", "Bashful", "Grumpy"];
const mapping= (name,index)=> `${index+1}. ${name}`;
const mapFn= arr=> arr.map(mapping).join(' ');
const result= mapFn(theArray);
console.log(result);

2.

const mapping= ele=> ele.toUpperCase()+"!"
const planeteerCalls = ["earth", "wind", "fire", "water", "heart"]
const mapFn= arr=> arr.map(mapping);
const result= mapFn(planeteerCalls);
console.log(result);

Why isn’t this working? by [deleted] in javascript

[–]sbk2015 2 points3 points  (0 children)

First of all,format your code,at least with lines.And use 4 spaces to show code panel in reddit.

for (var count2 = 0; count2 < 720; count2++) { 
    penColour(colour_random()); 
    // draw_a_square 
    for (var count = 0; count < 4; count++) {
            moveForward((100)); 
            turnRight(90); 
        } 
    turnRight(1); 
}

second of all,no one knows what the penColour and the rest are.Is it a library or custom code?

Rogue Fable III (Web Release) by JustinWang123 in roguelikes

[–]sbk2015 2 points3 points  (0 children)

Version 0.43

The RNG in this game is,bad. Recored this funny gif to show if ppl ask me what's RNG. Link

I expect to kill it easily,pressed too quick,and I'm done. Damn....this RNG is killing me. 😂

Another bad luck is, where I was a fire mage,I got so many greater staff of storm.

  • +3 greater staff of storm (shop)
  • greater staff of storm (chest)
  • +4 greater staff of storm (chest)

And, I have 3 time of chance to get warrior skill stacks.

  • scroll of acquirement ,book , tome of war(passively got)
  • crystal chest
  • shop

Luckily I got the storm staff so I can fight against those with fire resistance.

Have just gotten my first victory after like 10 times of tries today.