Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 12:31
    @texas2010 banned @therichaverma
  • Jun 19 2020 20:05
    @krisb1220 banned @Gastony
  • May 14 2020 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:38
    @bjorno43 banned @real-action
  • Feb 01 2020 00:26
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Aug 17 2019 01:43
    @bjorno43 banned @linkin-park
  • Jun 20 2019 21:20
    @bjorno43 banned @shenerd140
  • May 10 2019 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 27 2019 19:47
    @mstellaluna banned @zhonghuacx
  • Apr 25 2019 17:12
    @mstellaluna banned @cmal
  • Jan 08 2019 22:00
    @mstellaluna banned @dertiuss323
  • Dec 15 2018 23:36
    @mstellaluna banned @18835579411
  • Dec 13 2018 23:57
    @mstellaluna banned @brandon6190
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:13
    User @bjorno43 unbanned @androuino
linkin-park
@linkin-park
nice @krisb1220
linkin-park
@linkin-park
Have it on github :)
linkin-park
@linkin-park
Is having overload function beneficial? in a language like javascript.
Nodejs,express and others are filled with overloaded functions
Fingerprintt
@Fingerprintt
Sorry this must come across as a real newbie question. Is it impossible to build on say Signal or Riot OS. To cherry pick on the back-end only the desired features?
TamashiKaizenカイゼン
@TamashiKaizen

Hi, how to Pass Data from React Native to Passport.js FacebookTokenStrategy Callback?
https://stackoverflow.com/questions/61834412/how-to-pass-data-from-react-native-to-passport-js-token-strategy-callback

any help would be much appreciated.

Xarri Jorge
@xarrijorge
:wave:
Wallup folks? Anyone built a Next frontend with an express backend? I'm starting a project and want to use the setup but could use some details.
Riz Syed
@RS357

Hi all - I am writing a socket server and have multithreaded it, but I am having a few issues.

Here is the chat client: https://dpaste.org/zB6e

Here is the chat server: https://dpaste.org/ThZN

Here is the server socket: https://dpaste.org/rOq4

Can anyone tell me why, in the chat client, the print statement on line 43 is not called after the method receive_message() is called?

Jagdish Mallige
@jdmallige
heyy
Caleb David
@microworlds
Hello guys, I have asked a question on stackoverflow regarding updating nested mongodb arrays and objects using mongoose. I'll be glad if anyone can help me out. Here's the link:
https://stackoverflow.com/questions/62415636/updating-mongoose-nested-array-of-mixed-types. Thank you.
Jake Giri
@jakegiri
Hey guys i'm in very very deep confusion and dwelling over a choice.
I'm planning to build a live streaming project like twitch.tv so it will be big project. Which will suit more out of React or Angular from the performance and effectiveness's perspective (not learning curve)?
It was known that for project with much dynamic content, react is suitable but as ivy is introduced in reacent update of Angular it seems it is not losing to react anymore in the context of speed in dynamic-content context.
I expect (and i will really appreciate) other experienced developers opinion who has good knowledge of both REact and angular
Kaz Baig
@kbaig
@JakeDVirus Unless you have really intense perf needs, which it doesn't sound like you do, it's more about dev preference here
But if you did have those needs, I wouldn't choose either
Jake Giri
@jakegiri
@kbaig As I said the project would literally be live streaming web app where as much as members can join n stream live with live group chat support(when streaming live) for viewers..
So this will have performance need if this starts growing big
What would u choose?
alpox
@alpox
@JakeDVirus The framework has little to do with the streaming performance
Group-chat and streaming has to be implemented by itself, the frameworks would do the HTML rendering for you but the streaming is data communication where the frameworks don't have their hand in
Kaz Baig
@kbaig
Your performance constraint doesn't really have to do with a UI framework here
Jake Giri
@jakegiri
@alpox thanks for clarifying @kbaig thanks
Next gigi hadid💁
@1Droka_twitter
hello
any PHP developer here
Riz Syed
@RS357
hi guys, my logger module is logging twice and I can't figure out why. Does someone here understand the logging module?
Next gigi hadid💁
@1Droka_twitter
hello i have interview as web developer in php
can anyone help with suggestion how to prepare
Riz Syed
@RS357

Hi guys - this is my server: https://dpaste.org/SVzk

