# programming

**URL:** https://forum.kirupa.com/c/programming/41.md?page=34

[Latest](https://forum.kirupa.com/latest.md) · [Categories](https://forum.kirupa.com/categories.md)

**Page:** 35

---

## [Days as a programmer are numbered (Github Copilot)](https://forum.kirupa.com/t/days-as-a-programmer-are-numbered-github-copilot/648121)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 2\
**Last updated:** [July 2, 2021, 1:04am UTC](https://forum.kirupa.com/t/days-as-a-programmer-are-numbered-github-copilot/648121 "2021-07-02T01:04:19Z")

</div>

---

## [Date time libraries in React](https://forum.kirupa.com/t/date-time-libraries-in-react/648123)

<div class="topic-metadata">

**Author:** [@Umair\_Ashraf](https://forum.kirupa.com/u/Umair_Ashraf)\
**Replies:** 0\
**Last updated:** [July 1, 2021, 6:19pm UTC](https://forum.kirupa.com/t/date-time-libraries-in-react/648123 "2021-07-01T18:19:49Z")

</div>

Hi guys, I am currently building a personal project a bit stuck at deciding the best way forward for my scenario, so basically I am looking to bring in customised date time (next seven days and between 10:00 to 20:00) u…

---

## [You know, just some skills you should have for web development](https://forum.kirupa.com/t/you-know-just-some-skills-you-should-have-for-web-development/642205)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 6\
**Last updated:** [June 29, 2021, 12:15pm UTC](https://forum.kirupa.com/t/you-know-just-some-skills-you-should-have-for-web-development/642205 "2021-06-29T12:15:44Z")

</div>

---

## [JS string to function without evaluating](https://forum.kirupa.com/t/js-string-to-function-without-evaluating/648055)

<div class="topic-metadata">

**Author:** [@steve.mills](https://forum.kirupa.com/u/steve.mills)\
**Replies:** 5\
**Last updated:** [June 27, 2021, 2:22pm UTC](https://forum.kirupa.com/t/js-string-to-function-without-evaluating/648055 "2021-06-27T14:22:04Z")

</div>

Hey guys, I recently wanted to dynamically convert a string to a function and store it without evaluating (JS, not production code). After a few problems , I came across this Github gist: It didn’t do generators so …

---

## [Sails.JS's publish method doesn't work in a controller, but works in the console](https://forum.kirupa.com/t/sails-jss-publish-method-doesnt-work-in-a-controller-but-works-in-the-console/648023)

<div class="topic-metadata">

**Author:** [@Jacob\_Hays](https://forum.kirupa.com/u/Jacob_Hays)\
**Replies:** 0\
**Last updated:** [June 23, 2021, 6:29am UTC](https://forum.kirupa.com/t/sails-jss-publish-method-doesnt-work-in-a-controller-but-works-in-the-console/648023 "2021-06-23T06:29:01Z")

</div>

Currently, I’m exploring web development to see what all the hype is about. Except for following a small ‘create your first CRUD app in Node.JS’ and some formal training in JavaScript, I have no experience. I’m new to J…

---

## [Input does not hold the color value when submitting.](https://forum.kirupa.com/t/input-does-not-hold-the-color-value-when-submitting/647929)

<div class="topic-metadata">

**Author:** [@jkredfoot](https://forum.kirupa.com/u/jkredfoot)\
**Replies:** 4\
**Last updated:** [June 16, 2021, 12:03pm UTC](https://forum.kirupa.com/t/input-does-not-hold-the-color-value-when-submitting/647929 "2021-06-16T12:03:11Z")

</div>

\<!DOCTYPE html\> \<html lang="en"\> \<head\> \<meta charset="UTF-8"\> \<meta name="viewport" content="width=device-width, initial-scale=1.0"\> \<title\>Colorizer\</title\> \<script crossorigin src="https://unpkg.com/r…

---

## [JQuery to Vanilla JavaScript Slider Ticks](https://forum.kirupa.com/t/jquery-to-vanilla-javascript-slider-ticks/647927)

<div class="topic-metadata">

**Author:** [@leellbee](https://forum.kirupa.com/u/leellbee)\
**Replies:** 2\
**Last updated:** [June 15, 2021, 4:21pm UTC](https://forum.kirupa.com/t/jquery-to-vanilla-javascript-slider-ticks/647927 "2021-06-15T16:21:52Z")

</div>

I am in the process of converting jquery to javascript and on one page we have some range sliders we set all the ticks in jquery and I’m wondering how to do this… jquery: $("#months").slider({ ticks:\[12, 24, 36\], tic…

---

## [JavaScript - Apply Multiple Styles to Multiple Elements](https://forum.kirupa.com/t/javascript-apply-multiple-styles-to-multiple-elements/647915)

<div class="topic-metadata">

**Author:** [@leellbee](https://forum.kirupa.com/u/leellbee)\
**Replies:** 2\
**Last updated:** [June 15, 2021, 1:34pm UTC](https://forum.kirupa.com/t/javascript-apply-multiple-styles-to-multiple-elements/647915 "2021-06-15T13:34:15Z")

</div>

I am in the process of migrating jquery to vanilla js and I am converting this: $("#pricing\_annual, #annual\_output, #monthly\_output, #pricing-section-special").css(“display”,“block”); $("#pricing\_annual, #annual\_output,…

---

## [Dynamically loading a JavaScript file](https://forum.kirupa.com/t/dynamically-loading-a-javascript-file/647878)

<div class="topic-metadata">

**Author:** [@payback](https://forum.kirupa.com/u/payback)\
**Replies:** 8\
**Last updated:** [June 11, 2021, 3:12pm UTC](https://forum.kirupa.com/t/dynamically-loading-a-javascript-file/647878 "2021-06-11T15:12:10Z")

</div>

Hello Gentlemen, My name is kleber and I’m in Brazil. My OS is windows 10 and I’m working with Edge. I’m testing a routine to dynamically load a javascript file and I have the following problem : Apparently the scr…

---

## [Using Tools to Ensure a Good UX](https://forum.kirupa.com/t/using-tools-to-ensure-a-good-ux/647881)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [June 10, 2021, 5:55pm UTC](https://forum.kirupa.com/t/using-tools-to-ensure-a-good-ux/647881 "2021-06-10T17:55:52Z")

</div>

Learn about Lighthouse and webhint, two tools you can use to check your page for potential UX-related issues in categories like a11y, performance, and more! This is a companion discussion topic for the original entry a…

---

## [Event Delegation](https://forum.kirupa.com/t/event-delegation/647824)

<div class="topic-metadata">

**Author:** [@abishek07](https://forum.kirupa.com/u/abishek07)\
**Replies:** 1\
**Last updated:** [June 6, 2021, 5:21pm UTC](https://forum.kirupa.com/t/event-delegation/647824 "2021-06-06T17:21:56Z")

</div>

Hey, guys! I came here from this tutorial on Kirupa’s channel. It deals with Event Delegation. I would really appreciate it if someone could help me with my question here: I am working on a chat app. Each chat elemen…

---

## [book errata & code download](https://forum.kirupa.com/t/book-errata-code-download/647810)

<div class="topic-metadata">

**Author:** [@hseuming](https://forum.kirupa.com/u/hseuming)\
**Replies:** 1\
**Last updated:** [June 3, 2021, 6:25pm UTC](https://forum.kirupa.com/t/book-errata-code-download/647810 "2021-06-03T18:25:56Z")

</div>

Hi Kirupa, Thank you for your nice book about React, Learning React. A quick question: is there an book errata @ informit.com or http://forum.kirupa.com? Thanks again.

---

## [Ensuring Pixelated Images Stay Pixelated in our High-DPI World](https://forum.kirupa.com/t/ensuring-pixelated-images-stay-pixelated-in-our-high-dpi-world/647780)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [May 31, 2021, 3:32am UTC](https://forum.kirupa.com/t/ensuring-pixelated-images-stay-pixelated-in-our-high-dpi-world/647780 "2021-05-31T03:32:58Z")

</div>

This is the before look: This is the after look: The CSS technique to pull this off was the following: img.emoji-custom { image-rendering: pixelated; } By setting the image-rendering property to pixelated o…

---

## [How to open/render an HTML file on IOS ..](https://forum.kirupa.com/t/how-to-open-render-an-html-file-on-ios/647696)

<div class="topic-metadata">

**Author:** [@gNeandr](https://forum.kirupa.com/u/gNeandr)\
**Replies:** 8\
**Last updated:** [May 25, 2021, 9:39pm UTC](https://forum.kirupa.com/t/how-to-open-render-an-html-file-on-ios/647696 "2021-05-25T21:39:15Z")

</div>

After using Android phones for years, I switched to the Apple IOS iPhone … and surprise surprise … have to deal with the limited OS environment. Opening/rendering an HTML file (with CSS/JS/HTML) on Android (and on LX/Mi…

---

## [How To Prevent Auto Run](https://forum.kirupa.com/t/how-to-prevent-auto-run/647687)

<div class="topic-metadata">

**Author:** [@Edwin\_Devey](https://forum.kirupa.com/u/Edwin_Devey)\
**Replies:** 3\
**Last updated:** [May 23, 2021, 2:23pm UTC](https://forum.kirupa.com/t/how-to-prevent-auto-run/647687 "2021-05-23T14:23:37Z")

</div>

I’m just starting to learn js and have found a useful script but it runs when the page loads. How can I change it run from a button onclick. It is only then that I can begin to play with it and change things while learni…

---

## [Create a Press and Hold Effect](https://forum.kirupa.com/t/create-a-press-and-hold-effect/638273)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 12\
**Last updated:** [May 13, 2021, 10:47pm UTC](https://forum.kirupa.com/t/create-a-press-and-hold-effect/638273 "2021-05-13T22:47:10Z")

</div>

by kirupa | 24 May 2018 Have questions? Discuss this HTML5 / JavaScript tutorial with others on the forums. This is a companion discussion topic for the original entry at https://www.kirupa.com/html5/press\_…

---

## [Simple Weather App (built in React)](https://forum.kirupa.com/t/simple-weather-app-built-in-react/639679)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 5\
**Last updated:** [April 29, 2021, 7:26am UTC](https://forum.kirupa.com/t/simple-weather-app-built-in-react/639679 "2021-04-29T07:26:52Z")

</div>

Hi everyone! I was fiddling around with writing some more advanced React tutorials. As part of that, I created this very simple weather app: You can view the source here: https://github.com/kirupa/kirupa/tree/master/…

---

## [Mouse Follow with Ease](https://forum.kirupa.com/t/mouse-follow-with-ease/636239)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 6\
**Last updated:** [April 28, 2021, 2:27pm UTC](https://forum.kirupa.com/t/mouse-follow-with-ease/636239 "2021-04-28T14:27:09Z")

</div>

by kirupa | 14 December 2015 Earlier, we had a circle follow the mouse cursor around and learned all about how to make that example work. In this page, we are going to continue our look at having something follow th…

---

## [Drawing Text on the Canvas](https://forum.kirupa.com/t/drawing-text-on-the-canvas/636231)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 6\
**Last updated:** [April 27, 2021, 6:55pm UTC](https://forum.kirupa.com/t/drawing-text-on-the-canvas/636231 "2021-04-27T18:55:35Z")

</div>

by kirupa | 19 November 2015 This may come as a shock to you, so I encourage you to be seated for what I am about to say next. The things you can draw on the canvas aren't limited to just lines and shapes. You can a…

---

## [The Classy Way to Create Objects](https://forum.kirupa.com/t/the-classy-way-to-create-objects/636787)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 6\
**Last updated:** [April 20, 2021, 2:59am UTC](https://forum.kirupa.com/t/the-classy-way-to-create-objects/636787 "2021-04-20T02:59:45Z")

</div>

This is the discussion topic where you can post all your questions (and complaints) about using the new-ish class syntax to create objects: https://www.kirupa.com/javascript/classy\_way\_to\_create\_objects.htm :slight\_smil…

---

## [Check If Internet Connection Exists in JavaScript](https://forum.kirupa.com/t/check-if-internet-connection-exists-in-javascript/352214)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 32\
**Last updated:** [April 18, 2021, 10:06pm UTC](https://forum.kirupa.com/t/check-if-internet-connection-exists-in-javascript/352214 "2021-04-18T22:06:30Z")

</div>

by kirupa | 14 September 2013 If there is ever a moment when you need your internet connection to work, there is a very good chance it is at that very moment your internet connection will fail. This is o…

---

## [Canvas HTML5 positioning issues](https://forum.kirupa.com/t/canvas-html5-positioning-issues/646680)

<div class="topic-metadata">

**Author:** [@sunnyb84](https://forum.kirupa.com/u/sunnyb84)\
**Replies:** 9\
**Last updated:** [April 16, 2021, 5:40pm UTC](https://forum.kirupa.com/t/canvas-html5-positioning-issues/646680 "2021-04-16T17:40:27Z")

</div>

New to Canvas… I am following the Canvas book(Which is awesome!) added the script tag to my html. I can’t figure out how to take the same shape and build another one in a different position. I keep ending up with multipl…

---

## [I need help Chapter 9 in book learning react](https://forum.kirupa.com/t/i-need-help-chapter-9-in-book-learning-react/647204)

<div class="topic-metadata">

**Author:** [@Fallin](https://forum.kirupa.com/u/Fallin)\
**Replies:** 2\
**Last updated:** [April 16, 2021, 5:52am UTC](https://forum.kirupa.com/t/i-need-help-chapter-9-in-book-learning-react/647204 "2021-04-16T05:52:32Z")

</div>

I use code: \<! DOCTYPE html\> \<html\> \<head\> \<meta charset="utf-8"\> \<title\>От данных к интерфейсу\</title\> \<script src="https://unpkg.com/react@16/umd/react.development.js"\>\</script\> \<script src="https://unpkg.com/…

---

## [Errors and Known Issues for Learning React](https://forum.kirupa.com/t/errors-and-known-issues-for-learning-react/638529)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 4\
**Last updated:** [April 14, 2021, 1:32pm UTC](https://forum.kirupa.com/t/errors-and-known-issues-for-learning-react/638529 "2021-04-14T13:32:48Z")

</div>

A great combination of editors and reviewers help ensure that the book's content is error-free. Sometimes, errors do slip through, and this page calls them out. Do note that we fix these errors in subsequent printings, s…

---

## [Generating a Random True or False Boolean Value](https://forum.kirupa.com/t/generating-a-random-true-or-false-boolean-value/647159)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [April 12, 2021, 6:04am UTC](https://forum.kirupa.com/t/generating-a-random-true-or-false-boolean-value/647159 "2021-04-12T06:04:10Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/html5/generating\_random\_boolean\_true\_false.htm

---

## [Infinitely Cycle Through an Array](https://forum.kirupa.com/t/infinitely-cycle-through-an-array/646366)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 4\
**Last updated:** [April 9, 2021, 11:21pm UTC](https://forum.kirupa.com/t/infinitely-cycle-through-an-array/646366 "2021-04-09T23:21:21Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/javascript/infinitely\_cycle\_through\_array.htm

---

## [Is regex an art form?](https://forum.kirupa.com/t/is-regex-an-art-form/647094)

<div class="topic-metadata">

**Author:** [@JohnHansenArtist](https://forum.kirupa.com/u/JohnHansenArtist)\
**Replies:** 7\
**Last updated:** [April 9, 2021, 8:27am UTC](https://forum.kirupa.com/t/is-regex-an-art-form/647094 "2021-04-09T08:27:39Z")

</div>

I find when I need to resort to, or maybe it’s a good choice, that when using regex it helps solve some coding needs in a JavaScript function. I use online regex testing like regex101, and also I will sometimes look for …

---

## [Creating Colorful, Smart Shadows](https://forum.kirupa.com/t/creating-colorful-smart-shadows/647095)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [April 8, 2021, 1:39am UTC](https://forum.kirupa.com/t/creating-colorful-smart-shadows/647095 "2021-04-08T01:39:58Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/html5/creating\_colorful\_smart\_shadows.htm

---

## [New Student](https://forum.kirupa.com/t/new-student/646983)

<div class="topic-metadata">

**Author:** [@Char-Lee](https://forum.kirupa.com/u/Char-Lee)\
**Replies:** 4\
**Last updated:** [April 2, 2021, 5:07am UTC](https://forum.kirupa.com/t/new-student/646983 "2021-04-02T05:07:10Z")

</div>

Hi guys, am totally new to programming and i want to get started with web programming specifically javaScript (currently following MDN), could anyone guide me on what i can do best or which materials i can use to get mov…

---

## [javascript:void\[0\]](https://forum.kirupa.com/t/javascript-void-0/646038)

<div class="topic-metadata">

**Author:** [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Replies:** 7\
**Last updated:** [April 1, 2021, 6:09pm UTC](https://forum.kirupa.com/t/javascript-void-0/646038 "2021-04-01T18:09:53Z")

</div>

I was hovering over a link recently and saw one with an href of javascript:void\[0\]. This was pretty surprising, since it’s usually written as javascript:void(0). Granted, the whole thing is supposed to imply meaningless …

[Previous page](https://forum.kirupa.com/c/programming/41.md?page=33)

[Next page](https://forum.kirupa.com/c/programming/41.md?page=35)
