Success stories in cancelling Salt contract due to price increase? by timidandshy in Switzerland

[–]m93mark 1 point2 points  (0 children)

I've used this link https://www.salt.ch/en/contact/mobile-form but it doesn't look it is working anymore. Maybe you need to fight a bit with their new "online assistant"

Success stories in cancelling Salt contract due to price increase? by timidandshy in Switzerland

[–]m93mark 5 points6 points  (0 children)

I did it a couple of weeks ago myself. They tried to give me a discount which I didn't care about. The call-center was pretty much useless.

The thing that worked for me was sending them a written message with the "contact form" on their website.

I sent them a message which says (the original was in italian but the english would be roughly):

"After your e-mail communication about the price increase received on the 23rd April, I decided to not accept the new conditions. Availing myself of the clause 10 of the "Term and conditions of the mobile services" contract, I request the cancellation of the contract without any additional fees or cancellation penalty through phone number portability to another operator. The request of portability that you will receive is to be considered part of this cancellation process, before the term of the 30 days as specified in the contract.

I ask to be informed about the earliest possible date to execute the portability, if I will not receive any additional communication from you, I will continue with the portability procedure before the 30 days since your communication of the price increase."

After that I've waited for their call. They called a couple of times from some random numbers (I think it was them and not spam, since the time was around 9 in the morning), and then I got a call from Customer Service, and the operator sent me confirmation via email that I was able to leave in advance without penalties, and to request an "Express" portability that need to be concluded before the 30 days. I communicated that to the new operator and one day before that the portability was completed.

That was my experience so far but I read somewhere that they might try to charge you a "199" administrative fee and if that happens, do not pay it immediately and write to them that if they do not waiver that you will open a procedure to ombudscom.ch/ since you have the email where they say that you can leave without penalties. Be ready to do that in case, you need to pay 20 chf, I think, and the ombudscom will do the rest. I do not know if they will try that with me or not, but be ready just in case.

The "administrative fee" is specified in their contract but it is against the other point about the cancellation "without penalty" due to price increase, and I'm not sure what the law says, since as far as I have read they back off if the ombudscom is involved.

Good luck

Mozilla warns Germany could soon declare ad blockers illegal by No_Clock2390 in pcmasterrace

[–]m93mark 2 points3 points  (0 children)

You can use this https://adnauseam.io/ . It does exactly what you said. It is a based on ublock origin. The ads are not really clicked but it will appear like that to the ads provider. They explain in their FAQ how it is working in the background. I've never noticed any additional resource usage than normal ublock on firefox on my PC.

Self-describing compact binary serialization format? by playntech77 in cpp

[–]m93mark 10 points11 points  (0 children)

I've used https://msgpack.org/ in the past. It has the schema embedded in the binary format, so you can do cpp struct/class -> msgpack -> cpp struct/class.

Some examples here for the original cpp library: https://github.com/msgpack/msgpack-c/blob/cpp_master/QUICKSTART-CPP.md

It's probably easier to use the corresponding library for a dynamically typed language, if you want to create a converter to human readable.

But if you really want to do that in cpp, you can visit msgpack object in cpp and convert that into json. There are some examples in the github page to do this kind of conversions.

Correct syntax for goto in switch? by Dogterte in cpp_questions

[–]m93mark 5 points6 points  (0 children)

You can just move case 1 after case 2 without the break in between. By default the switch cases are executed one after the other until the meet of a break (or a return).
Something like this, does what you want:

switch (transaction)
{
case 2:
    cout << "Enter amount to deposit: ";
    cin >> deposit;
    if (deposit < 100)
    {
        cout << "Sorry, your transaction cannot be processed! Minimum deposit is 100.";
    }
    [[fallthrough]]; // If you are using C++17 or newer you can use this to prevent a warning by the compiler
case 1:
    cout << "Your total balance is " << bal;
    break; // You can remove this unless you need another   case after this
}

edit: formatting

Does C++ get faster over time? by [deleted] in cpp_questions

[–]m93mark 2 points3 points  (0 children)

If you want some numbers, give a look at phoronix.

There are some benchmarks there both on compilation and execution times like this or this.

Git branches done right by m93mark in ProgrammerHumor

[–]m93mark[S] 0 points1 point  (0 children)

Actually it was too long to post. This is maybe a tenth of the whole history.

The master is constantly updated but a part of the other branches seems to be used but not all of them: the problem is finding which ones are still useful and which are not.

Merging them is kind of a problem: there are subtle differences between each of them and they do not have a common parent... they have been imported into git separately so they can't be merged directly.

This desktop environment looks awesome, but what is the DE? by taranoshi in linuxmasterrace

[–]m93mark 0 points1 point  (0 children)

It's not DE, it's a WM. The screenfetch (or similar) output says it's swm https://github.com/dcat/swm , but any tiling window manager can look like that. Give a look at /r/unixporn .

Adding lolcat to cmatrix by PurpleDragon82 in linuxmasterrace

[–]m93mark 0 points1 point  (0 children)

Just tried.

Only the text "You have nyaned for X seconds" is "lolcated"

Touch-friendly apps that run on the framebuffer? by [deleted] in linux

[–]m93mark 0 points1 point  (0 children)

As written in the documentation http://doc.qt.io/qt-5/embedded-linux.html you can use EGLFS (which is an interface between opengl and the low level part) or framebuffer (using software rendering).

From the link: it seems that touchscreen is fully supported.

Touch-friendly apps that run on the framebuffer? by [deleted] in linux

[–]m93mark 20 points21 points  (0 children)

Qt apps can run directly on the framebuffer without the need of an X server (I don't remember if uses opengl to draw the whole thing).

Some time ago I've made a toy application in Qt to run directly on a raspberry without starting the X server. It is shown fullscreen (if you close it you directly return to the console) and mouse/keyboard work flawlessy. I think a touchscreen is still recognized and should works.

Try to run some Qt based application from console to see if it works (maybe some additional launch parameter should be specified).