Displaying potentiometer values onto a 4 digit 7 segment display, how do i code for this program? Anything would be appreciated :)
πŸ‘︎ 46
πŸ’¬︎
πŸ‘€︎ u/Marvelous-Cat-19
πŸ“…︎ Dec 05 2021
🚨︎ report
Up until now, I have never realized that the seven-segment display can be actually interpreted as a kind of non-positional numeral system. Thank you, Advent of Code, for teaching me something new. :-)
πŸ‘︎ 43
πŸ’¬︎
πŸ‘€︎ u/mmichael77
πŸ“…︎ Dec 08 2021
🚨︎ report
Short code segment from the movie "Ex Machina". He is trying to hack Google.
πŸ‘︎ 59
πŸ’¬︎
πŸ‘€︎ u/Rortox
πŸ“…︎ Dec 08 2021
🚨︎ report
Implicitly reactive code segments?

Do you think that code which looks like typical imperative code should be able to "magically" act reactively, meaning that some of the code in the program re-runs "automatically" whenever something it depends on has updated?

For example:

var x = 2;
console.log(`x: ${x}`);  // x: 2

We obviously expect that code to produce a single console statement of x: 2. But what if your programming language made that console.log(..) statement "reactive", wherein it would automatically re-run any time later when x is re-assigned:

setTimeout(() => {
   x = 3;   // x: 3
},100);

This is like extending the declarative nature of component-oriented programming (React, Vue, etc) -- where updating a piece of state implicitly forces a UI re-render -- into the internals of program state.

Svelte currently does something quite like this, but I think you mark a statement as being reactive with like a $: label in front of the line or something like that. But others are trying to make it just happen automatically in code without any explicit markers/syntax.

My question: do you think this is a healthy direction for programming languages to move?

What are the pros/cons in your view? Is this the kind of magic that a programming language needs?

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/getify
πŸ“…︎ Nov 28 2021
🚨︎ report
Double Din Car Stereo Compatible with Apple Carplay and Android Auto,7 Inch Touch Screen Car Stereo with Bluetooth 5.1,16-Segment EQ Car Audio Receivers,DSP,Mirror Link,HD Backup Camera,FM Car Radio - Price: $69.69 With Promo Code: 50LYTDZCA besttechmarket.com/produc…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Bestechmarket
πŸ“…︎ Jan 09 2022
🚨︎ report
Is it just me or is the voice Carrie Carrigan using for the "Narrator" of the CE Era basically Vert's voice. I would time code the link but her voice is right after the short segment of Zaft chatter. youtu.be/33WzLcdNrac
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/jeffpiatt
πŸ“…︎ Nov 23 2021
🚨︎ report
Does anyone know the exam code for world history segment 1 Ms.Cowdin
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/lilnunu407
πŸ“…︎ Dec 17 2021
🚨︎ report
Where does this specific 3-segment beylauncher come from? I assume it’s from a set but idk which one. And if theres a unique code I also would like to know! reddit.com/gallery/rf3quh
πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/joey0511
πŸ“…︎ Dec 13 2021
🚨︎ report
Recursively rotating segments of an image rotates the image itself! (Code by rvizzz on GitHub) v.redd.it/8nwurifhhuq51
πŸ‘︎ 68k
πŸ’¬︎
πŸ‘€︎ u/Agha_shadi
πŸ“…︎ Oct 03 2020
🚨︎ report
Body of the code segment when someone activates press
  1. Disable opponent team movement. Doesn't matter if the keeper is struggling to find an open teammate, they must stand idle behind an opponent.
  2. Change aggression stats of every pressing opponent to 99. The base stats dosent matter.
  3. Completely ruin possession teams passing stats. Make sure the ball from the defenders doesn't reach their midfielders so that it gets stolen and a simple ball will create a 1v1. Even a long ball will only reach a few metres allowing pressing team to get possesion.
  4. Stamina drain stops. Why should stamina drain at all when my players are standing still and the opponents are just standing in front of them.
  5. Severely increase chances of the pressing team winning every 50/50. So what if Ramos has the ball, since team press is on Dembele should be able to body him off the ball.
