blog.darkstar.work - a simple url encoder/decoder

 a simple url encoder/decoder
 http://blog.darkstar.work

Labels

Wirtschaft (150) Pressefreiheit (125) Österreich (120) IT (95) code (60) Staatsschulden (37) EZB (27) Pensionssystem (16)

2018-12-25

AWS CodePipeline for android Github project

A short summary, how to create an amazon code pipeline and build project by using an android java github as source repository. (inspired by j-a.f)

I have choosen my github schnapslet project android subtree for trial.

Login into amazon webservices console

https://console.aws.amazon.com/codesuite/codepipeline/pipelines?region=us-east-1#

Click on "Create pipeline"

Choose pipeline settings

Enter a "Pipeline name" and a service role for your new pipeline here. Click "Next".

Choose source provider

Choose Gitub, authorize with your github credentials or choose a public github project, choose repositoty, choose branch, then click "Next".

Add build stage

Choose AWS CodeBuild and click on "Create project".

Create build project

In section "Project" configuration fill out "Project name" (Description - optional).

In section "Environment", I choosed the simplest way with "Managed image" as environment image, "Ubuntu" as operating system, "Android" as runtime, "aws/codebuild/android-java-8:26.1.1" as runtime version, default new service role.

In subsection "Additional configuration", you can enable a VPC on your virtual Ubuntu build server, e.g. if you want to login with ssh; you can select various performance features here, like "15 GB memory, 8 vCPUs" for your build server, you can set manually environment variables here and so on. We didn't need that here for only a simple proof of concepts.


In section "Buildspec" I choosed "Insert build commands", then switched to source editor and edited the following buildspec.yaml:
version: 0.2
phases:
  #install: #commands: # - command
  #pre_build: #commands: # - command
  build:
    commands
     - sudo chmod 755 $CODEBUILD_SRC_DIR/android/Schnapslet/gradlew
     - $CODEBUILD_SRC_DIR/android/Schnapslet/gradlew init -i
     - $CODEBUILD_SRC_DIR/android/Schnapslet/gradlew build -i
     - $CODEBUILD_SRC_DIR/android/Schnapslet/gradlew build --build-file $CODEBUILD_SRC_DIR/android/Schnapslet/app/build.gradle -i
#post_build: #commands: # - command
#artifacts: #files: # - location
#cache: #paths: # - paths

Finally click "Continue to CodePipeline".

Now click "Next", when you are back again on "Add build stage" site.

Add deploy stage

I skipped that option for that proof of concept.

Review

Rewiew "Pipeline settings", "Add source stage", "Add build stage", "Add deploy stage" here and finally click "Create pipeline".

Release change

Finally "Release change".

You can configure your "Build project" seperatly now here: https://console.aws.amazon.com/codesuite/codebuild/projects?region=us-east-1
e.g. if you want to change your buildspec.yaml or view different build logs.

2018-12-18

Html-Sql-Injection Detection

A very simple prototype of html injection detection in MS SQLServer, please notice, that real detection is much more complex...

If Exists(Select Top 1 object_id From tempdb.sys.tables Where name = '##InjWatch')
Delete From ##InjWatch
Else
Create Table ##InjWatch ( ctext nvarchar(Max), tab varchar(768), col varchar(768)
);
GO 

Declare InjectCursor Cursor FAST_FORWARD READ_ONLY For 
  Select 'Cast([' + c.name + '] as nvarchar(max))' as c_cast,
    c.name as c_name, '' + s.name + '.[' +T.name + ']' as sT_name
  From sys.tables T
  Inner Join sys.columns c
    On  c.object_id = T.object_id
    and c.max_length > 16 and c.system_type_id In (Select system_type_id From sys.types Where name In('varchar', 'nvarchar''char''nchar''text''ntext'))
  Inner Join sys.schemas s
    On s.schema_id = T.schema_id

Declare @c_cast varchar(1024), @c_name varchar(768), @sT_name varchar(768)
Open InjectCursor
Fetch Next From InjectCursor Into @c_cast, @c_name, @sT_name

While
 (@@FETCH_STATUS = 0)
