Quantcast
Channel: Question and Answer » programming
Browsing all 103 articles
Browse latest View live

Decoupling input from game states / entity behavior

I’m looking for a way or general best practice advices for decoupling the architecture of my game, in the example below the input from the current game state workflow / entity behavior. While I’m all...

View Article


“'Serial' does not name a type” error

I’m getting a "'Serial' does not name a type" error when this program is compiled. I need for the 8 channels of voltage to be displayed. I’m sure it’s a simple fix, however I’m still learning Arduino...

View Article


BASH dd problem

i am trying to learn bash and now im trying to do a script for burning isos. I made the number “4″ command to make sure the variables were right. the message i get when i complete my program and...

View Article

Using multline or equation based on a boolean flag

I am trying to define a new environment myeq which can either be an equation or a multline. My use case is that in the preamble, I will define myeq to be either replicate the functionaly of equation or...

View Article

Can I reprogram my SPI flash wirelessly?

I am working on an application which stores specific model information in the SPI flash. The hardware is the same between the five different types of units. They are typically programmed with model...

View Article


Difference between FIQ and IRQ

Im working on TI based processors now and they have 2 types of Interrupt configuration(FIQ or IRQ).I have seen such interrupts before when i was doing a hobby project using a LPC1778 but since i didnt...

View Article

How are pocket dimensions created in multiplayer games? (programming aspect)...

How do multiplayer games deal with multiple instances/dungeons/regions? I’m familiar with server clustering which is what larger games use such as Eve and World of Warcraft. How do games such as...

View Article

Handling data across multiple remote workers and in R [closed]

I am a software engineer consultant that is making a move into data science. I have landed my first contract working with datasets and R. All workers on this project are remote and, as far as I can...

View Article


Singular matrix in GMM based on variational Bayes computation

I have implemented some codes according to the variational inference here. In the code $W_k$ is computed according to $$ W_k^{-1}=W_0^{-1}+N_kS_k+frac{beta_0N_k}{beta_0+N_k}(bar x_k-mu_0)(bar...

View Article


How can I control a DSLR camera programmatically over Wi-Fi? [closed]

I’m a programmer and writing an application in C# (Windows 7) which should take pictures (and also download them) via Wi-Fi. I can’t use USB because the camera is about 50 meters away and mounted at a...

View Article

Trying to use yield to wait for a few seconds to avoid the sounds from...

Ok so when my player hits a wall (Enemy tag). My player is destroyed after a certain amount of time. During this time, I disabled the mesh renderer on impact so it “appears” as if the player is...

View Article

Image may be NSFW.
Clik here to view.

Pygame stack on Windows platform [closed]

When I run Pygame-based program it show busy and not responding. Any help is greatly appreciated]1

View Article

Image may be NSFW.
Clik here to view.

Problem between pgfkeys, tikz and personal macro

The following minimal working example shows the problem. The mainmacro is an example of what I need; here I want to use my keys and keys from tikz (like draw,color,shape). The result is fine only if I...

View Article


Embedding Cmx.io code in LaTex?

This may seem a bit silly, but here goes. There’s a project called Cmx.io that allows you to create xkcd-style comics using an HTML markup. I wanted to include comics like these in a book I am writing...

View Article

How, if at all, are some programming languages inherently less safe?

Can it be that applications written on certain languages are inherently less safe, no matter how hard you try to get it straight? Or, can it be that some programming paradigms are less safe than...

View Article


Is It Better To Generate A Pre-Generated Map or A Randomly Generated Map When...

So I am contemplating whether or not to add a Pre-Generated Map or a randomly generated map into my game. But I also need to add Tile properties into the map (i.e. so that water tiles aren’t being...

View Article

Calculating descriptive statistics

I’m writing a paper that involves many values. In order to be consistent in all the papers, I’m using def and xint to assign and calculate these values. However, in part of this paper I have to present...

View Article


Computer skills for electronics [closed]

I’m currently in my 3rd year in EE course. Here, where I live, you do the basic EE course and then chose your emphasis between telecommunications, computing systems, power engineering or electronics. I...

View Article

How to save and restore the nodes between tikzpictures?

My English is not good enough so I beg you to excuse me if the question is long The next code is not very interesting but it may illustrate correctly my problem. I have a lot of macros and I need...

View Article

Best way to get max distance between a pair of nodes in a static set

I need to find the maximum distance between a set of nodes (given Lon/Lat coords). Currently, I’m looping through every combination of node and if the distance between those two nodes is greater than...

View Article
Browsing all 103 articles
Browse latest View live