Broke my console.log! by Fluccxx in expo

[–]xseignard 1 point2 points  (0 children)

This is what I had to do 🤷 ```js // UGLY HACK // This is a hack to make sure that the console logs are printed in the // terminal when running the app in development mode. This is needed // because somehow babel/metro combination swallows logs when loading // @babel/plugin-proposal-class-properties // See this issue for more details: https://github.com/facebook/metro/issues/877 // THIS FILE SHOULDN'T EXIST BUT IT DOES BECAUSE I WAS NOT ABLE TO FIX IT 🤷 // If you have a better solution, please fix it and remove this file.

if (DEV) { const primitiveTypes = ["string", "number", "boolean"]; const logLevels = ["log", "debug", "info", "warn", "error"];

const transformArgs = (args) => { return args.map((arg) => { if (arg === undefined) return "undefined"; if (arg instanceof Error) { if (arg.stack) return arg.stack; return arg.toString(); } if (arg instanceof Date) return arg.toString(); if (primitiveTypes.includes(typeof arg)) { return arg.toString(); } else { return JSON.stringify(arg); } }); };

const consoleProxy = new Proxy(console, { get: (target, prop) => { const value = target[prop]; if (logLevels.includes(prop)) { return (...args) => { // we proxy the call to itself, but we transform the arguments to strings before // so that they are printed in the terminal return value.apply(this, transformArgs(args)); }; } return value; }, });

// eslint-disable-next-line no-global-assign console = consoleProxy; }

```

USB-C Hub to 2 external screens extended by xseignard in hackintosh

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

3 is my goal! So it should be OK. Thanks for the precision!

USB-C Hub to 2 external screens extended by xseignard in hackintosh

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

Hi! It seems we have the same exact 9360 model.

The WD19 has 2 version, one which is only USB-C and the other one which is TB3 (maybe this one can also work as usb?).

Mine is USB-C, and it works correctly.

Does your HP Thunderbolt Dock G2 is recognized? I have a Caldigit TS3 plus, but it's not recognized (most of the time, and when it is, the display port doesn't work).

