language-agnostic
What is the best formatting for operator placements on new lines? [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing th[详细]
2023-04-01 06:22 分类:问答Recent average, without full logging of all data
This is mainly a performance issue. It is to help get the current average of the past N (30?) values. The context here would be to monitor the average execution time for the past N data requests in a[详细]
2023-04-01 06:22 分类:问答How do I save data on a server ("In the cloud")?
I am learning web application development. To save anything on a server, (\"In the cloud,\" like Facebook and Google do) within a web application, do I need to use 开发者_开发问答server side code, or[详细]
2023-03-31 15:28 分类:问答3d Hill generating algorithm?
Supposing you have a 3d box of cubes, with each cube having 3 indices: (x,y,z), and 1 additional attribute to specify if it represents land or air.[详细]
2023-03-31 10:01 分类:问答comparision and addition of two integers : in detail
I would like to know how many machine cycles does it take to compare two integers and 开发者_如何学Pythonhow many if I add that and which one is easier?[详细]
2023-03-30 22:06 分类:问答Regular expression matching any subset of a given set?
Is it possible to write a regular expression which will match any subset of a given set of characters a1 ... an ?[详细]
2023-03-30 20:17 分类:问答How to calculate row / col from grid position?
Given a grid where I know the number of rows (which is fixed), and I know the current count of columns (which can grow arbitrarily), how do I calculate the row and column of an square from it\'s index[详细]
2023-03-30 18:33 分类:问答How to draw a n sided regular polygon in cartesian coordinates?
I have been trying to figure out how to write a simple program to compute the x,y points for creating a regular polygon of n sides. Can someone give me some code examples that don\'t use preexisting f[详细]
2023-03-30 16:44 分类:问答Algorithm to convert an IEEE 754 double to a string?
Many programming languages that use IEEE 754 doubles provide a library function to convert those doubles to strings.For example, C has sprintf, C++ has stringstream, Java has Double.toString, etc.[详细]
2023-03-30 13:48 分类:问答Allowing login with email address while allowing multiple users with same email address
For a website, I would like users to be able to log in using either their unique username or their email address.[详细]
2023-03-30 12:12 分类:问答