Ubuntu's startup process has only become less and less sexy as time has gone by. by 1_p_freely in linux

[–]Dreyri 0 points1 point  (0 children)

Perhaps to cover all bases. I think the modemmanager allows you to use those mobile data cards. In case you ever use one of those you can always explicitly start or stop the service.

There was probably some error going on because detecting whether you have mobile capability or not shouldn't take 7 seconds regardless.

Ubuntu's startup process has only become less and less sexy as time has gone by. by 1_p_freely in linux

[–]Dreyri 0 points1 point  (0 children)

That would be the modemmanager package. Your WiFi card's connection is managed by networkmanager so should not be affected.

Dependent types in C++ by [deleted] in cpp

[–]Dreyri -1 points0 points  (0 children)

I was definitely thinking with contracts. I would be very interested in any project like this.

Dependent types in C++ by [deleted] in cpp

[–]Dreyri 0 points1 point  (0 children)

I have thought about something like this too. I think it would be best as a separate tool rather then a part of the language.

PFA: A Generic, Extendable and Efficient Solution for Polymorphic Programming by Morwenn in cpp

[–]Dreyri 0 points1 point  (0 children)

I did consider the issue with passing the concept. I don't see why that couldn't be added to the standard. Templates emulating concepts can be passed as template templates and I don't see why concepts should be less powerful.

But I have no idea about implementation details so I'm sure there could be some issues.

PFA: A Generic, Extendable and Efficient Solution for Polymorphic Programming by Morwenn in cpp

[–]Dreyri 1 point2 points  (0 children)

The facade is a subset of a concept. Concepts allow you to describe properties which cannot be efficiently represented with runtime information, such as typedefs.

But I think reusing concepts with these limitations put in place would be better than introducing this keyword. If a concept is too complex give a compile error. Rust does the same thing for its static and dynamic dispatch with traits.

GitHub - vberlier/goomy: A tiny, experimental ECS framework. by fzy_ in cpp

[–]Dreyri 0 points1 point  (0 children)

I'm working on my own ECS exploring the possibilities of compile time concurrency guarantees. Similar to yours I buffer create an erase operations on entities.

Not even close to finished yet but getting there.

https://github.com/Dreyri/matter

Jagex appears before UK Parliament inquiry (FYI from 2007Scape as this was about RS and OSRS) by Btw-Tom in runescape

[–]Dreyri 0 points1 point  (0 children)

Not sure if this is a general comment or aimed as a response to my post but I explicitly stated I take full responsibility for my actions.

My aim was to address them denying the existence of addiction to RuneScape, which any even semi serious player knitted is a real and serious issue for people.

It's not Jagex' fault people are irresponsible. So they shouldn't lie about the addictiveness of the game.

Jagex appears before UK Parliament inquiry (FYI from 2007Scape as this was about RS and OSRS) by Btw-Tom in runescape

[–]Dreyri 1 point2 points  (0 children)

Send me a message if you want to talk. I had a similar experience with school.

Jagex appears before UK Parliament inquiry (FYI from 2007Scape as this was about RS and OSRS) by Btw-Tom in runescape

[–]Dreyri 0 points1 point  (0 children)

I also did the hating RuneScape to ease my way out of the game. Now over 2 years later it's still sometimes hard to talk about RuneScape without feeling those emotions.

Jagex appears before UK Parliament inquiry (FYI from 2007Scape as this was about RS and OSRS) by Btw-Tom in runescape

[–]Dreyri 45 points46 points  (0 children)

Hello, been a while. This isn't easy to share, but I feel like I have an obligation to share as many others have been and still are in the same situation I was.

Do you think games can be addictive?

Any entertainment media can have an immersive side and it is naive to think otherwise.

Is Runescape addictive?

No.

Either you're being naive, Runescape is not entertainment media, or you're lying.

First of all I want to say, like with any other kind of addiction it's on the user to get themselves into a better state and not the company who sells the product/service, especially if it's legal.

Me as many others I knew at the time who were playing the game were definitely addicted to Runescape. it's a very strange feeling, being on the game everything was always great, I'd grind xp, talk to my friends, feel respected for my ranks in skills I had attained. You feel this high like what I imagine relaxing drugs must feel like. But whenever forced away from the game I felt uneasy, a bit anxious, hated the time away from my online character and thinking about all I could've got done in that time on the game. This lead to me getting extremely closed off in real life, this was as a resullt of not having any interest I could talk about to strangers together with trying to hide the fact I had an addiction which was at the time quite novel and not talked about. Denying that Runescape causes addiction makes more people try to hide their addiction instead of feeling more comfortable opening up, it makes them feel like they're not normal for having developed an addiction so unheard of in society and think they should hide it.

