# programming

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

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

**Page:** 34

---

## [Extending Built-in Objects in JavaScript](https://forum.kirupa.com/t/extending-built-in-objects-in-javascript/352078)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 4\
**Last updated:** [October 23, 2021, 8:43am UTC](https://forum.kirupa.com/t/extending-built-in-objects-in-javascript/352078 "2021-10-23T08:43:05Z")

</div>

Take your existing built-in objects and kick them up a few notches by learning how to extend them. This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/extending\_built\_in\_objects\_j…

---

## [Can someone please explain KMP algorithm?](https://forum.kirupa.com/t/can-someone-please-explain-kmp-algorithm/648776)

<div class="topic-metadata">

**Author:** [@csstudent](https://forum.kirupa.com/u/csstudent)\
**Replies:** 3\
**Last updated:** [October 23, 2021, 7:19am UTC](https://forum.kirupa.com/t/can-someone-please-explain-kmp-algorithm/648776 "2021-10-23T07:19:11Z")

</div>

I am studying Knuth-Morris-Pratt algorithm. It is hard to understand. I have spent enough time online, read wiki, GeekForGeeks & TutorialsPoint. I need simple explanation for KMP algorithm & how it works in linear time. …

---

## [What is Hash algorithm ?](https://forum.kirupa.com/t/what-is-hash-algorithm/647708)

<div class="topic-metadata">

**Author:** [@GPMuthu](https://forum.kirupa.com/u/GPMuthu)\
**Replies:** 5\
**Last updated:** [October 19, 2021, 10:16am UTC](https://forum.kirupa.com/t/what-is-hash-algorithm/647708 "2021-10-19T10:16:43Z")

</div>

Hi Nanbarkale, Could you please make some articles about the Hash algorithm with a detailed explanation? Thanks and regards, GP Muthu

---

## [kirupa.com - Introduction to OOP in C#: Classes - Page 1](https://forum.kirupa.com/t/kirupa-com-introduction-to-oop-in-c-classes-page-1/649260)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [October 16, 2021, 6:09am UTC](https://forum.kirupa.com/t/kirupa-com-introduction-to-oop-in-c-classes-page-1/649260 "2021-10-16T06:09:39Z")

</div>

by kirupa | 5 January 2007 In the real world, you categorize and sub-categorize your environment based on the objects that can be found in it. For example, you have a chair which can be categorized as furnitu…

---

## [Explaining What a CDN is to a Five Year Old](https://forum.kirupa.com/t/explaining-what-a-cdn-is-to-a-five-year-old/640685)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [October 9, 2021, 5:08am UTC](https://forum.kirupa.com/t/explaining-what-a-cdn-is-to-a-five-year-old/640685 "2021-10-09T05:08:25Z")

</div>

by kirupa | filed under Web Apps This is a companion discussion topic for the original entry at https://www.kirupa.com/apps/cdn.htm

---

## [The Best Way To Report Errors?](https://forum.kirupa.com/t/the-best-way-to-report-errors/649130)

<div class="topic-metadata">

**Author:** [@Belfry777](https://forum.kirupa.com/u/Belfry777)\
**Replies:** 1\
**Last updated:** [October 3, 2021, 2:08pm UTC](https://forum.kirupa.com/t/the-best-way-to-report-errors/649130 "2021-10-03T14:08:19Z")

</div>

Hello everyone, It has been awhile since my last post, but let me assure you I have been busy. Recently, I have been working on making a game, which when I finish, I will show you guys. For one of the modules, the progr…

---

## [Variable produces 1111 instead of 4](https://forum.kirupa.com/t/variable-produces-1111-instead-of-4/649110)

<div class="topic-metadata">

**Author:** [@sylviaonahighway](https://forum.kirupa.com/u/sylviaonahighway)\
**Replies:** 3\
**Last updated:** [September 29, 2021, 9:08pm UTC](https://forum.kirupa.com/t/variable-produces-1111-instead-of-4/649110 "2021-09-29T21:08:19Z")

</div>

real sorry if the title sucks. So my deal here is that I’m making a cookie clicker wannabe (just to see if i can tbh) and I’m having an issue with freaking counting. So I have code that is like this. on(release){ var…

---

## [Animating Drop Shadows](https://forum.kirupa.com/t/animating-drop-shadows/649096)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [September 28, 2021, 9:39pm UTC](https://forum.kirupa.com/t/animating-drop-shadows/649096 "2021-09-28T21:39:39Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/animations/animating\_drop\_shadows.htm

---

## [Photo Gallery](https://forum.kirupa.com/t/photo-gallery/649069)

<div class="topic-metadata">

**Author:** [@VaiFanatic](https://forum.kirupa.com/u/VaiFanatic)\
**Replies:** 4\
**Last updated:** [September 27, 2021, 4:15pm UTC](https://forum.kirupa.com/t/photo-gallery/649069 "2021-09-27T16:15:30Z")

</div>

Friends, I’ve been scratching my head with the best way to handle displaying a “vast” collection of photos (in this case, real estate) into something that allows all photos to be gone through, while also not filling up t…

---

## [Customizing CSS Animations](https://forum.kirupa.com/t/customizing-css-animations/648619)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 3\
**Last updated:** [September 25, 2021, 5:15pm UTC](https://forum.kirupa.com/t/customizing-css-animations/648619 "2021-09-25T17:15:11Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/animations/customizing\_css\_animations.htm

---

## [Picking a Random Item from an Array](https://forum.kirupa.com/t/picking-a-random-item-from-an-array/399178)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 42\
**Last updated:** [September 25, 2021, 4:38am UTC](https://forum.kirupa.com/t/picking-a-random-item-from-an-array/399178 "2021-09-25T04:38:23Z")

</div>

by kirupa | 7 July 2012 Let's say you have an array called myShows that contains a list of some awesome TV shows that you like to watch: This is a companion discussion topic for the original entry at…

---

## [Code not working for me for page 43 of JavaScript Absolute Beginners Guide book](https://forum.kirupa.com/t/code-not-working-for-me-for-page-43-of-javascript-absolute-beginners-guide-book/648910)

<div class="topic-metadata">

**Author:** [@John\_B](https://forum.kirupa.com/u/John_B)\
**Replies:** 2\
**Last updated:** [September 19, 2021, 6:58am UTC](https://forum.kirupa.com/t/code-not-working-for-me-for-page-43-of-javascript-absolute-beginners-guide-book/648910 "2021-09-19T06:58:55Z")

</div>

I registered the book at Pearson and did not find any link to download the code used in the samples in the book. Is the code available elsewhere? I wrote the code on page 43 into Brackets and it did not work. Neither …

---

## [multiply each item of a array into a new array except one](https://forum.kirupa.com/t/multiply-each-item-of-a-array-into-a-new-array-except-one/648812)

<div class="topic-metadata">

**Author:** [@estopinha](https://forum.kirupa.com/u/estopinha)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 9:29am UTC](https://forum.kirupa.com/t/multiply-each-item-of-a-array-into-a-new-array-except-one/648812 "2021-09-09T09:29:09Z")

</div>

In tests, the first line of the input files contains an integer n, which denotes the number of elements in a array odds. each row i of the subsequent n rows (where 0 \<= i \< n), contains an integer describing odds\[i\] wher…

---

## [Flowchart for JavaScript's this](https://forum.kirupa.com/t/flowchart-for-javascripts-this/648768)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 7\
**Last updated:** [September 4, 2021, 2:24pm UTC](https://forum.kirupa.com/t/flowchart-for-javascripts-this/648768 "2021-09-04T14:24:46Z")

</div>

I’ve seen a few of these before but most only covered the basics. I thought I’d take a stab at it and try to make one that was a little more comprehensive. Here is the result: For the most up-to-date version, see: A…

---

## [Interaction](https://forum.kirupa.com/t/interaction/648719)

<div class="topic-metadata">

**Author:** [@Dadci\_Raouf](https://forum.kirupa.com/u/Dadci_Raouf)\
**Replies:** 2\
**Last updated:** [August 28, 2021, 6:04pm UTC](https://forum.kirupa.com/t/interaction/648719 "2021-08-28T18:04:07Z")

</div>

Hello everyone :wave: I would like to know how we can implement interaction section in our (Fetched cards, blog post) and create a list of bookmarked items like this (React):point\_down:t3:

---

## [Outputting multiple items randomly from array](https://forum.kirupa.com/t/outputting-multiple-items-randomly-from-array/648631)

<div class="topic-metadata">

**Author:** [@Dadci\_Raouf](https://forum.kirupa.com/u/Dadci_Raouf)\
**Replies:** 7\
**Last updated:** [August 28, 2021, 5:08pm UTC](https://forum.kirupa.com/t/outputting-multiple-items-randomly-from-array/648631 "2021-08-28T17:08:48Z")

</div>

Hello everyone, I was wondering how we can output multiple items randomly from an array depending on an input and button, for ex: when we put 3 in the input and click on the button we display 3 random items on the screen…

---

## [Inline-block element use cases](https://forum.kirupa.com/t/inline-block-element-use-cases/648668)

<div class="topic-metadata">

**Author:** [@sephorus](https://forum.kirupa.com/u/sephorus)\
**Replies:** 3\
**Last updated:** [August 26, 2021, 4:53am UTC](https://forum.kirupa.com/t/inline-block-element-use-cases/648668 "2021-08-26T04:53:51Z")

</div>

Hi everyone, Today I am wondering about what are some use cases for inline-block elements. The use cases for display: inline; and display: block; are intuitive to me. Use inline if you want to apply a style to a short …

---

## [JavaScript Object Inheritence](https://forum.kirupa.com/t/javascript-object-inheritence/648679)

<div class="topic-metadata">

**Author:** [@DaisyHillary](https://forum.kirupa.com/u/DaisyHillary)\
**Replies:** 1\
**Last updated:** [August 25, 2021, 4:46pm UTC](https://forum.kirupa.com/t/javascript-object-inheritence/648679 "2021-08-25T16:46:40Z")

</div>

Hello, After working in the book by Kirupa, I have a few questions about the Website Link listed at the end of the chapter (see the bottom part about constructor functions). Firstly, I do not understand what new() does…

---

## [Sluggish render when scrolling fast in webview](https://forum.kirupa.com/t/sluggish-render-when-scrolling-fast-in-webview/648652)

<div class="topic-metadata">

**Author:** [@thedarkknight](https://forum.kirupa.com/u/thedarkknight)\
**Replies:** 2\
**Last updated:** [August 23, 2021, 10:58pm UTC](https://forum.kirupa.com/t/sluggish-render-when-scrolling-fast-in-webview/648652 "2021-08-23T22:58:51Z")

</div>

I’m encountering some scroll issues when I scroll fast in a cordova app that I’m working on. I get parts of the screen that don’t paint as fast as I’m scrolling, so they look like white blocks on the screen for about 1s …

---

## [Thoughts on "HTML5 does not replace the best parts of flash"](https://forum.kirupa.com/t/thoughts-on-html5-does-not-replace-the-best-parts-of-flash/645535)

<div class="topic-metadata">

**Author:** [@travis](https://forum.kirupa.com/u/travis)\
**Replies:** 14\
**Last updated:** [February 10, 2021, 12:57am UTC](https://forum.kirupa.com/t/thoughts-on-html5-does-not-replace-the-best-parts-of-flash/645535 "2021-02-10T00:57:40Z")

</div>

I agree wholeheartedly with this Tweet thread. I get all the issues with Flash but is there anything comparable to Flash? Is there any program or platform that a 13-year-old kid, such as myself back in the day, could st…

---

## [Front-End Web Dev Interview Prep](https://forum.kirupa.com/t/front-end-web-dev-interview-prep/648617)

<div class="topic-metadata">

**Author:** [@sephorus](https://forum.kirupa.com/u/sephorus)\
**Replies:** 1\
**Last updated:** [August 19, 2021, 12:08am UTC](https://forum.kirupa.com/t/front-end-web-dev-interview-prep/648617 "2021-08-19T00:08:53Z")

</div>

Hi, y’all! My name is Joel and this will be my first post on here! I have a Front-End Developer interview coming up, and I was wondering if anyone knows of good resources to prepare for it. I’ve never had an interview …

---

## [Working with External Data in React | kirupa.com](https://forum.kirupa.com/t/working-with-external-data-in-react-kirupa-com/636244)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 12\
**Last updated:** [August 9, 2021, 10:56am UTC](https://forum.kirupa.com/t/working-with-external-data-in-react-kirupa-com/636244 "2021-08-09T10:56:38Z")

</div>

by kirupa | 2 December 2016 Dealing with external data is pretty much standard in web apps today. This "dealing" typically looks as follows: This is a companion discussion topic for the original entry at http:…

---

## [Chrome Feature: Remove alert(), confirm(), and prompt for cross origin iframes](https://forum.kirupa.com/t/chrome-feature-remove-alert-confirm-and-prompt-for-cross-origin-iframes/648472)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 4\
**Last updated:** [August 4, 2021, 10:49am UTC](https://forum.kirupa.com/t/chrome-feature-remove-alert-confirm-and-prompt-for-cross-origin-iframes/648472 "2021-08-04T10:49:06Z")

</div>

This one caught me off guard yesterday. Details here: https://www.chromestatus.com/feature/5148698084376576 While these are not generally common tools for your everyday professional developer, they can be very useful …

---

## [Extending Arrays](https://forum.kirupa.com/t/extending-arrays/643788)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [August 4, 2021, 2:35am UTC](https://forum.kirupa.com/t/extending-arrays/643788 "2021-08-04T02:35:47Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/javascript/extending\_arrays.htm

---

## [Php MySQL database help](https://forum.kirupa.com/t/php-mysql-database-help/648436)

<div class="topic-metadata">

**Author:** [@mukiria](https://forum.kirupa.com/u/mukiria)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 5:10pm UTC](https://forum.kirupa.com/t/php-mysql-database-help/648436 "2021-07-30T17:10:25Z")

</div>

I would like to create 3 dbs connected by foreign keys and have the end user input the data from one form Can anyone please help? The dbs are client, work, and accessories Client \<?php …

---

## [Animation Loops in JavaScript using requestAnimationFrame](https://forum.kirupa.com/t/animation-loops-in-javascript-using-requestanimationframe/648388)

<div class="topic-metadata">

**Author:** [@Felix\_Meyburgh](https://forum.kirupa.com/u/Felix_Meyburgh)\
**Replies:** 4\
**Last updated:** [July 26, 2021, 5:59am UTC](https://forum.kirupa.com/t/animation-loops-in-javascript-using-requestanimationframe/648388 "2021-07-26T05:59:16Z")

</div>

Thanks for this well presented video. How would I change the image randomly from an ever growing image folder like a gallery every time the animation starts.

---

## [Webview example apps](https://forum.kirupa.com/t/webview-example-apps/648369)

<div class="topic-metadata">

**Author:** [@Navdeep\_Singh](https://forum.kirupa.com/u/Navdeep_Singh)\
**Replies:** 1\
**Last updated:** [July 22, 2021, 5:00pm UTC](https://forum.kirupa.com/t/webview-example-apps/648369 "2021-07-22T17:00:49Z")

</div>

Great youtube video! Could you please give us examples of live apps on play store that are entirely built on webview? Thank you!

---

## [Storing and Retrieving an Array from Local Storage | kirupa.com](https://forum.kirupa.com/t/storing-and-retrieving-an-array-from-local-storage-kirupa-com/352344)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 2\
**Last updated:** [July 13, 2021, 11:10pm UTC](https://forum.kirupa.com/t/storing-and-retrieving-an-array-from-local-storage-kirupa-com/352344 "2021-07-13T23:10:43Z")

</div>

by kirupa | 5 November 2012 Local storage is great for storing data that you want to persist across browser sessions. The way local storage works is by storing data in key and value pairs. To retrieve…

---

## [Tunnel mouse trail/follow](https://forum.kirupa.com/t/tunnel-mouse-trail-follow/648097)

<div class="topic-metadata">

**Author:** [@buggles](https://forum.kirupa.com/u/buggles)\
**Replies:** 13\
**Last updated:** [July 9, 2021, 6:07am UTC](https://forum.kirupa.com/t/tunnel-mouse-trail-follow/648097 "2021-07-09T06:07:32Z")

</div>

Howdy codeheads, hope you’re all keeping well. I’m hoping someone can help me ‘hack’ this thing together. As a visual designer (not a coder, but I do have a decent level of understanding code … for a visual person), I w…

---

## [identify frame in javascript](https://forum.kirupa.com/t/identify-frame-in-javascript/648136)

<div class="topic-metadata">

**Author:** [@payback](https://forum.kirupa.com/u/payback)\
**Replies:** 2\
**Last updated:** [July 5, 2021, 2:41pm UTC](https://forum.kirupa.com/t/identify-frame-in-javascript/648136 "2021-07-05T14:41:33Z")

</div>

Hello Gentlemen, I have implemented voice command in a system and the following problem or difficulties appeared : Note - My operating system is windows 10 and browser edge Environment The application has a menu whe…

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

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