« first day (1281 days earlier)      last day (3652 days later) » 

12:55 AM
Ahmad, you know C, don't you?
 
user457812
I know C.
 
I'm learning it now. Looks fairly easy and reading "Learn C the Hard Way" and I seem to be getting a few errors on a simple part. But can't see anything
Will pastebin if you want to look at it
 
Has to be a simple syntax I missed but I keep missing it (unless it has to do with how I'm building it)
 
user457812
I don't get any errors, though I do get a warning for when you access an index outside an array's bounds.
 
1:06 AM
Hmm...I will have to look at how I'm compiling it, I guess
 
user457812
 
Where do I access an index outside of it's size?
Ah, I see. Thanks
 
user457812
Also, you should mark string literals as constant.
 
Still learning these damn makefiles so maybe it has to do with that
 
user457812
Preferably like char const *const foo = "bar";
 
user457812
1:10 AM
Makefiles have nothing to do with C, though I admit I'm well beyond the point of no return when it comes to figuring out why people have a hard time with makefiles.
 
Maybe it is fine then and I do understand them. I just couldn't figure out what else would be causing that error since the syntax seems to be correct
 
user457812
I don't know, seeing as you've for some reason decided against sharing how you compile the thing.
 
I didn't really decide against it so much as not thought about it, I guess
 
user457812
Well I can't comment on things I can't see.
 
Nope. But I thought looking at the syntax would be the first step. That, I believe, is being done in the makefile (unless I completely misunderstand how it works)
all:
cc $(CFLAGS) ex1.c ex3.c ex9.c
 
user457812
1:17 AM
Again, makefiles have nothing to do with C.
 
user457812
They don't check syntax or anything. They just set up targets with dependencies and tasks to build those targets.
 
user457812
Try compiling it without using a makefile.
 
user457812
Also probably without passing multiple source files since I'm guessing each ex*.c file has its own entrypoint, in which case that's definitely an error.
 
I get the same errors when trying to compile it on it's own
Again, unless I f'ed that up too
 
user457812
What compiler are you using and what flags are you using?
 
1:20 AM
I simply did
`cc ./ex9.c`
 
user457812
Ok, which compiler are you using?
 
gcc
 
user457812
Compiles fine using gcc for me.
 
user457812
Are you sure you're compiling the right file?
 
user457812
Are you in the right directory?
 
user457812
1:22 AM
Did you save the file you pasted to a directory other than the one that you're compiling in so you have some old broken copy in one directory and the right version in another?
 
Well, I sure as hell thought so but I have made a mistake in the past (once) so I will look again
 
My compiler (i.e. me) doesn't give any errors either
 
Ok, compiling now. Thanks
 
yay!
what was the problem?
 
It apparently was trying to compile "some old broken copy"
But I'm not sure how or why
 
1:33 AM
weird
did you have your new copy in memory (i.e. forgot to save it) and the old one still on disk?
 
Nope, pretty sure it was saved
 
as long as it's working now, that's all that matters ;-)
hmm...playing with a new app idea...
 
user457812
I gots nachos and beans with cheese.
 
user457812
I win.
 
You do win because that sounds really good
 
1:45 AM
I got pizza
Nevermind, my son took the last slice
 
user457812
Time to disown him.
 
He's 19...I thinks it's too late
 
user457812
It's never too late.
 
If I do, he will take his Xbox One...
 
user457812
No real loss there.
 
user457812
1:47 AM
Insert more jokes about the Xbone losing here.
 
Well, I like Forza.
I wouldn't spend that much on a game system..
 
I have an opportunity to make an app for a non-profit organization. They are offering to pay me for my time. However, I'm new to this consultant thing and have no idea how to bid it. Do any of you have any suggestions how I should approach this?
 
What organization? What are your thoughts about them?
 
user457812
Make sure they sign a contract.
 
seems pretty legit. One of my students works for them.
 
