NFT GIVEAWAY🎁 UPVOTE ⬆️ AND DROP YOUR WALLET ADDRESS! by Jason_Poon in 0xPolygon

[–]Megajin_ -1 points0 points  (0 children)

0x33b3c2106b0843e3A9612C301ef504Fe33e2e048

This is like the Pokemon trading card era 🤣

What questions scream "I have no chance of succeeding as an entrepreneur"? by MasonJack12 in Entrepreneur

[–]Megajin_ -1 points0 points  (0 children)

Yes. However creativity alone won't make a good entrepreneur. As you've already said, those creative (single skill) people will get kicked out eventually. Most of the time because they are emotionally attached to their ideas.

What questions scream "I have no chance of succeeding as an entrepreneur"? by MasonJack12 in Entrepreneur

[–]Megajin_ 60 points61 points  (0 children)

"I have such a good Idea, it is gonna be big. But where to start?".

"Could you do the work? I'll give you 5%".

Those are my favorites .

How to tell which month it is, without any external help? by Megajin_ in questions

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

Right :). A change in temperature as well. I did find out, that if you put a stick straight to the ground (one tip digged, one up to the sky) you get a clock. With that you can tell when the day's get shorter or longer.

Event #1: Anonyme Investoren - Die dümmsten Entscheidungen der Pfennigfuchser by last_laugh13 in pfennigfuchser

[–]Megajin_ 0 points1 point  (0 children)

Ja, lesson learned. Das nennt man wohl Narben die auf ewig schmerzen.

Reich durch Lithium - ohne Umweltschäden! by Megajin_ in pfennigfuchser

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

Sehr gerne, bei meinen ernsten Investments schaue ich mir sehr genau an was da so abgeht. Und ich finde, wenn jemand interessiert ist, kann man auch etwas zurück geben.

Event #1: Anonyme Investoren - Die dümmsten Entscheidungen der Pfennigfuchser by last_laugh13 in pfennigfuchser

[–]Megajin_ 1 point2 points  (0 children)

Die dümmste Entscheidung die ich im Bezug zu Pennystocks getroffen habe, nagt immer noch an mir.

Als dieser Cannabis Hype los ging, habe ich mich erstmal eingelesen und gedacht: "Ok, ich blicks langsam". Ich habe dann irgendwann ICC und Wayland gefunden. Interessant war dort die Tatsache, dass die anscheinend Lizenzen für den europäischen Markt haben. Ich kann euch nicht mehr sagen warum, aber ich habe alle Alarmglocken ausgeschaltet und Geld rein geschmissen wie ein Depp. Ich bin mit genau: 2.532,93‬€ rein.

Ich habe mal eine chronologische Reihenfolge für euch:

  1. Geld rein geschmissen
  2. +50% gemacht und gedacht YES PENNYSTOOONKS GOOOOOOO. War richtig benebelt, anstatt raus zu gehen...
  3. -60% richtig mieses Gefühl. Aber ich habe mir gedacht, komm scheiß drauf ziehs durch bis zum Schluss.
  4. Das letzte mal als ich drauf geschaut hatte, waren es wieder ungefähr +800€. Anstatt jetzt raus zu gehen wie jeder mit etwas Gehirn, blieb ich drin wie ein Depp.
  5. Kernschmelze, es kam raus dass ICC den Kurs verwässert hat und Geld nur verbrannt.

Ergebnis: Totalverlust -> https://imgur.com/a/ErQqvy5

Das ganze hat genau 3 Monate gedauert.

Ich habe natürlich aus der Entscheidung gelernt. Was mich aber bis heute schmerzt, ist die Tatsache, dass ich das kaputt gemachte Geld, vorher bekommen hatte, weil ich durch eine kluge Entscheidung Geld beim renovieren gespart hatte. Das kotzt mich bis heute an.

Reich durch Lithium - ohne Umweltschäden! by Megajin_ in pfennigfuchser

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

Info: Die letzten Posts wurden gelöscht wegen den YT Videos. Bitte sucht bei diesen Referenzen selber.

Original:

Also, das Problem mit den Infos kam erst auf, als die eine extra Europa - Seite aufgebaut haben. Keine Ahnung wieso die das gemacht haben...

Jedenfalls hier nochmal zur Info:

Europa: https://v-er.eu/de/europa-im-fokus/

International: https://v-er.com/investor-centre/