πŸ‘︎ 47
πŸ’¬︎
πŸ“…︎ Jul 23 2021
🚨︎ report
In today's segment of Idaho law regarding contagious diseases: 39-601, The VD code. legislature.idaho.gov/sta…
πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/encephlavator
πŸ“…︎ Aug 08 2021
🚨︎ report
After a long time, I was finally able to break the code and recreate the middle segment of the main screen drawing. Hope you all like it!!
πŸ‘︎ 32
πŸ’¬︎
πŸ‘€︎ u/Zangetsuee
πŸ“…︎ Jul 24 2021
🚨︎ report
I need some tips on how I can make a code that displays the temperature readings from an LM35DZ using a 74HC595 shift register and a four digit seven segment display

This is a project I've been working on for a while now. I have a barebones Arduino Uno hooked up to a shift register and LM35DZ temperature sensor, which then will allow me to read the analog signals from the LM35DZ and convert them into temperature in degrees Celsius. The shift register is there to control a four digit seven segment display, with the purpose of displaying the temperature readings. I have gotten an understanding of how the shift register works, and have managed to count from 0-9 on the four digit seven segment display using the shift register, that's all. I would love your tips and ideas on how I can display the temperature readings on the display, as I am personally having a hard time progressing. You can see my code so far here.

Thanks in advance!

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/GrabThatPencil
πŸ“…︎ Aug 21 2021
🚨︎ report
Segments Demo + Tutorial - Win A Code For The New Supersonic IAP

https://youtu.be/5VqADH-VU1Y Check out my new video for a full demo/tutorial on Elliott Garage's splendid Slicer App for iOS, now updated with recording mode and an IAP for the Supersonic Mode, giving you up to 32 slices. For a chance to win a code for the IAP, please see the details pinned in first comment under my video on YouTube.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/JamieMallender
πŸ“…︎ Sep 22 2021
🚨︎ report
Time Code for Segment of Ben Shapiro Show

I'm looking for the time Code or even just the episode name or number where Ben did the impersonation of Fauci. I think it was aired a couple of days ago but haven't been able to find it yet. Thanks for the help.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/njlee2016
πŸ“…︎ Aug 26 2021
🚨︎ report
code skipping past a segment it should be waiting on(I think)

Hey everyone, so I am working on a little project right now involving a 16 bit ADC and the code I am writing rn will find the scale factor from the ADC output to the battery. My issue is regarding the code and I will be thinking about it while waiting for some feed back so i might figure it out beforehand.

Rn, from the void loop(void), I am calling a method called batteryScaleFactor() and this calls another method that ask for a string from the serial monitor. It does not/shouldnt return the string until it is entered. From here, this method calculate the scale factor from another method that finds the moving Average.

Not too bad right? well i am having some issues. First, The program runs through the loop before I enter anything in and it will keep doing that instead of waiting for a input. Ex below

My end goal is to be able to ask for a few inputs and make a linear approximation but the way it looks like, I dont know how to only send the certain numbers(scaleFactor) to another method/or same without it sending 0.00 or how to make it completly wait for an input without going through the loop

