All Questions
0
votes
0answers
1 views
Python : Button
Firstly, THIS IS NOT A HOMEWORK!!! If you are unhappy with this, leave this page.
I want to use Python to program this :
Ali has a machine that with a screen and a button.
When Ali turns on the ...
0
votes
0answers
5 views
When is lock not needed in multithreading
I want 500 objects to be processed concurrently using multithreading. These objects will have some initial data before the threads are created.
I am creating 5 threads and each thread takes 100 ...
-3
votes
0answers
9 views
Connect the database with c++ command line programs
If somebody know the fortune program which is generally installed in Linux and Unix computer.So I want to know that how to read the data from database and whenever If i call my fortune program its ...
2
votes
3answers
39 views
Why is type inference useful?
I read code way more often than I write code, and I'm assuming that most of the programmers working on industrial software do this. The advantage of type inference I assume is less verbosity and less ...
0
votes
0answers
14 views
Best algortihm to schedule events
I have a data set of talks to be given at a event which is given by the user. It is assumed that talks are always ending on time and there are two parallel events at the same time. Both start at the ...
-4
votes
0answers
19 views
How can i save huge number of image and description in android?
I want to make an application for android where for each person there will be many images and description like some posts,status.Now is it feasible to save this type of datas in sqlite or in ...
-1
votes
1answer
25 views
Given a subset of numbers and subset of sums. Match the numbers to sums.(Harder than appears)
I found the question below on a forum board. I'm not sure what the most efficent solution is. I'm not sure this fits exact cover, and approaching it via exhaustive backtracking seems somewhat ...
1
vote
1answer
70 views
Convincing my boss that touching the Database is integration testing
I am currently working on introducing continuous integration and switching to git, and as part of that, we must also better structure our tests.
We have agreed on splitting the tests in "integration" ...
-5
votes
1answer
45 views
Programmers for Hire [on hold]
Can somebody suggest how I can get a very talented programmer to write something for me? I do not know where to look for. I am trying to find a programmer who works with kernelmode programming. I ...
-3
votes
0answers
19 views
How to stay updated on the latest happening in dot net platform [on hold]
I might sound like a very generalized question but i am interest in the opinion of different programmer and how they keep themselves updated by following specific stuff. I am interested in following:-
...
-3
votes
0answers
10 views
pseudocode : finding a value from a table for critical values (chi square test) [on hold]
I need to make a pseudocode and flowchart for a program that will test for the independence of two variables. (Chi square test) I was able to make the part where I'll get the chi square value butI am ...
0
votes
0answers
11 views
Counting Barrels / Hough Transform
i'm trying to find a way to count barrels on an image.
For this I'm using Hough Transformation.
I tried my code first recognising eyes and it works excellent. But now the problems is when i try to ...
-4
votes
1answer
38 views
Please can some one edit this Java Code for me [on hold]
Please i did this Java programme assignment and when i compile the programme, there was not error but when i run it, it gives me the error i attached within. Please what could be the problem and how ...
-3
votes
0answers
17 views
Writing a software license agreement
I have developed some software that is going to require a monthly license aspect to it. I am writing up the contract and I was thinking the contract would be perpetual and only end on customer ...
0
votes
3answers
39 views
Should I rebuild my read only database every time I launch my server?
I'm getting into web development, and I'm trying to get a grip on databases.
In an app I want to make, there is a read only database that will be filled up with a large amount of data, which will be ...
-5
votes
0answers
23 views
Annoying white background in html [on hold]
So I put an image into my site using the tag, but the thing is I set a background image using css, and now the image I inserted has this ugly white background that covers my background. If anyone ...
2
votes
0answers
13 views
Factors for choosing between using a wrapper library or issuing comman
I have a Java web application that makes use of certain libraries for example: Ghost Script for converting PDFs to TIFFs and Tesseract for OCR. There are java wrappers for both of these: Ghost4J and ...
3
votes
1answer
67 views
Why does java collections not supply a function for the index of max value?
I have been using Collections.max(list) for many projects, but I occasionally want to find the index of that maximum element. I feel silly writing a function to do this for myself in every program I ...
0
votes
2answers
35 views
The need for header file when including libraries?
When compiling an application that depends on a library we have to specify the include the library and also the header file.
Since the library binary contains the actual function names couldn't the ...
-5
votes
0answers
22 views
How do extract public data from a website?
The grossing numbers for each of the 200 apps fluctuate throughout the day and I will need the average to plot. The site is thinkgaming commercial, data is under top games.
Any suggestions ? ...
0
votes
4answers
62 views
Is it necessary to collect zip codes if I'm already collecting address, city, and state?
I'm currently building a B2B web application. As a part of the signup process, I require users to enter their office's street address, state, and city, which I then geocode into latitude and longitude ...
0
votes
1answer
40 views
Gradual reveal in REST APIs
In the article Building Web Services the REST Way, the author states:
Design to reveal data gradually. Don't reveal everything in a single response document. Provide hyperlinks to obtain more ...
-2
votes
0answers
14 views
C# How to get cookie and recover it to next request? [on hold]
My question is how can I do POST request, next get cookie from that request and set it to the next request for example GET type in C#? Please for example code.
I had tried a lot of times, for example ...
-2
votes
0answers
14 views
Print the longest common sequence [migrated]
I am trying to implement solution of the classical problem, but I am confused as I get some cases where I don't find good results.
Output: "The Longest common sequence", "Length"
def ...
0
votes
0answers
24 views
How best to architect an application using the Azure Service Bus
I'm trying to determine how best to accomplish the following scenario using the Azure Service Bus. I have millions of devices (desktop software, mobile phone apps, etc) that need to have messages sent ...
0
votes
1answer
21 views
TCP Max SEQ number +1
I'm reading about TCP at the moment and there is a maximum sequence number 2 ^ 32, my question is what happens when the other host tries to send an acknowledgement for that sequence number 2 ^ 32 + 1? ...
-3
votes
1answer
33 views
What exactly defines a web designer? [on hold]
I am setting up my portfolio website and I have two categories:
web development
web design
A website can be in one or both. But what exactly defines a web designer? Say I developed a WordPress ...
0
votes
2answers
33 views
Hub which executes interface methods on all registered onstances
Is it possible to have generic class (let's name it Hub), which implements interface T. And now I can use a method named Add (not a part or interface T) on this class. And Add methods allows me to add ...
-5
votes
0answers
19 views
Getting java.lang.NullPointerException android [on hold]
Everything works fine but after some time Im getting following error
and application is getting crashed
09-27 17:09:01.820: D/AndroidRuntime(13492): Shutting down VM
09-27 17:09:01.820: ...
-1
votes
0answers
67 views
What is the best way to manage (limit?) memory usage in Javascript?
Back in time when I had to allocate and deallocate each byte in my software, I had a good picture of memory usage in my mind. But now I am always uncertain.
All those cross and circular references, ...
-4
votes
0answers
21 views
VB6 with MS Office automation problem [on hold]
I have an application which uses ms office automation to launch an email in outlook passing address subject and email attachments etc.
The app works fine on most platforms. However when installed on ...
-4
votes
0answers
27 views
Learning a few things in .Net [on hold]
So I've been doing .net for about 5 years now. I am pretty comfortable with C# and .net in general and I do understand what's going on behind the scenes in many of the cases. If I'm not sure what's ...
2
votes
1answer
95 views
Should fields still be private when you need to restructure the data?
I was taught that an object should know how to do everything with itself. So I've built an application trying to keep fields private and have a lot of methods like these:
DisplayGraphically()
...
-3
votes
0answers
21 views
Anyway to easily have CROSS PLATFORM? for app? [on hold]
Suppose you write a program in a low level language(C/C++), can you run it anywhere? For example, lets say a game app written in low level language for android. Can it it easily be transported to iOS ...
-1
votes
0answers
14 views
Discrepancy between Mathematica and Fortran expressions — Fortran gives wrong output (C,C++ programmer trying to use Fortran) [on hold]
I typically program in C or C++, but recently wrote some code in Fortran. I am worried that I've made a mistake in the Fortran code due to lack of knowledge of Fortran. I basically need to plot two ...
1
vote
1answer
66 views
Automating daily procedures
Is there a way to automate running VBA in Excel to clean up the file from inside an application?
Everyday my office has to confirm that 50 people have shown up for work on time. The scheduling ...
-4
votes
0answers
33 views
Coding challenge ideas [on hold]
I work for a web dev consulting firm. We mainly deal in the .NET stack. We have been looking for some good team building activities for the employees. Someone suggested a coding challenge as a ...
-1
votes
0answers
27 views
Mystery: disappearing fonts through CSS on tumblr
Recently I went to update the CSS on my tumblr theme html. I copied and pasted one of the @font-face + class selector directives as a template, and changed the details to make the new font.
As soon ...
0
votes
0answers
29 views
Algorithm for mapping users to a schedule based on time availability
I have a project where I must map employees to a schedule. The basic concept is:
Company Opens between 08:30 and 17:00.
Employee 1 can work from 08:30 to 12:00 then from 13:00 to 1700;
Employee 2 ...
-5
votes
0answers
22 views
how to generate offers out of some available items? [on hold]
I am working on the program which is for hotel reservation. I am using so many web services in my application and i need to make some integration so the result of all the web services at the end must ...
-3
votes
0answers
18 views
nodeschool filtered LS challenge [on hold]
I can't understand why this code doesn't work:
var fs=require('fs');
var path=require('path');
var filepath=process.argv[2];
var ext='.'+process.argv[3];
...
16
votes
10answers
1k views
Does compiling take as long as this xkcd comic suggests? [on hold]
Like many tech geeks, I read the web comic xkcd. However, comic 303 has me confused:
This comic confuses me because I've never had to wait more than a couple of seconds to compile code (certainly ...
1
vote
0answers
15 views
PHPExcel Application With Cases
I've been working on an application for my company's intraweb which will automate production scheduling based on information from our legacy mainframe databases in addition to side tables with ...
2
votes
1answer
72 views
What does 'upper bound' mean in context of BigO?
My computer science teacher says Big O has an upper bound but no lower bound. When I look at a graph of an algorithm mapped out using BigO though, there isn't an upper bound at all. The upper limit ...
24
votes
12answers
2k views
Why do most programming languages have special keyword or syntax for declaring functions?
Most programming languages (both dynamically and statically typed languages) have special keyword and/or syntax that looks much different than declaring variables for declaring functions. I see ...
0
votes
2answers
67 views
When should you create/destroy underlying object in a class that wraps it
(note: I used Java to make it easer to explain my question, but the actual language is irrelevant for this dilemma)
TL; DR: I have a wrapper around some underlying class. At which point should I ...
-4
votes
0answers
38 views
What are the selling points of git? [on hold]
I have to present git to my software team next week, as a few of us have been using it so that we can decide whether or not to switch from SVN.
We currently use SVN as a mega repository for all of ...
-5
votes
0answers
30 views
Conventions regarding naming functions with the prefix “do” [on hold]
Some developers using the prefix 'do' when naming function (e.g. def doFoo).
I was curious to know if this is a holdover from any specific language?, just a natural verb people use to describe ...
-7
votes
0answers
47 views
As a newbie web developer, should I start learning ES6 straight away and skip “old” javascript? [on hold]
First of all I am newbie in the area of front-end web development so my questions and thoughts might sound naive to experienced guys.
My background is .NET/C#/WPF for 5+ years but I started getting ...
-1
votes
0answers
32 views
Clearly defining an Implementation detail
In what way could I, when designing my API, framework or whatever decide what is and what is not an implementation detail? What questions do I ask in order to correctly answer: "Is that something my ...