1:53 AM
Do you agree with what they are doing?
 
definitely. They provide gaming laptops for kids with terminal illnesses
 
Do it cheaply
 
that's part of my conundrum. I have no idea what price range is "cheap" lol
 
user457812
Do it for a reasonable amount. They're a non-profit, you aren't.
 
the app will provide a portal to their forums so anyone can participate from a mobile device.
 
1:55 AM
I see now. Noel, define reasonable
I wish I could type
 
user457812
I'm not the person being contracted, I can't provide a quote.
 
seems reasonable as long as I can hook into their forums.
I just don't know what a "reasonable" quote would be for the job ;-(
 
user457812
Think what you'd consider paying someone for it then pick the next highest number.
 
user457812
I don't say that as a get-more-money thing but as a programmers-are-terrible-at-estimating-time-and-cost thing.
 
user457812
Also, goes without saying, but since it's a non-profit, pick what you'd pay someone as a non-profit.
 
user457812
2:03 AM
But still pick the next highest number.
 
user457812
Or just do it for free. Depends on what you want to do.
 
I'm CHEAP! I wouldn't pay...
 
I kindda need the income, otherwise I would do it for free.
 
user457812
I'd probably just go "oh they want an app" and volunteer because I'm too lazy to set up contracts and all that crap
 
\o Ahmad
 
2:06 AM
How long do you think it will take you?
 
probably less than a month
but then that's part of the problem...I'm bad at guessing how long it will take to code things
 
In hours....
Figure out how many hours, then multiply that by your hourly rate....
 
user457812
Then multiply the time by two to be safe.
 
Since this is for a non-profit you agree with, then I'm not sure about the *2 option.
 
user457812
Maybe not, but you can prorate it if you really want to.
 
2:15 AM
For now, lets say 32 hours a week, 4 weeks. 128 hours. 1 Tesla S [P85] per hour, times 128...
 
user457812
 
user457812
There's a talk by icculus about freelancing stuff.
 
user457812
Though I don't think you're quitting your job, it's probably worth watching for some basic advice.
 
user457812
Also, Mike Monteiro's "Fuck You, Pay Me" talk.
 
4:07 AM
:D
 
 
2 hours later…
5:59 AM
-5
Q: Buttons with Equal Width

Code-GuruI have two buttons in a vertical LinearLayout. Is it possible to make them the same width, ideally as wide as the widest text? <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" ...

I'm a little surprised by all the downvotes.
 
\o
 
o/
 
it is very simple question that might guys did downvote
 
Simple question with a not-too-obvious answer, imo.
 
I see
 
6:03 AM
I think I might be getting some haters from the downvoted answers.
 
@Downvoters I don't know for what you downvoted this question. This question sounds good to me. — Williams 13 secs ago
 
Thanks for your vote of confidence.
 
NP
 
6:43 AM
 
\o
 
0/
 
7:05 AM
 
user457812
7:22 AM
Guinea pig has the same reaction as the lizard: it's a lizard.
 
Can't wait for this
 
7:42 AM
So I'm at a hackathon
 
Don't you just hate it when that happens?
 
Absolutely. Who's actually going to write code?
On a totally unrelated note, anyone know how to get partial voice to text results?
 
 
2 hours later…
9:21 AM
Good morning y'all
 
9:49 AM
hi there!
installed meslo dz s font to ubuntu, customized it as the one and only for android studio's font (interface I mean), then wanted to set it to use in editor - it's not on the list. What the... ?
With windows8 everything worked great. Does anybody know, why is that?
P. S.: I'm using custom theme, not trying to override default one
 
user457812
10:05 AM
No clue since it doesn't involve bunnies
 
Maybe try turning off and on again?
 
user457812
Try looking at pictures of bunnies.
 
user457812
 
user457812
Always related.
 
Oh I know how to fix that actually
Click on the button that says "Show monospace fonts only"
 
user457812
10:10 AM
I know how to bunnies.
 
