3
votes
2answers
79 views

How to infer the result of a query?

To understand what a query does, I have always thought the following is the procedure on evaluating a query: Form the table as specified in the FROM clause. Pick the rows from that table as ...
2
votes
0answers
52 views

Pattern matching against two similar types

What is the best way to handle pattern matching in the following situation? sealed trait A final case class A1() final case class A2() final case class A3() sealed trait B final case class B1() ...
-3
votes
1answer
61 views

Creating multiple houses in Java? [on hold]

everyone! I created a program that would draw a house in Java, which is: import java.awt.*; import java.applet.*; // Program to draw a house public class House extends Applet { public void ...
-4
votes
0answers
33 views

Can C++/CLR Property Grid manage/edit regular Win32 C++ objects/structs? [on hold]

I want to build a GUI front-end for my regular C++ program and I was wondering if C++/CLR based Win Forms can serve as one without hacks/workarounds. I mostly want several Form Components (Like a ...
1
vote
2answers
105 views

Agile Use Of Dedicated Teams

When reading the Agile Manifesto, they don't mention anything about dedicated teams. However on some websites (example: this article on agile teams) they claim it's necessary to have a dedicated team ...
-4
votes
0answers
41 views

What everything should I know by heart in PHP? [on hold]

I tried to google this question with my best ability and couldn't find any answer. I'm a new(ish) PHP programmer and learning PHP kind of stresses me out, because I don't know what I should be ...
-6
votes
0answers
39 views

Does microsoft prefers visual languages in his competition [on hold]

I’m confused about which language to prefer? I know C, C++, VB.NET basics I’m participating in a competition of Microsoft so should I prepare my vb.net or I should consist c/c++ Please Help me out ...
-1
votes
0answers
81 views

Error: Code too big for 64k [on hold]

Im having a bit of an issue with a simple program I'm trying to build. Im using an IDE to code a program I wish to turn into an app in a few months. After 7500 lines of code I receive and error ...
-2
votes
0answers
240 views

I have a Computer Science degree but I don't feel like I know how to program [on hold]

Well I went through university to obtain my Bachelors in computer science but I don't feel confident at all in programming. I know, I know, practice. Well I am practicing but I feel that it will be ...
0
votes
0answers
94 views

How do I search the leaves of a tree where each node could have more than two children? [migrated]

I'm trying to search the leaves of a tree data structure for a target value. My function looks like this: def searchLeaves(self, target): #DFS if len(self.children == 0): #is a leaf ...
-1
votes
1answer
54 views

How to create a folder in a program's own directory, and create folders in the folders? [on hold]

I need my program to be able to create sixteen folders in its root directory where the .exe file is (Windows), and I need each folder to have preceding folders inside that contain more information, ...
-3
votes
0answers
42 views

A way to generate a text file with the name of every game installed in a computer [on hold]

I would like to make an aplication with Visual Studio that, upon start, explore every file in the user's computer looking for games and store them in a database. With that database, we create the user ...
-2
votes
0answers
29 views

Protecting clients interests when using offshore developers [on hold]

I'm planning to outsource some work for development using parse.com. Since I Want to protect my clients interest how can I ensure that their offshore developers don't have access to production data? ...
0
votes
0answers
4 views

Java j2ee JSTL cannot print a list of objetcs [migrated]

i'm currently working on a small Java J2E project. I want to print a list of objects in a *.jsp page, but there's an error i can't seem to get rid of. My .jsp page : <%@ page language="java" ...
2
votes
1answer
93 views

What happens when one reaches their framework's maximum requests per second?

I've been dabbling in code for many years now but it's always been personal projects. I don't have experience with much traffic. I was recently reading through a "Hello, World." tutorial for ...
-3
votes
0answers
47 views

Generate random numbers in java…! [on hold]

I'm writing a code for a command line game in which I want to shuffle numbers randomly. i created 3 different functions. Each function generates a number different from other. and those 3 functions ...
2
votes
1answer
70 views

Integration testing and database connection string in app.config

I am working on a project where SqlConnection is created via a static method, lets say it's DatabaseAccess.GetSqlConnection(). This method reads the .config file to get the connection string and ...
-3
votes
0answers
30 views

Javacript File Inclusion Not working [on hold]

I have followed this thread: What is the best way to include JavaScript file using script tag? and used the following code in my php file. <script language="javascript" type="text/javascript" ...
-3
votes
0answers
30 views

Looking for a book about making interpreters, with lexers and parsers [on hold]

I'm looking for a short(200-300 pages) book about making a programming language interpreter with tools, for example lex and yacc. It doesn't matter what programming language is it in.
-2
votes
0answers
119 views

alternatives to pointer to function in C [on hold]

I have C project where I have something like iterator, works like this: Item *mem_first(MemtableIT *it); Item *mem_next(MemtableIT *it); and Item *disk_first(DisktableIT *it); Item ...
-2
votes
0answers
14 views

Java Robot class highlighting text help [migrated]

I'm trying to write a program that copies text from TinyChat(https://tinychat.com) and copies it to the clip board. Eventually it will take everything said in chat and paste it in Skype. Every message ...
22
votes
3answers
1k views

Why is XML type safe?

Why do they say that XML provides type safety and how is it expressed in the XML itself? How is it different from JSON (for example) which (as I understand) is not type safe?
-2
votes
0answers
16 views

How to retrieve a single user data that is owned by the user who log in using session in CodeIgniter? [on hold]

I'm new to CodeIgniter. My problem with my code is that, when a user logged in to his/her account, he can't view his/her details, instead, the detail of the first row from the table where I fetched ...
-5
votes
0answers
24 views

Android project development [on hold]

I'm expected to develop an android app as my computer science project.i want to create a an app that users register then login, and receive pregnancy information for each stage of the pregnancy on the ...
-3
votes
0answers
47 views

Dropdown search function in WPF/C#? [on hold]

Is there anyway to implement dropdown (Combo box) search function in WPF/C# ? I want to implement search function similar to facebook. When I type a word or sentence similar records should appear in ...
0
votes
0answers
79 views

Domain Driven Design - designing Aggregate Roots

Imagine you're designing an application for organazing Workshops. Workshop itself is quite complicated - it acts as a state machine with multiple possible states and transitions between them. We're ...
0
votes
1answer
45 views

Send request from a computer, wait for response from another, then trigger an action on both, with PHP [on hold]

I have a website project that is planned to work as the following: User #1, who is registered on the site, sends an invitation for some activity (whichever activity, like playing a game, etc.) to ...
-4
votes
1answer
33 views

How can i clear ViewState property using jquery? [on hold]

How can i set ViewState["Drivers"] to null using jQuery in ASP.NET ? ViewState["Drivers"]= null;
-1
votes
0answers
26 views

MatLab floating point comparison [migrated]

I am trying to understand the while statement in MatLab so this is what I did: i=0; while i<=20 disp(i) i=i+1; end and as I expected, MatLab displayed numbers 0-20. However with this one: ...
-4
votes
0answers
22 views

MatchString Theory [on hold]

I am comparing one companies information to another For each row of data I have a match string. The string of 11 letters can either be A, B, F, Z. example AAABAZBFAZB A= Same (Highest Weight) B= ...
0
votes
1answer
43 views

How Do I Securely Edit a Database Entry Based On ID in an Admin System?

This is more of a conceptual question because the way that I am doing it would be secure enough for my purposes (educational). I created a simple admin panel that displays a stock picks database as ...
1
vote
1answer
120 views

Should I modify an algorithm I coded for my employer if I remember the code perfectly and want to reuse?

My employer asked me to code a simple algorithm from a general description published by someone on the Internet (no code/pseudocode, just plain words and pictures). So to clarify, it's not my ...
8
votes
3answers
790 views

What kinds of Open-Source licenses are NOT OK to use internally in a corporation? [on hold]

I have recently learned about several cool open source add-on tools and libraries for Microsoft Visual Studio. The tools just help you be more productive; the libraries would get linked into the ...
1
vote
2answers
89 views

C# Subject Observer Architecture question

I'm making a C# application using the Subject Observer design pattern in a slightly different way. I am passing the Provider Class, implementing IObservable (this has the OnNext() method that ...
-1
votes
1answer
35 views

Should I avoid JSPs for new Spring MVC applications? [on hold]

I have seen many posts around the Web saying JSPs are deprecated, old way of doing things, etc. I have to say personally I don't care for them too much. The best setup I had using JSPs was with Apache ...
0
votes
2answers
27 views

SQL - for some attributes specific to different clients' users, how to handle schema?

I have clients, each of whom have an app with a bunch of users. Their user data could be pretty different, but there is also a lot of overlap. Ex: all their users have "gender" and "age" and plenty ...
0
votes
1answer
54 views

Vector API, naming for element-wise multiply [on hold]

I'm helping develop a 3D Vector class, which has common operations such as: v = v1.cross(v2) v = v1 * v2 - infix multiply for dot product. v = v1 + v2 - infix addition. v = v1.slerp(v2) - spherical ...
0
votes
0answers
47 views

Does COM still have value for Windows interop nowadays? [on hold]

WCF is a great technology, but I believe it works slower than COM, since it's managed code and it uses additional intermediate layers. I didn't check performance though. DirectX interfaces are still ...
2
votes
1answer
57 views

Is it redundant and unnecessary to do file backups of a repository that has a remote repo?

Is it redundant and unnecessary to periodically backup the files in a Git repo, that also has a remote repo? My understanding is all repositories are full backups. So an individual developer with a ...
0
votes
1answer
79 views

Architecture for my Java application [on hold]

I try to create small Java tools to help me at my work every now and then. Usually these do not have to be pretty and I find myself coding a single, sometimes massive, Java class. However, now my plan ...
-2
votes
0answers
67 views

JavaScript prototype chain probable infinite cycle lookup [migrated]

I have a query regarding JavaScript object prototype chains. Suppose I create an Object var first = { a: 1};var second = Object.create(first); Now I know that if I look up for the attribute a on ...
0
votes
0answers
29 views

Extending the interface of existing (python) classes

I use a library with an existing well-defined interface, that I have extended for my purposes. I.e. most classes in that library inherit of one abstract base class class Parent(object): def ...
1
vote
0answers
27 views

Image segmentation - show or hide clusters

I'm trying to make a small program in c#, that will downsample image to specified amount of colors (using K-means). Then, user will be able to hide\show colored areas(clusters) in image. I've ...
0
votes
2answers
80 views

Selecting between multiple actions in PHP

I have been programming for a number of years now and in PHP for about 4 of those years. I have always wondered what is the best approach when it comes your program deciding what action to take based ...
-4
votes
0answers
32 views

Need help in choosing PHP frameworks for my web application (which is similar to freelancer website) [on hold]

I am planning to build a web application similar to functionality as freelancer. I am basically a asp.net developer. But I have chosen PHP as the language of choice to code my web application. I have ...
0
votes
0answers
29 views

REST Services with ASP MVC WebApi architecture feedback

I'm working on a new project and I had to design some REST Services with ASP MVC WebApi. I would like to show you my app architecture and learn from more experienced architects what I have ...
3
votes
1answer
96 views

Is the target of 3 dependencies per class always achievable?

I'm reading the Clean Code book and a chapter says that if a class has more than 3 dependencies is a code smell of that class isn't doing one thing. Or what is the same, it isn't following SRP. I'm ...
1
vote
1answer
208 views

How would a compiler turn an else-if cascade into a switch?

I don't like switch in C and its descendants. Maybe it's the need for a break or the clumsiness of the syntax requiring a shifting of mental gears, I don't know. Whatever the reason, I will almost ...
-1
votes
0answers
19 views

How to create DFA from regular expression without using NFA? [migrated]

Objective is to create DFA from a regular expression and using "Regular exp>NFA>DFA conversion" is not an option. How should one go about doing that? I asked this question to our professor but he ...
-1
votes
0answers
18 views

Closing Nonduplex Unnamed Pipes in C [migrated]

I have 8 children, and am trying to use 8 pairs of nonduplex unnamed pipes to communicate with them. Thus, I have 2 pipes for each child and 16 pipes in total (one for childRead_ParentWrite and the ...

15 30 50 per page