Quantcast
Channel: User Misha Krul - Stack Overflow
Browsing latest articles
Browse All 41 View Live
↧

Comment by Misha Krul on Heroku deploy failing for rails5 app due to...

Aaah, that was it! The requires needed to be commented out. Ran the precompile step manually and then deployed with no problems! Thank you!! I guess I hadn't thought to comment out the require lines...

View Article


Comment by Misha Krul on Group by unique values while summing / adding other...

Thanks for that! Sorry, i was in a rush :)

View Article

Comment by Misha Krul on Scraping each image from a craigslist search

ohmygosh... duh! That makes sense Thanks for your help!

View Article

Comment by Misha Krul on Checking for presence of a key within an S3 object

I apologize - yes, that was a typo

View Article

Comment by Misha Krul on getting all repos in a Github api query

Hi @AzmatRana, here's the gist. gist.github.com/mkrul/9e58c049ca7611bdf77b8a664f301af8

View Article


Comment by Misha Krul on Rails ActionView::MissingTemplate, Template Is...

I've done so and unfortunately I'm still receiving a missing template error. Missing template contact_us_mailer/contact_us

View Article

Comment by Misha Krul on owlCarousel is not a function in rails

@dbugger I added it to my application.js file below the requirements for jquery, restarted my server, and I'm still seeing the "owlCarousel is not a function" error

View Article

Comment by Misha Krul on undefined method sign_in for rspec

I believe sign_in is a Devise helper. rubydoc.info/github/plataformatec/devise/…

View Article


Comment by Misha Krul on google oauth with nextjs

@grekier yes, localhost:3000 is in Authorized JavaScript origins.

View Article


Unable to see partial when using cocoon gem

I have installed cocoon and added all of the necessary changes according to the examples outlined here: https://github.com/nathanvda/cocoon/wiki/ERB-examplesYet for some reason I am not able to see...

View Article

Cannot find name 'Symbol' when compiling typescript

I'm receiving the following error when trying to compile a ts file:node_modules/@types/node/util.d.ts(121,88): error TS2304: Cannot find name 'Symbol'.I did some reading and saw that this can be linked...

View Article

Drawing a number of HTML canvases according to input value

I've got an ongoing project where I need to draw a number of HTML canvases (from 1 to 10) according to a number that is typed into the input field.Perhaps an easier way to go about this would be to...

View Article

Rails - how to redirect, flash an error / notice, and download a csv in the...

I'm building a feature that allows a user to process a mass update of records via a csv.I want the functionality to be, from the index page: upload csvreturn a flash notice of how many records were...

View Article


streaming a remote image to the buffer using Koa

First time playing around with nodejs streams.. I feel like I'm missing something fundamental here about how streams work. When I make the request to the URL it logs out a 404. If I try to write to the...

View Article

routing error, no route match for rails api request

I've got my controller namespaced with API, and can't seem to make a request due to the following error:ActionController::RoutingError (No route matches [GET] "/api/request_projects")Controller:module...

View Article


Reverse proxy CORS Configuration for NGINX

I have a nodejs server and react client app deployed to an ec2 instance. When I try to send a POST request to /api/emails route it returns a CORS / CORB error in the console.Cross-Origin Request...

View Article

A regex to get any price string

I need to get the price from a string, but no other numbers. There are no restrictions on what the string can say, but it will always have a dollar amount in it. It's the dollar amount I need to get...

View Article


Displaying different images on an HTML canvas according to selected radio button

Using this project, you are supposed to be able to select a radio button for a specific color, click the big blue button, and a corresponding 150x150px color swatch will be drawn on an HTML canvas....

View Article

Rails 7 flash errors not displaying in application.html.erb

Having an issue in my Rails 7 app of alerts not showing up.notices, however, are.I am displaying alerts in application.html.erb using <%= alert %><%= render partial: "shared/navbar"...

View Article

Answer by Misha Krul for Rails ActionView::MissingTemplate, Template Is...

Figured it out.I tried regenerating the mailer via bundle exec rails generate mailer contact_us and noticed that it created a mailer at app/mailers/contact_us_mailer.rb .. My original mailer was...

View Article

Image may be NSFW.
Clik here to view.

owlCarousel is not a function in rails app

I have a rails app where I'm attempting to use an owl carousel to display a list of testimonials with images. I think I have everything set up correctly, but I'm still receiving a console error that...

View Article


Image may be NSFW.
Clik here to view.

Rails 7 importmap with bulma and jquery

I'm having trouble getting Rails 7 importmaps to play nicely with jquery and bulma.config/importmap.rb:pin "application", preload: truepin "@hotwired/turbo-rails", to: "turbo.min.js", preload: truepin...

View Article


Typescript not recognized in VSCode

I'm working on a new NextJS project w/ Typescript and Tailwind CSS. I'm working on Mac Ventura 13.3.1.I am importing dummy used data via the jsonplaceholder API.In my users/page.tsx component, I am...

View Article

Image may be NSFW.
Clik here to view.

Property 'user' does not exist on type WritableDraft

I have a redux userSlice that is attempting to get user data from the store.client/src/redux/features/userSlice.tsimport { createAsyncThunk, createSlice, PayloadAction } from "@reduxjs/toolkit";import...

View Article

Type mismatch of "root reducer"

In my Redux store, I am initializing a persistedReducer which takes the redux-persist config and "rootReducer":client/src/redux/store.ts:import { configureStore } from '@reduxjs/toolkit';import {...

View Article


Image may be NSFW.
Clik here to view.

undefined body in PUT request

I have a React / Redux / Node app that is making a request to update a user:client/src/components/pages/AlignmentPage.tsx:const AlignmentPage = () => { const dispatch = useAppDispatch(); const...

View Article

Answer by Misha Krul for undefined body in PUT request

I figured it out.I needed to pass express.json() as an argument when calling the user controller endpoint.api/src/routes/user.ts:router.put("/api/user/:userId", express.json(),...

View Article

Answer by Misha Krul for Getting an undefined body in express PUT request

I figured it out.I needed to pass express.json() as an argument when calling the user controller endpoint.api/src/routes/user.ts:router.put("/api/user/:userId", express.json(),...

View Article

Getting an undefined body in express PUT request

I have a React / Node / Express app where I am trying to update a user.The Redux action that should be handling the request looks like this:export const updateUser = (userId: string, data: any) =>...

View Article



Comment by Misha Krul on server-side / client-side routing problem on browser...

That didn't fix it :\

View Article

Setting up SSL for localhost (MacOS / rails / react / vite)

I'm trying to configure an app on my local development environment to use SSL. I started down this path when I noticed a CORS error upon trying to request data from the back end Rails API. When I try...

View Article
Browsing latest articles
Browse All 41 View Live