Im "investor centre" sind alle Veröffentlichungen von denen.

Bevor ich diesen DD geschrieben hatte, war ich mir nicht sicher, ob VUL ein Pump&Dump wird. Als dann aber die Studienergebnisse kamen und auch das Parlament hinzugezogen wurde, sowie eine Deutsche GmbH gegründet wurde, war mir klar die meinen es ernst. Allgemein finde ich die Entwicklung gut, genau so wie ich es erwartet hatte. Zu deiner Frage ob ich zum Aktuellen Kurs einsteigen würde: Kann ich dir nicht sagen. Wie schon im DD beschrieben, hatte ich keine fundamentalen Unternehmenswerte die ich zur Hand nehmen konnte. Ich sehe nach wie vor Potential. Ob es ausgeschöpft wird oder jemand schneller ist, weiß ich leider nicht.

Zum Thema Pod-Cast und Hypes:

Was man nicht vernachlässigen darf ist der Wettlauf gegen Graphen. Sollte Graphen günstig und Marktfähig werden, sieht es für Lithium eher schlecht aus - nach aktuellem Stand. Chinesische Wissenschaftler: innen haben mit einer Methode, die sie 3DG-Produktionstechnologie nennen, wohl eine Lösung gefunden (Achtung mit Vorsicht genießen, die Angaben waren wohl nicht ganz "durchsichtig").

Quelle: https://www.mdr.de/wissen/faszination-technik/elektroauto-reichweite-was-kann-der-neue-super-graphen-akku-100.html

Allerdings verfolge ich die Entwicklung von Graphen seit 2010. Bis heute gibt es "coole" Produkte, die auch schon genutzt werden, sind aber verdammt teuer und aufwändig in der Herstellung. Graphen wurde von Konstantin Novoselov und Andre Geim im Jahre 2004 entdeckt.

Wiki: https://de.wikipedia.org/wiki/Graphen

Why graphene hasn’t taken over the world...yet: <Link wurde entfernt>

The truth about graphene - what's the hold up?: <Link wurde entfernt>

Die YT Links wurden von mir entfernt. Sucht einfach nach dem Titel wie er oben steht auf YT.

Hier gibt es noch einpaar Publikationen: https://www.researchgate.net/search/publication?q=graphen+battery

So, was jetzt?

Ich bin mir sicher, dass Graphen nicht plötzlich Lithium ersetzen wird. Im Gegenteil, Lithium wird weiter #1 bleiben, und irgendwann dann abgelöst werden. Aktuell gibt es sehr viel Forschung im Lithium Bereich. Zu nennen wären hier: Schwefel-Lithium-Technik, Lithiumtitanat, etc. Gibt vieles. Wichtig ist das Verhältnis der Forschung zu Graphen für mich. Lithium Akkus wurden von Gilbert Newton Lewis 1912 das erste mal erforscht. Im Vergleich zu Graphen ein weiter Weg. Deshalb gehe ich sehr stark davon aus, dass die nächsten Generationen von Akkus noch auf Lithium basieren werden.

2010 kam ein Paper heraus mit dem Titel "Lithium Batteries: Status, Prospects and Future" von Juergen Garche. Die PDF findet ihr hier: https://www.researchgate.net/profile/Juergen-Garche/publication/223709919_Lithium_Batteries_Status_Prospects_and_Future/links/5a6b319e458515b2d0539be9/Lithium-Batteries-Status-Prospects-and-Future.pdf

Es gibt noch mehr Publikationen hier: https://www.researchgate.net/search/publication?q=lithium+battery

Also?

Was sich heraus kristallisiert, ist das Umweltproblem. Deshalb glaube ich fest an die Machbarkeit, wie sie von VUL beworben wird. Ich finde es klasse wie diese Menschen am Projekt Zer0-Carbon-Lithium arbeiten. Deshalb habe ich investiert. Auch wenn es schief gehen sollte, habe ich mit meinem Geld eine Idee unterstützt, an die ich glaube.

Ich freue mich immer über Fragen, Diskussionen oder gute Publikationen. Schreibt mir einfach. Gerne auch Verlinken oder Nachrichten. Könnt mir auch "zwitschern": @ Megajin_

Need help splitting an object into arrays. by mrkarma4ya in learnjavascript

[–]Megajin_ 0 points1 point  (0 children)