Begin
  Declare @execSQL nvarchar(max)
  Set @execSQL = 'insert into ##InjWatch (ctext, tab, col) '+
    'select ' + @c_cast + ' as ctext, ''' + @sT_name + ''' as tab, ''' + @c_name + ''' as col ' +
    ' from ' + @sT_name + ' with (nolock) ' +
    ' where (' + @c_cast + ' like ''%<%'' and ' + @c_cast + ' like ''%>%'') ' +
    ' or ' + @c_cast + ' like ''%script:%'' or ' + @c_cast + ' like ''%://%''' +
    ' or ' + @c_cast + ' like ''%href%'' or ' + @c_cast + ' like ''%return %''' +
    ' or ' + @c_cast + ' like ''%mailto:%'''
  Execute sp_executesql @execSQL;
  Fetch Next From InjectCursor Into @c_cast, @c_name, @sT_name
End
Close InjectCursor
Deallocate InjectCursor

Select Distinct * From ##InjWatch
GO 

2018-05-28

Generate WSDL on the fly, with CodeDom instead WSDL:EXE

Generate WSDL on the fly, with CodeDom instead WSDL:EXE

#C#

var wsdlDescription = ServiceDescription.Read(YourWSDLFile);
var wsdlImporter = new ServiceDescriptionImporter();
wsdlImporter.ProtocolName = "Soap12"; //Might differ
wsdlImporter.AddServiceDescription(wsdlDescription, null, null);
wsdlImporter.Style = ServiceDescriptionImportStyle.Server;
wsdlImporter.CodeGenerationOptions = System.Xml.Serialization.CodeGenerationOptions.GenerateProperties;
var codeNamespace = new CodeNamespace();
var codeUnit = new CodeCompileUnit();
codeUnit.Namespaces.Add(codeNamespace);
var importWarning = wsdlImporter.Import(codeNamespace, codeUnit);
if (importWarning == 0) {
var stringBuilder = new StringBuilder();
var stringWriter = new StringWriter(stringBuilder);
var codeProvider = CodeDomProvider.CreateProvider("Vb");
codeProvider.GenerateCodeFromCompileUnit(codeUnit, stringWriter, new CodeGeneratorOptions());
stringWriter.Close();
File.WriteAllText(WhereYouWantYourClass, stringBuilder.ToString(), Encoding.UTF8);

} else {

Console.WriteLine(importWarning);

}


#VB

Dim SoapClient As MSSOAPLib30.SoapClient30
Dim XMLDoc As MSXML2.DOMDocument40
Dim vCol As Collection
Dim abc As Variant

Set SoapClient = New MSSOAPLib30.SoapClient30

Set XMLDoc = New MSXML2.DOMDocument40
SoapClient.ClientProperty("ServerHTTPRequest") = True

Call
SoapClient.MSSoapInit("http://169.242.82.87:8080/apex/CurveWebService.ws dl",
"CurveWebServiceService", "CurveWebService")

SoapClient.ConnectorProperty("Timeout") = 30000
SoapClient.ConnectorProperty("UseSSL") = 0

abc = SoapClient.getCurve("EMGLN", "YC_EUR_LIBOR", "GDAXML")

XMLDoc.validateOnParse = False
XMLDoc.LoadXml abc


https://weblog.west-wind.com/posts/2009/Feb/12/WSDL-Imports-without-WSDLexe

2017-08-20

Was macht die Schweiz besser als Österreich?

1. Die Schweiz hat einen funktionierenden Föderalismus und Österreich nicht.
(In Österreich nimmt der Bund ein und die Länder geben aus.)

2. Die Schweiz hat ein nachhaltig finanzierbares Rentensystem und Österreich nicht, siehe:
In der Schweiz liegt dies für Frauen bei 64 Jahren und für Männer bei 65 Jahren.
(In Österreich liegt das Rentenantrittsalter für Frauen bei 60 Jahren und es wird erst ab dem Jahr 2024 schrittweise angehoben.)

3. Die Schweiz hat 3% Arbeitslosigkeit und Österreich 7,6%.
https://tradingeconomics.com/switzerland/unemployment-rate

https://tradingeconomics.com/austria/unemployment-rate

4. Die Schweiz hat 32,6% Staatsschulden in % des BIP und Österreich 84,6%.
https://tradingeconomics.com/switzerland/government-debt-to-gdp
https://tradingeconomics.com/austria/government-debt-to-gdp

5. Die Schweiz  verteilt 33,6% des BIPs um
https://de.statista.com/statistik/daten/studie/216779/umfrage/staatsquote-in-der-schweiz/
und Österreich 51% des BIPs.
https://de.statista.com/statistik/daten/studie/217706/umfrage/staatsquote-in-oesterreich/

