Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Search
The question is not "what will you do", but "what will we do?" This site is community-run. While of course there are a few rules that we need to impose to be able to host a community, for the most ...
I have a number of command line PHP scripts that are either run by a user or by Windows Task Scheduler. These scripts use DB and API credentials and I am wondering if there is a better way of stori...
I've kinda found a very limited, not so elegant, far from ideal "solution", using replaceAll: String regex = "(?:([aeiou]+)[0-9]+|([123]+)[a-z]+)\\W+"; System.out.println("ae123.".replaceAll(regex,...
Sometimes, either to reduce the amount of typing big table names or when joining a table to itself one will need to alias a table. Personally I find SQL statements with aliases harder to read and a...
I was inspired by the contests on Outdoors and Writing, and thought that having some challenges over here would be fun as well. What do you all think about adding a new category where people can po...
In Office 365 and Excel 2019 there is a TEXTJOIN: =TEXTJOIN(",",,A1:A10) which can be written into the cell where the output is required. Assumes A1:A10 has been populated to suit.
In Excel I would like to concatenate several strings into one. I could type and fill in the blanks CONCATENATE(A1, A2, ....) but it is a lot of work This would be cool, but it does not work CONCATE...
I found a confusing construction in several stored procs in an MS SQL 2008 R2 database: DATEADD(dd, 0, DATEDIFF(dd, 0, some_date)) As I understand it, these are the relevant function signatures: D...
Personally, I'd say that it depends on the question. Over on that other site, this ban was instituted to avoid opinion-based questions. For instance, suppose you asked: Is Angular a great framewor...
I have heard that it is undefined behaviour to make a pointer point outside boundaries of an array even without dereferencing it. Can that really be true? Consider this code: int main(void) { ...
Its possible to execute a MySQL file from the command line like so, mysql -u USER -pPASSWORD < FILENAME which triggers a warning, mysql: [Warning] Using a password on the command line int...
Checking the list of tags, I noticed that all of the tag wikis are empty, like this: I also noticed that I can't edit those info. Will it be possible for regular users to add tag wikis?1 And if th...
In HTML, style information is applied to elements; it can't be applied to individual characters in a text node. Therefore, if you want to style the * differently, it needs a dedicated element. You...
I wish to fill an array with strings, using Bash scripting. The strings are in a file, one per line. Here is what I've tried: declare -a my_array=() while read line; do my_array+=( "$line"...
Yes, it is in practice always a character type and you can safely assume as much, both in terms of (g)lvalue access and in terms of strict pointer aliasing. If not, the compiler would soon render i...
If you want to be more Linq-like without creating a ForEach method: vehicles = vehicles .Select( v => new Vehicle { Make = v.Make, ...
As @ArtOfCode mentioned, it is not fully clear what you are trying to match. From the first line in your post, you are trying to extract THIS. THAT. out of THIS. THAT..OTHER . The following regex ...
I'm trying to parse lines like "THIS. THAT..OTHER " so that "THIS. THAT." is found. There can be more than one <word><dot> separated by a space except no space after the last one. ...
Matching a valid email address can be as complicated as you want it to be. If you want to be compliant with RFC 5322, the regex will be a monster (see below). But if you want a subset of it, with...
Whenever I search in google why a specific language is interpreted language, I get differences between compiled languages and interpreted languages but nowhere the benefit for being interpreted rat...
Interpreters are easier to write than compilers. For this reason esoteric and toy languages are often implemented by interpretation. But the dichotomy between interpreted and compiled languages is...
I rent a shared-hosting environment with CentOS-Bash, Apache, PHP, MySQL and a web-based IMAP email client (Roundcube) and some more tools, on which I host my personal website; I don't have Cpanel...
Yes, it's correct. An object's methods aren't things that exist in memory with the object. They're in a completely separate section of memory, and a method exists exactly once regardless of whethe...
Codidact doesn't support cross-community duplicates, like closing a question in a per-community meta category as a duplicate of a question on main Meta. However, our messaging there could be, uh, ...
Summary I'm building an internal system (hardware simulator, using Rust) to help test some Python-based services that talk to hardware. (The services talk to hardware via TTYs.) To trick the Pytho...