0
votes
0answers
21 views

Evenly Distribute students into rooms based on student study subjects and room capacity limitations

The problem is that I need an algorithm (preferably in PHP) to solve the following problem. Students need to be placed into dorm rooms of varying capacities based on the subjects the student is ...
1
vote
0answers
16 views

Is there a stricter strtoull() in any ubiquitous C library?

I want a function that will interpret a string as a strictly unsigned integer, failing when the string overflows, represents a negative number, or does not represent a number. strtoull() does set ...
0
votes
0answers
6 views

Run RSpec from within a ruby script while refreshing all ruby configs etc

I'm working with a very large project with tons of established tests that include some reasonably complicated environment setups and what not. I've recently run into a situation testing some ...
0
votes
0answers
18 views

Best way to render a 3d model with detailed 'probe points' in a webpage

I'm currently doing some research into how I could best load up a 3d model from a database and overlay 'points' that have detailed information about them on a webpage. It would be something similar to ...
-2
votes
1answer
79 views

can non-programing fizzbuzz work?

We all know what a fizzbuzz is and I've seen many varients of programs to be implemented. However, it takes time to watch someone write the code out, it seems time inefficent to sit there watching ...
-1
votes
0answers
22 views

Foreign key validation in Model

I'm proposing you a question posted at Stack Overflow but that in my opinion deserves to stay here because it concerns the conceptual world of programming, independently of the technology used to ...
0
votes
2answers
79 views

How do programs write to the console using their own procedures?