Also ⅓ der Leistung aller Schweizer wird an Arme und Bedürftige umverteilt und für Bildung, Infrastruktur, Gesundheit, Verwaltung, Heer, Polizei, Gerichte,  u.s.w. ausgegeben und in Österreich ist es mehr als die Hälfte der Leistung aller Österreicher. Ich halte Staatsquoten jenseits der 50% für eher problematisch. (Optimal ist die Staatsquote meiner Meinung nach zwischen 30% - 48% je nach Struktur des Staates, darunter wird es eher anti-sozial und darüber ist die Last für die Leister zu hoch.)
Nun ist es aber so, dass Heer, Polizei, Bildung, Gesundheit in der Schweiz nicht unbedingt schlechter sind (vermutlich sogar besser sind) als in Österreich.
(Anmerkung: Das Heer und die Polizei werden in Österreich aber auch nicht wirklich sehr stark subventioniert.)

6. Beim Pisa-Test im Bereich Bildung schneiden die Schweizerinnen auch besser ab als Österreicherinnen, besonders in Mathematik:
https://www.nzz.ch/schweiz/pisa-studie-2015-schweizer-15-jaehrige-rechnen-europaweit-am-besten-ld.132847

7. Obwohl die Steuern und Abgaben in der Schweiz viel niedriger sind als in Österreich und die Firmen mit dem gleichen Brutto Budget mehr Arbeiter einstellen können aufgrund der niederen Steuern und Abgaben, gibt es in der Schweiz weniger manifeste Armut als in Österreich. (Klingt komisch, ist aber so.)
Siehe: https://www.lohncomputer.ch

Die Schweiz ist extrem neoliberal föderalistisch friedliebend, aber ist das wirklich so das schlechteste für ein kleines Alpenland?

Tja, die Babyboomer gehen sicher in 5-15 Jahren sowohl in Österreich als auch in der Schweiz so ziemlich sicher in Rente, nur die Schweiz ist für dieses sehr vorhersehbare Ereignis sehr gut gerüstet, Österreich leider weniger. (Not my cup of tea anymore).
Quelle: CIA

2017-07-12

macroeconomics indicators of Poland

Macroeconomics indicators of Poland are looking quiet OK compared to southern european countries!

government debt under Maastricht criteria

Poland recorded a government debt equivalent to 54.40 percent of the country's Gross Domestic Product in 2016. Government Debt to GDP in Poland averaged 46.47 percent from 1995 until 2016, reaching an all time high of 55.70 percent in 2013 and a record low of 36.50 percent in 2000.
https://tradingeconomics.com/poland/government-debt-to-gdp

GDP per capita looks healthy

The Gross Domestic Product per capita in Poland was last recorded at 26003.01 US dollars in 2016, when adjusted by purchasing power parity (PPP). The GDP per Capita, in Poland, when adjusted by Purchasing Power Parity is equivalent to 146 percent of the world's average.
https://tradingeconomics.com/poland/gdp-per-capita-ppp

Current Account could be a little bit better, but is mostly balanced now

https://tradingeconomics.com/poland/current-account-to-gdp

Poland succeeded to lower unemployment rate since 2008 very well

https://tradingeconomics.com/poland/unemployment-rate
Main stock index the Warsaw Stock Exchange WIG is performing very well over the last 4 years, since other european stock indices were in trouble during the same time.
Source: https://www.bloomberg.com/quote/WIG:IND

Polish zloty has approximately same value as turkish lira


At least demographics of Poland (Population age pyramid) could be better and is not so balanced,
http://www.indexmundi.com/graphs/population-pyramids/poland-population-pyramid-2014.gif

2017-07-05

macroeconomics indicators of Norway

Macroeconomics indicators of Norway are looking very good compared to it's neighbors! 

Very low debts
Norway recorded a government debt equivalent to 35.60 percent of the country's Gross Domestic Product in 2016.

https://tradingeconomics.com/norway/government-debt-to-gdp
GDP per capita looks healthy
The Gross Domestic Product per capita in Norway was last recorded at 64272.16 US dollars in 2015, when adjusted by purchasing power parity (PPP). The GDP per Capita, in Norway, when adjusted by Purchasing Power Parity is equivalent to 362 percent of the world's average.
https://tradingeconomics.com/norway/gdp-per-capita-ppp
Current Account and Balance of Trade generate quiet good surplus 
Norway recorded a Current Account surplus of 4.90 percent of the country's Gross Domestic Product in 2016. Current Account to GDP in Norway averaged 6.85 percent from 1980 until 2016, reaching an all time high of 16.20 percent in 2005 and a record low of -6.10 percent in 1986.
https://tradingeconomics.com/norway/current-account-to-gdp
https://tradingeconomics.com/norway/balance-of-trade