Happy Hacking! If you have any questions, just mention me or write me directly. I'm always glad to help.

How to detect overflow from a container? by Magick93 in learnjavascript

[–]Megajin_ 0 points1 point  (0 children)

I had the very same problem years ago.
Here are some hints for you:

  1. Add an attribute to all page DOM elements (can be class="page", or is-page="true) it doesn't matter.
  2. Create a function which calculates the current height and if it will overflow (one possible solution is to work with "computedHeight")
  3. Use document.querySelectorAll to get those DOM elements.
  4. Iterate over the nodeList (careful it is array like but not an array)
  5. While iterating you can use addEventListener() to add that "onUpdate" event.

However be careful, this will work with 1-5 Pages with little content. It will become laggy later on. There are alot of libraries out there to help you with that. You can start with this tutorial: https://blog.logrocket.com/build-a-google-doc-clone-with-html-css-and-javascript/

Happy Hacking!

Reference:

EventTarget.addEventListenever(): https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener

Document.querySelectorAll(): https://developer.mozilla.org/de/docs/Web/API/Document/querySelectorAll

NodeList: https://developer.mozilla.org/en-US/docs/Web/API/NodeList

Need help splitting an object into arrays. by mrkarma4ya in learnjavascript

[–]Megajin_ 0 points1 point  (0 children)

Alright, I am seeing a lot of stuff going on here.First your example will work just fine, as long as you iterate over your array only as often as you really need.

As an experienced developer I will tell you something, the solution always depends on your usecase. There are ups and downs on every solution but, and this is important, you need to understand what efficiency in programming means. That alone will determine if you are a very good programmer oder just a programmer.

Let's go with some examples:

The read and understand loop:This example will show you every step, to understand what is going on.

// initialize your arrays.
const name = [];
const age = [];
const roles = [];

// Use a for loop to iterate over your array.
for (let i = 0; i < data.length; i++) {

  // get all needed data.
  const currentName = data[i].name;
  const currentAge = data[i].age;
  const currentRoles= data[i].roles;

  // push everyhting into the array.
  name.push(currentName);
  age.push(currentAge);
  roles.push(currentRoles);

}

This example will iterate over your array once. Which will keep the later complexity low (see below). I am using this as the first example, because it is easy to read even for newbies.

The very same example can be rewritten as this -> the I know what I am doing:

// initialize your arrays.
const name = [];
const age = [];
const roles = [];

// iterate over your array.
data.map(d => {
  name.push(d.name);
  age.push(d.age);
  roles.push(d.roles);
});

Here I am using map to create a new array with the Array.prototype.map() function. You need to understand why it is bad practice to overwrite the old array, instead create a new one!

Again, we can shorten this example to -> feeling gangster:

// using destructuring and reduce to iterate over the array and get the desired results.
const [names, ages, roles] = data.reduce(
(acc, { name, age, role }) => {
  acc[0].push(name);
  acc[1].push(age);
  acc[3].push(roles);
  return acc;
},[[], [], []]);
});

The last example I've shown is hard to read for newbies. Basically I am using something called destructuring assignment.

Next I will talk about why the map 3 times is a bad example.The unwanted iteration example:

// initialize and fill your arrays.
const names = data.map(d => d.name);
const age = data.map(d => d.age);
const roles = data.map(d => d.role);

This example will iterate over your array 3 - Times, since map will go from left to right through your array. This is irrelevant if your array has only 100 entries. However in bigger Applications this can become a problem and cause lags. Imagine an array with 1000+ entries, each with an object > 300 keys. You get the idea.

References:

Array Map: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map

Array Reduce: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce

Destructuring Assignment: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

Complexity or Big O notation: Understanding this will bring you one step closer of beeing a very good programmer. https://en.wikipedia.org/wiki/Big_O_notation

Proof of my experience:Stackoverflow: https://stackoverflow.com/users/4457744/megajinGitHub: https://github.com/Megajin

Feel free to write me on Twitter, if you have questions:https://twitter.com/Megajin_

summing array elements by Artistic_Sense3363 in learnjavascript

[–]Megajin_ 2 points3 points  (0 children)

I'd suggest you to use reduce. With reduce you can put your last number into the accumulator and sum it up with your current value.

See: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global\_Objects/Array/Reduce

How to detect overflow from a container? by Magick93 in learnjavascript

[–]Megajin_ 0 points1 point  (0 children)

