All Questions
-1
votes
0answers
9 views
Modelling tool for state machines
I am currently working on a system (a trading application) that has a state machine for some of its functions. It is not terribly complex (around 10 states and 30 different transitions), but it is ...
-2
votes
0answers
16 views
How to convince my boss to accept using ReSharper
I'm a big fan of Re-Sharper :)
I believe it help you to write a code in faster, better and nicer way.
Anyway my new boos take a decision to not use any third party tools with Visual Studio IDE.
When ...
-4
votes
0answers
15 views
programming in python the dynamics of many chains overlaping each to one another
how to code in python a program which will enter many segments with same length and randomly class them inside a two dimensional lattice and calculate the overlaping distance between each of them.
-4
votes
1answer
47 views
Confused or afraid of the new challenges [on hold]
Just came back from an interview and I could tell they liked me. However, I only have two years of programming experience and the person that might hire me has been coding for 15 years.
I love to ...
-2
votes
0answers
12 views
SQL Oracle Apex error when creating table
CREATE TABLE Driver(
Driver_ID number(10) Primary key,
DriverFname varchar(15),
DriverLname varchar(15),
Train_ID number(10) Foreign key References
Train(Train_ID)
);
I get this error ORA-00907: ...
-1
votes
0answers
22 views
eclipse - Is there any IP address, aside of PC IP address connecting to localhost in android?
I got a problem while connecting to localhost in android, it always say, "Unfortunately, application has stopped". I don't know how to fixed it.
Here's my sample of code,
AllBooksActivity.java
...
0
votes
0answers
11 views
Can embedded Ruby in html effect the static html classes?
I have this simple Ruby code right here:
#!/usr/local/bin/ruby -w
string = "Hiya"
puts string.length
if string.length == 4
puts "yes"
else
puts "no"
end
now what if I replace that word ...
-5
votes
1answer
57 views
How can I start making a programming language? [duplicate]
my question is this; How do I start making a programming language? By this I mean not an interpreted language, but I want to know how do I start from the machine code and work up, like the first ...
-2
votes
0answers
16 views
Interop class instance method with optional parameters in C#
I have an instance of a COM-interop class that has a method with a signature like
bool InteropClass.Method(params object[] Values)
And I thought I could call it like
...
-1
votes
3answers
94 views
Adding quirks from an old system to a new system because that's what people are used to - a term for this?
Is there a term for the above? When building a new system developers are sometimes instructed (that is a different issue) to "keep things as they are", regardless of how inefficient or unusable they ...
0
votes
2answers
34 views
Overwriting and returning the value of the argument used as conditional of an if statement, inside the same if statement
A simplified example:
function logTheColor (color){
if(color == "red"){
color = "The color is red "
} else if (color == "yellow") {
color = "The color is yellow "
} else {
...
-1
votes
0answers
19 views
Database Entity Relationship Diagram + SQL questions
http://imgur.com/egdsYPh
So this is my third time doing a ERD
Is everything correct? Also do I make Driver,Train,Schedule,Route,Stop table in this order?
I'm using Apex Oracle(First time using this)
...
0
votes
2answers
61 views
Java Multithreading and CPU cores [on hold]
I have a simple question this time. If I write an java application with 4 Threads ( each thread does different work ), what will be the difference between single-core, dual core and quad core cpu ( ...
4
votes
2answers
122 views
Immutable objects
Looking at questions such as these
If immutable objects are good, why do people keep creating mutable objects?
What are the drawbacks of immutable types?
At what point do immutable classes become a ...
-3
votes
0answers
17 views
table inserting a row and animation
This is a question looking for directions.
I am looking for ways to make a web page more lively.
I don't know how to do it. I may have an idea on what library I can use.
This is what I would like ...
0
votes
0answers
3 views
What is the reason behind this Eclipse behavior due to changing an Environment Variable? [migrated]
I have two versions of Eclipse that I use (Indigo for C++ and Helios for Java). I've used both for years without problems. Last week I needed to view Java Bytecode, so in my Environment Variables I ...
0
votes
1answer
60 views
Should I write a unit test to this?
Given the following pseudocode:
List dohList = new List();
Foo foo = A.getFoo();
if ( foo != null ) {
Bar bar = foo.getBar();
if ( bar != null ) {
FooBar fb = bar.getFooBar();
...
3
votes
1answer
69 views
Is it better to create thread safe subclasses or make the main class thread safe?
Say we have a class that is frequently used in a single-thread context:
public class Foo
{
public List<Bar> Data;
public virtual void ChangeData()
{
for(var i =0; i < ...
-3
votes
0answers
15 views
how to write an email sender in vb.net
I'm writing this VB program that sends email. I'm getting this message in the output window. The email doesn't get sent.
(A first chance exception of type 'System.Net.Mail.SmtpException' occurred in ...
-1
votes
0answers
20 views
Benefits of using Unity vs. Native code for a mobile app
I have heard wide and varied opinions on constructing mobile apps in Unity vs. the native platform (iOS, Android, Windows). I have heard a few people who believe Unity is always the way to go (even ...
1
vote
0answers
31 views
How to efficiently implement this background processing chain?
I am working on an audio software that uses The EchoNest web service to identify and retrieve metadata about audio songs and I would like to have some advice on implementing a background processing ...
-2
votes
0answers
18 views
How to transfer data Client/Server Server/Client on a netwrok
I apologize for the basic question, but I am VERY new to networking and have the mandate of transferring data (~3-10mb) back and forth between a client and a server. I ideally need this to work in ...
-1
votes
2answers
90 views
Does GCC optimize code to remove useless variable read operations?
I'm using GCC on ununtu 14.04. My program is written in c++ and in a case i need to check the amount of time the program needs to read a large integer array. what is the best way to do this without ...
-4
votes
0answers
34 views
Efficient Code Design For Pattern Search - Part 2
As stated previously, I wish to build code for detecting patterns in streaming data. I wish to have clean code that is easily extensible, and easily maintainable.
I have refactored my previous code ...
-1
votes
0answers
26 views
Should I use separate Mercurial repositories for artifacts?
We are developing a mobile app and want to set up an SCM. We have chosen Mercurial for that. However we are unsure how to "define" the repository. There are mainly three "artifacts" to be developed:
...
-2
votes
0answers
19 views
Is it possible to read a final destination longitude/latitude from google maps navigation, from my own app? [on hold]
If a user is currently navigating somewhere with Google Maps, I was wondering if it is possible to read the final destination longitude/latitude from Google Maps Navigation from my own app. Obviously ...
0
votes
1answer
121 views
Ensure that a method of a class is called after every method call of the same class, how?
I have twenty small methods (m1, m2, m3, etc..) in a class quite different between each other, and after every method i would like to do some common actions, like increasing some counters and in the ...
-3
votes
0answers
33 views
Where to start with certifications [on hold]
Sorry if this is a repost but I'm at the very early stages of programming and I have a break in college so I'm looking to get a few certifications but I don't know where to start. I have the basic ...
-7
votes
0answers
43 views
How to uppercase vectors [on hold]
Read a sequence of words from cin and store the values in a vector. After you've read all the words,process the vector and change each word to uppercase.Print the transformed elements, eight words to ...
0
votes
0answers
35 views
Unit Testing: Pass in Modules or Entire Codebase?
In unit testing, the idea is (I think, correct me if I'm wrong) to unit test a module, then integration test these modules together, then integration test the respective "regions" of modules you ...
0
votes
2answers
61 views
Parsing: Size vs. Frequency [on hold]
I am looking into the performance overhead that there is when parsing objects that have come from a web service.
I was wondering if anyone could provide me any information or insight into on which ...
0
votes
0answers
25 views
WCF Client Data model best practices
Hi I am building a WCF Client Application (not web) for a service I have virtually no control of (different BU) and would like to separate the service consumption from the application business logic ...
1
vote
1answer
126 views
Is checking for cin.eof() really necessary?
I have written a simple program that reads character input from the keyboard within a For loop. My professor has taken away 10 points for not checking the input using cin.eof. I don't understand why ...
-1
votes
0answers
77 views
Why are some applications built using both C and C++? [on hold]
Why are some applications built using both C and C++?
For example, Windows is built using C and C++.
Is it to support legacy code in C?
Is there a performance advantage to building an ...
-3
votes
1answer
52 views
dll of c++ project to be used in c#-project [on hold]
I would like to create a dll so that I could use an engine written in c++ for a c#-project. I have tried to google for answers without any perfect results. Just a hint on what to search for would be ...
-3
votes
0answers
76 views
Open source alternatives to .NET (VB.NET, C#, ASP.NET) [on hold]
Does anybody have any recommendations for suitable open source alternatives to the .NET programming languages?
At my company we develop everything using VB.NET, ASP.NET and MS SQL Server but a ...
-3
votes
0answers
25 views
API allow to use resource to its user owner [on hold]
We build some API. Everywhere in the web user has access to whole resource such as/api/resource, and the guest has no access to it.
What is the correct way to grant access, if resource is attached to ...
-3
votes
0answers
33 views
Javascript warning for Firefox 24 and other old webbrowsers [on hold]
How would a javascript warning look like that warns the users that they are using old webbrowsers like:
Firefox 24
Older IE versions
Older Opera
-1
votes
0answers
5 views
How to set Cordova background activity [migrated]
We build Cordova App, which should make POST requests to server - whether app is active at given moment or not. Now it is CordovaActivity.
CordovaActivity before super.loadUrl starts service ...
-4
votes
0answers
28 views
How to make a .net 4 sample program? [on hold]
What do you mean by making a sample application on .net 4??
does that mean yo make an asp.net program on visual studio 2012? kindly help me out.
-2
votes
0answers
68 views
What are the advantages of non-text based programming languages? [on hold]
I know two kinds of non-text based programming languages:
Educational languages, the advantage is the easy learning curve.
Esoteric languages, the advantage is ... being esoteric.
But are there ...
0
votes
0answers
34 views
Refactoring web pages with user controls
I'm going to be working on refactoring and optimizing the legacy code in a large VB.NET Winforms ASP.NET website. The basic goals are to clean up code, improve design, cover the code with tests, and ...
2
votes
1answer
45 views
Use git to manage different deployments of the same repo
I have a web application built in PHP. I want to use Git to manage the different aspects of the deployment.
Now some of the files in the web app are specific to a client (logos, database connection ...
-3
votes
0answers
18 views
Architecture for editing HTML5 application layout on runtime [on hold]
Is it possible to let an end user design an application on runtime for existing Single page application created by HTML5 and JS and change layout on rutime? the goal is to give an end user the ability ...
-1
votes
1answer
59 views
Do you spend your effort to reuse obsolete unit tests or rewrite them entirely? [on hold]
I have this javascript project which has a unit test suite(about 200unit tests) that covers about 11.31% of the code that it was testing. The project has evolved greatly but the unit tests where never ...
-3
votes
0answers
29 views
If I want to upload a file to server, does the parent directory of the folders also need to be writeable? [on hold]
Suppose I want to upload a file to a directory "images" which is inside "uploads". Then, is it necessary for the directory "uploads" to have write permission (777) as well?
-2
votes
0answers
42 views
Handling cyberbully [on hold]
I have developed a social app. I want to implement reporting objectionable content like other social networking apps. I went through some articles about how Facebook and Google+ do this, but I am a ...
2
votes
2answers
115 views
Is there a difference between duck typing and structural typing?
Duck typing is deciding on the type of an object, based on the operations it supports and the attributes it owns. Structural typing is... the same thing?
What exactly is the difference?
3
votes
2answers
90 views
Dealing with conflicting project requirements
I tried to find an existing topic on this subject but I could not find one that was a good fit, my apologies if I was not thorough enough.
Basically we have a web application that serves multiple ...
1
vote
3answers
281 views
Is it possible to have a dynamically typed language without duck typing?
This question has been asked here, but received poor answers and didn't clarify the issue. I believe it justifies asking it again.
I understand that you can have duck typing with either dynamically ...