1
vote
0answers
3 views

Persisting database row ID between controller actions on a multi-step “create item” form

I have a form on an anonymous site which has 3 steps. A user submits each step individually, in sequence (1-2-3). BUT, step 1 creates a new table row, while steps 2 and 3 only update the existing row ...
0
votes
0answers
3 views

Repeating Pattern Capture in Perl with “{ }” [on hold]

I'm having trouble implementing a specific number of matches in Perl. I've read all of the documentation regarding regular expressions from various sources, and am at a loss as to why the following ...
1
vote
0answers
3 views

Changing Component Style Best Practice with React

I have a component that I want to render with certain styling based upon the props that it will receive. I'm currently defaulting the prop types, and then creating the styling at render as such ...
0
votes
0answers
7 views

Function Split in Delphi

Hi I have the following split function in Delphi works perfect the problem is I want to improve the code to not use repeat-until more but not that another way to do it. The code is this : ...
2
votes
0answers
15 views

Git merge script - improvements

The branches I need to merge are called test and test-passed. Merging will always be fast-forward, from test to test-passed as commits to test-passed are only done automatically from test. This is ...
0
votes
0answers
11 views

Search box in javascript for blogger.com [on hold]

Ok, so I wanted to build a search box for blogspot which goes through every label and and filters them so remains just the match and every other label is hidden. The problem is that it doesn't work ...
2
votes
0answers
11 views

requirejs: is this a nice approach?

Question originally posted on stackoverflow, but flagged as 'opinion-based'. I'm working on a small custom backend app in php for personal use (and practice MVC) and I thought it was a nice ...
1
vote
0answers
11 views

Type-safe cartesian co-ordinates

I've recently been fiddling around with a type safe implementation of cartesian co-ordinates (and a few operations on those co-ordinates). Often it's easy to get units mixed up: is something in ...
-2
votes
0answers
25 views
1
vote
0answers
8 views

Depth First Search and Breadth First Search in C++

I am trying to learn DFS and BFS. I implemented them in C++. However, I just want to make sure that I am not doing anything wrong. Would you please review if BFS and DFS functions are correct? Here ...
0
votes
0answers
9 views

How to handle OO when one class is absolutely dependant on the other class?

I am working on a project that I needed to calculate the Determinant of a matrix. Usually, I would just have a class "Determinant" and just calculate that way, but, things have changed and I have had ...
1
vote
0answers
24 views

extremely simple character manipulation

Given a string, this code Multiplies odd numbers Subtracts even numbers, do nothing if only one even number is found Turns uppercase letters to lowercase and vice versa I think this code is too ...
2
votes
0answers
8 views

Split string in chunks preferable at spaces

I'm working on a tool to import data from one database to another. One requirement is that I have to split a string from one source field into three (shorter) fields at the target. If possible the ...
2
votes
1answer
80 views

Simple streaming parser to extract lines

It is meant to be given strings over time and output all NewLine delimited substrings. The ColumnReader is meant to be a solution for ...
-2
votes
0answers
13 views

from C++ graph data structure to Boost [on hold]

I'm working on graph mining. I want to change a program who use a simple c++ graph data structure, to Boost graph library data structure. But I don't have any idea about the equivalence. How can I do ...

15 30 50 per page