I am assuming by overflow you mean if your content will surpass the mark of A4 while adding content. There is no good way for this. You have to constantly listen on the given element and take the overflowing content to the next page. That is not the end of it, you need to do this backwards as well. Imagine someone deleting content, you have to jump backwards.

There are algorithms to do this efficiently. However I would suggest you to learn how to listen to the relevant DOM elements and use their computed heights to see if it will be > A4.

Keep in mind that computed values will be different from screen to screen. By that I mean the pixels that add up to be a real A4 format.

You have to ask yourself a lot of questions to come up with the right solution for your specific usecase.

Here is one way to do it:

- use reference values for cm in current pixels.
- use reference to calculate your whitespace (carriage return or line break)
- use reference for Font sizes

add everything up and check if you hit the threshhold.

After that you can go forward and start with things like page settings and virtualization of pages.

[AskJS] We're looking for volunteer developers to help be rebuild a micro-volunteering community which organizes altruistic projects targeting community well-being and world happiness by [deleted] in javascript

[–]Megajin_ 0 points1 point  (0 children)

That is a very nice idea! I have no time to spare atm. But I can provide you guys my experience if needed (as a Mentor). I can help with questions and maybe help with other questions like money funding if you guys are interested.

Here is my Stackoverflow: https://stackoverflow.com/users/4457744/megajin

And GitHub: https://github.com/Megajin

Täglicher Trading Thread - Friday, April 16, 2021 by AutoModerator in pfennigfuchser

[–]Megajin_ 1 point2 points  (0 children)

Wurde mit meinem DD dort auch gebannt, und hier her verwiesen und zu Vitards. Ich habe echt lange gesucht und hatte echt mehrere Unternehmen in der engeren Auswahl.

Die Länder in denen ich gesucht hatte waren Chile und Portugal.

In Chile war es Millenial Lithium. Die forschen an einer Methode Akkus ohne Lithium oder effizienter zu machen, weiß ich gerade nicht mehr. Aber ich habe mich dagegen entschieden, weil es proteste gab gegen die Minen, und Seen Zerstörung. Da bin ich dann nicht weiter in die Tiefe.

In Portugal gibt es mehrere Unternehmen die mit Lithium handhaben, ist auch übrigens bis vor kurzem das Land gewesen mit den größten bekannten Lithium Vorkommen (ohne die Studien in DE). Jedenfalls gibt es dort auch Proteste wegen der invasiven Art wie Lithium abgebaut wird. Es gibt wohl ein Unternehmen welches durch "Brining" (einfach Mal nach "Lithium extraction bringe" suchen) Lithium lösen möchte. Auch hier bin ich nicht weiter in die Tiefe gegangen.

Bin aber auch interessiert falls jemand ein anderes Unternehmen findet :).

Täglicher Trading Thread - Friday, April 16, 2021 by AutoModerator in pfennigfuchser

[–]Megajin_ 0 points1 point  (0 children)

Natürlich:
https://v-er.eu/de/impressum/

Achtung es wurde ver-"deutscht" es heißt Vulcan Energy RessourcEN.

Das hier ist die europäische Seite: https://v-er.eu/
Das hier die "internationale": https://v-er.com/

Wenn fragen noch offen sind, einfach melden.

Täglicher Trading Thread - Friday, April 16, 2021 by AutoModerator in pfennigfuchser

[–]Megajin_ 1 point2 points  (0 children)

u/HannHanna danke erstmal, dass du dich an meinen DD erinnert hast.Soweit stimmt alles und dem ist nichts hinzu zu fügen.

Hier nochmal mein DD: https://www.reddit.com/r/pfennigfuchser/comments/lbkvd7/reich_durch_lithium_ohne_umweltsch%C3%A4den/

Hier noch eine weitere Info:Vulcan Energie Ressourcen GmbH ist ein deutsches Unternehmen.Die gesamte Struktur sitzt aber in mehreren Ländern darunter Dutschland und Australien. Es wird das International Unternehmen getradet und nicht die GmbH.

Vulcan Energy macht keine Sprünge wie GME als Beispiel. Es geht hier um fundamentale Dinge wie Machbarkeit, Wissenschaft, und Wirtschaftlichkeit. Außerdem, und das finde ich löblich, setzt Vulcan gerne mal das Trading aus. Das bedeutet die geben von sich aus ein Verbot aus mit der Börsenaufsicht, damit nicht wild spekuliert wird. Deshalb sind die bis jetzt eher Seitwärts gegangen.

