The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
Hmm any programmers about? I'm trying to get some numeric type out of a character array (I'm reading in a file that is basically just a bunch of one-byte number), and they need to end up in a (C++) vector. The vector has to be some numeric type, because it's throwing a fit about the fact that I am trying to use chars. There has to be a better way than iterating along the character buffer, adding each one to the vector individually?
What language. If you are positive it will always be an int you can just typecast it into a variable or in the passing into the function.
It's in C++, I'm actually passing it straight to a matrix in the linear algebra library Armadillo. It doesn't want to cast chars into whatever, though, because it's a butt, hence me having to do it myself.
life's a game that you're bound to lose / like using a hammer to pound in screws
fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
that's right we're on a fucked up cruise / God is dead but at least we have booze
bad things happen, no one knows why / the sun burns out and everyone dies
+1
TTODewbackPuts the drawl in ya'llI think I'm in HellRegistered Userregular
Dewback, I've stated many many times that I fuckin' hate Mardi Gras.
I find the whole affair obnoxious and contemptible.
but it's hedonism is the antithesis of your biblical upbringing.
(to be fair i dont go to any mardi gras shit. although i will buy a king cake when they go on clearance that wednesday)
I'm not sure if i can make the available racist joke.
That's frybread, right? Or is that naan underneath?
Fry bread.
After living adjacent to and working on the Reservation, I have complex feelings about fry bread and its cultural place.
Like... I'm p sure fried chicken ain't Traditional African Food in the same way I've been informed that fry bread isn't Traditional Native American food.
And, yet...
Like a lot of things it is developed out of need and what is available. And is it traditional food? Nope. It is something you can make easily using supplies provided by the government that is dense and tasty. It is by and large a food of poverty.
But at the same time it is what I use to eat at the pow wows we went to growing up. That is where I got the recipe I use from. And though it isn't traditional it is Native American in the fact it is theirs even if it is from a necessity created by wrong actions of the US.
If we are to exclude or look down on the few things that are good that come out of tragedy then we will do nothing but wallow instead of seeking to improve from the dark place we are even currently at.
I'm not in the middle of Looking Down On anything.
It's simply that, much like my identified ethnic group, I know there's a lot of diet-related health issues in Native American communities. And I've eaten fry bread, and I can tell that it's gonna be about as responsible for those health issues as fatbacks and certain preparations of collards is in certain Black communities.
And, like... whenever groups from the Rez are doing a community outreach to the white folk over in Pendleton (about fifteen feet down the road), there's loads of fry bread as, like... a cultural 'hey, here's some tradish Indian food.'
And, as a registered Angry Black Man, I wanna tell people not to feed these people the food their ancestors forced you to poison yourself with.
Literally all the mammals love Fried Chicken, but if I'm gonna try to introduce white folks to any sort of Traditional food from my heritage, these motherfuckers ain't gonna get to think of me munching on some Popeye's.
Doesn't probably help that I'm actually Afro-Indigenous by way of my father's family, and I'm just about the bitterest fruit in the bowl.
There are groups that want to show how its a cause of much of the reservations woes but when it comes down to it you are talking to a set of people who experience, by the large, the worst poverty in the nation. Combined with the fact it has a cult around it akin to apple pie or the like its easy to see that apathy and lack of wanting/caring for change wins out.
I don't eat it much anymore but I still enjoy frybread with the celebrations that entails it usual appearance. Pow wows, winter dances or gatherings and the like. You find comfort around your community sharing and conversing. This is still a rather large happening in my experiences visiting rezs around the US.
+2
LudiousI just wanted a sandwich A temporally dislocated QuiznosRegistered Userregular
I can go heavily into the health problems of the indigenous populations in the US.
Fry bread is not the root cause or even one of the biggest symptoms.
Part of the reason I don't work for IHS is they pay half my salary for the same job in DC and the other is I am not sure I can actual work on a rez right now.
Hmm any programmers about? I'm trying to get some numeric type out of a character array (I'm reading in a file that is basically just a bunch of one-byte number), and they need to end up in a (C++) vector. The vector has to be some numeric type, because it's throwing a fit about the fact that I am trying to use chars. There has to be a better way than iterating along the character buffer, adding each one to the vector individually?
What language. If you are positive it will always be an int you can just typecast it into a variable or in the passing into the function.
It's in C++, I'm actually passing it straight to a matrix in the linear algebra library Armadillo. It doesn't want to cast chars into whatever, though, because it's a butt, hence me having to do it myself.
So to get an idea you have something like 04793453 and you are grabbing, say, the 4th bit and want to pass that into a vector as a coordinate?
0
LudiousI just wanted a sandwich A temporally dislocated QuiznosRegistered Userregular
Dewback, I've stated many many times that I fuckin' hate Mardi Gras.
I find the whole affair obnoxious and contemptible.
but it's hedonism is the antithesis of your biblical upbringing.
(to be fair i dont go to any mardi gras shit. although i will buy a king cake when they go on clearance that wednesday)
It's hedonism in preparation for the religious bullshit of lent. It's like a god damned week long get out of hell free card of debauchery. It, at most, only serves to reinforce bullshit religious shame and it get can fucked
Hmm any programmers about? I'm trying to get some numeric type out of a character array (I'm reading in a file that is basically just a bunch of one-byte number), and they need to end up in a (C++) vector. The vector has to be some numeric type, because it's throwing a fit about the fact that I am trying to use chars. There has to be a better way than iterating along the character buffer, adding each one to the vector individually?
I'm lost, if you had an int buffer how would you build a vector of it without iterating?
I have a char buffer.
I guess you're right and it's just iterating in the background. I was wondering if there was some elegant way of doing it instead of writing my own for loop that iterates and adds to the vector.
you should be able to do something like this using the std vector
Now Playing:
Celeste [Switch] - She'll be wrestling with inner demons when she comes...
Final Fantasy XII: The Zodiac Age [Switch] - Sit down and watch our game play itself
Dewback, I've stated many many times that I fuckin' hate Mardi Gras.
I find the whole affair obnoxious and contemptible.
but it's hedonism is the antithesis of your biblical upbringing.
(to be fair i dont go to any mardi gras shit. although i will buy a king cake when they go on clearance that wednesday)
It's hedonism in preparation for the religious bullshit of lent. It's like a god damned week long get out of hell free card of debauchery. It, at most, only serves to reinforce bullshit religious shame and it get can fucked
Also New Orleans french/cajun culture, not just religious holiday.
Also, King Cake is delicious.
0
LudiousI just wanted a sandwich A temporally dislocated QuiznosRegistered Userregular
Hmm any programmers about? I'm trying to get some numeric type out of a character array (I'm reading in a file that is basically just a bunch of one-byte number), and they need to end up in a (C++) vector. The vector has to be some numeric type, because it's throwing a fit about the fact that I am trying to use chars. There has to be a better way than iterating along the character buffer, adding each one to the vector individually?
What language. If you are positive it will always be an int you can just typecast it into a variable or in the passing into the function.
It's in C++, I'm actually passing it straight to a matrix in the linear algebra library Armadillo. It doesn't want to cast chars into whatever, though, because it's a butt, hence me having to do it myself.
So to get an idea you have something like 04793453 and you are grabbing, say, the 4th bit and want to pass that into a vector as a coordinate?
What I have is an image file broken into one-byte pixels. Each image is 28*28 pixels, whatever that turns out to be. So I have like, 0xF125E711. What I am trying to turn it into is a one-dimensional matrix (so... a row) that has, as its first element, F1, then as its second, 25, then E7, then 11. The easiest constructor to use for that row class is usually a vector, but it only likes int, double, float, etc vectors, and is not happy to be passed a char vector. C++ has no native one-byte things except char, though.
0
DemonStaceyTTODewback's DaughterIn love with the TaySwayRegistered Userregular
Still celebrates that culture today, it is primarily for that, not for religion. I'm sure religions would disagree but Mardi Gras is fun and awesome so I don't care.
And in a quick google, there were 46 tons of beads in New Orleans catch basins. Whoops.
I want to retire to Spain eventually but I know my eternal guilt and such means I will probably due what my dad did when retired and work in public health or with least served communities with my stats skills.
Hmm any programmers about? I'm trying to get some numeric type out of a character array (I'm reading in a file that is basically just a bunch of one-byte number), and they need to end up in a (C++) vector. The vector has to be some numeric type, because it's throwing a fit about the fact that I am trying to use chars. There has to be a better way than iterating along the character buffer, adding each one to the vector individually?
What language. If you are positive it will always be an int you can just typecast it into a variable or in the passing into the function.
It's in C++, I'm actually passing it straight to a matrix in the linear algebra library Armadillo. It doesn't want to cast chars into whatever, though, because it's a butt, hence me having to do it myself.
So to get an idea you have something like 04793453 and you are grabbing, say, the 4th bit and want to pass that into a vector as a coordinate?
What I have is an image file broken into one-byte pixels. Each image is 28*28 pixels, whatever that turns out to be. So I have like, 0xF125E711. What I am trying to turn it into is a one-dimensional matrix (so... a row) that has, as its first element, F1, then as its second, 25, then E7, then 11. The easiest constructor to use for that row class is usually a vector, but it only likes int, double, float, etc vectors, and is not happy to be passed a char vector. C++ has no native one-byte things except char, though.
You cant use unsigned char?
Jubal77 on
0
ShivahnUnaware of her barrel shifter privilegeWestern coastal temptressRegistered User, Moderatormod
Hmm any programmers about? I'm trying to get some numeric type out of a character array (I'm reading in a file that is basically just a bunch of one-byte number), and they need to end up in a (C++) vector. The vector has to be some numeric type, because it's throwing a fit about the fact that I am trying to use chars. There has to be a better way than iterating along the character buffer, adding each one to the vector individually?
What language. If you are positive it will always be an int you can just typecast it into a variable or in the passing into the function.
It's in C++, I'm actually passing it straight to a matrix in the linear algebra library Armadillo. It doesn't want to cast chars into whatever, though, because it's a butt, hence me having to do it myself.
So to get an idea you have something like 04793453 and you are grabbing, say, the 4th bit and want to pass that into a vector as a coordinate?
What I have is an image file broken into one-byte pixels. Each image is 28*28 pixels, whatever that turns out to be. So I have like, 0xF125E711. What I am trying to turn it into is a one-dimensional matrix (so... a row) that has, as its first element, F1, then as its second, 25, then E7, then 11. The easiest constructor to use for that row class is usually a vector, but it only likes int, double, float, etc vectors, and is not happy to be passed a char vector. C++ has no native one-byte things except char, though.
You cant use unsigned char?
I dunno, let me see!
0
TTODewbackPuts the drawl in ya'llI think I'm in HellRegistered Userregular
In fact, New Orleans getting the credit for Mardi Gras is one of the biggest scams in history. They're the Carlos Mencia of holidays
I don't understand this. What credit does New Orelans get for Mardi Gras that is undeserving? They didn't create the holiday, it's pretty old, but also French settlers and shit brought it over so it isn't like they just decided to hallmark up a day and sell beads. It was a carnival celebration and still is!
0
LudiousI just wanted a sandwich A temporally dislocated QuiznosRegistered Userregular
Mardi Gras is dumb. I stand by my statement. King Cake isn’t even really that good either. Not the traditional shit. I SAID WHAT I SAID.
Hmm any programmers about? I'm trying to get some numeric type out of a character array (I'm reading in a file that is basically just a bunch of one-byte number), and they need to end up in a (C++) vector. The vector has to be some numeric type, because it's throwing a fit about the fact that I am trying to use chars. There has to be a better way than iterating along the character buffer, adding each one to the vector individually?
What language. If you are positive it will always be an int you can just typecast it into a variable or in the passing into the function.
It's in C++, I'm actually passing it straight to a matrix in the linear algebra library Armadillo. It doesn't want to cast chars into whatever, though, because it's a butt, hence me having to do it myself.
So to get an idea you have something like 04793453 and you are grabbing, say, the 4th bit and want to pass that into a vector as a coordinate?
What I have is an image file broken into one-byte pixels. Each image is 28*28 pixels, whatever that turns out to be. So I have like, 0xF125E711. What I am trying to turn it into is a one-dimensional matrix (so... a row) that has, as its first element, F1, then as its second, 25, then E7, then 11. The easiest constructor to use for that row class is usually a vector, but it only likes int, double, float, etc vectors, and is not happy to be passed a char vector. C++ has no native one-byte things except char, though.
You cant use unsigned char?
I dunno, let me see!
Its been awhile. Reading through the documentation you may still have to (int) cast the usage of unsigned char into the vector.
In fact, New Orleans getting the credit for Mardi Gras is one of the biggest scams in history. They're the Carlos Mencia of holidays
I don't understand this. What credit does New Orelans get for Mardi Gras that is undeserving? They didn't create the holiday, it's pretty old, but also French settlers and shit brought it over so it isn't like they just decided to hallmark up a day and sell beads. It was a carnival celebration and still is!
See the billboard.
Alabama actually has the oldest American Mardis Gras experience.
I'm not sure if i can make the available racist joke.
That's frybread, right? Or is that naan underneath?
Fry bread.
After living adjacent to and working on the Reservation, I have complex feelings about fry bread and its cultural place.
Like... I'm p sure fried chicken ain't Traditional African Food in the same way I've been informed that fry bread isn't Traditional Native American food.
And, yet...
Like a lot of things it is developed out of need and what is available. And is it traditional food? Nope. It is something you can make easily using supplies provided by the government that is dense and tasty. It is by and large a food of poverty.
But at the same time it is what I use to eat at the pow wows we went to growing up. That is where I got the recipe I use from. And though it isn't traditional it is Native American in the fact it is theirs even if it is from a necessity created by wrong actions of the US.
If we are to exclude or look down on the few things that are good that come out of tragedy then we will do nothing but wallow instead of seeking to improve from the dark place we are even currently at.
I'm not in the middle of Looking Down On anything.
It's simply that, much like my identified ethnic group, I know there's a lot of diet-related health issues in Native American communities. And I've eaten fry bread, and I can tell that it's gonna be about as responsible for those health issues as fatbacks and certain preparations of collards is in certain Black communities.
And, like... whenever groups from the Rez are doing a community outreach to the white folk over in Pendleton (about fifteen feet down the road), there's loads of fry bread as, like... a cultural 'hey, here's some tradish Indian food.'
And, as a registered Angry Black Man, I wanna tell people not to feed these people the food their ancestors forced you to poison yourself with.
Literally all the mammals love Fried Chicken, but if I'm gonna try to introduce white folks to any sort of Traditional food from my heritage, these motherfuckers ain't gonna get to think of me munching on some Popeye's.
Doesn't probably help that I'm actually Afro-Indigenous by way of my father's family, and I'm just about the bitterest fruit in the bowl.
There are groups that want to show how its a cause of much of the reservations woes but when it comes down to it you are talking to a set of people who experience, by the large, the worst poverty in the nation. Combined with the fact it has a cult around it akin to apple pie or the like its easy to see that apathy and lack of wanting/caring for change wins out.
I don't eat it much anymore but I still enjoy frybread with the celebrations that entails it usual appearance. Pow wows, winter dances or gatherings and the like. You find comfort around your community sharing and conversing. This is still a rather large happening in my experiences visiting rezs around the US.
Again, I'm not in the game of judging any of that.
It just hits a button in my brain that most things within Black culture don't, probably because I'm even more disconnected from my Native heritage than I am from any sort of 'Black Culture.'
life's a game that you're bound to lose / like using a hammer to pound in screws
fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
that's right we're on a fucked up cruise / God is dead but at least we have booze
bad things happen, no one knows why / the sun burns out and everyone dies
0
ShivahnUnaware of her barrel shifter privilegeWestern coastal temptressRegistered User, Moderatormod
OR I could read the documentation and see that they have a conversion function that works on chars.
Posts
I find the whole affair obnoxious and contemptible.
I'm hoping it becomes abstract enough to not bother you
It's in C++, I'm actually passing it straight to a matrix in the linear algebra library Armadillo. It doesn't want to cast chars into whatever, though, because it's a butt, hence me having to do it myself.
get me on that government dole
fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
that's right we're on a fucked up cruise / God is dead but at least we have booze
bad things happen, no one knows why / the sun burns out and everyone dies
but it's hedonism is the antithesis of your biblical upbringing.
(to be fair i dont go to any mardi gras shit. although i will buy a king cake when they go on clearance that wednesday)
There are groups that want to show how its a cause of much of the reservations woes but when it comes down to it you are talking to a set of people who experience, by the large, the worst poverty in the nation. Combined with the fact it has a cult around it akin to apple pie or the like its easy to see that apathy and lack of wanting/caring for change wins out.
I don't eat it much anymore but I still enjoy frybread with the celebrations that entails it usual appearance. Pow wows, winter dances or gatherings and the like. You find comfort around your community sharing and conversing. This is still a rather large happening in my experiences visiting rezs around the US.
the seal has been broken
the gibbering legion marches
Fry bread is not the root cause or even one of the biggest symptoms.
Part of the reason I don't work for IHS is they pay half my salary for the same job in DC and the other is I am not sure I can actual work on a rez right now.
So to get an idea you have something like 04793453 and you are grabbing, say, the 4th bit and want to pass that into a vector as a coordinate?
It's hedonism in preparation for the religious bullshit of lent. It's like a god damned week long get out of hell free card of debauchery. It, at most, only serves to reinforce bullshit religious shame and it get can fucked
you should be able to do something like this using the std vector
char butts [] = { 'b','u','t', 't', 's' };
vectorVonDoom.insert (vectorVonDoom.begin(), butts, butts+(ArraySizeGoesHere));
where butts is your char buffer
Celeste [Switch] - She'll be wrestling with inner demons when she comes...
Final Fantasy XII: The Zodiac Age [Switch] - Sit down and watch our game play itself
What’s upton?
Also New Orleans french/cajun culture, not just religious holiday.
Also, King Cake is delicious.
mardi gras didn't even start in New Orleans
What I have is an image file broken into one-byte pixels. Each image is 28*28 pixels, whatever that turns out to be. So I have like, 0xF125E711. What I am trying to turn it into is a one-dimensional matrix (so... a row) that has, as its first element, F1, then as its second, 25, then E7, then 11. The easiest constructor to use for that row class is usually a vector, but it only likes int, double, float, etc vectors, and is not happy to be passed a char vector. C++ has no native one-byte things except char, though.
Not with that attitude.
someone i know made one one year and it looked amazing.
Still celebrates that culture today, it is primarily for that, not for religion. I'm sure religions would disagree but Mardi Gras is fun and awesome so I don't care.
And in a quick google, there were 46 tons of beads in New Orleans catch basins. Whoops.
You cant use unsigned char?
I dunno, let me see!
And then the ground beef and refried beans ...
Refried is a word Siri maybe you should eat at Mexican lunch spots more often
um @Neco this is crucial information
Its been awhile. Reading through the documentation you may still have to (int) cast the usage of unsigned char into the vector.
you know what happens to people who don't provide links after statements like this, right?
See the billboard.
Alabama actually has the oldest American Mardis Gras experience.
Again, I'm not in the game of judging any of that.
It just hits a button in my brain that most things within Black culture don't, probably because I'm even more disconnected from my Native heritage than I am from any sort of 'Black Culture.'
https://i.imgur.com/aT8zxqi.gifv
cc: @Ludious
fuck up once and you break your thumb / if you're happy at all then you're god damn dumb
that's right we're on a fucked up cruise / God is dead but at least we have booze
bad things happen, no one knows why / the sun burns out and everyone dies
That's dumb, though, who would do that.
also if you are. One of the leading causes of death used to be stomach cancer because of all the salt.
I remember c++. At least the pain associated with it. C# is great.
SQUIRREL
Currently DMing: None
Characters
[5e] Dural Melairkyn - AC 18 | HP 40 | Melee +5/1d8+3 | Spell +4/DC 12