« first day (2355 days earlier)      last day (2594 days later) » 

6:24 PM
<cfif Variable.completedPercent GT 100>
    <cfset Variable.completedPercent = 100>
</cfif>
Because who gives a fuck why the percentage is over 100
@ColdFire that rant's for you
 
?
lol care to explain the rant
what does the code does?
 
We do a calculation of number of things done in a group of things to be done
I pointed out that some percentages were over 100 which obviously doesn't make sense
 
i get the rant
 
We fixed it by capping it at 100
 
o/ Blue Composite shape
 
6:25 PM
oh nice
 
o/ snow viking
 
lol carl
carl blue binary triangle composite shape might be better
 
but it's not a triangle
it's a triangle composited with a rectangle
cM never learned how to draw an actual triangle
 
oh lol i see that is why he is distorted triangle
@codeMagic you posted a video on fb of your daughter right?
she was singing if i remember correctly
 
I did
 
6:28 PM
are you guys all just irl friends?
 
Power went out so they took turns in front of the camera
She's the only one that made the FB cut
 
lol i was asking does US also have load shedding its a shame
 
You spelled "url" wrong
 
i thought its a indian issue
 
@codeMagic this might help you:
@Zacharee1 no we're all just room 15 friends.
 
6:30 PM
and FB friends?
 
sometimes
 
Very helpful, thank you
 
lol
 
let me know if you need any other videos, there seems to be several
 
Well, my stick figure could use some work
Seeing now that the completed percent over 100 is causing another problem because we "fixed it" ffs
 
6:32 PM
lol
 
lol
 
how is the percent getting above 100?
rounding error?
 
Don't know, wasn't my doing. Just looking at the file now
No, I think it had to do with what items we were counting
I said when I saw the email from dumbass to the new dev to cap it, "We might want to find out how it is getting above 100 because it never should be and may cause a problem later" ahem...it's later
I was trying to stay out of it but I can't take it anymore so finally looking at what is happening
 
lol
 
The problem with digging into something like that, is you usually find the entire system is dysfunctional and will take ~2 weeks to actually do the right way.
 
6:42 PM
Agreed. And that's how all of our shit is because we apparently bought stock in Band-Aid
Looking at it, I'm honestly not sure how it is ever not 100%
I'm walking away from this
 
:D
Have you starred this yet cM?
3 hours ago, by Mark O'Sullivan
> Most people are idiots
it's over on the right
 
lol
 
done
:D
 
:( why not mine
lol its funny raghav posted it mark got the stars
 
7:07 PM
in theory, will this work to set listeners:
public void setSwitchListener(final Switch toggle, final String sharedP, final String settings) throws IOException {
        toggle.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                if (isChecked) {
                    if (enabled) {
                        SharedPreferences.Editor editor = activity.getSharedPreferences("com.zacharee1.modcontrol", MODE_PRIVATE).edit();
 
gasp
25 mins ago, by Carl Anderson
3 hours ago, by Mark O'Sullivan
> Most people are idiots
 
"most"
 
Most idiots are people
On a totally different topic - Zach - You'll probably get a wrist slap if you don't put your code in pastebin or the like rather than posting directly to channel.
 
well I've been getting somewhat conflicting info :p
someone told me yesterdat or whenever to use Pastebin, and today someone asked me to post in chat
so I just followed the latest instruction lol
 
Hah, who?
 
7:13 PM
I don't remember
but will that work to set a switch listener if I pass the switch?
 
Yes
 
thanks
if I'm passing \n to a shell script, do I need to use \\n?
and AS just froze
 
7:31 PM
Yes
(There is only a small chance I'm randomly answering your questions)
 
lol
 
hmm
Java is weird....
can I pass a global variable into a function and edit it using the local variable?
probably not, but I figured I'd ask
 
don't use global variables
 
7:42 PM
use encapsulation
 
by global i think he means member variable
 
if you must, use a Singleton with a static getter, and then read the values out of that
 
by global I mean variable that goes inside the class and outside any function
 
@Dskato You need at least 80 rep, and a a:q ratio of 3:4 to talk here. Please see this link for more details.
 
sorry
 
7:43 PM
@Zacharee1 yeah i got it what you meant
 
public member variable?
or private member variable?
 
yes carl
 
public class className {
    private/public String example;
}
 
private presumbly
 
oops lol
@ColdFire public for most things because they get accessed from other classes
I'm a mess idc
 
7:45 PM
if its public its a global variable
 
so it's a global variable then :p
 
if it its private then its a member variable
 
ah
Well I gave up on combining this stuff into a general function. Too many things to keep track of, like global/member variables that are variable
 
@wick.ed You need at least 80 rep, and a a:q ratio of 3:4 to talk here. Please see this link for more details.
 
7:52 PM
@erik you have write access, but please read the rules first: room-15.github.io
 
uh oh
Apparently I can't put this in a new thread...
 
Hi, all. I feel like I am losing my mind. Updated the support library to 25.3.0 today, and my Toolbars, TabLayouts and BottomNavigationViews are all displaying odd behavior regarding their backgrounds (seemingly all of them are transparent) in API 16 and 17.
Oddly enough, a separate developer on a different project at my organization did the same and is having similar problems. I see it as either these updates to AS and libraries did something or I am an idiot and never ran this on API 16. Has anyone been having any issues with the latest design compatibility lib?
 
Hi Erik, and welcome. You seem normal enough, but generally we prefer people to have completely read all of the room's rules after they get access.
 
Sorry about that, I glanced 'em through, haven't asked a SO question as I was hoping for a quick sanity check before escalating.
 
Not seeing anything reported here: code.google.com/p/android/issues/…
 
8:06 PM
Thanks :-)
 
but you may be better at searching there
 

« first day (2355 days earlier)      last day (2594 days later) »