10,296 reputation
43549
bio website programmers.stackexchange.com/…
location Bad Rappenau, Germany
age 44
visits member for 4 years, 2 months
seen 7 hours ago

writes code

ruby (on rails), c++, python, pascal, vb, ti-basic, sql, js, jquery, html, xml, qt

find me on Google+


11h
comment Where to start: Sortable Databases and APIs
Since your "description" doesn't give much details: Any platform will most likely do. All common databases can sort. All programming languages have libraries to sort stuff. Unless you have really large amounts of data you could most likely even let the browser sort it with Javascript.
2d
comment I work as a full stack web developer and my boss wants me to learn photoshop. Is it a right step for me?
If it's 'fair' would very much depend on the amount of work done by you and the designer. Also what type of work you are expected to do. At least in smaller companies it is rather common that the developers can handle at least some basic image processing like say make thumbnails from images. It's easy enough and faster than having to wait for each other. If you are expected to do real design work this is most likely going to fail. I have rarely seen developers who also made good design work.
2d
comment Withdrawal and bank balance in banking system
Normally there would be some kind of authorization with different user roles (customer, admin). Only employees of the bank (with admin permissions) could change the balance directly. Customers could transfer money between accounts. But for a school project this may add too much extra work. For anything cash (putting money in the account, withdraw money) in real life you would go to the bank and the clerk would input the data or you would use an ATM where processes are automatic. Difficult to write a full simulation of this.
Apr
13
comment Web applications and homogeneity across users
And this is where a lot of web will go. It's just super easy to access from everywhere. Also we have tools, often for free, that our ERP system does not have or that would be prohibitively expensive.
Apr
13
comment Web applications and homogeneity across users
Sounds like a very common problem actually. We have a web site that provides services for a variety of roles (like customer support, sales people, customers, product support..., an API for a web app). We have different functionality as much resource based (who can see what, customers can only see specific brands or assortments. Also single fields, eg employees can see inventory while customers can not) as based on functionality (sales people can edit certain fields customers can't, as whole blocks of functionality like statistics). It's not easy, but can be done and has been done.
Apr
13
comment Fine grained search over a large dataset
PS: I would at least prototype it with Elasticsearch or Apache Solr. They both use Lucene and this would give you some idea and estimate about how Lucene behaves.
Apr
13
comment Fine grained search over a large dataset
Very roughly this could work. If you look at Elasticsearch this is somewhat similar. You don't talk much about what exactly you want to do with this data. Depending on the type of query you would organize the data in indices based on months. If your queries would be something on the line of statistics you could also add aggregation tables that make some calculations per month, week or quarter and optimize your code so it can use those aggregations. Also you could maybe share data over multiple machines and split queries. It just hurts to write this if Elastic would do it out of the box.
Apr
11
comment When will PHP allow key: syntax for array keys?
This works in Ruby only for keys that are symbols (and for that reason quite some Ruby programmers prefer => because it can be used universaly while otherwise you have a mix of different looking hashes). If you use strings or numbers you still must use => and {:x => 123} was already something quite different from {"x" => 123}. Also PHP to my knowledge does not have symbols (and it's questionable if they would make much sense for that language). So this would require several changes to PHP that most likely do not add much of value beyond saving a few keystrokes here or there.
Apr
10
comment To obtain knowledge on APIs
There are many different types of APIs. It simply is an interface that can be implemented at needed and the implementation depends on the technology in use. There are some 'groups' of APIs that often share common features, like RESTful Web API. But to get an idea how to do this you could maybe read the documentation of some public APIs that are available (and if possible are similar to your goal).
Apr
5
comment Client wants source code, but it contains a lot of shared code I reuse with other projects
What do they need it for? Chances are they only want to be sure to have the code in case you go out of business. You possibly can add licensing that limits allowed usage. At one time a company I worked deposited (right word?) source code with a lawyer company as security for such a case.
Apr
4
comment Parking Simulation Software Design
In some other context you would be right maybe. If this would be about real vehicles and would carry more vehicle information then the parking size and fee should go somewhere else. But: in this very specific context the vehicle classes solely exist for their parking space properties (if I understand this right). Without that information you would not need those classes at all. Maybe just badly named, VehicleParking, CarParking and TruckParking could avoid such confusion.
Apr
1
comment Enforcing open source software license
In many cases this is very difficult obviously. But once you have to fire one of your employees you may be very happy if you haven't done anything illegal. Upset former employees, competitors (who may know more about your business than you may like) and various other sources are possible in such cases.
Mar
25
comment Is it possible to layer filesystems on top of each other?
Not sure if that's what you are looking for but if I remember right then Hadoop Filesystem works somewhat like this.
Mar
17
comment Is this a race condition?
Is the calculation of the total and updating the sum field a single query?
Mar
13
comment Can i write html on one line only in my php code?
Yes, a lot of sites run their html, css & javascript through minimizers that remove unnecessary whitespace (and do other optimizations). The result looks mostly like this. Though I don't see why you would care about those few bytes in this specific case.
Mar
12
comment Java and C++ connection?
This may depend on how easily you get confused I guess. There are some similarities as there are huge differences. Most programmers at some point master several languages and it's not that difficult. Maybe just give it a try and concentrate on the one you more like if you get confused and feel that you lose too much time that way.
Mar
11
comment In a program written in Pascal, what hardware components are used?
A program can use mostly any hardware components it likes (depending on OS and various access restrictions). It can place data in memory, video memory, write to hard disks or printers or communicate with any part inside the PC or attached to it (eg trigger the LEDs on your keyboard), send sound to a speaker. Obviously everything happening on your computer is done by 'programs' so programs must be able to do all those things.
Mar
11
comment In a program written in Pascal, what hardware components are used?
It's stored in RAM and executed by the CPU. Your writeln('hello') example will be stored in RAM as a combination of executable code (mostly to move around data and trigger OS functions for rendering) and data (the string 'hello'). What exactly happens would depend on the OS this runs on (and more details). With todays GUIs this will lead to a rather complex set of operations that will render the text with the help of font information and finally output the result (kind of bitmap) into a window which in turn means changes to video memory on your graphics card.
Feb
23
comment Database data Bucketing Report Design
If the only interesting option here is if the item exists in the time range why do you even count? (instead using "select count(*) ... group by item_id, customer_id" maybe?) Also how arbitrary are your date ranges? Are those always months? Or could it also be something like 15.1.2014 to 30.1.2014 or even something like calendar weeks? You could have buckets (as for example months) and a unique key on bucket_id (the month) and item_id (and maybe customer_id if that is relevant in the context) so duplicates are rejected on the db level.
Feb
16
revised How discrete should a RESTful API be?
added 3 characters in body