@DenRimus To fix that, turn off "Show monospace fonts only" and it'll show your font
 
tried that already. It's a mono font actually.
 
@DenRimus That worked for me. For some reason in my machine if I leave that option on some mono fonts don't show
Did you install as a global font or a local user font?
 
well that's a question. I opened it from desktop and pressed install
 
@Code-Guru Hope you figured out to use a TableLayout with Rows :) The accepted answer is pretty bad; hardcoded widths are not ideal.
 
10:15 AM
Huh, if it asked for root then it's probably global, if not then probably your user only
Maybe try the opposite?
 
...I appear to be participating in chat from 4 hours ago, yay me.
 
sure I will thanks
 
user457812
Who's hardcoding widths?
 
user457812
Hit them. Hard.
 
10:24 AM
nil, this:
0
A: Buttons with Equal Width

Ram kiranUse this below xml code <LinearLayout android:layout_width="200dp" android:layout_height="wrap_content" android:layout_centerInParent="true" android:orientation="vertical"> <Button android:id="@+id/newTournament" android:layout_width="fill_parent" and...

 
user457812
Well, I'm forgiving of making buttons have fixed widths via minimum width, but they shouldn't have a max since you'll have to account for text scaling
 
10:37 AM
And, German.
 
user457812
We don't support dead languages.
 
What about zz_ZZ? That one's pretty common.
 
 
1 hour later…
11:41 AM
bwahahahah
2
 
12:02 PM
@Glitch Besides being funny, that is actually pretty cool.
Best part is when they're just throwing stuff at the fat model, he looks so sad.
 
12:41 PM
i liek the massive neck and no arms creature
 
 
1 hour later…
1:46 PM
 
hey fellow !
Hmm Nice Raghav, Raghu is doing also good
 
2:05 PM
Heh.
Yeah, but none of those can get to Commonsware's 36k all-time up votes
 
hey Ahmad
 
hi
 
2:28 PM
 
lol
 
3:08 PM
been a while since i posted here
I'm on a X Files Marathon
 
Since a month or so? lol
 
3:26 PM
man this creative cloud crap is bullshit
 
Silverman owns it
 
4:10 PM
 
haha that youtube channel is awesome glitch
 
Classy as fuck
 
@NoahHuppert Welcome back
 
Hello
 
You should have write access again
 
4:22 PM
:)
 
0.o
Are you sure that it's your auto brightness app on that though?
 
no idea
 
You could sue the fuck out of them if it was
 
It's just a display though. I have no idea how they could
 
4:27 PM
For some reason I'm getting a Permission denied error for INTERNET, when its in my manifest, and I know that INTERNET works because I use the Google Play Services API. Thrown when using this questions answer
 
Oh it's only a display. I thought it's some cheap tablet.
Pastebin the whole stack trace noah.
 
Hmm makes no sense. Are you sure it's in the manifest?
 
Useage of the DownloadImageTask --> new DownloadImageTask((ImageView) findViewById(R.id.webimage)).execute(personPhoto); and yep, <uses-permission android:name="android.permission.INTERNET" />
 
weird
 
4:32 PM
ya
It seams to be thrown more specifically on java.net.URL(urldisplay).openStream()
Good old reboot fixed it, very weird...
 
lol
 
5:40 PM
well now I know that contacting customer support for adobe is useless
lesson learned
 
lol
 
lol
guy at 1:21
 
Why has nobody made a channel for 'no music' videos
They're brilliant
 
5:53 PM
they're probably really tedious to make
you've got to pull out the vocals, and then sync all the sound effects
 
But you get millions of views
You could quit your job to do it
 
 
2 hours later…
7:31 PM
Hey Android room !
Is there any way to set same font of your complete application. I know either use the Custom View or do like this stackoverflow.com/a/16407123/3527017
 
So like for every single text area?
 
