Home » Web Development » Page 5
Repainting with values in LinkedStack not working
Web Development

I am making a game, and whenever I'm going to press the new game button, my canvas doesn't update, but my LinkedStack values have already been updated. It's supposedly have shuffled the LinkedStack values.


-added a few parts in my code, and the main problem in my code is that whenever I press new game, the nodes show the correct new value, but whenever it is passed to p

React state changing when pushing nested object
Web Development

I'm trying to add/push a javascript object (let's call this 'session') to this.state.sessions.

I've tried this two ways: 1. Concat'ing the new session

this.setState({sessions: this.state.sessions.concat(session)});
  1. Using React's immutability helpers

    var newState = React.addons.update(this.state, { sessions : {

django - aggregate data according to field in model
Web Development

I have a model with a CharField with choices. I want to aggregate the model and get a list of all of the choices and the number of models in each choice. So if i have:

model1: a
model2: b
model3: c
model4: a
model5: c
model6: c

I want to build a django query set to get the following result (in json if i can)

{a: 2, b: 1, c: 3}

c++ msgsnd and msgrvc stuck in sleep
Web Development

I have small C++ program where main process is "creating data" and sends them to the child (fork) process which should read that data. My problem is that in school my code works well, but on my own laptop both processes get stuck right after the program start. Specifically both of them are in Waiting Channel "do_msgrcv".

Here is link to my code on pastebin (I'm posting whole code, so th

How to read a file from "open With" option of File Explorer?
Web Development

Most of the cases we use (as beginner) OpenFileDialog to open File explorer and we choose files...

But I want, if we right click on the file and choose "open with" option and choose the WPF app, then how it can be read?!!

Adding newline between elements in XSLT
Web Development

I'm beggining in XML and XSLT and I have a problem with adding a new line beetwen elements

Here's XML:

<?xml version="1.0" encoding="UTF-8"?>
    <person id="1">

Windows UAC Security With Exe
Web Development

I have an exe created with an old Borland C++ compiler. It needs administrator privileges to function correctly. Since the app will run at startup, I do not want the user prompted if it's OK to run the program (testing on Win7). My question is is there ANY way to remove that annoying prompt every time the app is run?

I added a manifest file with admin privs and signed it, but it then

how to costumize Dialog header in android studio?
Web Development

so i'm using a costume dialog that ive created in a separate xml file in my project, and i'm coloring the main window a blueish tint, but the main header still remains the default white color,

there is no way to change the font color, size, background for the header ?

is the only thing i can change in the header is just the text ?

this is the dialog >

Restrict span text in to a single horizontal line
Web Development

I've got a span which I need to keep as restrict to a single horizontal line which will not wrap inside it's parent div. The extra bit of text which goes beyond the length of its parent will be hidden.

<div id="parent">

  width: 75px;
  white-space: nowrap;
  overflow: hid

Use more than one source to slide toggle an element
Web Development

I've got a full screen slide down navigation menu with links which when clicked scroll to the relevant section . The menu is slide toggled by clicking on the #hamburger div . what i want is for the menu to slide out of view again when i click on a link but what happens is it slides up and then back down again

<div id="hamburger">
    <nav id="navigation">

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .