« first day (460 days earlier)      last day (4503 days later) » 

5:00 PM
@Graeme if you're concatenating, you'll be copying the contents anyways, so why not?
 
I sense an interesting discussion.
 
just call resize() with the appropriate size, and then use +=
 
So, it should be something like: "UPDATE TABLE " + std::string(cJSON->valuestring) + ...
 
Oh Hello
 
@Graeme so clear just removes the mappings and I DO have to loop through and null everything myself... thanks!
 
5:01 PM
Hello there.
 
unfortunately, std::string has a poor design without expression templates to optimize concatenation
 
@Graeme yeah, temporaries'll do fine.
 
but resize is still perfectly good
 
@Evan Is there a reference to each bitmap outside of the HashMap? And are you trying to destroy the Bitmaps?
 
The headache suddenly increases. wonders if that might be related to the C / C++ discussions
 
5:03 PM
Wait, so creating a new string for each reference is the correct thing to do?
 
optimize it later
but you don't have to, std::string has a + operator for const char*
 
so at one point the char* will be in 3 places at once?
 
@Graeme no.
@DeadMG he only has char* to start with. He needs to call an explicit string constructor somewhere
 
Should I just join the c++ room since I'm apparently pulling in the denizens by talking about this?
 
true, but not everywhere
 
5:05 PM
@Graeme @DeadMG and me are both in the C++ room. Beware
 
Your getting your c++'ness on all of the nice java furniture.
 
lol
 
@Graeme you started it by pointing me to cppreference.com
 
just so you know, Java bashing is one of the favourite activities of the C++ room
3
 
which is an awful reference btw
 
5:06 PM
It's our fav pastime too you know
 
@DeadMG As it is in here. ;)
 
rofl
 
Not sure why everyone thinks that just because we have to develop in Java means that we like it. :D
 
@Graeme Probably not. If you think you're talking about C++ as if you know C++, it's best to not go to the C++ room and expect people to believe that you know C++. If however, you'd like to learn about C++, you might appreciate the room.
 
not that we don't also spend a lot of time bashing C++
 
5:09 PM
@DeadMG Oh gah'd, headers.... headers....
 
array-to-pointer decay!
 
I'm spending most of my time trying to find a way out of Android.
 
Sometimes I shudder in a dark corner muttering "headers... headers..."
 
There is tons of C++ code in the Android OS too.
 
5:10 PM
@OctavianDamiean Good luck... it's either Android, or "You're holding it wrong."
 
Of course, you could look into the wonderful world of HTML5, and avoid the issue.
Else, expect to be typing m.yourwebsitehere, as a future for mobile programming.
 
Which is what I plan. Well actually not really HTML5 (not only) but JavaScript.
 
@OctavianDamiean And mobile platform programming devolves.
Waiter, check, I feel the technology digressing.
You see, your first mistake, was giving me permission.
Woot, Android update. Yay! Thank you HTC.
 
Well I don't really pay attention to be honest.
I have a very important decision to make, put my ball sack on the right or the left in my pants. Not sure.
 
5:24 PM
Write an app to randomly generate sack positions on a daily basis and automatically tweet, fb and g+ your status to reflect choice and geo-tagging it
 
That is the best app idea in ages.
 
That room taught me a lot about how to deal with people who come into the room with limited java knowledge.
 
did they tell you to eat your own liver?
 
Hi mates
 
@Merlin A nice person helped me.
 
5:28 PM
That doesn't sound right
 
Most other people sat in their c++ thrones feeling superior (with a few exceptions)
 
I am using Multiple map activities in my map, whenever I leave my any of mapactivity I get this error(warning in log cat)
activityname has leaked IntentReceiver android.net.NetworkConnectivityListener$ConnectivityBroadcastReceiver@44da9eb0 that was originally registered here. Are you missing a call to unregisterReceiver()
 
See you later everyone.
 
@Rj Do you have a question on Stack Overflow for that?
 
@Graeme night night
 
5:30 PM
I read android docs and its written multiple mapactivity running in one process may unstable application(gui) so I also made these two mapactivites in two different process still same warning
@OctavianDamiean did not get solution,yes I will post after doing some more research like these
anyone having idea on this issue
 
