Sun in ultraviolet, and yes that's Venus passing in front of our sun! Credit - Nasa Solar Dynamics Observatory
πŸ‘︎ 42k
πŸ’¬︎
πŸ‘€︎ u/Anuomni
πŸ“…︎ Oct 17 2021
🚨︎ report
Using a form dynamically generated in a loop to pass request parameters, please help

I'm working on a bug tracking app to strengthen my Node knowledge.

I'm using EJS to dynamically render from data from a database, and storing it in a table.

What I want to do is have the case number column to be a "link" that once clicked will take me to a page where users can add comments, send emails etc, basically a page dedicated to one individual case.

To do so, I believe the best thing to do is to pass the case number to the route as a request parameter, using a form.

It works, but when I click on each case number "button", the request query comes back as: localhost:3000/view-case/?case=7&case=8&case=9&case=23&case=24

I'm pretty sure that this is down to the fact that the input/buttons being in a forEach call..

I've checked my Network tab, and confirm that only one request is made, I've moved the form itself in and out of the forEach call and that has no effect on how this works.

Question, whats the best way to resolve such an issue, and can any one explain this behaviour?

My best guess is its because all the hidden inputs have the same name and value, so they are concatanating? If so, how can I go about fixing that?

I hope this makes sense, thanks in advance.

Formatting here is difficult, so please see my github here: https://github.com/UrgellMossley/bugTracker/blob/main/views/users/my-queue.ejs