If i am not clear about anything please let me know and ill respond asap! Thank you!

  • Enter a float for the battery power level.
  • 0.00 //entered value
  • 0.00 //entered value
  • 0.00 //entered value
  1. String serialTexttoString() {
  2. static boolean newData = false;
  3. const byte numChars = 32; // how many char the array can hold
  4. char receivedChars[numChars]; // an array to store the received data
  5. byte ndx = 0;
  6. char endMarker = '\n';// "\n or "Enter" means a new line"
  7. char rc;
  8. //input will be converted to a string
  9. while (Serial.available() > 0 && newData == false)
  10. {
  11. rc = Serial.read();
  12. if (rc != endMarker)
  13. {
  14. receivedChars[ndx] = rc;// wouldnt that just put null in each case and increment the index?
  15. ndx++;
  16. if (ndx >= numChars)
  17. {
  18. ndx = numChars - 1; // not to go over the array size
  19. }
  20. }
  21. else
  22. {
  23. receivedChars[ndx] = '\0'; // terminate the string and making that last index the terminating
  24. ndx = 0;
  25. Serial.print("You entered: ");
  26. Serial.print(receivedChars);
  27. Serial.println();
  28. }
  29. }
  30. return receivedChars;
  31. }
  32. float batteryScaleFactor() ////////////////////////////////////////////////////////////////
  33. {
  34. static int numofSamp
... keep reading on reddit ➑

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/lightprojector
πŸ“…︎ Jul 26 2021
🚨︎ report
The (Fake?) YT Channel cut the morse code segments out entirely, and the video ends with this number on the countdown now. Do the numbers 030113 or 3113 have any importance?
πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/Kit-Kat2012
πŸ“…︎ Jun 25 2021
🚨︎ report
How to resolve a GA code duplication when using Segment?

Hey guys,

We are currently tracking data from GA using the Segment GA integration. We have data coming in but the behavioral metrics & pageviews are skewed and I am suspecting there was some sort of duplication issue.
When I looked at the source code, I found this error: Segment snippet included twice

!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");

Could that be the origin of the duplication? If so how can I fix it since when I look the GA destination on Segment, only one destination seems to be pointing to the GA tracking code?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/tymichaelty
πŸ“…︎ Jul 01 2021
🚨︎ report
Has anybody actually done a Code Vein Single Segment No Hit Run?

Couldn't find anything on Youtube or Google. Just No Hit/No Damage Segmented Boss Runs but not an actual Single Segment No Hit Run like in the Souls games, Bloodborne or Sekiro. So if nobody has done it before, is it actually possible?

I guess Blade Bearer & Cannoneer might be one reason that nobody actually went for it since it is pretty tough to not get hit by anything in that fight consistently...

πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/flyingBratwurst
πŸ“…︎ May 09 2021
🚨︎ report
An archive of articles written by financial publications & mainstream media segments from tv. Code name: the FUD Packers.

While I’m somewhat amused when I see it, I’m also pretty pissed off that MSM continues to tell the world the squeeze has done squoze.

Has anyone been archiving FUD?

It’s really important that after the MOASS, non-🦍 know who the media actually serves.

Nothing has been more damaging to every day, working class people than the MSM that pretends to have their best interests at heart.

So yeah, I think we should have an archive with unedited articles & segments for all to see POST-MOASS.

Collectively they could be called the FUD Packers.

Thoughts? Is this happening already? Can someone more technically savvy make this happen?

πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/harvestbent
πŸ“…︎ Jul 02 2021
🚨︎ report
[No Spoilers] For the lazy, Sam's QR code in the Nord segment of episode 134 leads to an image with "don't fuck this up travis" in binary. imgur.com/s3AyOCq
πŸ‘︎ 192
πŸ’¬︎
πŸ‘€︎ u/nebulaeandstars
πŸ“…︎ Apr 21 2021
🚨︎ report
Code Segments Only Running After Hitting Enter

I’ve attempted googling this many times with no luck. I was programming with Java and everything was fine until about 15 minutes before I was about to be finished for the day. When running the code, a segment will run, and then it’ll just stop and sit there and I have to press enter to get the next segment to run. Such as entering a number, I have to press enter twice to get the following code to run. Is this an accidental keyboard stroke I made? I’ve never had an IDE do this before, wtf is it?

πŸ‘︎ 3
πŸ’¬︎
πŸ“…︎ Jun 27 2021
🚨︎ report
ROS1 LaserScan Line Segment Extraction using Boost:simplify (~100 lines of C++ code) youtube.com/watch?v=EF6ov…
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/sutlusalca
πŸ“…︎ May 08 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.