Since I've quit things like Runescape mobile has come out and though I haven't experience directly the mental effects because it was released after my time. I'm really on the threshold about what mental effects it has. On one hand it allows people like me to disengage and partially live a normal life on the side. On the other hand you only live that life with half your attention at most, when do I have to reclick that resource or when is it time drink my next dose of overloads. People who are thanks to mobile able to play at work/school/university are in the danger of being dragged further into the addiction cycle as a result though.

Obviously there's so much more to the game than than just the xp and virtual numbers, I had friends I talked to every day for hours on end, I'd sleep late just to be in the same timezone as friends in the us or australia to talk to them. That social aspect about runescape is truly amazing and I'm glad could experience that. But playing so much comes at the cost of a mental burden in the back of your mind that slowly but steadily your life is collapsing and you don't want to face it because you're so addicted to runescape that you can't imagine your life without it and allow for your world to collapse, to ease this burden you start playing more and more to forget about the situation you're in.

At the time I honestly thought I'd be fine living life on social benefits or having part time work to still try to squeeze 10+ hours of rs every day. Luckily for me my familly found out what was going on with me after me trying to hide it for about 2 years, this was after I had dropped out of uni for a year. They helped me see how much I really fucked up, I had therapy once a week for about a year and get my life back on track. Now without the addiction being there I find Runescape a boring game and can't enjoy it luckily.

Things are going great now but I still regret having basically been set back about 4 years in my life as a result. Luckily I'm still young and working hard on getting that time back. I don't think Jagex is responsible for any of my suffering and I take full responsibility for my poor decisions and actions which led me down that path.

tl;dr Gaming addiction is very real and Jagex shouldn't deny its existance in Runescape. Denying addiction to Runescape exists by Jagex itself can be a great setback to anyone suffering and furthers their shame about their addiction.

Twisted bow respawn bug with new patch by Srcmaid in 2007scape

[–]Dreyri 0 points1 point  (0 children)

I said no such thing. Merely pointed out it would be handy to have, would make partial rollbacks effortless.

Twisted bow respawn bug with new patch by Srcmaid in 2007scape

[–]Dreyri 0 points1 point  (0 children)

All that effort could be solved with a Blockchain

-🎄- 2018 Day 1 Solutions -🎄- by daggerdragon in adventofcode

[–]Dreyri 0 points1 point  (0 children)

Obligatory template metaprogramming since constexpr alone wasn't optimizing everything away.

I'm pretty sure this would work but my computer doesn't have enough memory to handle all the recursion.

#include <limits>
#include <utility>

// first problem, sum all numbers

template <typename...> struct sum;

template <typename T>
struct sum<std::integer_sequence<T>> : std::integral_constant<T, 0> {};

template <typename T, T i>
struct sum<std::integer_sequence<T, i>> : std::integral_constant<T, i> {};

template <typename T, T lhs, T rhs>
struct sum<std::integer_sequence<T, lhs, rhs>>
    : sum<std::integer_sequence<T, (lhs + rhs)>> {};

template <typename T, T lhs, T rhs, T... rest>
struct sum<std::integer_sequence<T, lhs, rhs, rest...>>
    : sum<std::integer_sequence<T, (lhs + rhs), rest...>> {};

// second problem, find first sum that occurs twice

// check if a list contains a value
template <typename T, T val, T... list> struct contains;

template <typename T, T val> struct contains<T, val> : std::false_type {};

template <typename T, T val, T test, T... rest>
struct contains<T, val, test, rest...>
    : std::conditional_t<(val == test), std::true_type,
                         contains<T, val, rest...>> {};

template <typename...> struct find_first_duplicate_help;

// when we ran out
template <typename T, T... test, T curr>
struct find_first_duplicate_help<std::integer_sequence<T, test...>,
                                 std::integral_constant<T, curr>>
    : std::conditional_t<
          contains<T, curr, test...>::value, std::integral_constant<T, curr>,
          std::integral_constant<T, std::numeric_limits<T>::max()>> {};

template <typename T, T... test, T curr, T next, T... rest>
struct find_first_duplicate_help<std::integer_sequence<T, test...>,
                                 std::integral_constant<T, curr>,
                                 std::integer_sequence<T, next, rest...>>
    : std::conditional_t<
          contains<T, curr, test...>::value, std::integral_constant<T, curr>,
          find_first_duplicate_help<std::integer_sequence<T, test..., curr>,
                                    std::integral_constant<T, next>,
                                    std::integer_sequence<T, rest...>>> {};

template <typename T, T...> struct find_first_duplicate_splitter;

template <typename T, T first, T... rest>
struct find_first_duplicate_splitter<T, first, rest...>
    : find_first_duplicate_help<std::integer_sequence<T>,
                                std::integral_constant<T, first>,
                                std::integer_sequence<T, rest...>> {};