but in the second approach it uses android:fontFamily which is available from API level 16
I want to do same that should work from API level 8
Noah, that is very boring task to set TypeFace for each view as that answer doing
I want something that can be done through your application style
 
and you can't use android:fontFamily in a theme?
 
I can but it is available from API level 16, I want to do this from 8
 
Hmmmm
 
7:39 PM
You can't set the roboto font to the whole application unless you use a custom view
or a Layoutinflatorfactory
but you don't want the latter
 
I know about the custom view but it is boring to do
so no way to do this in your application style ?
 
Nope, not for API 16<
 
Ah okay
then only I have to do using custom view or other way also for this ?
 
7:55 PM
@tgm yeah just use a custom view
there are a lot of great libraries out there for this
 
okay can you suggest if you used
 
Nice Thnx Ahmad :)
 
np
 
8:16 PM
cya
 
cya
 
9:17 PM
Until I tried to organize my layouts folder I thought Gradel was an annoying piece of shit. Then I saw this , praise the all mighty gradel, lol.
2
 
thanks for that link, damn this can be useful!
 
Yea, I had like 20 layouts and it was getting really annoying.
 
the same thing I was dreaming about is folders in drawables folders
 
user457812
*Gradle.
 
user457812
L before the E.
 
9:30 PM
:p
 
9:49 PM
:D
glad I could help
 
Its the Gradle ninja!!
:)
 
more like when I was learning what gradle could do I just played around a bit with the resource folders lol
 
Whatever, ur still awesome :)
 
haha thanks, I'll take that
 
9:58 PM
I'm now really into groovy thanks to gradle
it's a really fun language
 
Its been promoted from WeirdWizzardLanguage to CoolWizzardLanguage
 
user457812
Yay, the local drug plant has a job opening
 
user457812
applies
 
user457812
At $11/hr and 40 hours per week, I could reasonably move out sooner with that.
 
I get more for my job at the icecream shop :P
Not hours though
 
user457812
10:05 PM
I'm surprised it's only 40 hours. That's pretty much a bare minimum work week around here.
 
user457812
Though they probably won't ask for more hours because of overtime pay.
 
AFK Forced exercise
 
user457812
Meh, need to get my references' permission to use them again and probably ask some other people 'cause every time I do this a reference vanishes
 
user457812
It's actually been a while since I even had to provide a reference
 
10:30 PM
I hate that so much
I really dont like asking people to be references
 
10:45 PM
@NoelCower was your old name Nil?
 
10:57 PM
@noah yup, he's nil
 
Sup folks
 
hey codebot
 
Coding hard all day everyday?
Heyo Ahmad
 
of course
and you?
 
Procrastinating hard all day everyday
 
10:58 PM
lol
 
Ahh, figured there could only be one user with 8 parrots who was also a code ninja
 
Writing all the code BUT the code I'm supposed to be writing
hehe
8 parrots code ninja?
I thought pirates and ninjas were mortal enemies.
 
Thats what makes him so awesome, he keeps 8 pirates at bay while coding
 
Huh. Efficiency, great trait in a programmer.
Goes great on the C.V.: "able to keep up to 8 pirates at bay."
 
11:22 PM
Hello, All!
 
o/
 
\o
/o/
\o\
 
\o/
 
user457812
@NoahHuppert No my old name is my name, my new name was nil.
 
11:28 PM
K
 
0
Q: Android internet kontrolü nasıl yapılır?

ahmetyozgatliandroid uygulamaya girilince eğer internet varsa uygulama devam etsin,eğer internet bağlantısı yoksa uygulama uyarı verin ve açılmasın istiyorum yardımlarınızı bekliyorum ?

erm.. lol?
Oh there's an English summery now.
> if internet connection app open else app give warning and app closed *
aha.
 
well of course
 
user457812
And it was deleted.
 
11:44 PM
nice
AFK Shopping :(
 
later
 

« first day (1281 days earlier)      last day (3652 days later) »