Unemployment rate is as low as US (much lower as euro-zone average with 9.2%)
Norway's seasonally adjusted unemployment rate edged up to 4.6 percent in the three months to May 2017 from 4.3 percent in the December-February period and above market expectations of 4.4 percent.
https://tradingeconomics.com/norway/unemployment-rate

Main stock index the Oslo Børs All Share Index (OSEAX) is performing very well over the last 4 years, since other european stock indices were in trouble during the same time.
 Yahoo Finance; goo.gl/CUASdx
Last but not least, demographics of Norway (Population age pyramid) are looking better than many other european countries (e.g. Germany).
http://www.indexmundi.com/norway/age_structure.html

2017-07-01

Was machen die USA, Kanada und Mexiko besser als die EU?

Wenn ich mir die Arbeitslosenzahlen in den USA, Kanada und Mexiko ansehen, dann liegen die gesamt gerechnet im Schnitt unter 5%.


Quelle: tradingeconomics.com
Im Vergleich dazu liegt die Arbeitslosenrate der Euro-Zone noch immer über 9%, siehe:
Quelle: tradingeconomics.com/euro-area/unemployment-rate

Auch die Demographien (Alterspyramiden) der Vereinigten Staaten, Kanada und Mexiko sehen weitaus gesünder aus, als die der meisten europäischer Staaten. Die Rentensysteme der USA, Kanada und Mexiko stehen auf sehr soliden Beinen und sind sehr nachhaltig gestaltet, nicht nur für Kinder, sondern auch bereits für Enkelkinder.
Quelle: www.indexmundi.com
Auch normalisieren sich derzeit die Leitzinsen auch in den Vereinigten Staaten von Amerika bereits wieder.
Quelle: www.leitzinsen.info

Also stelle ich provokant folgende Frage;
Was läuft jenseits des Atlantiks besser als in Europa (ohne Lichtgestalt wie Merkel und trotz Trump)?

2017-06-29

Kirchen in Istanbul

Die Kirchen in Istanbul sind am Sonntag immer für Christen offen.

Allerdings ist es den orthodoxen Christen sehr wichtig, dass man im inneren nicht fotografiert. Leider fotografierten einige Touristen ziemlich respektlos drinnen, aber ich respektierte den Wunsch der orthodoxen Christen und machte keine Fotos innen, sondern nur von außen.
Die Orthodoxen Christen fühlen sich so gestört, wenn sie beim beten fotografiert werden.

Nun ich respektiere sehr die religiöse Privatsphäre der orthodoxen Christen in der Türkei, da mir dieser Wunsch rein privat doch sehr nachvollziehbar ist.

Ich würde Istanbul Touristen bitten, nicht mehr so intensiv die orthodoxen Christen beim Beten zu fotografieren, da diese noch sehr scheu sind und erst unter der AKP Regierung ihre von den Jungtürken vor 100 Jahren enteigneten Immobilien zurück bekamen.
Sicher blieben die orthodoxen Kirchen offen, aber mit wäre es wirklich ein Anliegen, wenn die Gebetszeremonie der orthodoxen Christen von Touristen etwas mehr respektiert würde.

2017-05-13

GALWAY GIRL



GALWAY GIRL SONGTEXT

