# programming

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

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

**Page:** 59

---

## [Script for running a webpack build on localhost](https://forum.kirupa.com/t/script-for-running-a-webpack-build-on-localhost/637972)

<div class="topic-metadata">

**Author:** [@kgraham5225](https://forum.kirupa.com/u/kgraham5225)\
**Replies:** 2\
**Last updated:** [March 26, 2018, 4:55pm UTC](https://forum.kirupa.com/t/script-for-running-a-webpack-build-on-localhost/637972 "2018-03-26T16:55:47Z")

</div>

Hey, I’m new around. I wanted to ask a question and see if anyone knew. I am currently working on shifting a project, it was originally react code built by webpack and run through spring boot in tomcat. I am changing i…

---

## [using swf in a string to populate loader.loadbytes](https://forum.kirupa.com/t/using-swf-in-a-string-to-populate-loader-loadbytes/637961)

<div class="topic-metadata">

**Author:** [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Replies:** 9\
**Last updated:** [March 25, 2018, 5:22am UTC](https://forum.kirupa.com/t/using-swf-in-a-string-to-populate-loader-loadbytes/637961 "2018-03-25T05:22:14Z")

</div>

Hi all, Is it possible to use a string to hold a swf file and then use that in loader.loadbytes to invoke/load the same since I wish to load it directly into the memory.If possible, kindly elaborate with an example. No…

---

## [Webapge](https://forum.kirupa.com/t/webapge/637960)

<div class="topic-metadata">

**Author:** [@warmby](https://forum.kirupa.com/u/warmby)\
**Replies:** 0\
**Last updated:** [March 21, 2018, 6:14am UTC](https://forum.kirupa.com/t/webapge/637960 "2018-03-21T06:14:05Z")

</div>

hey i like your work. and i need your help. actually i need whole html codes to access selfie camera of andriod via webpage and capture of that camera send to other web adrees or any email adress. just tell me you can…

---

## [Map building effeciency in Flash/AS3](https://forum.kirupa.com/t/map-building-effeciency-in-flash-as3/637950)

<div class="topic-metadata">

**Author:** [@cwebb8998](https://forum.kirupa.com/u/cwebb8998)\
**Replies:** 1\
**Last updated:** [March 19, 2018, 1:38pm UTC](https://forum.kirupa.com/t/map-building-effeciency-in-flash-as3/637950 "2018-03-19T13:38:37Z")

</div>

I realize that the answer to this question is probably applicable to everything, not just Actionscript. What i am doing is trying to make a pokemon from scratch just for fun. What i did so far was made my own set of cla…

---

## [loadbytes throws TypeError: Error #1007:](https://forum.kirupa.com/t/loadbytes-throws-typeerror-error-1007/637934)

<div class="topic-metadata">

**Author:** [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Replies:** 6\
**Last updated:** [March 17, 2018, 11:05am UTC](https://forum.kirupa.com/t/loadbytes-throws-typeerror-error-1007/637934 "2018-03-17T11:05:31Z")

</div>

Hi all ! I have been trying out this little snippet of code below - package { import flash.display.Loader; import flash.display.Sprite; import flash.system.ApplicationDomain; import flash.system.LoaderContext; \[S…

---

## [AS3 hitTestObject for Array Works Sometimes and Other Times Doesn't?](https://forum.kirupa.com/t/as3-hittestobject-for-array-works-sometimes-and-other-times-doesnt/637907)

<div class="topic-metadata">

**Author:** [@Twisted4000](https://forum.kirupa.com/u/Twisted4000)\
**Replies:** 2\
**Last updated:** [March 17, 2018, 4:25am UTC](https://forum.kirupa.com/t/as3-hittestobject-for-array-works-sometimes-and-other-times-doesnt/637907 "2018-03-17T04:25:51Z")

</div>

In a Flash game I’m trying to make, you play as a character with a gun and you shoot your enemies (like most games). I have the enemies (“ghosts”) set in an array and currently they appear in random spots on the screen. …

---

## [Javascript Substring Algorithm](https://forum.kirupa.com/t/javascript-substring-algorithm/637921)

<div class="topic-metadata">

**Author:** [@alphons3k](https://forum.kirupa.com/u/alphons3k)\
**Replies:** 2\
**Last updated:** [March 8, 2018, 5:11am UTC](https://forum.kirupa.com/t/javascript-substring-algorithm/637921 "2018-03-08T05:11:51Z")

</div>

i need to make a function /method given a string it will substring it to as many sets as the length of the string. EG "hi" —\> h,i, hi "bye" —\> b,y,e,by,ye, bye "home" —\> h,o,m,e,ho, om,me, hom, ome, home "kirupa" …

---

## [One field two words](https://forum.kirupa.com/t/one-field-two-words/637897)

<div class="topic-metadata">

**Author:** [@erezb1](https://forum.kirupa.com/u/erezb1)\
**Replies:** 2\
**Last updated:** [March 1, 2018, 12:35pm UTC](https://forum.kirupa.com/t/one-field-two-words/637897 "2018-03-01T12:35:12Z")

</div>

Hi guys wondered if i have one text field with two words, one needs to be bold and one regular. Is there an AS3 code which can achieve it ? Thanks

---

## [Checking the URL to ensure the file is being viewed from my page](https://forum.kirupa.com/t/checking-the-url-to-ensure-the-file-is-being-viewed-from-my-page/634228)

<div class="topic-metadata">

**Author:** [@e\_v](https://forum.kirupa.com/u/e_v)\
**Replies:** 27\
**Last updated:** [February 28, 2018, 1:07pm UTC](https://forum.kirupa.com/t/checking-the-url-to-ensure-the-file-is-being-viewed-from-my-page/634228 "2018-02-28T13:07:18Z")

</div>

Is it reasonable to assume that if I check the URL via ExternalInterface.call("window.location.href.toString"), the first characters should match "http://mydomainname.com" if that is where I'm hosting my game? I'm tryin…

---

## [Constraining the Falling Snow Effect | kirupa.com](https://forum.kirupa.com/t/constraining-the-falling-snow-effect-kirupa-com/637843)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 1\
**Last updated:** [February 12, 2018, 2:27am UTC](https://forum.kirupa.com/t/constraining-the-falling-snow-effect-kirupa-com/637843 "2018-02-12T02:27:46Z")

</div>

by krilnon | 21 December 2014 The Falling Snow Effect tutorial shows you how to write some HTML, CSS, and JavaScript to create falling snow. As it stands today, the snow effect causes the snowfla…

---

## [React-redux error: Failed to execute 'removeChild' on 'Node'](https://forum.kirupa.com/t/react-redux-error-failed-to-execute-removechild-on-node/637803)

<div class="topic-metadata">

**Author:** [@Shyam\_Prasath](https://forum.kirupa.com/u/Shyam_Prasath)\
**Replies:** 2\
**Last updated:** [February 10, 2018, 6:02pm UTC](https://forum.kirupa.com/t/react-redux-error-failed-to-execute-removechild-on-node/637803 "2018-02-10T18:02:47Z")

</div>

---

## [How to create multipage pdf with html/css/img markup?](https://forum.kirupa.com/t/how-to-create-multipage-pdf-with-html-css-img-markup/637837)

<div class="topic-metadata">

**Author:** [@selvaonline](https://forum.kirupa.com/u/selvaonline)\
**Replies:** 0\
**Last updated:** [February 9, 2018, 1:58am UTC](https://forum.kirupa.com/t/how-to-create-multipage-pdf-with-html-css-img-markup/637837 "2018-02-09T01:58:36Z")

</div>

I have opened up modal with html markup,css, image background and i want to convert this modal to a high quality, multipage pdf. As i googled, few people suggested, phantomjs to screen capture and pdf generation. What is…

---

## [Postion an element with javascript](https://forum.kirupa.com/t/postion-an-element-with-javascript/636125)

<div class="topic-metadata">

**Author:** [@Numinus](https://forum.kirupa.com/u/Numinus)\
**Replies:** 1\
**Last updated:** [March 2, 2017, 1:23am UTC](https://forum.kirupa.com/t/postion-an-element-with-javascript/636125 "2017-03-02T01:23:33Z")

</div>

var hiddenText = document.createElement("TEXTAREA"); document.body.appendChild(hiddenText); hiddenText.setAttribute("id", "hiddenText"); how do i use plain javascript to position this textarea off the page so that is un…

---

## [Beginner need help !!!!! Slick grid in react js](https://forum.kirupa.com/t/beginner-need-help-slick-grid-in-react-js/637815)

<div class="topic-metadata">

**Author:** [@Bhagyalakshmi](https://forum.kirupa.com/u/Bhagyalakshmi)\
**Replies:** 0\
**Last updated:** [February 4, 2018, 6:33pm UTC](https://forum.kirupa.com/t/beginner-need-help-slick-grid-in-react-js/637815 "2018-02-04T18:33:27Z")

</div>

Hi, I need your help on integrating jquery plugin (legacy library) of slick grid into the latest react js version. I tried by npm install slickgrid, slickgrid es6 and slickgrid 6pac, but it didn’t helped. I got an erro…

---

## [Adobe Animate CC HTML5 Canvas As3 loadMovie(); equivalent](https://forum.kirupa.com/t/adobe-animate-cc-html5-canvas-as3-loadmovie-equivalent/637812)

<div class="topic-metadata">

**Author:** [@agentparas](https://forum.kirupa.com/u/agentparas)\
**Replies:** 0\
**Last updated:** [February 3, 2018, 8:08am UTC](https://forum.kirupa.com/t/adobe-animate-cc-html5-canvas-as3-loadmovie-equivalent/637812 "2018-02-03T08:08:24Z")

</div>

I’m an old sudden-newbie attempting to make the transition from Flash to Adobe Animate CC and learning about exporting my banner animations to HTML5 Canvas but it seems like the “industry” is in flux and Animate CC now c…

---

## [Navigate Modal in React using onKeyDown and Portal do I need onFocus?](https://forum.kirupa.com/t/navigate-modal-in-react-using-onkeydown-and-portal-do-i-need-onfocus/637802)

<div class="topic-metadata">

**Author:** [@JohnHansenArtist](https://forum.kirupa.com/u/JohnHansenArtist)\
**Replies:** 3\
**Last updated:** [February 1, 2018, 2:45pm UTC](https://forum.kirupa.com/t/navigate-modal-in-react-using-onkeydown-and-portal-do-i-need-onfocus/637802 "2018-02-01T14:45:49Z")

</div>

Hi all, I want to be able to give the user the ability to use the keyboard left/right arrow keys to move between images that are loaded in a modal. The modal is mounted using ReactDOM.createPortal(). An array of images …

---

## [Every time I work with databases](https://forum.kirupa.com/t/every-time-i-work-with-databases/637794)

<div class="topic-metadata">

**Author:** [@AgnesUren](https://forum.kirupa.com/u/AgnesUren)\
**Replies:** 4\
**Last updated:** [February 1, 2018, 2:24am UTC](https://forum.kirupa.com/t/every-time-i-work-with-databases/637794 "2018-02-01T02:24:03Z")

</div>

One of my friends asked me about help. Her database on SQL Server stopped working. She tried to open it, but wasn’t successfully. The database didn’t open by double clicking.

---

## [Bootstrap Responsive Navbar](https://forum.kirupa.com/t/bootstrap-responsive-navbar/637757)

<div class="topic-metadata">

**Author:** [@VaiFanatic](https://forum.kirupa.com/u/VaiFanatic)\
**Replies:** 3\
**Last updated:** [January 30, 2018, 11:05pm UTC](https://forum.kirupa.com/t/bootstrap-responsive-navbar/637757 "2018-01-30T23:05:01Z")

</div>

So, working on another page, and I’m trying to make it so that the navbar becomes the overused hamburger we all know and love using bootstrap. One big issue I’m having is that even customizing bootstrap to my needs, the…

---

## [\[php\] Validating email (too Picky)](https://forum.kirupa.com/t/php-validating-email-too-picky/236695)

<div class="topic-metadata">

**Author:** [@kingofnukes](https://forum.kirupa.com/u/kingofnukes)\
**Replies:** 5\
**Last updated:** [January 29, 2018, 2:47am UTC](https://forum.kirupa.com/t/php-validating-email-too-picky/236695 "2018-01-29T02:47:09Z")

</div>

Ok, I need to keep my site bot free, one way I'm keeping them out is with email validation. I currently found a script and it works good, but is very strict. Email services such as msn, hotmail, and aim through out rejec…

---

## [Progressive Web Apps (PWA) and Windows 10](https://forum.kirupa.com/t/progressive-web-apps-pwa-and-windows-10/637192)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 7\
**Last updated:** [January 26, 2018, 2:20pm UTC](https://forum.kirupa.com/t/progressive-web-apps-pwa-and-windows-10/637192 "2018-01-26T14:20:00Z")

</div>

Hi everyone! I recently gave a talk at the Edge Summit around what I spend a lot of my hours working on - Microsoft’s PWA plans and how it integrates nicely with the larger goal of re-using web code for both web and nat…

---

## [Simple Redux with nested state?](https://forum.kirupa.com/t/simple-redux-with-nested-state/637756)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 1\
**Last updated:** [January 24, 2018, 5:36pm UTC](https://forum.kirupa.com/t/simple-redux-with-nested-state/637756 "2018-01-24T17:36:14Z")

</div>

I’m working on a React-Redux conversion of a part of an app with a deeply nested state. It seems the common approach is to use normalizr for this, but I’m trying to keep things as simple as possible and the maintain the …

---

## [i have created a home, about and contact tab in a single page with react routing and and want to implement all the react JS Component lifecycle could any one can help me ?](https://forum.kirupa.com/t/i-have-created-a-home-about-and-contact-tab-in-a-single-page-with-react-routing-and-and-want-to-implement-all-the-react-js-component-lifecycle-could-any-one-can-help-me/637746)

<div class="topic-metadata">

**Author:** [@Asra\_Eusuph](https://forum.kirupa.com/u/Asra_Eusuph)\
**Replies:** 1\
**Last updated:** [January 18, 2018, 4:31pm UTC](https://forum.kirupa.com/t/i-have-created-a-home-about-and-contact-tab-in-a-single-page-with-react-routing-and-and-want-to-implement-all-the-react-js-component-lifecycle-could-any-one-can-help-me/637746 "2018-01-18T16:31:29Z")

</div>

i have created a home, about and contact tab in a single page with react routing and and want to implement all the react JS Component lifecycle could any one can help me ?

---

## [Clear socker input buffer \< SOLVED](https://forum.kirupa.com/t/clear-socker-input-buffer-solved/637739)

<div class="topic-metadata">

**Author:** [@McLucky](https://forum.kirupa.com/u/McLucky)\
**Replies:** 1\
**Last updated:** [January 12, 2018, 9:28pm UTC](https://forum.kirupa.com/t/clear-socker-input-buffer-solved/637739 "2018-01-12T21:28:18Z")

</div>

Hi all, My question: I’m using a socket in an AIR project to receive serial data from an arduino. However, my arduino spits out the data too fast, so the input buffer keeps filling up. I know the OUTput buffer can b…

---

## [Please review my site!](https://forum.kirupa.com/t/please-review-my-site/637240)

<div class="topic-metadata">

**Author:** [@Sasha\_Sydorenko](https://forum.kirupa.com/u/Sasha_Sydorenko)\
**Replies:** 3\
**Last updated:** [October 1, 2017, 5:21pm UTC](https://forum.kirupa.com/t/please-review-my-site/637240 "2017-10-01T17:21:07Z")

</div>

Hello! Please review my site http://life-reactor.com There are some problems with my page speed. I already compressed my images. What can i do more?

---

## [Como exibir em outra página para outros usuários](https://forum.kirupa.com/t/como-exibir-em-outra-pagina-para-outros-usuarios/637723)

<div class="topic-metadata">

**Author:** [@sacsites](https://forum.kirupa.com/u/sacsites)\
**Replies:** 1\
**Last updated:** [January 9, 2018, 10:50pm UTC](https://forum.kirupa.com/t/como-exibir-em-outra-pagina-para-outros-usuarios/637723 "2018-01-09T22:50:44Z")

</div>

Text in português. Após capturar a webcam do usuario usando getusermedia, como exibir-la em outra página para outros usuários? Pode ser com session PHP? video.src = URL.createObjectURL(stream); Phpsessions = variavel …

---

## [Chapter 16 - Babel Install Error](https://forum.kirupa.com/t/chapter-16-babel-install-error/637684)

<div class="topic-metadata">

**Author:** [@zfreitag34](https://forum.kirupa.com/u/zfreitag34)\
**Replies:** 3\
**Last updated:** [January 3, 2018, 9:59pm UTC](https://forum.kirupa.com/t/chapter-16-babel-install-error/637684 "2018-01-03T21:59:24Z")

</div>

I had trouble setting up Bable: ./node\_modules/.bin/webpack ERROR in Entry module not found: Error: Can’t resolve ‘babel’ BREAKING CHANGE: It’s no longer allowed to omit the ‘-loader’ suffix when using loaders. You n…

---

## [How to get coordinates of two touch points simultaneously? AS3 AIR](https://forum.kirupa.com/t/how-to-get-coordinates-of-two-touch-points-simultaneously-as3-air/637694)

<div class="topic-metadata">

**Author:** [@ekoneo](https://forum.kirupa.com/u/ekoneo)\
**Replies:** 1\
**Last updated:** [January 3, 2018, 11:49am UTC](https://forum.kirupa.com/t/how-to-get-coordinates-of-two-touch-points-simultaneously-as3-air/637694 "2018-01-03T11:49:04Z")

</div>

Dear All, After my researches, I prepare a simple .fla. I try to write two touch points coordinates simultaneously. To separate 1th and 2th touches, I used TouchID odd even condition simultaneously. But I couldnt achiev…

---

## [PHP Help! (SOLVED)](https://forum.kirupa.com/t/php-help-solved/637676)

<div class="topic-metadata">

**Author:** [@bbpanzu](https://forum.kirupa.com/u/bbpanzu)\
**Replies:** 0\
**Last updated:** [December 30, 2017, 6:26am UTC](https://forum.kirupa.com/t/php-help-solved/637676 "2017-12-30T06:26:00Z")

</div>

This is the code i use: \<?php $target\_dir = "uploads/"; $target\_file = $target\_dir . basename($\_FILES\["fileToUpload"\]\["name"\]); $uploadOk = 1; $imageFileType = strtolower(pathinfo($target\_file,PATHINFO\_EXTENSION)); // C…

---

## [Transferring Properties in React | kirupa.com](https://forum.kirupa.com/t/transferring-properties-in-react-kirupa-com/636203)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 8\
**Last updated:** [December 26, 2017, 3:23am UTC](https://forum.kirupa.com/t/transferring-properties-in-react-kirupa-com/636203 "2017-12-26T03:23:59Z")

</div>

There is a frustrating side to working with properties. We kinda saw this side in the previous tutorial. Passing properties from one component to another is nice and simple when you are dealing with only one layer of com…

---

## [Devops, vagrant? Your insight is appreciated](https://forum.kirupa.com/t/devops-vagrant-your-insight-is-appreciated/637614)

<div class="topic-metadata">

**Author:** [@Casey\_Carnnia](https://forum.kirupa.com/u/Casey_Carnnia)\
**Replies:** 2\
**Last updated:** [December 18, 2017, 6:18pm UTC](https://forum.kirupa.com/t/devops-vagrant-your-insight-is-appreciated/637614 "2017-12-18T18:18:11Z")

</div>

I just watched the “Easily Creating Your React Dev Environment” video. I want to set up my local development environment such that mimics the production. Mostly because our current production environment is simply a LAMP…

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

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