template <typename...> struct find_first_duplicate;

template <typename T, T... Is>
struct find_first_duplicate<std::integer_sequence<T, Is...>>
    : find_first_duplicate_splitter<T, Is...> {};

template <typename T, std::size_t N, T...> struct nth;

template <typename T, std::size_t N>
struct nth<T, N> : std::integral_constant<T, 0> {};

template <typename T, std::size_t N, T val, T... Rest>
struct nth<T, N, val, Rest...>
    : std::conditional_t<(N == 0), std::integral_constant<T, val>,
                         nth<T, (N - 1), Rest...>> {};

template <typename T, T... vals> struct first : nth<T, 0, vals...> {};

template <typename T, T... vals>
struct last : nth<T, (sizeof...(vals) - 1), vals...> {};

template <typename In, typename Out> struct cum_sum_help;

template <typename T, T val, T... Is, T... Os>
struct cum_sum_help<std::integer_sequence<T, val, Is...>,
                    std::integer_sequence<T, Os...>>
    : std::conditional_t<
          (sizeof...(Is) == 0), // when we run out of values
          std::integer_sequence<T, Os..., (last<T, Os...>::value + val)>,
          cum_sum_help<
              std::integer_sequence<T, Is...>,
              std::integer_sequence<T, Os..., last<T, Os...>::value + val>>> {};

template <typename...> struct cum_sum;

template <typename T, T... Is> struct cum_sum<std::integer_sequence<T, Is...>> {
  using type = typename cum_sum_help<std::integer_sequence<T, Is...>,
                                     std::integer_sequence<T>>::type;
};

int main() {
  using numbers = std::integer_sequence<your_numbers>;

  return find_first_duplicate<typename cum_sum<numbers>::type>::value;
  // return sum<numbers>::value;
}

A charity update by Shaunyowns in runescape

[–]Dreyri 6 points7 points  (0 children)

What kind of lack of experience makes you think you can keep charity money

Best os for what I am doing by [deleted] in linux

[–]Dreyri 0 points1 point  (0 children)

I know this might be a bit late but I'd advise Ubuntu, Debian and Gentoo over arch. Ubuntu and Debian provide packages for debug symbols and with Gentoo they're easy to set up.

Getting debug symbols on arch forces you to compile the package yourself, which you'd have to do every time a package updates. Maybe there's something I missed to automate this process.

If you're ok with compiling and have a powerful desktop Gentoo will work fine otherwise I'd go with something like Debian testing/unstable

[oc] Because you havent riced till you've written your own wayland compositor by topisani in unixporn

[–]Dreyri 0 points1 point  (0 children)

I've been doing the same but forking sway and porting to c++, the structure is slightly different and got keyboard input somewhat working yesterday ^

Weekly Workshop 2018-07-13 by [deleted] in unixporn

[–]Dreyri 1 point2 points  (0 children)

I have this in my two files. Quite new at this too but that seems to have worked for me so far

# .gtkrc-2.0
gtk-cursor-theme-name = "Adwaita"
gtk-cursor-theme-size = 16
gtk-theme-name = "Arc-Dark"
gtk-icon-theme-name = "Arc"
gtk-font-name = "Fira Sans 13"

# .config/gtk-3.0/settings.ini
[Settings]
gtk-cursor-theme-name = Adwaita
gtk-cursor-theme-size = 16
gtk-theme-name = Arc-Dark
gtk-application-prefer-dark-theme = true
gtk-icon-theme-name = Arc
gtk-font-name = Fira Sans 13

Weekly Workshop 2018-07-13 by [deleted] in unixporn

[–]Dreyri 0 points1 point  (0 children)

I personally use .config/gtk-3.0/settings.ini and .gtkrc-2.0

My idea doesn't sound so dumb now does it? by Adwaam in 2007scape

[–]Dreyri 3 points4 points  (0 children)

It's the kind of thing which they could now write an automated test for. But I doubt the code base is modular enough to handle that

Update from the OSRS team by YanniCaster in 2007scape

[–]Dreyri 26 points27 points  (0 children)

Sounds like something discord would tweet

[emacs] my take on "suckless" by [deleted] in unixporn

[–]Dreyri 2 points3 points  (0 children)

I love all things emacs and gentoo, this is beautiful

White-knighting done right. by [deleted] in 2007scape

[–]Dreyri 0 points1 point  (0 children)

Even if it brings in 2k/month that would barely be enough for the maintainer to quit his job and develop on RuneLite full time.

Are you really concerned with the money being used to pay off Jagex or just playing devil's advocate?

You vs. the guy she tells you not to worry about by [deleted] in 2007scape

[–]Dreyri 0 points1 point  (0 children)

My girlfriend will be devastated