She played the fiddle in an Irish band
But she fell in love with an English man
Kissed her on the neck and then I took her by the hand
Said, "Baby, I just want to dance"
I met her on Grafton street right outside of the bar
She shared a cigarette with me while her brother played the guitar
She asked me what does it mean, the Gaelic ink on your arm?
Said it was one of my friend's songs, do you want to drink on?
She took Jamie as a chaser, Jack for the fun
She got Arthur on the table with Johnny riding a shotgun
Chatted some more, one more drink at the bar
Then put Van on the jukebox, got up to dance
You know, she played the fiddle in an Irish band
But she fell in love with an English man
Kissed her on the neck and then I took her by the hand
Said, "Baby, I just want to dance"
With my pretty little Galway Girl
You're my pretty little Galway Girl
You know she beat me at darts and then she beat me at pool
And then she kissed me like there was nobody else in the room
As last orders were called was when she stood on the stool
After dancing to Cèilidh singing to trad tunes
I never heard Carrickfergus ever sang so sweet
A capella in the bar using her feet for a beat
Oh, I could have that voice playing on repeat for a week
And in this packed out room swear she was singing to me
You know, she played the fiddle in an Irish band
But she fell in love with an English man
Kissed her on the neck and then I took her by the hand
Said, "Baby, I just want to dance"
My pretty little Galway Girl
My, my, my, my, my, my, my Galway Girl
My, my, my, my, my, my, my Galway Girl
My, my, my, my, my, my, my Galway Girl
And now we've outstayed our welcome and it's closing time
I was holding her hand, her hand was holding mine
Our coats both smell of smoke, whisky and wine
As we fill up our lungs with the cold air of the night
I walked her home then she took me inside
To finish some Doritos and another bottle of wine
I swear I'm gonna put you in a song that I write
About a Galway Girl and a perfect night
She played the fiddle in an Irish band
But she fell in love with an English man
Kissed her on the neck and then I took her by the hand
Said, "Baby, I just want to dance"
My pretty little Galway Girl
My, my, my, my, my, my, my Galway Girl
My, my, my, my, my, my, my Galway Girl
My, my, my, my, my, my, my Galway Girl

2017-04-16

