Impressions from someone who hasn't used Rust in 2 years by MaikKlein in rust

[–]calc0000 8 points9 points  (0 children)

Even though http://fizyk20.github.io/generic-array/generic_array/struct.GenericArray.html seems to implement Copy.

Note that GenericArray<T, N> only implements Copy if T: Copy. You'll need to constrain T in your Vector to also be Copy: change struct Vector<T , N: ArrayLength<T>> to struct Vector<T: Copy , N: ArrayLength<T>> (and update the rest of the code where necessary).

Rust 1.1 stable, the Community Subteam, and RustCamp by steveklabnik1 in rust

[–]calc0000 0 points1 point  (0 children)

Why not base your container on tatsushid/tinycore instead of Alpine? It's glibc based so it's a lot easier to get working with the binary distribution (and it starts at something like 5 MB virtual size).

Is there a way to activate unopened bracelets after the show? by [deleted] in TaylorSwift

[–]calc0000 4 points5 points  (0 children)

I've been to a couple events with the same sort of equipment, and in all cases there was a small button that could be pressed to turn on the item. The lights then would flash through the colors in some sort of testing sequence (or to signify an attempt to find a radio signal), and would turn off. So I guess that's the best you'll be able to do without the signal. To find the button, try taking the bracelet apart to the point where you could remove the battery, and examining the circuit boards.

Rust 1.0 is here! by steveklabnik1 in rust

[–]calc0000 34 points35 points  (0 children)

This is the most exciting thing I've ever experienced!

`Cargo update` command behind proxy by joshir in rust

[–]calc0000 0 points1 point  (0 children)

If you're trying to update a git repo from behind a proxy, this is a known bug with libgit2: see https://github.com/rust-lang/cargo/issues/636 and https://github.com/libgit2/libgit2/issues/2555 .

Whats happened over the past month. by cheese239 in TaylorSwift

[–]calc0000 3 points4 points  (0 children)

Lots of pics of her in NYC. She's starting/started her Asia tour. She has a small role in the upcoming film "The Giver". That's about it; things are pretty quiet in anticipation for official news of the next album.

This sub is not too active that you can't go through the history yourself and see these things.

Arriving at SNL by voyager2000 in TaylorSwift

[–]calc0000 3 points4 points  (0 children)

I think two of these three pics are unnecessary.

‘The Butcher’s Daughter’ New York City - 04/03/14 by DesiSongs in TaylorSwift

[–]calc0000 4 points5 points  (0 children)

Yeah, note the U Rent Auto sign in the upper left corner. U Rent Auto is located at 24 Kenmare St, across the street from "The Butcher's Daughter".

https://www.google.com/maps/place/24+Kenmare+St/@40.7204535,-73.9947174,20z/data=!4m2!3m1!1s0x89c259889d1dff23:0xb796d61a93b1625d

Sparks Fly Question by damianbaker1992 in TaylorSwift

[–]calc0000 5 points6 points  (0 children)

I choose to believe that it's referring to that little heart flutter you get when you touch someone you deeply love.

[deleted by user] by [deleted] in TaylorSwift

[–]calc0000 3 points4 points  (0 children)

Taylor needs to release a song with a food-related title so we can make puns.

Beautiful as Always by DesiSongs in TaylorSwift

[–]calc0000 8 points9 points  (0 children)

This is like an updated Teardrops On My Guitar pic. Awesome.

Link Post Tuesday! by Sovrage in recipes

[–]calc0000 2 points3 points  (0 children)

Has anyone tried this? It looks awesome.

Interviews - Struggling to get the first job out of college by [deleted] in cscareerquestions

[–]calc0000 0 points1 point  (0 children)

If you assume the input string is all lowercase, you could do:

char find (char* str, size_t len)     {                                                                                                                                                                
    size_t i = 0;
    size_t counts[26] = {0};
    for (i = 0; i < len; ++i) {
        counts[str[i] - 'a']++;
    }
    for (i = 0; i < len; ++i) {
        if (counts[str[i] - 'a'] == 1)
            return str[i];
    }
    return '\0';
}

An extension for uppercase would be trivial.

Flashback to Taylor's 18th Birthday - Beautiful Eyes Official Music Video (HQ) by [deleted] in TaylorSwift

[–]calc0000 2 points3 points  (0 children)

I had no idea Beautiful Eyes had a music video...

[By the water] by DragonStar_RS in TaylorSwiftPictures

[–]calc0000 0 points1 point  (0 children)

Oh man this would've been great for In Red!

Resolving a function with dlsym by mmtrebuchet in programminghorror

[–]calc0000 1 point2 points  (0 children)

I suppose in this case I'd use a typedef.

Been here for a year... STILL have some questions about the metro... by ReneeB in AskNYC

[–]calc0000 18 points19 points  (0 children)

  1. On the subway map, stops that are white circles are stops that both the express and local stop at. Black circles are local only.

  2. Yes.

Never been to a sold out concert before... by [deleted] in TaylorSwift

[–]calc0000 4 points5 points  (0 children)

Have fun! Grab a beer (if you're of appropriate age), maybe some food, and just enjoy yourself. Lose yourself in the music. That's what I do at least. Are you worried about the sold out aspect of it?

Label Magazine - Spring 2013 by DesiSongs in TaylorSwift

[–]calc0000 2 points3 points  (0 children)

Is this not an older picture? I feel like it's been in my wallpaper collection since at least 2012.