Categories
Development

Get a List of all patients examinations sorted by date of examination grouped by patient newest first

I would like to extract a list of all examinations sorted by date of examination (DESC) and ‘grouped’ (in a non-SQL term) by Patient So if this is my table Id DateOfExamination PatientId Text 1 2019-01-01 00:00:00.0000000 1 Peter 2 2018-02-03 00:00:00.0000000 2 Marlies 3 2019-05-04 00:00:00.0000000 3 Sonja 4 2017-02-09 00:00:00.0000000 1 Peter 5 […]

Categories
Development

Why doesn’t the compiler optimize out increments when used only in a boolean inequality?

I am writing a simple for loop that checks if there is an even number and an odd number inside an array. What I am trying to figure out is why incrementing a local variable to just use as a boolean is not optimized out and it is still incremented every loop. I have limited […]

Categories
Development

What is an easier for Testcafe to check if a class selector exists on the page or not

I have 2 web pages; one page shows a pop up message while the other page doesn’t I have it setup as: .expect(Selector(‘.classname).exists).notOk() This is what I’m assuming: The first page should pass because the pop up message with that class should not show (it passes; makes sense to me) but the error comes in […]

Categories
Development Heroku Ruby

Ruby on Rails app categories not working or sorting on heroku

I created Products that each have a category based on their gender. Everything works fine in my localhost but in Heroku when I press each category it doesn’t sort out the products like in my localhost. The browser shows -> herokuapp.com/products?category=Trajes+de+Ba%C3%B1o but doesn’t do what its suppose to. My Products controller: def index if params.key?(:category) […]

Categories
Development

struct inside struct and typecasting

Today I found this code which looks like an elongated piece without any need: #include <stdio.h> typedef struct { //BLABLABLA } structA; typedef struct { //BLAAAAAAAAAAAAAAA } structB; typedef struct { structA A_obj; structB B_obj; } structC; int main(void) { structA *A_ptr; structC C_obj; A_ptr = (structA *)(& (C_obj.A_obj)); //THIS LOOKS OVER-ENGINEERED return 0; } […]

Categories
Ask

[ Singles & Dating ] Open Question : Why was he staring at my boobs when he had a *****?…?

my friends brother was staring at my boobs while he had a ***** he tried hiding the fact that he was staring but it was obvious…. why was he staring? and when I caught him looking at me he didn’t break eye contact why?

Categories
Ask

[ Weather ] Open Question : King county meteorologists this is how I’m going to end you & in way WAY less than 24hrs.?

Sense you have not got rid of the damn thunderstorm in my area here’s what’s gonna happen to you all & how: Once it clears & the power & Internet comes back on I’m going to track you down to either your studio or homes depending on what I can locate easier & physical beat […]

Categories
Ask

[ Financial Aid ] Open Question : Will a person graduate with less debt if they decline their federal student loans in their award package?

Categories
Ask Politics

[ Politics ] Open Question : Is this Russian hacker collusion story real or fake news?

Categories
Ask

[ Mathematics ] Open Question : Math permutation combination determine the number of ways to arrange the word SCHOLARSHIP if a) all vowels must be together +?

b) the arrangement must begin with -exactly- one S