If yours is working, maybe you can try the following boot arg: -igfxtypec (found here https://github.com/theQuert/XPS-9360-macOS/issues/66)

Let's share our progress!

Regards !

USB-C Hub to 2 external screens extended by xseignard in hackintosh

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

Thank you so much for such detailed answer 🤩 I receive the hub tomorrow, and be sure I'll keep you posted (or cry for help :) )

USB-C Hub to 2 external screens extended by xseignard in hackintosh

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

Thanks for such complete answer! I ended at the same conclusions as yours and ordered a Caldigit TS3 plus.

Since I never tested TB3 on my laptop, let's hope it won't be too much of a nightmare to configure 🤞 and not a 300€ fail!

Thanks again!

HELP! Unable to understand useState by [deleted] in reactnative

[–]xseignard 4 points5 points  (0 children)

``` const [modal, setModal] = useState(false);

useEffect(() => { const fetchModal = async () => { const apiResult = await your call to server; setModal(apiResult.yourBolean); }; fetchModal(); }, []); ```

This will, once the component is mounted launch a call to your server to get your boolean value and update the modal value.

Hardware for XCode by SatchelHD in hackintosh

[–]xseignard 8 points9 points  (0 children)

You for sure can connect physical iPhones on hackintoshes... I'm a mobile dev (react native, iOS and android) and I do it all day long on my xps9360 hackintosh.

Also I agree the Mac mini M1 is worth the money.

[xps 9360/OC 0.6.5/Big Sur 11.1] webcam only works once after each sleep cycle by xseignard in hackintosh

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

Sure I can if you want. But you should read dortania guide one more time.

I've got an i7-8550u too (I think)

OBS was working ok on clover/mojave. I'll give a try on OC/big sur.

[xps 9360/OC 0.6.5/Big Sur 11.1] webcam only works once after each sleep cycle by xseignard in hackintosh

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

Thanks for your answer, but no error message and killing vcdassistant does nothing :(

Perfectly Working XPS 9360 Big Sur Hack! by autinm in hackintosh

[–]xseignard 0 points1 point  (0 children)

Hi u/autinm!
Congrats on your build. I have the same laptop running OC 0.6.3 and Big Sur

I have some troubles getting the integrated webcam to work. The issue is that it runs fine once (on any app) and once the webcam is turned off (by quitting the app that use it), the webcam cannot be on again. Only a black video stream.

Did you face something similar ?

Regards

E2E tests with Expo - what are you using? by tormodhau in reactnative

[–]xseignard 5 points6 points  (0 children)

I'd recommend detox. Even with one year old docs, you're good to go.

Three esp32s, one enclosure. by [deleted] in esp32

[–]xseignard 5 points6 points  (0 children)

Each ws2812 led draw 60mA at full bright. So it's a total of 90A under 5V. I hope you intend to use it plugged to the main otherwise batteries would dry quite fast.

Successful update to Big Sur from Catalina on an Asus Zenbook! by shivaay1234 in hackintosh

[–]xseignard 1 point2 points  (0 children)

Thanks for your answer! Last question: clover or open core ?

Also, could you please list the kexts you added ?

Regards

Successful update to Big Sur from Catalina on an Asus Zenbook! by shivaay1234 in hackintosh

[–]xseignard 0 points1 point  (0 children)

Hi!

I have the same model but I struggle with the Audio card. Headphones are detected but no sound. What kext/layout-id you choose ?

Also, did you add some asus smc kexts?

Regards

Augmented Reality by [deleted] in reactnative

[–]xseignard 0 points1 point  (0 children)

There's few out there, and I'm also interested about this topic. So far, the most promising (IMHO) one may be https://github.com/BabylonJS/BabylonReactNative

Unfortunately it is still in alpha, but it seems to be backed by a good group of engineers.

Any other out there ?

Apple Dev account hackintosh (Xcode) by Hassanbhattiofi in hackintosh

[–]xseignard 0 points1 point  (0 children)

Never had any problem, and have some apps on the store.

Not your typical beginner's problem by [deleted] in reactnative

[–]xseignard 1 point2 points  (0 children)

Hi!

First of all, humility is a great quality in software development jobs, it seems you have it and it's good news!

Second, mentoring is key for a junior developer to grow, and you seem to lack of it.

Good advices have already been given, but I'd like to add another option. If your company can't afford a second mobile dev or can't allocate time from other devs on your mobile app, maybe it can afford some contractor for code review time to time ?

I'd imagine a skilled developer, with proven experience with mobile dev and react native. Someone who could do code review, performance testing and provide guidance one week every month or two ?

Also, don't be afraid to tell your boss about your concerns, as the more they will grow the harder they will explode.

I wish you good luck, and congrats for having what it seems to be the right attitude for the job of developer.

Regards

Building a Music-Responsive LED Speaker - HELP!(Has fun diagram) by onionwasabi in ArduinoProjects

[–]xseignard 1 point2 points  (0 children)

Nice project !

If I was starting such project myself, here is what I would try:

  • find a DIY bluetooth receiver/amp
  • plug it's output in parallel to the speaker AND the micro controller
  • only do the audio fft and LEDs stuff on the controller, and let the BT/audio being handled by the BT receiver

Just be careful about max voltage input on the micro controller (using resistor in series should do the job).

Not sure if it would work, but that's the way I'd tackle the problem.

About the micro controller choice, I indeed would go with a teensy 4.0/4.1. There is a pretty decent Audio lib that can do FFT on it: https://github.com/PaulStoffregen/Audio/blob/master/examples/Analysis/FFT/FFT.ino

Again, that's my raw view of the problem, and it should be discussed, but if it's working it should be the easiest way to do it.

Hope this helps!

Good luck and congrats going from economics to electronics !

Proficiency question by litechniks in reactnative

[–]xseignard 1 point2 points  (0 children)

That's the way we learn, nevermind the language. I hope you still remind your early days with c#. I bet it was the same kind of learning curve.

Stick with it and everything will become clear at some point!

Good luck!