Skip to content

Instantly share code, notes, and snippets.

View boicualexandru's full-sized avatar

Alex Boicu boicualexandru

  • Cluj-Napoca, Romania
View GitHub Profile
@boicualexandru
boicualexandru / ConvertHtmlSrcToAttachmentCid.cs
Created July 23, 2020 07:49
Replace html image urls with the cid of the attachments
var templateDecoded = Encoding.UTF8.GetString(Convert.FromBase64String(campaign.Template));
templateDecoded = ReplaceHtmlImagesWithCIds(templateDecoded);
private string[] GetImageNamesFromHtml(string html)
{
string[] htmlImgSrcNames = Regex.Matches(html, @"<img.+?src=[\""'](.*?[\\/])?(.+?)[\""'].*?>", RegexOptions.IgnoreCase).Select(x => x.Groups[2].Value).ToArray();
string[] htmlImgUrlNames = Regex.Matches(html, @"url\([\""']?(.*?[\\/])(.+?)[\""']?\)", RegexOptions.IgnoreCase).Select(x => x.Groups[1].Value).ToArray();
string[] htmlImageNames = htmlImgSrcNames.Concat(htmlImgUrlNames).Where(x => !string.IsNullOrEmpty(x)).Distinct().ToArray();

Remote branches for review — DMS & related repos

Generated 2026-06-18. Branches on the remote (Azure DevOps) that are candidates for cleanup. Local copies have already been pruned separately.

Each repo lists two groups:

  • Merged — safe to delete: 0 commits beyond master (work already in master, so deleting loses nothing — included even if the ticket is still open).
  • Ahead — needs review: has commits not in master. Open-ticket branches are excluded here (kept by default); the single exception feature/EDI-2410 is included because it is very old (2022).

Cargoo_V2_DMS

Remote branches by developer — DMS & related repos

2026-06-18. Reflects current remote state (branches already deletable by their creators have been pruned). Grouped by developer → repo → merged / ahead. Tickets link to Jira.

  • Merged — safe to delete: fully in master, deleting loses nothing. Please delete your own.
  • Ahead — needs review: has commits not in master; decide if still needed. (Open-ticket branches are omitted — kept by default — except the very old feature/EDI-2410.)

Davit Khudaverdyan — 25 merged · 6 ahead

IntegrationGateway

Unified Access Authorization for DMS

Status: Proposed (spike-backed, not yet scheduled) · Scope: DMS-internal · Author: access-rights brainstorm (DMS-1513 follow-up) Relation to other work: Generalizes the document access consolidation already underway in COB-1192 Stage 0 (DMS-1513 SS3 built DocumentAccessPolicy + DocumentAccessContext).

This is a design proposal for refinement. As of the latest iteration on feature/DMS-1513_document-access-policy (uncommitted), the approach is implemented end-to-end for GSI (incl. GsiLog) and Documents, behaviour-preserving (762 unit tests green): GsiActionRightsChecker is gone, Gsi/GsiLog use EnsureAccess(AccessSubject, GsiAction), and DocumentAccessContext carries the shared AccessSubject. See §8 Inventory.


1. Why

Pregătire pentru apărare — Întrebări & Răspunsuri (flash cards)

Lucrare: Detecția tranzacțiilor bancare frauduloase folosind Machine Learning Cum folosești fișierul: citește întrebarea (bold), încearcă să răspunzi cu voce tare, apoi apasă pe săgeată / „▸" ca să vezi răspunsul. Termenii tehnici pot rămâne în engleză (AUC-PR, Recall, undersampling etc.).

Strategie la apărare (citește o dată)

  • Nu intra în panică dacă nu știi ceva. Explică raționamentul din spatele deciziei — juriul apreciază gândirea, nu memorarea.
  • Știi cifrele-cheie pe de rost: 172:1 (dezechilibru), 0,58% fraude, XGBoost F1 0,6462 / AUC-PR 0,8765 / Recall 90,35%, prinde 1.938 din 2.145 fraude (ratează 207).
  • Când nu ești sigură, redirecționează către ce știi: „O abordare posibilă este… iar în lucrare am ales… pentru că…".
  • Limitările sunt puncte forte, nu slăbiciuni — arată maturitate. Le enumeri calm.