Chrome Browser execs "cmd.exe" on local machine :(

When Chrome browser execs cmd.exe as child process,
which popens McAfee as child,
so that McAfee's parent is cmd.exe
and McAfee's grandparent is Chrome,
I feel so really very strange!

An internet browser could write cookies to your harddisk,
a web browser could write cached data files to your harddrive,
a browser might read/write registry keys ( if proper implemented only to its registry area ) under Microsoft Windows,
but a browser should never ever start processes [ under Posix/unix a.k.a exec/popen/fork ] such as unsandboxed binary programs, (see WinAPI index)
that will running under users privileges with maximum users rights on local machine!

2017-04-10

Österreich & EU basieren auf Rechtsstaatlichkeit

Das ist nicht der wilde Westen oder mittlere Osten,
hier gehen wir bei Unrecht zu Gericht.
Neither guns & glory, nor djihadi allahu akbar!
§ 288 StGB Falsche Beweisaussage
bis zu 3 Jahren Freiheitsstrafe
  1. (1) Wer vor Gericht als Zeuge oder, soweit er nicht zugleich Partei ist, als Auskunftsperson bei seiner förmlichen Vernehmung zur Sache falsch aussagt oder als Sachverständiger einen falschen Befund oder ein falsches Gutachten erstattet, ist mit Freiheitsstrafe bis zu drei Jahren zu bestrafen.
  2. (2) Wer vor Gericht eine falsche Beweisaussage (Abs. 1) unter Eid ablegt oder mit einem Eid bekräftigt oder sonst einen in den Gesetzen vorgesehenen Eid vor Gericht falsch schwört, ist mit Freiheitsstrafe von sechs Monaten bis zu fünf Jahren zu bestrafen. Einem Eid steht die Berufung auf einen früher abgelegten Eid und bei Personen, die von der Pflicht zur Eidesleistung befreit sind, die anstelle des Eides vorgesehene Beteuerung gleich.
  3. (3) Nach den Abs. 1 und 2 ist auch zu bestrafen, wer eine der dort genannten Handlungen im Verfahren vor einem Untersuchungsausschuss des Nationalrates oder einer Disziplinarbehörde des Bundes, eines Landes oder einer Gemeinde begeht.
  4. (4) Nach Abs. 1 ist auch zu bestrafen, wer als Zeuge oder Sachverständiger eine der dort genannten Handlungen in einem Ermittlungsverfahren nach der Strafprozessordnung vor Kriminalpolizei oder Staatsanwaltschaft begeht.

§ 289 StGB Falsche Beweisaussage vor einer Verwaltungsbehörde
Freiheitsstrafe bis zu 1 Jahr oder Geldstrafe bis zu 720 Tagessätzen
  1. Wer außer in den Fällen des § 288 Abs. 3 und 4 vor einer Verwaltungsbehörde als Zeuge bei seiner förmlichen Vernehmung zur Sache falsch aussagt oder als Sachverständiger einen falschen Befund oder ein falsches Gutachten erstattet, ist mit Freiheitsstrafe bis zu einem Jahr oder mit Geldstrafe bis zu 720 Tagessätzen zu bestrafen.

§ 292 StGB Herbeiführung einer unrichtigen Beweisaussage
Gutgläubige zur unrichtigen Aussage verleiten vor Gericht
=> bis zu 3 Jahren Freiheitsstrafe
Gutgläubige zur unrichtigen Aussage verleiten vor Verwaltungsbehörde:
=> Freiheitsstrafe bis zu 1 Jahr oder Geldstrafe bis zu 720 Tagessätzen
  1. (1) Wer einen anderen durch Täuschung über Tatsachen dazu verleitet, gutgläubig eine unrichtige Beweisaussage abzulegen (§ 288), ist mit Freiheitsstrafe bis zu drei Jahren zu bestrafen.
  2. (2) Wer auf die im Abs. 1 bezeichnete Weise bewirkt, daß jemand gutgläubig eine unrichtige Beweisaussage vor einer Verwaltungsbehörde ablegt (§ 289), ist mit Freiheitsstrafe bis zu einem Jahr oder mit Geldstrafe bis zu 720 Tagessätzen zu bestrafen.

2017-04-09

Swisscom Auto Login

/data/misc/wifi/

wpa_supplicant.conf

ctrl_interface=/data/misc/wifi/sockets
driver_param=use_p2p_group_interface=1
update_config=1
device_name=Hol-U19
manufacturer=HUAWEI
model_name=Hol-U19
model_number=Hol-U19
serial_number=******
device_type=10-0050F204-5
os_version=01020300
config_methods=physical_display virtual_push_button
p2p_no_group_iface=1

network={
 ssid="Swisscom_Auto_Login"
 key_mgmt=WPA-EAP IEEE8021X
 eap=SIM
 sim_slot="0"
 imsi="1232072504805647@wlan.mnc007.mcc232.3gppnetwork.org"
}

network={
 ssid="Free_Swisscom_Auto_Login"
 key_mgmt=WPA-EAP IEEE8021X
 eap=SIM
}

network={
 ssid="Swisscom_Auto_Login"
 key_mgmt=WPA-EAP IEEE8021X
 eap=SIM
 sim_slot="0"
 imsi="1232072504805647@wlan.mnc007.mcc232.3gppnetwork.org"
 priority=1
}

network={
 ssid="Free_Swisscom_Auto_Login"
 key_mgmt=WPA-EAP IEEE8021X
 eap=SIM
}

hostapd.conf

interface=ap0
driver=nl80211
ctrl_interface=/data/misc/wifi/hostapd
ssid=Hol-U19_8639
channel=6
ieee80211n=1
hw_mode=g
ignore_broadcast_ssid=0
max_num_sta=5
eap_server=1
wps_state=2
config_methods=display physical_display push_button
device_name=AndroidAP
manufacturer=MediaTek Inc.
model_name=MTK Wireless Model
model_number=66xx
serial_number=1.0
device_type=10-0050F204-5
wpa=2
rsn_pairwise=CCMP
wpa_psk=f8e8dc3c535319f60c1166220c1b843e82aa5f6a4ad0854d65c92a7befd0017e

p2p_supplicant.conf

ctrl_interface=/data/misc/wifi/sockets
driver_param=use_p2p_group_interface=1
update_config=1
device_name=1466568
manufacturer=MediaTek Inc.
model_name=MTK Wireless Model
model_number=1.0
serial_number=******
device_type=10-0050F204-5
os_version=01020300
config_methods=virtual_push_button physical_display keypad
p2p_ssid_postfix=-1466568
persistent_reconnect=1
p2p_no_group_iface=1

2017-03-29

Energy saving through dynamic working hours according to geographic circumstances?

Norge vinter sommer skip historisk



Scandinavia summer winter day length



Yearly Sun Graph for Oslo

Life rhythm - how it worked historically?

During winter with few hours of daylight Scandinavians were less active outside, ships were mostly overwintered, there were joint gatherings. In the summer, where Scandinavians had daylight from 14 hours to 18 hours per day, the people were longer active outside.

How is that elsewhere?
In southern mediterranean regions, a siesta is held during the summer at high noon and in the Middle East, North Africa nobofy travel through desert at high noon or early afternoon.

Would it make sense in Scandinavia to extend working hours in summer by 1,5h additionally and to shorten the same time interval from working hours in winter?
No idea, I simply don't know!