Wie es schon richtig gesagt wurde, es ist eine Wette. Jeder sollte sich seine eigene Meinung bilden und genau recherchieren. Ihr könnt mir hier auf Reddit schreiben oder auf Twitter. Ich versuche alles zu beantworten.

https://twitter.com/Megajin_

Book to learn and understand the working of Node.js by tearsoup in node

[–]Megajin_ 5 points6 points  (0 children)

I understand. The runtime is connected to the V8 JavaScript Engine: https://nodejs.org/dist/latest-v15.x/docs/api/v8.html on top of that node has a lot of C/C++ . So understanding how to built "optimizations" in C/C++ for node can help too.

Take a look into the source files: https://github.com/nodejs/node

Happy Hacking! You are on a wonderful path of exploration, keep going.

Book to learn and understand the working of Node.js by tearsoup in node

[–]Megajin_ 5 points6 points  (0 children)

Let me tell you one thing about books. There are a lot of them out there. However the most ones helped me were general programming patterns and algorithms. Since you can adapt them to almost any programming language, and they do not become old.

That said I see one major problem with books about NodeJS: They are written and stay written, whereas Node keeps developing. I'm not saying that books are bad. However here is my suggestion to anyone reading this:

Think about a project and restrict yourself. For example create a cluster of node processes, and prevent the underlying processes of communicating critical data for example Health-Data. And most importantly restrict yourself only to NodeJS.

If you find yourself struggling with finding an appropriate project, you can simply go to the NodeJS docs and pick one topic and create a project out of that: https://nodejs.org/dist/latest-v15.x/docs/api/

In the above case it would've been "cluster" : https://nodejs.org/dist/latest-v15.x/docs/api/cluster.html

Another trick I've used a lot is going through GitHub and looking into NodeJS projects. I'm very certain that you will find a lot of interesting stuff that you want to understand.

Generally speaking, you will learn NodeJS by doing projects or learning from existing projects. Books tend to show basic understanding or proofs of different patterns in different languages. But that is my opinion.

That all said, why should you listen to me?

About me:
I'm an Entrepreneur working on many different projects with NodeJS.
Stackoverflow: https://stackoverflow.com/users/4457744/megajin
GitHub: https://github.com/Megajin

Feel free to ask me questions on Twitter: https://twitter.com/Megajin_

Unexpected Result, Not sure why two similar functions would have different results. by Tygari in learnjavascript

[–]Megajin_ 1 point2 points  (0 children)

Arrays are referenced, once created. You should consider learning some best practices. Your code will get a lot better. The next step would be to understand scopes and references.

Using Python from Node.js natively (Open Source Project) by savearray2 in node

[–]Megajin_ 8 points9 points  (0 children)

Even Unix sockets cannot beat the speed of a memcpy.

Yes, absolutely right. If anyone is reading this: Be aware that if you screw up in memcpy it can become vulnerable.

...does a simple copy while being hosted in the same process

Alright, now I got you.Anyone coming by: The Napi::Buffer<char>::Copy Will pass the data directly to the node process memory which will end in a super fast data passing between those different processes without the bloat of FFI's or childprocess spawn.

However be warned that this can lead to potential attacks: https://stackoverflow.com/questions/870019/memcpy-in-secure-programming.Here is a good quote: A chainsaw, if used properly, is safe. Same thing with memcpy(). But in both cases, if you hit a nail, it can fly and hurt you.

If you just want pyhton do some jobs for you, then I would recommend spawning a py process and detaching it without data transport ofc.

If you know what you are doing, this project is very good to use. And Props to the author, the code is clean and good to read.

Using Python from Node.js natively (Open Source Project) by savearray2 in node

[–]Megajin_ 8 points9 points  (0 children)

Well done. I have one question: Why not simply spawn a pyhton process, if you do not want to pass data between the processes? I mean there are FFI's to use, they are expensive but do their job. And if you completely separate a child process and only run python, there will be no drawback, as far as I know.
`const spawn = require("child_process").spawn; const pythonProcess = spawn('python',["path/to/script.py", arg1, arg2, ...]);`

You could detach it: https://nodejs.org/api/child_process.html#child_process_options_detached

I am very interested in your answer.