BASH – en begyndelse

oktober 15, 2016

https://www.ibm.com/developerworks/aix/library/au-getstartedbash/ http://www.pcworld.com/article/3050473/windows/heres-how-windows-10s-ubuntu-based-bash-shell-will-actually-work.html

Mysql – column options

oktober 8, 2016

Options MySQL Server 5.7 PK: PRIMARY KEY NN: NOT NULL UQ: UNIQUE INDEX BIN: BINARY UN: UNSIGNED ZF: ZEROFILL AI: AUTO_INCREMENT G: Generated Column

SQL trigger insert merge update

oktober 8, 2016

Ved opdatering af tabel1 skal tabel2 opdateres Der er andre der har lavet før mig. Et eksempel er fra SQL Blog MERGE INTO Customers AS c USING Moved AS m ON m.SSN = c.SSN WHEN MATCHED THEN UPDATE SET Street = m.Street, HouseNo = m.HouseNo, City = m.City; SQL trigger on update — ============================================= — Object : Trigger [dbo].[fcs_itemUpdate] — Script Date: 08-10-2016 12:31:10 — ============================================= SET ANSI_NULLS ON GO

Read More

URL rewrites for Angular

september 18, 2016

Apache .htaccess RewriteEngine On # If an existing asset or directory is requested go to it as it is RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d RewriteRule ^ – [L] # If the requested resource doesn’t exist, use index.html RewriteRule ^ /index.html IIS web.config <configuration> <system.webServer> <rewrite> <rules> <!– rewrite to https –> <rule name="Redirect to HTTPS" stopProcessing="true"> <match url="(.*)" negate="false"/> <conditions logicalGrouping="MatchAny"> <add input="{HTTPS}" pattern="^OFF$"/> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/{R:1}"

Read More

Layout skitse

september 3, 2016

Webside layout skitse funktionalitet Offentlig Om Info feature Kontakt Danmark Sverige Norge Katalog Filter feature Vare Billede Navn Varenummer HMS/SDS Video Book demo Firma feature Branche Telefon Email Salg Login Salg Kundeliste feature Filter Kunde Stamdata Firmanavn Adresse Post By Lev. adrs Fakt. adrs Email Faktura Notat Ny ordre Produkter Varenavn Varenummer PrisA PrisB Total antal Til ordre Ordrerliste Status Filter Ordre Status Ordrehoved Ordrelinjer Aktivitet Dato Person Demo Produkt(er)

Read More

Binære forkortelser og størrelser

august 21, 2016

Enheder Binær bit b 1 b byte B 8 b Decimal kilobit kb 1.000 b 10^3 b kilobyte kB 1.000 B 10^3 B megabit Mb 1.000 kb 10^6 b 1.000.000 b megabyte MB 1.000 kB 10^6 B 1.000.000 B gigabit Gb 1.000 Mb 10^9 b 1.000.000.000 b gigabyte GB 1000 MB 10^9 B 1.000.000.000 B Transmission 1 bps bps b/s ~ 0,001 kbps kb/s ~ 0,125 Bps B/s ~ 0,45

Read More

Angular 2 noter

august 19, 2016

NOTE: set active link routerLinkAcive=”active” [routerLinkActiveOptions]=”{ exact: true } text-variables bind with {{ user.name }} boolean-variables bind with { !isAuthenticated }

CSS element altid nederst

august 16, 2016

Kilde cssreset.com Markup Styles #content.padding-bottom >= #footer.height html, body { margin:0; padding:0; height:100%; } #wrapper { min-height:100%; position:relative; } #header { background:#ededed; padding:10px; } #content { /* Height of the footer element */ padding-bottom:100px; } #footer { background:#ffab62; width:100%; height:100px; position:absolute; bottom:0; left:0; }