kimai and reformat
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
[params]
|
||||
[params.theme_config]
|
||||
appearance = "auto"
|
||||
back_home_text = ".."
|
||||
back_home_text = "Back.."
|
||||
date_format = "2006-01-02"
|
||||
isListGroupByDate = false
|
||||
isShowFooter = true
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
draft: false
|
||||
title: "Freescout is the Wunder-Helpdesk!"
|
||||
date: 2026-06-23T00:00:00+08:00
|
||||
cateogry: productivity
|
||||
date: 2026-06-24T00:00:00+08:00
|
||||
---
|
||||
|
||||
# Meet FreeScout: The Help Desk You Own
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
draft: false
|
||||
title: "Introducing Jitsi"
|
||||
cateogry: video
|
||||
date: 2026-06-23T00:00:00+08:00
|
||||
---
|
||||
|
||||
|
||||
44
content/posts/kimai-june-24-2026.md
Normal file
44
content/posts/kimai-june-24-2026.md
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
draft: false
|
||||
title: "Kimai Time Tracking"
|
||||
category: productivity
|
||||
date: 2026-06-24T00:00:00+08:00
|
||||
---
|
||||
|
||||
# Meet Kimai: Open Source Time Tracking That Doesn't Lock You In
|
||||
|
||||
If you're paying for Harvest, Toggl, or Clockify and wondering why time tracking costs this much, Kimai is worth a serious look. It's a free, open-source time tracker built for project-driven teams — freelancers, agencies, consultants, and companies of all sizes — and it's trusted by over 7,000 organizations worldwide.
|
||||
|
||||
Made in Austria, open source under AGPL 3, and available in 20+ languages.
|
||||
|
||||
## What It Does
|
||||
|
||||
At its core, Kimai tracks time against projects, customers, and activities. But it goes well beyond a simple stopwatch. You get detailed reporting and analysis — breakable down by user, customer, project, activity, tag, or time period — so you actually understand where your team's hours are going. And when it's time to bill a client, Kimai can generate invoices directly from your tracked time, with configurable templates, entry grouping, custom invoice numbers, and output in PDF or DOCX.
|
||||
|
||||
For teams that need to plug into existing infrastructure, Kimai supports LDAP and SAML authentication (Google Workspace, Azure AD, Authentik), two-factor authentication via TOTP, and ships with an extensive JSON API so it can talk to your other tools. There's also a plugin marketplace if you need to extend it further.
|
||||
|
||||
## Cloud or Self-Hosted — Your Call
|
||||
|
||||
This is where Kimai stands out from most SaaS time trackers: you actually get to choose how it runs.
|
||||
|
||||
**Kimai Cloud** is the managed option — instant setup, automatic updates and backups, GDPR-compliant EU hosting, and priority support. It's the quickest path to getting your team up and running, and it includes plugins out of the box.
|
||||
|
||||
**Self-hosting** is free forever. Deploy it on your own server via Docker or manually, and you have complete control over your data and infrastructure. The community forum on GitHub is active, and there's a plugin marketplace for self-hosted installations as well.
|
||||
|
||||
Same features either way. You just decide where it lives.
|
||||
|
||||
## Who It's For
|
||||
|
||||
Kimai is designed for teams that bill by the hour or need to track time against projects — agencies, consultants, software developers, and non-profits. Users consistently highlight how straightforward and intuitive it is to pick up. One executive director put it simply: "I needed to find a good time tracker on short notice, wanted it to be EU hosted and open source. Luckily, I found Kimai and have been very happy with it ever since."
|
||||
|
||||
For organizations where data sovereignty matters — and for technical teams that just don't want another SaaS bill — Kimai is a genuinely production-ready alternative to the paid tools. It's been around long enough to be stable, has active development, and the team is known for responsive support.
|
||||
|
||||
## The Bottom Line
|
||||
|
||||
If you're a technical team running on Harvest, Toggl, or a similar tool and the per-seat cost is starting to sting, Kimai gives you a credible exit. Self-host it for free, or let the Kimai team run it for you in the cloud. Either way, you own your data and you're not beholden to a pricing page that changes every year.
|
||||
|
||||
[Start for free on Kimai Cloud](https://www.kimai.cloud/auth/registration) or [install it yourself](https://www.kimai.org/en/download.html) — the choice is yours.
|
||||
|
||||
---
|
||||
|
||||
Learn more at [federated.computer](https://federated.computer). Want to offer Nextcloud to your customers or partners? Check out [Federated Enterprise](https://enterprise.federated.computer).
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
draft: false
|
||||
title: "Nextcloud"
|
||||
category: office
|
||||
date: 2026-06-22T00:00:00+08:00
|
||||
---
|
||||
|
||||
|
||||
@@ -1,86 +0,0 @@
|
||||
---
|
||||
draft: true
|
||||
title: "overview"
|
||||
date: 2020-07-07T00:00:00+08:00
|
||||
---
|
||||
|
||||
Lorem ipsum[^1] dolor sit amet, consectetur adipiscing elit. Pellentesque vel lacinia neque. Praesent nulla quam, ullamcorper in sollicitudin ac, molestie sed justo. Cras aliquam, sapien id consectetur accumsan, augue magna faucibus ex, ut ultricies turpis tortor vel ante. In at rutrum tellus.
|
||||
|
||||
# Sample heading 1
|
||||
## Sample heading 2
|
||||
### Sample heading 3
|
||||
#### Sample heading 4
|
||||
##### Sample heading 5
|
||||
###### Sample heading 6
|
||||
|
||||
Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod.
|
||||
|
||||
## Lists
|
||||
|
||||
Unordered:
|
||||
|
||||
- Fusce non velit cursus ligula mattis convallis vel at metus[^2].
|
||||
- Sed pharetra tellus massa, non elementum eros vulputate non.
|
||||
- Suspendisse potenti.
|
||||
|
||||
Ordered:
|
||||
|
||||
1. Quisque arcu felis, laoreet vel accumsan sit amet, fermentum at nunc.
|
||||
2. Sed massa quam, auctor in eros quis, porttitor tincidunt orci.
|
||||
3. Nulla convallis id sapien ornare viverra.
|
||||
4. Nam a est eget ligula pellentesque posuere.
|
||||
|
||||
## Blockquote
|
||||
|
||||
The following is a blockquote:
|
||||
|
||||
> Suspendisse tempus dolor nec risus sodales posuere. Proin dui dui, mollis a consectetur molestie, lobortis vitae tellus.
|
||||
|
||||
## Thematic breaks (<hr>)
|
||||
|
||||
Mauris viverra dictum ultricies[^3]. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. **You can put some text inside the horizontal rule like so.**
|
||||
|
||||
---
|
||||
{data-content = "with text"}
|
||||
|
||||
Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. **Or you can just have an clean horizontal rule.**
|
||||
|
||||
---
|
||||
|
||||
Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Etiam id nisl ut lorem gravida euismod. Or you can just have an clean horizontal rule.
|
||||
|
||||
## Code
|
||||
|
||||
Now some code:
|
||||
|
||||
{{< highlight javascript >}}
|
||||
const ultimateTruth = 'this theme is the best!';
|
||||
console.log(ultimateTruth);
|
||||
{{< / highlight >}}
|
||||
|
||||
And here is some `inline code`!
|
||||
|
||||
## Tables
|
||||
|
||||
Now a table:
|
||||
|
||||
| Tables | Are | Cool |
|
||||
| ------------- |:-------------:| -----:|
|
||||
| col 3 is | right-aligned | $1600 |
|
||||
| col 2 is | centered | $12 |
|
||||
| zebra stripes | are neat | $1 |
|
||||
|
||||
## Images
|
||||
|
||||

|
||||
{.ioda}
|
||||
|
||||
Logo of *no style, please!* theme[^4]
|
||||
|
||||
---
|
||||
{data-content = "footnotes"}
|
||||
|
||||
[^1]: this is a footnote. It should highlight if you click on the corresponding superscript number.
|
||||
[^2]: hey there, i'm using no style please!
|
||||
[^3]: this is another footnote.
|
||||
[^4]: this is a very very long footnote to test if a very very long footnote brings some problems or not. I strongly hope that there are no problems but you know sometimes problems arise from nowhere.
|
||||
@@ -1,28 +0,0 @@
|
||||
---
|
||||
draft: true
|
||||
title: "headings and toc"
|
||||
date: 2020-07-09T00:00:00+08:00
|
||||
---
|
||||
|
||||
Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Nunc a egestas tortor, sed feugiat leo.
|
||||
|
||||
## Table of contents
|
||||
- [Table of contents](#table-of-contents)
|
||||
- [The start](#the-start)
|
||||
- [The middle](#the-middle)
|
||||
- [The end](#the-end)
|
||||
|
||||
Mauris viverra dictum ultricies. Vestibulum quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Nunc a egestas tortor, sed feugiat leo. Vestibulum porta tincidunt tellus, vitae ornare tortor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed nunc neque, tempor in iaculis non, faucibus et metus. Etiam id nisl ut lorem gravida euismod.
|
||||
|
||||
## [The start](#the-start)
|
||||
|
||||
Fusce non velit cursus ligula mattis convallis vel at metus. Sed pharetra tellus massa, non elementum eros vulputate non. Suspendisse potenti. Quisque arcu felis, laoreet vel accumsan sit amet, fermentum at nunc. Sed massa quam, auctor in eros quis, porttitor tincidunt orci. Nulla convallis id sapien ornare viverra. Cras nec est lacinia ligula porta tincidunt. Nam a est eget ligula pellentesque posuere. Maecenas quis enim ac risus accumsan scelerisque. Aliquam vitae libero sapien. Etiam convallis, metus nec suscipit condimentum, quam massa congue velit, sit amet sollicitudin nisi tortor a lectus. Cras a arcu enim. Suspendisse hendrerit euismod est ac gravida. Donec vitae elit tristique, suscipit eros at, aliquam augue. In ac faucibus dui. Sed tempor lacus tristique elit sagittis, vitae tempor massa convallis.
|
||||
|
||||
## [The middle](#the-middle)
|
||||
|
||||
Proin quis velit et eros auctor laoreet. Aenean eget nibh odio. Suspendisse mollis enim pretium, fermentum urna vitae, egestas purus. Donec convallis tincidunt purus, scelerisque fermentum eros sagittis vel. Aliquam ac aliquet risus, tempus iaculis est. Fusce molestie mauris non interdum hendrerit. Curabitur ullamcorper, eros vitae interdum volutpat, lacus magna lacinia turpis, at accumsan dui tortor vel lectus. Aenean risus massa, semper non lectus rutrum, facilisis imperdiet mi. Praesent sed quam quis purus auctor ornare et sed augue. Vestibulum non quam quis ligula luctus placerat sed sit amet erat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Fusce auctor, sem eu volutpat dignissim, turpis nibh malesuada arcu, in consequat elit mauris quis sem. Nam tristique sit amet enim vel accumsan. Sed id nibh commodo, dictum sem id, semper quam.
|
||||
|
||||
## The end
|
||||
|
||||
Donec ex lectus, tempus non lacinia quis, pretium non ipsum. Praesent est nunc, rutrum vel tellus eu, tristique laoreet purus. In rutrum orci sit amet ex ornare, sit amet finibus lacus laoreet. Etiam ac facilisis purus, eget porttitor odio. Suspendisse tempus dolor nec risus sodales posuere. Proin dui dui, mollis a consectetur molestie, lobortis vitae tellus. Vivamus at purus sed urna sollicitudin mattis. Mauris lacinia libero in lobortis pulvinar. Nullam sit amet condimentum justo. Donec orci justo, pharetra ut dolor non, interdum finibus orci. Proin vitae ante a dui sodales commodo ac id elit. Nunc vel accumsan nunc, sit amet congue nunc. Aliquam in lacinia velit. Integer lobortis luctus eros, in fermentum metus aliquet a. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
---
|
||||
draft: true
|
||||
title: "hr"
|
||||
date: 2020-07-09T00:00:00+08:00
|
||||
---
|
||||
|
||||
Lorem ipsum[^1] dolor sit amet, consectetur adipiscing elit. Pellentesque vel lacinia neque. Praesent nulla quam, ullamcorper in sollicitudin ac, molestie sed justo. Cras aliquam, sapien id consectetur accumsan, augue magna faucibus ex, ut ultricies turpis tortor vel ante. In at rutrum tellus. Nullam vestibulum metus eu purus malesuada, volutpat mattis leo facilisis. Sed consectetur, nisl et semper laoreet, velit augue congue nunc, eget eleifend odio erat eu sapien. Phasellus dictum efficitur dapibus. Morbi porta lacinia tincidunt. Nam aliquet est mi, nec lacinia ipsum elementum sed. Nam feugiat ipsum tortor, et pretium purus sollicitudin et.
|
||||
|
||||
---
|
||||
|
||||
Mauris viverra dictum ultricies[^2]. Vestibulum[^3] quis ipsum euismod, facilisis metus sed, varius ipsum. Donec scelerisque lacus libero, eu dignissim sem venenatis at. Nunc a egestas tortor, sed feugiat leo. Vestibulum porta tincidunt tellus, vitae ornare tortor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed nunc neque, tempor in iaculis non, faucibus et metus. Etiam id nisl ut lorem gravida euismod.
|
||||
|
||||
Fusce non velit cursus ligula mattis convallis vel at metus. Sed pharetra tellus massa, non elementum eros vulputate non. Suspendisse potenti. Quisque arcu felis, laoreet vel accumsan sit amet, fermentum at nunc. Sed massa quam, auctor in eros quis, porttitor tincidunt orci. Nulla convallis id sapien ornare viverra. Cras nec est lacinia ligula porta tincidunt. Nam a est eget ligula pellentesque posuere. Maecenas quis enim ac risus accumsan scelerisque. Aliquam vitae libero sapien. Etiam convallis, metus nec suscipit condimentum, quam massa congue velit, sit amet sollicitudin nisi tortor a lectus. Cras a arcu enim. Suspendisse hendrerit euismod est ac gravida. Donec vitae elit tristique, suscipit eros at, aliquam augue. In ac faucibus dui. Sed tempor lacus tristique elit sagittis, vitae tempor massa convallis.
|
||||
|
||||
---
|
||||
{data-content="discussions"}
|
||||
|
||||
This article has been discussed here:
|
||||
- [lobste.rs](#)
|
||||
- [/r/webdev](#)
|
||||
|
||||
Feel free to reach out at my email to leave feedback and talk about the article.
|
||||
|
||||
---
|
||||
{data-content="footnotes"}
|
||||
|
||||
[^1]: Okay here I should put something about "ipsum".
|
||||
[^2]: same goes for this.
|
||||
[^3]: I studied latin in high school but im not able to translate *anything*! By the way this is a longer footnote and i think it is still pretty cool, even prettier than shortier ones even though it does not say anything useful but whatever.
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
title: "strange post with custom js"
|
||||
custom_js: [mouse_coords]
|
||||
date: 2020-07-06T00:00:00+08:00
|
||||
draft: true
|
||||
---
|
||||
|
||||
This post is strange. It also has some custom js.
|
||||
@@ -1,349 +0,0 @@
|
||||
---
|
||||
title: "Test Highlight"
|
||||
date: 2022-08-26T22:29:10+08:00
|
||||
draft: true
|
||||
---
|
||||
|
||||
## Test for C
|
||||
```c
|
||||
#define UNICODE
|
||||
#include <windows.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
int speed = 0, speed1 = 0, speed2 = 0; // 1-20
|
||||
printf("Set Mouse Speed by Maverick\n");
|
||||
|
||||
SystemParametersInfo(SPI_GETMOUSESPEED, 0, &speed, 0);
|
||||
printf("Current speed: %2d\n", speed);
|
||||
|
||||
if (argc == 1) return 0;
|
||||
if (argc >= 2) sscanf(argv[1], "%d", &speed1);
|
||||
if (argc >= 3) sscanf(argv[2], "%d", &speed2);
|
||||
|
||||
if (argc == 2) // set speed to first value
|
||||
speed = speed1;
|
||||
else if (speed == speed1 || speed == speed2) // alternate
|
||||
speed = speed1 + speed2 - speed;
|
||||
else
|
||||
speed = speed1; // start with first value
|
||||
|
||||
SystemParametersInfo(SPI_SETMOUSESPEED, 0, speed, 0);
|
||||
SystemParametersInfo(SPI_GETMOUSESPEED, 0, &speed, 0);
|
||||
printf("New speed: %2d\n", speed);
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
## Test for Java
|
||||
|
||||
```java
|
||||
import java.util.Map;
|
||||
import java.util.TreeSet;
|
||||
|
||||
public class GetEnv {
|
||||
/**
|
||||
* let's test generics
|
||||
* @param args the command line arguments
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
// get a map of environment variables
|
||||
Map<String, String> env = System.getenv();
|
||||
// build a sorted set out of the keys and iterate
|
||||
for(String k: new TreeSet<String>(env.keySet())) {
|
||||
System.out.printf("%s = %s\n", k, env.get(k));
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Test for Perl
|
||||
|
||||
```perl
|
||||
#!perl -w
|
||||
|
||||
# Time-stamp: <2002/04/06, 13:12:13 (EST), maverick, csvformat.pl>
|
||||
# Two pass CSV file to table formatter
|
||||
|
||||
$delim = $#ARGV >= 1 ? $ARGV[1] : ',';
|
||||
print STDERR "Split pattern: $delim\n";
|
||||
|
||||
# first pass
|
||||
open F, "<$ARGV[0]" or die;
|
||||
while(<F>)
|
||||
{
|
||||
chomp;
|
||||
$i = 0;
|
||||
map { $max[$_->[1]] = $_->[0] if $_->[0] > ($max[$_->[1]] || 0) }
|
||||
(map {[length $_, $i++]} split($delim));
|
||||
}
|
||||
close F;
|
||||
|
||||
print STDERR 'Field width: ', join(', ', @max), "\n";
|
||||
print STDERR join(' ', map {'-' x $_} @max);
|
||||
|
||||
# second pass
|
||||
open F, "<$ARGV[0]" or die;
|
||||
while(<F>)
|
||||
{
|
||||
chomp;
|
||||
$i = 0;
|
||||
map { printf("%-$max[$_->[1]]s ", $_->[0]) }
|
||||
(map {[$_, $i++]} split($delim));
|
||||
print "\n";
|
||||
}
|
||||
close F;
|
||||
```
|
||||
|
||||
## Test for Python
|
||||
|
||||
```python
|
||||
# test python (sample from offlineimap)
|
||||
|
||||
class ExitNotifyThread(Thread):
|
||||
"""This class is designed to alert a "monitor" to the fact that a thread has
|
||||
exited and to provide for the ability for it to find out why."""
|
||||
def run(self):
|
||||
global exitthreads, profiledir
|
||||
self.threadid = thread.get_ident()
|
||||
try:
|
||||
if not profiledir: # normal case
|
||||
Thread.run(self)
|
||||
else:
|
||||
try:
|
||||
import cProfile as profile
|
||||
except ImportError:
|
||||
import profile
|
||||
prof = profile.Profile()
|
||||
try:
|
||||
prof = prof.runctx("Thread.run(self)", globals(), locals())
|
||||
except SystemExit:
|
||||
pass
|
||||
prof.dump_stats( \
|
||||
profiledir + "/" + str(self.threadid) + "_" + \
|
||||
self.getName() + ".prof")
|
||||
except:
|
||||
self.setExitCause('EXCEPTION')
|
||||
if sys:
|
||||
self.setExitException(sys.exc_info()[1])
|
||||
tb = traceback.format_exc()
|
||||
self.setExitStackTrace(tb)
|
||||
else:
|
||||
self.setExitCause('NORMAL')
|
||||
if not hasattr(self, 'exitmessage'):
|
||||
self.setExitMessage(None)
|
||||
|
||||
if exitthreads:
|
||||
exitthreads.put(self, True)
|
||||
|
||||
def setExitCause(self, cause):
|
||||
self.exitcause = cause
|
||||
def getExitCause(self):
|
||||
"""Returns the cause of the exit, one of:
|
||||
'EXCEPTION' -- the thread aborted because of an exception
|
||||
'NORMAL' -- normal termination."""
|
||||
return self.exitcause
|
||||
def setExitException(self, exc):
|
||||
self.exitexception = exc
|
||||
def getExitException(self):
|
||||
"""If getExitCause() is 'EXCEPTION', holds the value from
|
||||
sys.exc_info()[1] for this exception."""
|
||||
return self.exitexception
|
||||
def setExitStackTrace(self, st):
|
||||
self.exitstacktrace = st
|
||||
def getExitStackTrace(self):
|
||||
"""If getExitCause() is 'EXCEPTION', returns a string representing
|
||||
the stack trace for this exception."""
|
||||
return self.exitstacktrace
|
||||
def setExitMessage(self, msg):
|
||||
"""Sets the exit message to be fetched by a subsequent call to
|
||||
getExitMessage. This message may be any object or type except
|
||||
None."""
|
||||
self.exitmessage = msg
|
||||
def getExitMessage(self):
|
||||
"""For any exit cause, returns the message previously set by
|
||||
a call to setExitMessage(), or None if there was no such message
|
||||
set."""
|
||||
return self.exitmessage
|
||||
```
|
||||
|
||||
## Test for Bash
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
cd $ROOT_DIR
|
||||
DOT_FILES="lastpass weechat ssh Xauthority"
|
||||
for dotfile in $DOT_FILES; do conform_link "$DATA_DIR/$dotfile" ".$dotfile"; done
|
||||
|
||||
# TODO: refactor with suffix variables (or common cron values)
|
||||
|
||||
case "$PLATFORM" in
|
||||
linux)
|
||||
#conform_link "$CONF_DIR/shell/zshenv" ".zshenv"
|
||||
crontab -l > $ROOT_DIR/tmp/crontab-conflict-arch
|
||||
cd $ROOT_DIR/$CONF_DIR/cron
|
||||
if [[ "$(diff ~/tmp/crontab-conflict-arch crontab-current-arch)" == ""
|
||||
]];
|
||||
then # no difference with current backup
|
||||
logger "$LOG_PREFIX: crontab live settings match stored "\
|
||||
"settings; no restore required"
|
||||
rm ~/tmp/crontab-conflict-arch
|
||||
else # current crontab settings in file do not match live settings
|
||||
crontab $ROOT_DIR/$CONF_DIR/cron/crontab-current-arch
|
||||
logger "$LOG_PREFIX: crontab stored settings conflict with "\
|
||||
"live settings; stored settings restored. "\
|
||||
"Previous settings recorded in ~/tmp/crontab-conflict-arch."
|
||||
fi
|
||||
;;
|
||||
```
|
||||
## Test for Haskell
|
||||
```haskell
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
module Main where
|
||||
|
||||
--import Prelude hiding (id)
|
||||
--import Control.Category (id)
|
||||
import Control.Arrow ((>>>), (***), arr)
|
||||
import Control.Monad (forM_)
|
||||
-- import Data.Monoid (mempty, mconcat)
|
||||
|
||||
-- import System.FilePath
|
||||
|
||||
import Hakyll
|
||||
|
||||
|
||||
main :: IO ()
|
||||
main = hakyll $ do
|
||||
|
||||
route "css/*" $ setExtension "css"
|
||||
compile "css/*" $ byExtension (error "Not a (S)CSS file")
|
||||
[ (".css", compressCssCompiler)
|
||||
, (".scss", sass)
|
||||
]
|
||||
|
||||
route "js/**" idRoute
|
||||
compile "js/**" copyFileCompiler
|
||||
|
||||
route "img/*" idRoute
|
||||
compile "img/*" copyFileCompiler
|
||||
|
||||
compile "templates/*" templateCompiler
|
||||
|
||||
forM_ ["test.md", "index.md"] $ \page -> do
|
||||
route page $ setExtension "html"
|
||||
compile page $ pageCompiler
|
||||
>>> applyTemplateCompiler "templates/default.html"
|
||||
>>> relativizeUrlsCompiler
|
||||
|
||||
sass :: Compiler Resource String
|
||||
sass = getResourceString >>> unixFilter "sass" ["-s", "--scss"]
|
||||
>>> arr compressCss
|
||||
```
|
||||
## Test for PHP
|
||||
```php
|
||||
<?php
|
||||
require_once($GLOBALS['g_campsiteDir']. "/$ADMIN_DIR/country/common.php");
|
||||
require_once($GLOBALS['g_campsiteDir']. "/classes/SimplePager.php");
|
||||
camp_load_translation_strings("api");
|
||||
|
||||
$f_country_language_selected = camp_session_get('f_language_selected', '');
|
||||
$f_country_offset = camp_session_get('f_country_offset', 0);
|
||||
if (empty($f_country_language_selected)) {
|
||||
$f_country_language_selected = null;
|
||||
}
|
||||
$ItemsPerPage = 20;
|
||||
$languages = Language::GetLanguages(null, null, null, array(), array(), true);
|
||||
$numCountries = Country::GetNumCountries($f_country_language_selected);
|
||||
|
||||
$pager = new SimplePager($numCountries, $ItemsPerPage, "index.php?");
|
||||
|
||||
$crumbs = array();
|
||||
$crumbs[] = array(getGS("Configure"), "");
|
||||
$crumbs[] = array(getGS("Countries"), "");
|
||||
echo camp_html_breadcrumbs($crumbs);
|
||||
|
||||
?>
|
||||
|
||||
<?php if ($g_user->hasPermission("ManageCountries")) { ?>
|
||||
<table BORDER="0" CELLSPACING="0" CELLPADDING="1">
|
||||
<tr>
|
||||
<td><a href="add.php"><?php putGS("Add new"); ?></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
```
|
||||
## Test for Javascript
|
||||
```js
|
||||
import isTypedArray from 'lodash/isTypedArray';
|
||||
import reverse from 'lodash/reverse';
|
||||
import sortBy from 'lodash/sortBy';
|
||||
import take from 'lodash/take';
|
||||
import { food101Classes } from './food101';
|
||||
export function food101topK(classProbabilities, k = 5) {
|
||||
const probs = isTypedArray(classProbabilities)
|
||||
? Array.prototype.slice.call(classProbabilities)
|
||||
: classProbabilities;
|
||||
const sorted = reverse(
|
||||
sortBy(
|
||||
probs.map((prob, index) => [ prob, index ]),
|
||||
probIndex => probIndex[0]
|
||||
)
|
||||
);
|
||||
const topK = take(sorted, k).map(probIndex => {
|
||||
const iClass = food101Classes[probIndex[1]];
|
||||
return {
|
||||
id: probIndex[1],
|
||||
name: iClass.replace(/_/, ' '),
|
||||
probability: probIndex[0]
|
||||
};
|
||||
});
|
||||
return topK;
|
||||
};
|
||||
```
|
||||
## Test for HTML
|
||||
```html
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head>
|
||||
<title>A Tiny Page</title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
p { font-size:15pt; color:#000 }
|
||||
-->
|
||||
</style></head><!-- real comment -->
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#0000CC">
|
||||
<script language="javascript" type="text/javascript">
|
||||
function changeHeight(h) {
|
||||
var tds = document.getElementsByTagName("td");
|
||||
for(var i = 0; i < tds.length; i++) {
|
||||
tds[i].setAttribute("height", h + "px");
|
||||
}}
|
||||
</script>
|
||||
<h1>abc</h1>
|
||||
<h2>def</h2>
|
||||
<p>Testing page</p>
|
||||
</body></html>
|
||||
```
|
||||
## Test for CSS
|
||||
```css
|
||||
/*
|
||||
Monokai style - ported by Luigi Maselli - http://grigio.org
|
||||
*/
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #272822; color: #ddd;
|
||||
}
|
||||
.hljs-tag,
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal,
|
||||
.hljs-strong,
|
||||
.hljs-name {
|
||||
color: #f92672;
|
||||
}
|
||||
.hljs-code {
|
||||
color: #66d9ef;
|
||||
}
|
||||
.hljs-class .hljs-title {
|
||||
color: white;
|
||||
}
|
||||
```
|
||||
@@ -1,182 +0,0 @@
|
||||
---
|
||||
title: "Test Markdown"
|
||||
date: 2023-01-01T10:28:10+08:00
|
||||
unsafe: true
|
||||
draft: true
|
||||
---
|
||||
# <a name="top"></a>Markdown Test Page
|
||||
|
||||
* [Headings](#Headings)
|
||||
* [Paragraphs](#Paragraphs)
|
||||
* [Blockquotes](#Blockquotes)
|
||||
* [Lists](#Lists)
|
||||
* [Horizontal rule](#Horizontal)
|
||||
* [Table](#Table)
|
||||
* [Code](#Code)
|
||||
* [Inline elements](#Inline)
|
||||
|
||||
***
|
||||
|
||||
# <a name="Headings"></a>Headings
|
||||
|
||||
# Heading one
|
||||
|
||||
Sint sit cillum pariatur eiusmod nulla pariatur ipsum. Sit laborum anim qui mollit tempor pariatur nisi minim dolor. Aliquip et adipisicing sit sit fugiat commodo id sunt.
|
||||
|
||||
## Heading two
|
||||
|
||||
Aute officia nulla deserunt do deserunt cillum velit magna. Officia veniam culpa anim minim dolore labore pariatur voluptate id ad est duis quis velit dolor pariatur enim.
|
||||
|
||||
### Heading three
|
||||
|
||||
Voluptate cupidatat cillum elit quis ipsum eu voluptate fugiat consectetur enim. Quis ut voluptate culpa ex anim aute consectetur dolore proident voluptate exercitation eiusmod.
|
||||
|
||||
#### Heading four
|
||||
|
||||
Commodo fugiat aliqua minim quis pariatur mollit id tempor. Non occaecat minim esse enim aliqua adipisicing nostrud duis consequat eu adipisicing qui.
|
||||
|
||||
##### Heading five
|
||||
|
||||
Veniam enim esse amet veniam deserunt laboris amet enim consequat. Minim nostrud deserunt cillum consectetur commodo eu enim nostrud ullamco occaecat excepteur.
|
||||
|
||||
###### Heading six
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
||||
|
||||
|
||||
[[Top]](#top)
|
||||
|
||||
# <a name="Paragraphs"></a>Paragraphs
|
||||
|
||||
Incididunt ex adipisicing ea ullamco consectetur in voluptate proident fugiat tempor deserunt reprehenderit ullamco id dolore laborum.
|
||||
|
||||
Officia dolore laborum aute incididunt commodo nisi velit est est elit et dolore elit exercitation. Enim aliquip magna id ipsum aliquip consectetur ad nulla quis. Incididunt pariatur dolor consectetur cillum enim velit cupidatat laborum quis ex.
|
||||
|
||||
Officia irure in non voluptate adipisicing sit amet tempor duis dolore deserunt enim ut. Reprehenderit incididunt in ad anim et deserunt deserunt Lorem laborum quis. Enim aute anim labore proident laboris voluptate elit excepteur in.
|
||||
|
||||
[[Top]](#top)
|
||||
|
||||
# <a name="Blockquotes"></a>Blockquotes
|
||||
|
||||
Ad nisi laborum aute cupidatat magna deserunt eu id laboris id. Aliquip nulla cupidatat sint ex Lorem mollit laborum dolor amet est ut esse aute.
|
||||
|
||||
> Ipsum et cupidatat mollit exercitation enim duis sunt irure aliqua reprehenderit mollit. Pariatur Lorem pariatur laboris do culpa do elit irure.
|
||||
|
||||
Labore ea magna Lorem consequat aliquip consectetur cillum duis dolore. Et veniam dolor qui incididunt minim amet laboris sit.
|
||||
|
||||
> Qui est sit et reprehenderit aute est esse enim aliqua id aliquip ea anim. Pariatur sint reprehenderit mollit velit voluptate enim consectetur sint enim. Quis exercitation proident elit non id qui culpa dolore esse aliquip consequat.
|
||||
|
||||
Ipsum excepteur cupidatat sunt minim ad eiusmod tempor sit.
|
||||
|
||||
> Deserunt excepteur adipisicing culpa pariatur cillum laboris ullamco nisi fugiat cillum officia. In cupidatat nulla aliquip tempor ad Lorem Lorem quis voluptate officia consectetur pariatur ex in est duis. Mollit id esse est elit exercitation voluptate nostrud nisi laborum magna dolore dolore tempor in est consectetur.
|
||||
|
||||
Adipisicing voluptate ipsum culpa voluptate id aute laboris labore esse fugiat veniam ullamco occaecat do ut. Tempor et esse reprehenderit veniam proident ipsum irure sit ullamco et labore ea excepteur nulla labore ut. Ex aute minim quis tempor in eu id id irure ea nostrud dolor esse.
|
||||
|
||||
[[Top]](#top)
|
||||
|
||||
# <a name="Lists"></a>Lists
|
||||
|
||||
### Ordered List
|
||||
|
||||
1. Longan
|
||||
2. Lychee
|
||||
3. Excepteur ad cupidatat do elit laborum amet cillum reprehenderit consequat quis.
|
||||
Deserunt officia esse aliquip consectetur duis ut labore laborum commodo aliquip aliquip velit pariatur dolore.
|
||||
4. Marionberry
|
||||
5. Melon
|
||||
- Cantaloupe
|
||||
- Honeydew
|
||||
- Watermelon
|
||||
6. Miracle fruit
|
||||
7. Mulberry
|
||||
|
||||
### Unordered List
|
||||
|
||||
- Olive
|
||||
- Orange
|
||||
- Blood orange
|
||||
- Clementine
|
||||
- Papaya
|
||||
- Ut aute ipsum occaecat nisi culpa Lorem id occaecat cupidatat id id magna laboris ad duis. Fugiat cillum dolore veniam nostrud proident sint consectetur eiusmod irure adipisicing.
|
||||
- Passionfruit
|
||||
|
||||
[[Top]](#top)
|
||||
|
||||
# <a name="Horizontal"></a>Horizontal rule
|
||||
|
||||
In dolore velit aliquip labore mollit minim tempor veniam eu veniam ad in sint aliquip mollit mollit. Ex occaecat non deserunt elit laborum sunt tempor sint consequat culpa culpa qui sit. Irure ad commodo eu voluptate mollit cillum cupidatat veniam proident amet minim reprehenderit.
|
||||
|
||||
***
|
||||
|
||||
In laboris eiusmod reprehenderit aliquip sit proident occaecat. Non sit labore anim elit veniam Lorem minim commodo eiusmod irure do minim nisi. Dolor amet cillum excepteur consequat sint non sint.
|
||||
|
||||
[[Top]](#top)
|
||||
|
||||
# <a name="Table"></a>Table
|
||||
|
||||
Duis sunt ut pariatur reprehenderit mollit mollit magna dolore in pariatur nulla commodo sit dolor ad fugiat. Laboris amet ea occaecat duis eu enim exercitation deserunt ea laborum occaecat reprehenderit. Et incididunt dolor commodo consequat mollit nisi proident non pariatur in et incididunt id. Eu ut et Lorem ea ex magna minim ipsum ipsum do.
|
||||
|
||||
| Table Heading 1 | Table Heading 2 | Center align | Right align | Table Heading 5 |
|
||||
| :-------------- | :-------------- | :-------------: | --------------: | :-------------- |
|
||||
| Item 1 | Item 2 | Item 3 | Item 4 | Item 5 |
|
||||
| Item 1 | Item 2 | Item 3 | Item 4 | Item 5 |
|
||||
| Item 1 | Item 2 | Item 3 | Item 4 | Item 5 |
|
||||
| Item 1 | Item 2 | Item 3 | Item 4 | Item 5 |
|
||||
| Item 1 | Item 2 | Item 3 | Item 4 | Item 5 |
|
||||
|
||||
Minim id consequat adipisicing cupidatat laborum culpa veniam non consectetur et duis pariatur reprehenderit eu ex consectetur. Sunt nisi qui eiusmod ut cillum laborum Lorem officia aliquip laboris ullamco nostrud laboris non irure laboris. Cillum dolore labore Lorem deserunt mollit voluptate esse incididunt ex dolor.
|
||||
|
||||
[[Top]](#top)
|
||||
|
||||
# <a name="Code"></a>Code
|
||||
|
||||
## Inline code
|
||||
|
||||
Ad amet irure est magna id mollit Lorem in do duis enim. Excepteur velit nisi magna ea pariatur pariatur ullamco fugiat deserunt sint non sint. Duis duis est `code in text` velit velit aute culpa ex quis pariatur pariatur laborum aute pariatur duis tempor sunt ad. Irure magna voluptate dolore consectetur consectetur irure esse. Anim magna `<strong>in culpa qui officia</strong>` dolor eiusmod esse amet aute cupidatat aliqua do id voluptate cupidatat reprehenderit amet labore deserunt.
|
||||
|
||||
## Highlighted
|
||||
|
||||
Et fugiat ad nisi amet magna labore do cillum fugiat occaecat cillum Lorem proident. In sint dolor ullamco ad do adipisicing amet id excepteur Lorem aliquip sit irure veniam laborum duis cillum. Aliqua occaecat minim cillum deserunt magna sunt laboris do do irure ea nostrud consequat ut voluptate ex.
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func handler(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintf(w, "Hi there, I love %s!", r.URL.Path[1:])
|
||||
}
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/", handler)
|
||||
http.ListenAndServe(":8080", nil)
|
||||
}
|
||||
```
|
||||
|
||||
Ex amet id ex aliquip id do laborum excepteur exercitation elit sint commodo occaecat nostrud est. Nostrud pariatur esse veniam laborum non sint magna sit laboris minim in id. Aliqua pariatur pariatur excepteur adipisicing irure culpa consequat commodo et ex id ad.
|
||||
|
||||
[[Top]](#top)
|
||||
|
||||
# <a name="Inline"></a>Inline elements
|
||||
|
||||
Sint ea anim ipsum ad commodo cupidatat do **exercitation** incididunt et minim ad labore sunt. Minim deserunt labore laboris velit nulla incididunt ipsum nulla. Ullamco ad laborum ea qui et anim in laboris exercitation tempor sit officia laborum reprehenderit culpa velit quis. **Consequat commodo** reprehenderit duis [irure](#!) esse esse exercitation minim enim Lorem dolore duis irure. Nisi Lorem reprehenderit ea amet excepteur dolor excepteur magna labore proident voluptate ipsum. Reprehenderit ex esse deserunt aliqua ea officia mollit Lorem nulla magna enim. Et ad ipsum labore enim ipsum **cupidatat consequat**. Commodo non ea cupidatat magna deserunt dolore ipsum velit nulla elit veniam nulla eiusmod proident officia.
|
||||
|
||||

|
||||
{{< figure
|
||||
src="http://placekitten.com/1280/800"
|
||||
alt="alt-test"
|
||||
caption="caption-test"
|
||||
>}}
|
||||
|
||||
*Proident sit veniam in est proident officia adipisicing* ea tempor cillum non cillum velit deserunt. Voluptate laborum incididunt sit consectetur Lorem irure incididunt voluptate nostrud. Commodo ut eiusmod tempor cupidatat esse enim minim ex anim consequat. Mollit sint culpa qui laboris quis consectetur ad sint esse. Amet anim anim minim ullamco et duis non irure. Sit tempor adipisicing ea laboris `culpa ex duis sint` anim aute reprehenderit id eu ea. Aute [excepteur proident](#!) Lorem minim adipisicing nostrud mollit ad ut voluptate do nulla esse occaecat aliqua sint anim.
|
||||
|
||||

|
||||
|
||||
Incididunt in culpa cupidatat mollit cillum qui proident sit. In cillum aliquip incididunt voluptate magna amet cupidatat cillum pariatur sint aliqua est _enim **anim** voluptate_. Magna aliquip proident incididunt id duis pariatur eiusmod incididunt commodo culpa dolore sit. Culpa do nostrud elit ad exercitation anim pariatur non minim nisi **adipisicing sunt _officia_**. Do deserunt magna mollit Lorem commodo ipsum do cupidatat mollit enim ut elit veniam ea voluptate.
|
||||
|
||||
[](https://youtu.be/s6bCmZmy9aQ)
|
||||
|
||||
Reprehenderit non eu quis in ad elit esse qui aute id [incididunt](#!) dolore cillum. Esse laboris consequat dolor anim exercitation tempor aliqua deserunt velit magna laboris. Culpa culpa minim duis amet mollit do quis amet commodo nulla irure.
|
||||
@@ -1,40 +0,0 @@
|
||||
---
|
||||
title: "Test Tex"
|
||||
date: 2022-08-26T22:28:10+08:00
|
||||
mathjax: true
|
||||
draft: true
|
||||
---
|
||||
Inline math: {{< texi `\varphi` >}}
|
||||
|
||||
Displayed math:
|
||||
{{< texd `\begin{aligned}
|
||||
\varphi &\Rightarrow \psi \\
|
||||
\varnothing &\rightarrow A
|
||||
\end{aligned}` >}}
|
||||
|
||||
$$
|
||||
R_{\mu \nu} - {1 \over 2}g_{\mu \nu}\,R + g_{\mu \nu} \Lambda
|
||||
= {8 \pi G \over c^4} T_{\mu \nu}
|
||||
$$
|
||||
|
||||
The equation $$(x_i \cdot x_j)^2$$ is called kernel function and is often written as $$k(x_i, x_j)$$.
|
||||
|
||||
$$
|
||||
\arg\max_\alpha \sum_j \alpha_j - \frac{1}{2} \sum_{j,k} \alpha_j, \alpha_k y_j y_k (x_j \cdot x_k)
|
||||
$$
|
||||
|
||||
$$
|
||||
f(X) = \frac{1}{(2\pi)^{\frac{n}{2} |\Sigma|^{\frac{1}{2}}}} e^{ - \frac{1}{2} (X - \mu)^T \Sigma^{-1} (X - \mu)}
|
||||
$$
|
||||
|
||||
$$
|
||||
\mu_i = \sum_{j=1}^N \frac{p_{ij} x}{n_i} \\
|
||||
\Sigma_i = \sum_{j=1}^N \frac{p_{ij} (x_j - \mu_i) (x_j - \mu_i)^T}{n_i}\\
|
||||
w_i = \frac{n_i}{N}
|
||||
$$
|
||||
|
||||
$$
|
||||
S_i^{(t)} = \big \{ x_p : \big \| x_p - \mu^{(t)}_i \big \|^2 \le \big \| x_p - \mu^{(t)}_j \big \|^2 \ \forall j, 1 \le j \le k \big\}
|
||||
$$
|
||||
|
||||
(The error above is a demo for incorrect formulas.)
|
||||
@@ -1,37 +0,0 @@
|
||||
+++
|
||||
title = 'Nextcloud'
|
||||
date = 2026-06-22T13:34:54+02:00
|
||||
draft = true
|
||||
toc = true
|
||||
tocBorder = true
|
||||
+++
|
||||
|
||||
## Table of Content
|
||||
### What it is?
|
||||
TOC is the box you see at the very top of this post. It may be framed (or not).
|
||||
### How to enable TOC?
|
||||
To enable it, all you need to do when creating a new post at the very top is to insert the code:
|
||||
```toml
|
||||
toc = true
|
||||
tocBorder = true
|
||||
```
|
||||
You can of course find this post (../themes/nostyleplease/content/posts/test-toc-and-details.md) and open in editor to see how it's working.
|
||||
|
||||
## Details
|
||||
### What it is?
|
||||
It's HTML standard sadly not supported native by markdown. But this theme support it anyway. So... sometimes you want to hide something.
|
||||
{{< details summary="Click me" >}}
|
||||
A lot of text or something else.
|
||||
{{< /details >}}
|
||||
### How to use "Details"?
|
||||
Well you need to inspect this post and see by yourself. It's very easy. Take look at ../themes/nostyleplease/content/posts/test-toc-and-details.md.
|
||||
|
||||
## Styles
|
||||
Okey. So if you want to change color-theme you can:
|
||||
- go to ../themes/nostyleplease/config.toml and find:
|
||||
|
||||
```toml
|
||||
appearance = "auto"
|
||||
```
|
||||
you can change it to 2 predefined styles: **light** and **dark**. It can be also set to **auto** and the color scheme will match the user's system style.
|
||||
- you can add new style or modify **auto** option, just edit CSS in ../themes/nostyleplease/assets/main.scss :-). It's easy, if you are able to operate Hugo - you can do it.
|
||||
@@ -22,15 +22,6 @@ title = "Here's what we like..."
|
||||
show_more_text = "See archive..."
|
||||
show_more_url = "posts"
|
||||
|
||||
[[entries]]
|
||||
title = "Posts by category..."
|
||||
|
||||
[entries.post_list]
|
||||
section = "posts"
|
||||
show_more = true
|
||||
show_more_text = "See more posts..."
|
||||
show_more_url = "posts"
|
||||
|
||||
[[entries]]
|
||||
title = "Get your RSS"
|
||||
url = "index.xml"
|
||||
@@ -41,10 +32,25 @@ title = "Here's a listing of all the SaaS we've talked about so far..."
|
||||
[[entries.entries]]
|
||||
title = "Office Productivity"
|
||||
|
||||
[[entries.entries.entries]]
|
||||
title = "Freescout"
|
||||
url = "https://www.freescout.net"
|
||||
|
||||
[[entries.entries.entries]]
|
||||
title = "Kimai"
|
||||
url = "https://www.kimai.org/en/"
|
||||
|
||||
[[entries.entries.entries]]
|
||||
title = "Nextcloud"
|
||||
url = "https://nextcloud.com"
|
||||
|
||||
[[entries.entries]]
|
||||
title = "Video"
|
||||
|
||||
[[entries.entries.entries]]
|
||||
title = "Jitsi"
|
||||
url = "https://jitsi.org"
|
||||
|
||||
[[entries]]
|
||||
title = "PRO TIP"
|
||||
entries = [
|
||||
|
||||
@@ -1 +1 @@
|
||||
Open Source Makeover is a work of Federated Computer.
|
||||
"Open Source Makeover" is a work of [Federated Computer](https://federated.computer).
|
||||
|
||||
Reference in New Issue
Block a user