And this is my logger: https://dpaste.org/vf3L

Can anyone see why my log statements are outputted twice in the terminal?

Morchid Chellali
@Morched23MJ
I'm working locally, and pushing changes through git to my github repo. I'm doing Api & Microservices lessons (NodeJs). To pass the challenge I can pass glitch link. Is there a way to pass the challenge using my github repo?
Kaz Baig
@kbaig
@Morched23MJ I think you can import github repos into glitch
Riz Syed
@RS357
hey all, is anyone here familiar with psycorpg2?
for some reason cur.execute(f"INSERT INTO usernames VALUES ({username})") doesn't add username to the database usernames (the database only has one row)
TamashiKaizenカイゼン
@TamashiKaizen
Riz Syed
@RS357
https://stackoverflow.com/questions/62959206/time-sleep-is-not-pausing-the-while-loop-and-so-freeing-the-worker-in-threadpo <- hey guys, I just posted a question for some help on Stack Overflow. If anyone has any info that might help me with this issue, please do reply to this msg here! Thanks :D
alpox
@alpox
@RS357 every client has to be handled in its own thread. You use a threadpool with 3 workers max. This means that you can handle only up to 3 clients.
The threadpool is then empty (all threads in use) and the executor is waiting for one thread to become available again thus basically blocking the mainthread until one of the 3 existing and working clients stop/hang up
time.sleep does not make a thread available to the threadpool as the thread is still basically in use by the routine
Riz Syed
@RS357
thanks @alpox , I will DM you
Tunde Oretade
@tundeiness
I need hellp guys...
TamashiKaizenカイゼン
@TamashiKaizen
Himanshu maurya
@Himanshunitrr
I decided to work upon issue #39284 after understanding it correctly.( I didn't understood in the first go) I looked the code in many files but all in vain. Tried to understood it as much as possible but I was unable to fix that. Will someone help me in solving this issue or can help me in familiarising the code.
Harikesh Pallantla
@harikesh409
hi all, can anyone tell me how to send record type as input in store procedure calls with hibernate
Riz Syed
@RS357

hi all, can someone/a few of you please run this file on your machines and drop a message in the chat room that will launch? https://github.com/RS357/chat-app/blob/master/chat_client.py

I am trying to test it on other peoples machines. Thansk!

RiddhiCoder
@RiddhiCoder
new here(Riddhi Jain)
Is here any beginner who would like to code by collaborating. PLease Inform
Camper94
@Camper94
@RiddhiCoder depend on what ?
Neil Haria
@neilharia7
@RS357 create a dockerfile which will help to work on possibly any machine.
John Melody Me
@johnmelodyme
Anyone familiar with janus WebRtc ?
Richard Sithole
@Sliqric7053

Hi there

I have an async function which I would like to convert to an Observable stream (using rxjs operators). The await calls must execute in the order they appear in the function.

async authenticateUser(profile: Profile): Promise<any> {

  let authCookie: any;



   try {

         authCookie = await getCookie();

    } catch (error) {

           console.error(error);

     }



   if (!authCookie || authCookie?.length < 1) {

            cancelAuthenticationCookieGet();

            throw {message: "login failed", status: -2};

      }

    await saveProfileAsync(profile);



    await storeCurrentAuthCookieAsync(authCookie);


    storeSessionStorage();



    await setPartitionSessionCookie(profile.url, authCookie);

}

Is there a clean way to accomplish the above?

alpox
@alpox
@Sliqric7053 Any particular reason to convert it? Usually this should be doing just fine with promises as Observables are made for multiple values over time - and an authentication is rather a one-time thing
Richard Sithole
@Sliqric7053
@alpox In the middle of a refactoring, and as a team, we've decided to move all Promise-based functions into Observables.. so basically, would like to convert the whole function into an Observable-returning one, while keeping the business logic
alpox
@alpox
@Sliqric7053 if its just about RETURNING an observable you can just make another function which calls this async function with return Observable.of(authenticateUser(profile))
I dont see much use of refactoring the whole function to inner observables
Richard Sithole
@Sliqric7053
@alpox was hoping to avoid using await key and concat the observables somewhat, but some of those await funcs do not return anything and I think I just get lost in all the many operators:( But I guess worst case scenario, that could still do the job. Thank you 🙏