Categories
Development

Program outputs strange characters

My program outputs the 4 values correctly, but adds strange characters to some of them. What am I doing wrong? I’m not sure if the problem lies within my copy function or my print function. Here is my copy function (I have to write my own): char* myStrCopy(char *destination,const char *source){ while(*source != ‘\0’){ *destination […]

Categories
Development

Why does changing a value in one input change the value in another input too?

I’m trying to learn and experiment with React hooks. For a small test project I want to update a calendar grid when the user changes the display mode or changes the date. Here is Calendar.jsx. The state is stored here. date and setDate are passed as props to CalendarDatePicker. import React, {useState} from ‘react’; import […]

Categories
Development

no attribute ‘contrib’ for problems()

I am trying to see the available problems() but it is giving Error. Can you please let me know if I am missing anything >>> from tensor2tensor import problems Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “C:\Users\\Anaconda3\lib\site-packages\tensor2tensor\problems.py”, line 22, in <module> from tensor2tensor.utils import registry File “C:\Users\\Anaconda3\lib\site-packages\tensor2tensor\utils\registry.py”, line 551, in […]

Categories
Development MySQL

SqlAlchemy MySQL: Add condition statement on association table

I plan to join many-to-many relationship on user and its roles, also role and its permissions. This code works fine but how can I use ON sql condition using ORM in both associate table to do extra filtering? Example: user_role table have one field called isdisabled, or user table have field called isdisabled, isdeleted Like […]

Categories
Development

Why does my code only display 1 conversion output. I cant find the wrong in my code. Can somebody help me

Please look for the mistake in my code. My code makes the user input several dollar amound and currency to where to convert. but my code only display the output of the last input. for(i=0;i<=many;i++) { arrlist[i]= sc.nextLine(); Temp = arrlist[i].split(” “); } for(i=0,j=1;i<=Temp.length;i+=2,j+=2){ if(Temp[j].equals(“PHP”)){ conversion = Double.parseDouble(Temp[i])*51.23; System.out.println(“\n$”+Temp[i]+” CONVERTS TO “+conversion+” PHP.”); } if(Temp[j].equals(“POUNDS”)){ […]

Categories
Development

Zoom and Pan in java using affineTransform

I have an application that can read view pdfs. I want to do have the same function like what you see when you view pdfs on your Internet Explorer. Now I can zoom and pan on the pdf but not exactly like the ones you see in your Internet Explorer. This Code can: Zoom in/out […]

Categories
Ask

[ Religion & Spirituality ] Open Question : Dear atheists, if god isn’t real, then how do you explain miracles?

I’ve seen miracles in every way and I see miracles everyday. Tons of miracles such as: -Oceans spanning beyond my sight -The stars way above at night -Mountains -Trees -The seven seas -Everything chilling underwater -Hot lava -Snow -Rain -Fog -Long neck giraffes -Pet cats and dogs -The birth of my kids -The Sun -The […]

Categories
Ask

[ Singles & Dating ] Open Question : I am attracted to my aunt she is 52 and I am 31 what should I do? I find her really attractive and have felt this way as I got older.?

Don t judge me as this is a real feeling that I have for my aunt. I know she is my dad s sister and she has never married and she does not have any kids and also she has a boyfriend. I know she is my aunt and I should not feel this way […]

Categories
Advertising & Marketing Ask Other

[ Other – Advertising & Marketing ] Open Question : Scenting my business?

I have a jewelry store and I want to make it smell really good for the customers. Also to use it for marketing. I tried candles and essential oil diffusers. I have a wax warmer that I was thinking of trying the wax melts, but I feel like those won’t work either. I know hotels/restaurants/retails […]

Categories
Ask

[ Politics ] Open Question : When is the next in person YA Politics get together and are we required to bring bodyguards?