I'll make this as painless as possible ... Here's an example: On the PCSX2 emulator it writes its progress ("progress" meaning stuff like, "ERROR: TLB miss: x", "LOAD BIOS FAILED! INVALID MAGIC ...
0
votes
0answers
41 views

What permissions do I need to use an API? [on hold]

I am creating a web app in which I am using the API of another web app. The API is public. My whole webapp relies on that web app. Now I need to know what permissions do I need to start using their ...
-2
votes
0answers
16 views

Case studies for online classified sites like Craigslist? [on hold]

I've started to go over what would go into building a small classified advertising site (note: no electronic payments of any kind), and I'm wondering if there are, just as there are hundreds of case ...
0
votes
0answers
34 views

Implementing a generic and covariant Set in Scala

I'm struggling with manually implementing a simple purely functional Set that's also generic and covariant on its type parameter: Set must be a trait, allowing for multiple implementations. it must ...
0
votes
0answers
43 views

Html/php script (POST method) works on local host but doesn't do anything on my hosting website [migrated]

I want to make a script for my website that it shows a form and a visitor can write his email and a message this is the code: <html> <head> <title>Feedback</title> ...
-1
votes
0answers
19 views

Good example of annotated coffee-script code [on hold]

I love writing JavaScript. I also love CoffeeScript. The thing that I miss in .coffee files is the beautifully annotated JSDoc and more importantly the way the code looks. I'm aware that there are ...
0
votes
2answers
35 views

Encapsulation: Separate functions for separate variables, or return a table? [PHP]

I have been making a website with PHP and I have a few classes, so far none of them really follow encapsulation rules of OOP. Lets say I have a user class like so: class User{ public $username; ...
3
votes
1answer
356 views

Why are there so many CSS properties which are essentially the same?

This answer really made me wonder. I've written CSS before and (usually) I don't really bother to support browsers other than recent firefox and chrome, but in researching I've noticed that, for the ...
0
votes
0answers
22 views

JavaScript Compression and Caching of Assets

I'm working on an idea that i can't seem to find a good answer though hours and hours of searching, I'm planning a small Canvas/WebGL Application this application will be using WebSockets to talk to ...
-3
votes
0answers
19 views

What's a cost-efficient solution for mobile app backend hosting? [on hold]

Looking to develop some simplistic mobile apps (think Yo), but the primary challenge is that they all require a backend, even the simplest of the simplest. Can anyone advise which backend hosting to ...
-1
votes
0answers
5 views

Cannot pass CasperJS result back to PHP [migrated]

I am trying to pass CasperJS results to PHP but it's not working (the output is empty). Here is my code: <?php exec("casperjs test.js", $array); print_r($array); ?> The exec works for any ...
1
vote
1answer
62 views

How do VMs implement function calling?

I'm reading a compiler textbook that compiles to some form of assembly. Since I don't know this assembly language I decided to invent my own simple "assembly language" and implement a basic "virtual ...
3
votes
4answers
96 views

In general, should an organization adopt a single methodology or decide on a per-project basis?

I work for a company that, in my opinion, should be doing all of it's web development work in a fully agile manner. We have vague, competing ideas about the product at any given time. And we have ...
-3
votes
0answers
44 views

Fastest means of communication within a WIFI network [on hold]

I'm looking for a way by which two devices could communicate multiple zipped files within the network. I'm planning to do it as a http service call using a server, but it might be slow when compared ...
0
votes
0answers
57 views

Object based programming paradigm [on hold]

How does classes enforce information hiding and abstraction in object based programming? also,How does object based programming localizes the implementation details. Note Object based programming ...
0
votes
1answer
21 views

Java swing - fading in a component by alpha setBackground, correct synchronization

I am making my first GUI, for a project of mine. I made the first page, login for it. Now I have a login button which should let the controller know when it's clicked and pass the username and ...
0
votes
1answer
148 views

I made improvements to free code I found online and notified the author. Was this the right thing to do?

I recently used a library from http://www.braemoor.co.uk/software/index.shtml (the EU VAT No validation library at http://www.braemoor.co.uk/software/vat.shtml) in a project at work. It mentions as ...
0
votes
0answers
19 views

docker-izing a classical db-based webapp - single or multiple containers?

i have a classic java webapp. its composed of a database (postgresql), a servlet container (tomcat) and my code (deployed on tomcat as a *.war file). i want to package/deploy it using docker (mostly ...
0
votes
1answer
29 views

Storing and accessing settings from database query

I am trying to figure out the best way to accomplish this so feel free to criticize my thought process. My tool has different locales and each locale can have different settings for the tool. For ...
0
votes
2answers
26 views

Changing an int to be a string in PHP / MySQL Schema

Background I'm trying to decide the best way to manage a change in requirements. Currently when an admin is assigned to a ticket, the ticket header record is given an owner and the ownerID field is ...
0
votes
1answer
83 views

Programming a promotions engine

I am trying to implement a promotions engine for an e-commerce application and I want to figure out how such engines work especially in situations like the following. Buy X Items from Category A ...
-3
votes
0answers
65 views

Does it matter if a website is W3C valid? [on hold]

When you show employers examples of websites that you developed (frontend), do they look (and care) if the website is W3C valid? For example, I never use alt attributes because it's time consuming ...
23
votes
8answers
3k views

Why was the first compiler written before the first interpreter?

The first compiler was written by Grace Hopper in 1952 while the Lisp interpreter was written in 1958 by John McCarthy's student Steve Russell. Writing a compiler seems like a much harder problem than ...
0
votes
1answer
65 views

Pattern that prevents events to trigger themselves

I am working at the client-side part of a web application, that is responsible for getting answers from users for specific questions and storing and restoring them from the database (or cookies) and I ...
0
votes
0answers
40 views

High-level Software Architecture Patterns [on hold]

Based on Big Ball of Mud, where the Pipeline pattern is mentioned, I'd like to know what other high-level patterns/architectures are there (besides modular and layered architectures). I'm mainly ...
0
votes
1answer
111 views

Why (most?) retro computer emulators are single threaded?

All real computer hardware works in parallel. So why most emulators of retro systems (like NES) are single threaded (or I'm not right?)? You have main loop and you counting CPU cycles and after ...
0
votes
1answer
24 views

Sequentially/parallel algorithm for extracting blob outer perimeter/contour length

I have labelled the connected components in a binary image and found their areas and bounding boxes. The components are not necessarily filled, and may contain holes. I wish to identify the component ...
1
vote
3answers
145 views

How do you deal with clients asking for manual data edits in the database?

I've recently started working on a legacy application that frankly doesn't do all that it should. It's lacking a lot of features, has barely any administration capacities and doesn't check half the ...
1
vote
2answers
206 views

Is this a candidate for Singleton?

I have an external thermometer connected via USB that is controlled by my SW. Different parts of my system will use it but never at the same time (all in one thread). However, it is a single device ...
2
votes
1answer
67 views

will having an event with subscribers prevent an object from being GC'ed?

I have an object, which has an event which in turn has subscribers. I know that the subscribing objects won't get GC'ed since the delegate they stored for the event is connected to them, thus keeping ...
0
votes
0answers
35 views

Daily reading application

I am learning MVC and am trying to make an application that takes daily readings input by the user and puts the information into a table of the work week. For example, in week 1, the user will put in ...
-2
votes
0answers
46 views

Good way to improve java [on hold]

I just finished my first year in computer science and have learnt java as a core part of my course. So far I am familiar with the following: loops, conditional statements, objects, basic GUI etc ...
1
vote
0answers
155 views

Have I created a Big Ball of Mud?

I'm working on a WPF application, trying to stay strict in separating View, ViewModel and Model. My application has a few different views in a relatively flat hierarchy. There is one view for editing ...
0
votes
0answers
8 views

Can I use cfmessagebox within cfloop [on hold]

Can I use cfmessage within a cfloop? Below is my code. Table goal has fields goal and dept. Form 1 has 2 form fields: text for goal and multi select for dept. I want to insert new values only if ...
-2
votes
0answers
33 views

Project Review / Validation / Guidance [on hold]

As part of my learning, i am planning a sample project based on my knowledge. Is there anyway to validate the project by means of architecture, design , coding etc also concurrency, logging, ...
1
vote
2answers
124 views

Do I need to care about 'Thread safety' in java web applications

I have general understanding that what thread safety means , but I don't know much about threads in context of a java webapplication. I am just curious to know that do I need to concern about thread ...
-3
votes
1answer
116 views

Newbie worried about starting java career [on hold]

I'm a newbie student fascinated with java its functioning and its future scope. I've already completed my college but I didn't get a job so currently I'm working as a BPO employee but I haven't given ...
2
votes
0answers
60 views

JavaScript Combination Inheritance Pattern

In the chapter of Professional JavaScript for Web Developers on OOP, Nicholas Zachas describes a JavaScript inheritance pattern which he refers to as combination inheritance. The basic idea is that ...
2
votes
0answers
193 views

Is there a name for this anti-pattern? (Variable has context-dependent meaning) [on hold]

I'm working on a legacy system with troubling behavior - it uses the same identifiers to signify different things in different places. The system in question is a CRM system. It uses special codes ...
-3
votes
0answers
94 views

Found NDA code online, does the NDA effect me? [on hold]

There is a hardware vendor that requires an NDA agreement to use their libraries. The process to get an NDA signed is time consuming and probably requires the purchase of an SDK. Using Google I was ...
4
votes
2answers
474 views

If statements in “generic” assembly?

I'm reading a relatively 'friendly' and simple book about compilers named "Let's Build A Compiler" (originally a series of articles). The compiler written in the book generates instructions in some ...
0
votes
0answers
87 views

Where should light come from in a programmers environment? [on hold]

My current setup at home has me with a small 60w incandescent light 7ft behind me. The room is lit like a dungeon and I'd like to change that. Where should the light come from if a desk is along ...
0
votes
1answer
19 views

Combining 3rd party javascript libraries with my code, then using Closure Compiler

I'm using multiple third party javascript libraries in my website, and right now I'm keeping each third party library as a separate .js file, with its own <script> tag. But I would like to use ...
0
votes
0answers
3 views

HTA and VBS dynamic list and opening file in list [migrated]

First off new here and programming in general. I am trying to build an hta that can load various vbs scripts from an outside folder to make it more modular. I am current getting stuck at trying to ...

15 30 50 per page