@Merlin You need a char buffer with the size of the string to do that. And I don't know the size of the String. Basically, for all their talk of c++ being superior I don't think any of them know how to concatenate char* either.
shrugs
Night @Merlin, all
 
@Graeme use string stream stackoverflow.com/a/2342176/808940
 
ok no problem mates Good night
 
@Graeme char* is a C construct, not C++, and you can use std::string pretty easily.. it would be easy to show you if you posted a code sample
 
5:53 PM
 
Your office is a railroad?
 
its next to a rail road
 
@DeadMG that's like saying an int is a C construct !!!
char is a native datatype in both C and C++ ... it's fundamental
So @Pyrodante how's your singleton? I take it if you're filming puddles then you've won the war
 
well the new version got delayed do to back end (read: other peoples) problems, so far so good, but I wont know until I see a wider distribution since I never saw the db locked error on my device anyways.
I think the users are sabotaging me
 
They are always sabotaging us developers, that is their job.
 
6:12 PM
we have a winner
 
shakes head
Just when you think that the civilization hit a new low you read stuff like that and experience a behavior like a couple of minutes ago.
 
couple of minutes ago?
 
They must be kidding me.
We've tracked down the source of the unicorns. Rolling out a fix shortly.
@Pyrodante Scroll up a bit.
 
@Merlin the usage of char* as a "string" is a C construct.
 
um...k
 
6:25 PM
slaps @rubenvb in the face with a herring
it's a pointer to a char ... plain and simple.
 
which is not a C++ construct.
braces for another herring attack
 
is out of ammo having eaten the herring (which was tasty)
 
lol
 