(main repo is here: https://github.com/UrgellMossley/bugTracker)

 <section class="ticket-table flex-container flex-centre">
        <form action="/view-case/?" method="GET" id="case-form"></form>

        <% if (cases.length === 0 ) {%>
            <h1 class="headline text-sm" id="ticket-text">Let's get started!</h1>
                <button class="btn-sm" id="display-form">Create New Case</button>

        <%} else{ %>
             <h1 class="headline text-lg" id="ticket-text">Your Tickets</h1>
             <table class="text-xs">
                <thead class="table-header">
                    <td class="head-column font-wt-700 case-header">Case Number</td>
                    <td class="head-column font-wt-700 priority-  header">Priority</td>
                    <td class="head-column font-wt-700 last-Actioned-header">Last 
Act
... keep reading on reddit ➑

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Dazed_and_unused
πŸ“…︎ Jan 15 2022
🚨︎ report
A few questions today for Carson Wentz on the Colts’ up-and-down passing attack of late, esp. his play: β€œWe need to get back to being a dynamic offense,” he says. β€œ(And) we believe, wholeheartedly, that at any point, if we need to, we can win a game through the air.” twitter.com/zkeefer/statu…
πŸ‘︎ 52
πŸ’¬︎
πŸ‘€︎ u/highway8628
πŸ“…︎ Jan 05 2022
🚨︎ report
Lian Li Dynamic xl with double loop (client build) . Follow for more builds reddit.com/gallery/rrjm1h
πŸ‘︎ 69
πŸ’¬︎
πŸ‘€︎ u/PCMBE
πŸ“…︎ Dec 29 2021
🚨︎ report
Read dynamic variable into a function inside a for loop

I created a function called lookpoint, which reads in a dynamic variable, interim1, interim2, or interim3.

When I run the function on its own, it works fine. When I read the function into a for loop, the variable names are created but no observations are generated.

Can someone kindly point me in the right direction? I've been struggling with this issue, but I can't seem to go further than generating the variable names. Thank you.

(I edited the original question to include reproducible example with comments to show what I am doing. Thanks!)

rm(list = ls())
cat("\014")

numlook <- 3 #num of look points
n<- 100 #number of observations

#Generate time-to-event data with censored variable
my_function <- function(){

  time_init <- rep(NA, n) #initial time
  time_cens <- rep(NA, n) #censoring time
  time <- rep(NA, n)
  
  time_init <- runif(n)*100
  time_cens <- runif(n)*100
  time <- pmin(time_init, time_cens) #take the minimum of the two for actual time
  
  
  return(data.frame(time_init, time_cens, time))
}

output <- my_function()

output$event <- ifelse(output$time == output$time_init, event<-1, event<-0) #determine if event or censored

output$interim1 <- 25 #define interim cutpoints
output$interim2 <- 50
output$interim3 <- 75


lookpoint <- function(interim){
  
  interim <- deparse(substitute(interim)) #needed for the [[]] part
  
  L_evt <- ifelse(output$time < output[[interim]], 1, 0) #find event/censored at each interim
  Y <- ifelse(output$time < output[[interim]], output$time, output[[interim]]) #Find time at each interim point
  
  return(data.frame(L_evt, Y))
}

#Obtaining results using a serial approach

#interim1 <- lookpoint(interim1)
#interim2 <- lookpoint(interim2)
#interim3 <- lookpoint(interim3)


lookpoint_list <- noquote(paste0("interim",1:numlook)) #capture interim as a variable




#Where I am having trouble
for (i in 1:numlook){
  assign(paste0("interim", i), lookpoint(noquote(paste0("interim", i))))
  #assign(noquote(paste0("interim", i)), lookpoint(noquote(lookpoint_list[i])))
}

#Id like to merge these results (L_evt1, Y1, L_evt2, Y2, L_evt3, Y3) back with the original table, output.
πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/centipedeshoesale
πŸ“…︎ Jan 15 2022
🚨︎ report
Passing information through a URL to Dynamic Content page with Jelly

I've got a page for a service catalog with an <input> that I want to fill with the name of a user when the page is arrived at from a certain button. The other purposes and details of the button aren't important, only that with its associated client script I can grab the id of the user and append it to the URL (and I don't quite get how sysparm_id, sysparm_view, et al work) that the user is sent to, but I don't know how to take that from the URL after I'm there and pre-fill it into the value of the <input> so the user doesn't have to. How do I do this?

πŸ‘︎ 3
πŸ’¬︎
πŸ“…︎ Jan 13 2022
🚨︎ report
O11 Dynamic Evo initial build with 2 riser cables connected through the back of the case. Had to set PCIE slot one to either gen 3 or gen 4. Leaving it in auto settings put it in a boot loop. SL120’s look awesome in here though. reddit.com/gallery/rm62pp
πŸ‘︎ 69
πŸ’¬︎
πŸ‘€︎ u/aceventura926
πŸ“…︎ Dec 22 2021
🚨︎ report
The Park Union Bridge of Diller Scofidio + Renfro, a Dynamic Loop That Connects Colorado Springs
πŸ‘︎ 175
πŸ’¬︎
πŸ‘€︎ u/Potential_art6969
πŸ“…︎ Jan 07 2022
🚨︎ report
Venus passing in front of our ultraviolet sun. Credit: Nasa Solar Dynamics Observatory
πŸ‘︎ 1k
πŸ’¬︎
πŸ‘€︎ u/MistWeaver80
πŸ“…︎ Nov 17 2021
🚨︎ report
New video from Loop Ring - Dynamic NFT? youtube.com/watch?v=Drq2v…
πŸ‘︎ 49
πŸ’¬︎
πŸ‘€︎ u/GayForMyGod
πŸ“…︎ Jan 02 2022
🚨︎ report
The chrome build with Lighting as requested by some. One with argb , the other with uv. Notice my logo becoming visible when the uv is on? Which do you prefer? RGB or UV Bitspower Loop in the Lian Li o11 dynamic pcmr edition. reddit.com/gallery/ru7m6f
πŸ‘︎ 25
πŸ’¬︎
πŸ‘€︎ u/PCMBE
πŸ“…︎ Jan 02 2022
🚨︎ report
Lian Li Dynamic xl with double loop (client build) . Follow for more builds reddit.com/gallery/rrjnsl
πŸ‘︎ 23
πŸ’¬︎
πŸ‘€︎ u/PCMBE
πŸ“…︎ Dec 29 2021
🚨︎ report
The chrome build with Lighting as requested by some. One with argb , the other with uv. Notice my logo becoming visible when the uv is on? Which do you prefer? RGB or UV Bitspower Loop in the Lian Li o11 dynamic pcmr edition. reddit.com/gallery/ru7ldv
πŸ‘︎ 42
πŸ’¬︎
πŸ‘€︎ u/PCMBE
πŸ“…︎ Jan 02 2022
🚨︎ report
Lian Li O11 Dynamic OΞ›ΖŽ - Best O11 for custom loops yet imgur.com/a/C7HOJFn
πŸ‘︎ 67
πŸ’¬︎
πŸ‘€︎ u/AMP_US
πŸ“…︎ Dec 21 2021
🚨︎ report
Outside of dynamic scenes is there anyway (with Hue or otherwise) to program lights to loop through different values over a specified time length? I’d love more flexibility like that.
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/SeasonsGone
πŸ“…︎ Jan 06 2022
🚨︎ report
The chrome build with Lighting as requested by some. One with argb , the other with uv. Notice my logo becoming visible when the uv is on? Which do you prefer? RGB or UV Bitspower Loop in the Lian Li o11 dynamic pcmr edition. reddit.com/gallery/ru7lum
πŸ‘︎ 16
πŸ’¬︎
πŸ‘€︎ u/PCMBE
πŸ“…︎ Jan 02 2022
🚨︎ report
Lian Li Dynamic xl with double loop (client build) . Follow for more builds reddit.com/gallery/rrjn82
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/PCMBE
πŸ“…︎ Dec 29 2021
🚨︎ report
Lian Li Dynamic xl with double loop (client build) . Follow for more builds reddit.com/gallery/rrjkyf
πŸ‘︎ 22
πŸ’¬︎
πŸ‘€︎ u/PCMBE
πŸ“…︎ Dec 29 2021
🚨︎ report
Sun in ultraviolet, and yes that's Venus passing in front of our sun! Credit - Nasa Solar Dynamics Observatory
πŸ‘︎ 379
πŸ’¬︎
πŸ‘€︎ u/YteKnight696
πŸ“…︎ Oct 18 2021
🚨︎ report
perfect loop with some dynamic ballz v.redd.it/s1fr28fi3l881
πŸ‘︎ 102
πŸ’¬︎
πŸ“…︎ Dec 30 2021
🚨︎ report
The chrome build with Lighting as requested by some. One with argb , the other with uv. Notice my logo becoming visible when the uv is on? Which do you prefer? RGB or UV Bitspower Loop in the Lian Li o11 dynamic pcmr edition. reddit.com/gallery/ru7l49
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/PCMBE
πŸ“…︎ Jan 02 2022
🚨︎ report
Custom Loop Liquid build - Lian Li O11 Dynamic 9900KS MAXIMUS X RTX 2080 youtube.com/watch?v=OHVcW…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/waqasid
πŸ“…︎ Dec 30 2021
🚨︎ report
Sun in ultraviolet, and yes that's Venus passing in front of our star! Credit- Nasa Solar Dynamic Observatory
πŸ‘︎ 197
πŸ’¬︎
πŸ‘€︎ u/Anuomni
πŸ“…︎ Oct 17 2021
🚨︎ report
Passing Dynamic Mongoose query into db.collection.find()

I have a client side application that I would like to have the ability to specify arbitrary queries to MongoDB through a server side call to a query function.

I have tried multiple arrangements on both my client and server to try to make this work but I can't seem to figure out the correct way to go about this.

This is an example request that my client would send (although the goal is for the query property to be any valid query that one could hardcode on the server side):

{     "collectionName": "abilities",     "query": "{\"_id\":{\"$in\":[5,{\"$oid\":\"619f97d1d977f089ac559368\"}]}}" } 

On the server side, I've parsed the query with EJSON to try and get it to a state where I can pass it into the db.collection.find() method but the return type is not compatible (I receive: EJSON.SerilizbleType vs I need: Filter<Document>)

Another thought I had was to stringify the EJSON result and then convert it to JSON through JSON.parse(). If I console.log() the result, I get the following:

{ _id: { '$in': [ 5, '619f97d1d977f089ac559368' ] } } 

Passing that into the find()
method produces no results.

If I console.log() the parsed text, I receive the following:

{   _id: { '$in': [ new Int32(5), new ObjectId("619f97d1d977f089ac559368") ] } } 

Which shows that the JSON conversion is losing the type, which is important when constructing the query.

Thoughts on how I may go about this?

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/toshko3331
πŸ“…︎ Nov 25 2021
🚨︎ report
My latest cinema camera quad. Made it to carry up to a 5lb camera load. Love the dynamic passing shots I can get with these cinelifters v.redd.it/v79pjveh0lo71
πŸ‘︎ 75
πŸ’¬︎
πŸ‘€︎ u/therealmikek
πŸ“…︎ Sep 20 2021
🚨︎ report
My first custom loop. I crammed 3 radiators (8x 120) and a D5 pump into an O11 Dynamic Mini reddit.com/gallery/qo2xvs
πŸ‘︎ 24
πŸ’¬︎
πŸ‘€︎ u/sharksandwich81
πŸ“…︎ Nov 06 2021
🚨︎ report
Arkane, I’d loop for a dynamic wallpaper/screensaver of the Isle of Blackreef changing during the different times of day!
πŸ‘︎ 31
πŸ’¬︎
πŸ‘€︎ u/aflamingflamingo
πŸ“…︎ Nov 13 2021
🚨︎ report
The chrome build with Lighting as requested by some. One with argb , the other with uv. Notice my logo becoming visible when the uv is on? Which do you prefer? RGB or UV Bitspower Loop in the Lian Li o11 dynamic pcmr edition. reddit.com/gallery/ru7kvz
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/PCMBE
πŸ“…︎ Jan 02 2022
🚨︎ report
Lian Li Dynamic xl with double loop (client build) . Follow for more builds reddit.com/gallery/rrjljt
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/PCMBE
πŸ“…︎ Dec 29 2021
🚨︎ report
Advice for Lian Li O11D Dynamic Custom loop

Hello. I have a Lian Li O11D Dynamic, and I am trying to work out the best loop to build, and whether it will fit. I have a 5950x, and 2 x 3080ti's. I have 2 EK SE360's and my old XSPC RX360 and RX240. I was initially thinking all 3 of the 360's (2 are 27mm) but then I have been told the SE360's are pretty bad. Then I considered selling the EK's and buying a 60mm 360, like the Corsair XR7, bit I am not sure if i can fit everything with 2 x GPUS.

I think a 60mm will fit the top, but will a 40mm fit on the bottom with 2 gpus? Or the vertical slot? Sorry for all the questions, just unsure of mounting sizes and requirements to keep those 3 components cooled. Running them with 1850rpm Scythe gentle typhoons

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/Electronic-Ad2874
πŸ“…︎ Dec 02 2021
🚨︎ report
[Mike Schmitz] Mentioned 6-7 Argentinian guard Leandro Bolmaro as one of the most impactful rookies to take the floor this upcoming season. Big fan of his motor, passing creativity and overall spirit. Interesting fit next to a dynamic scorer like Anthony Edwards. twitter.com/Mike_Schmitz/…
πŸ‘︎ 95
πŸ’¬︎
πŸ“…︎ Sep 15 2021
🚨︎ report
If there as a contest for the nicest person the media would likely never go to a winner because they would all be too nice not to offer the reward to another contestant, creating an infinite loop of generously passing around an award.
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/FireFarrett
πŸ“…︎ Nov 19 2021
🚨︎ report
First PC build and first Loop. Lian Li PC-O11 Dynamic. reddit.com/gallery/q1yjgz
πŸ‘︎ 49
πŸ’¬︎
πŸ‘€︎ u/kristian1799
πŸ“…︎ Oct 05 2021
🚨︎ report
First Custom Loop: O11-Dynamic XL, 5950x, 3090 Strix reddit.com/gallery/oxte0t
πŸ‘︎ 110
πŸ’¬︎
πŸ‘€︎ u/Mickey1985
πŸ“…︎ Aug 04 2021
🚨︎ report
Lake Tahoe loop clockwise: wildfire smoke cleared just in time to do this ride. 11mph average as I am a moderate rider. Awesome views but need to deal with passing cars. imgur.com/a/T0ITry0
πŸ‘︎ 46
πŸ’¬︎
πŸ‘€︎ u/Cap10Haddock
πŸ“…︎ Sep 24 2021
🚨︎ report
Break the loop | Redshift render | C4D dynamics | X-particles instagram.com/p/CXBia3DJ4…
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/No_Economist_820
πŸ“…︎ Dec 03 2021
🚨︎ report
Diplomatic Power bug - Just passing the last resolution for 100% fleet power and realising I am stuck on 20%. Same for tech. Using the RealSpace, tiny outliner and UI Overhaul Dynamics
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/758tech
πŸ“…︎ Sep 19 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.