i dont get regex in android xml files =(
 
doesn't get regex ever
 
6:31 PM
@Merlin try your claws. Or are you the cute kind of cat that never scratches and actually does not exist?
 
de-clawed for virtuality ... besides violence is only allowed for comedy value
anyway how do you define a C++ construct???
 
so true regex is so confusing to me lol
 
NERD FIGHT!
 
A language construct is a syntactically allowable part of a program that may be formed from one or more lexical tokens in accordance with the rules of a programming language. The term Language Constructs is often used as a synonym for control structure, and should not be confused with a function. Examples of language constructs In PHP, for example, print is a language construct. According to [http://www.php.net/manual/en/function.print.php] is the same as:
why use PHP as an example ... which spanner did that?
 
@Merlin It's something that is described as being the "right way" in a good C++ book. RAII is a C++ concept. A memory leak is a C concept that unfortunately often leaks into C++
 
6:36 PM
(Not knowing C++) Isn't a char a fundamental data type in C++?
 
yes it is
 
@OctavianDamiean of course, but using char* for strings and unmanaging memory is a holdover from C with much better alternatives in C++
the C fundamental type system sucks anyways.
 
std::string is defined as typedef basic_string<char> string;
somewhere in there you're gonna find an array of chars ... sometimes doing it in C is quicker and more compact.
 
I highly doubt that
it's quicker to leak memory, but not to concatenate, create, clean up, search, etc...
 
I really wish I could input in this discussion
 
6:50 PM
ehh i dont know how to do this
 
... sod it ... too tired to argue ... going home to get food
 
i have a string with spaces in it im trying to send to a mysql db via php
 
wtf? @JMRboosties
 
? whats wrong
 
string spaces mysql php? what?
 
7:02 PM
@Merlin go home and eat!
 
i have a string like "here i am" which needs to put put into a db spaces and all
 
yup, how is that a problem?
a string is a string is a string
 
yup not seeing the problem
just make sure to put single quotes around it
 
INSERT INTO myTable(myField) VALUES('this is a string') WHERE blah=blah
 
do i need to do that %20 thing with the spaces at all?
when im getting it to the php page i mean
 
7:06 PM
no that's only for URI's ... defined in the http protocol
if you are passing the information in the form of a URI then you need to escape spaces and unescape them when you recieve them
 
ok
im passing the info in GET format
so just www.site.com/page.php?string='hello there'
 
http://mysite.com/insertPage.php?myField=this%20is%20a%20test
 
so i need some kind of space
yea, so i do need to translate the spaces into %20
and then in php take %20 and put it back to ' '
 
yes when passing them as a URI you do ... if you pass them as form post you don't
I think you can use TextUtils.HTMLEncode to convert your characters on the android side
not sure about unescaping in PHP but you will be able to google that
forget what I said about TextUtils ... it might work but probably better to use the URLEncoder class
Right to get in the hippo and drive home
 
7:27 PM
thanks for the help
 
Shit happens.
A famous quote of someone said some time ago in some situation to someone.
 
extremely ironic shit
 
Wait, what the holy fuck? "Supreme Court rules Congress can re-copyright public domain works" http://arst.ch/s68
What the fuck?!
Looks like all this crap is going to have only one logical ending. Revolution.
 
btw im all too aware of life's RNG.. I lived with my dad in college, really healthy guy, then one day (~2 years ago) he dropped dead infront of me. Brainstem stroke. So yea... Code hard and often :) Never know.
lol recopyright
wouldn't that make them a ... copy cat o_o
 
It would make them dead people.
 
7:57 PM
lawl, just yelled at eclipse for compiling my app and not installing it on my phone for 2 minutes straight.. then I realized that I was looking at the wrong phone on my desk -_-
 
America: ruled by the corporations, for the corperations
which, given that "corporations are people"... make the original statement still true
 
yup, and if you're in denial... lobbyit.com
 
I am not in denial, in fact I am no where near Egypt
 
shit like that pisses me off
 
its simple: the advantage of our political system is anyone can get up in the world with enough effort. Problem is, the people who put in the most effort are naturally the ones who stand to gain the most from it
 
8:01 PM
middlemen between the actual representatives and the people/corporations they're supposed to be representing in the first place
 
2012 will go down as the year the US constitution died
 
just as the mayans predicted..
lol
 
megaupload is down
 
8:11 PM
Guys stuck again
I download a string from a webpage
it looks like
<p>Steven Paul Jobs (/&#712;d&#658;&#594;bz/; February 24, 1955&#160;&#8211; October 5, 2011) was an American businessman
 
first they came for our Napster, and I said nothing, because Limewire was better. Then they came for Limewire, and I said nothing, because it was a virus laden piece of shit. Then they came for...
 
How can I remove those annoying characters without using external libs ?
 
well you can interpret the escape characters and turn it back into English
 
how ?
 
so replace "&#712;" with "'" etc
 
8:13 PM
but in other texts maybe there are other characters
 
i dont understand how you can shut down a site which doesnt actually do any piracy
 
well somewhere I bet there is a list of the codes
 
piracy is conducted there, but megaupload actually has a copyright infringement policy (even if it is hardly ever enforced)
 
ʒ is &#658; btw
@JMRboosties haven't you figured it out? It doesn't have to make any sense when there is that much money involved
 
well yea, but i am just curious what they actually cited as evidence
 
8:16 PM
500 million in lost revinue
you do realize these are the same people who sue 9 year old girls right?
and thought making a 3rd Transformers movie was "genius"
 
ironically the same people who support taking down MU probably say "guns dont kill people people kill people"
same exact principle
 
doobies dont smoke people, people smoke doobies
 
my favorite still is the ski mask analogy
 
???!
 
in russia, both guns and doobies kill people
 
8:18 PM
guns don't kill people youtube.com/watch?v=xC03hmS1Brk
 
pooor Russians
 
i forget where that saying is from
 
@Alin Looks like HTML encoding.
 
SOPA in the real world: Walmart sells ski masks, criminals use ski masks, shut down Walmart
 
The fix is bloody simple
wow I am amaized that in Android I can actually do something with a line of code
android.text.Html.fromHtml(builder.toString()).toString();
 
8:20 PM
fromhtml is fucking slow
dont use it in a listview
 
@Evan not in a list view... and it's a string of max 10 lines
 
ok i was just giving you the heads up.. I used it in a listview once and the lag was awful
 
megavideo is gone too
 
Because it parses the HTML string every time you scroll. That is mental.
 
@Evan thanks, I'm gonna keep in mind
 
8:31 PM
damn... The individuals each face a maximum penalty of 20 years in prison racketeering charges, five years for conspiracy to commit copyright infringement, 20 years on money laundering charges and five years on related charges.
Amazing how fox news almost makes SOPA sound like a good thing
 
so what exactly did they do wrong? just host a site where people pirated stuff without pirating themselves?
were there any requests to take anything specific down that were not fulfilled?
 
8:49 PM
Man the shit is hitting the fan big stylie. ... can we screw the patent system up at the same time ... especially the software ones
finally made it home
pkill spotify ... damn you gnome3
 
this media player error is driving me nuts
im getting this exception when i try to create a media player: java.io.IOException: Prepare failed.: status=0x1
 
fml ... the HTC Desire rooting thingy doesn't work.
 
Driving me nuts?
 
I'm close to just throwing it against the next wall and buying a Galaxy Nexus.
 
DO IT!!!
wait ... sell it on ebay ... then buy a nexus
 
9:00 PM
I'm going to sell its parts on ebay ...
 
Throwing at the wall will be far more rewarding
 
idk that thing looks heavy, i think the wall would just break
 
must. find. better. walls.
 
Crap ... the Nexus S is out of stock in Austria.
 
@owengerig I think he was talking about the HTC desire
Can't you buy from germany?
 
9:10 PM
Go piss off HTC. I hope you die in a fire. While drowning in your own piss.
@Merlin Yea but only for close to 400€.
I didn't lose my mind yet.
 
Well I don't speak russian but looks like this comrade has had similar issues with HTC
 
I should send him a bottle of vodka.
 
Hello everyone
 
waves enthusiastically at Peter then remembers about the food in the microwave
 
This is absolutely unbelievable. The Nexus S was available for 189€ at the cheapest and most idiotic electronics store a couple of weeks ago, now you can get it only from Amazon for about 400€ ...
 
9:20 PM
Haha hello Merlin
 
Cheapest on amazon uk is ~ 225GBP
 
Another guy from Austria sells his Nexus S for 350€ stating that he is well aware that it is out of stock in entire Austria and the cheapest one being 400€ on Amazon.
I should totally drive to that guy and slap him.
He has probably bought it with 189€.
 
hands his best slapping trout to octavian ... here use this
189 EUR seems very low for any mobile phone ... I can't believe they were that cheap
but slap him anyway
 
The price was even 10€ lower than 199€.
Meh ... I'm so pissed that even my gastritis came back right now. Gonna head off before I have to level out and paint the wall.
 
Take it easy dude ... don't stress ... it's not worth the effort
 
9:34 PM
and... a distraction from all my negitivity
 
man that woman can talk .. I gave up at 4 minutes in ... I thought she was going to sing
 
lol
 
9:54 PM
welcome @Jackfu
 
Can i bother someone with a very quick question? Around managedQuery
 
only if you first answer my question: have you posted it on SO?
 
Nah, i haven't.
I'll dig further...
 
:D
 
Just getting started with Android, beats the .NET day job..
 
9:59 PM
ah the innocence you are displaying :P
 
Give me a week and i will know what's what...
code is code
 
user457812
Non-English Glados is hilarious
 
user457812
Especially Spanish and German
 
Android is quicksand ... by the time you realize you're sinking it's already too late!
 
user457812
Android is a cement floor, but it turns out some mobsters buried you in it.
 
10:04 PM
7 hours ago, by owen gerig
for the last time dogs>cats PERIOD
what is this abomination of nature?
 
Lizards > Dogs
 
i'll be back
perhaps..
 
Lizard > Spock > Paper > Rock > Scissors > Paper > Rock > Lizard
 
user457812
@Pyrodante We had one of those lizards.
 
10:29 PM
I have one of them
his name is Siberys
 
10:50 PM
Result of searching images.goole.com for Siberys
 
sibery is a dragon from eberron
 
need to play me some ddo ... but I'm a cgi junkie and I want hi-res
 
my bosses bosses boss walked in with a unipony on screen
 
user457812
11:10 PM
 
user457812
Beautiful. Just beautiful.
 
lmao 2nd response is the best
 
all of those things are real you blasphemer!
 
If your boss' boss' boss asks about uniponies ... tell him that if you ask a unipony driver a question about Android devices you get a faster answer than google can provide
 
11:31 PM
clearly uniponies exist, there is a word for them
however, there is no word for "the answer Google gives you that accurately, quickly, and without confusion answers your question about the Android platform."
 
11:58 PM
tempting to brick my phone with an SE build
 

« first day (460 days earlier)      last day (4503 days later) »