« first day (2326 days earlier)      last day (2624 days later) » 

7:00 PM
> Batman and Daredevil. One does a ton of stunts to fight crime, and the other uses sonar to figure out where to fight crime because he is blind. They need to switch names.
woah ..
 
@Allenph having read more of the wikipedia article, I have this summary. Tell me where it's wrong:
1. God is the absolute best there is.
2. Being real is better than being not real, and since God is the best there is ...
3. God is real.
 
@Luggage That's subtly different, in that "best there is" is different from "best imaginable"
 
1. God is the absolute best there is, real or imagined.
2. Being real is better than being not real (just imagined), and since God is the best there is ...
3. God is real.
I don't think it changed my ultra-short summary too much.
 
I believe in copy's avatar
all praise our avatar and image
 
@Luggage That's not valid, since it doesn't rule out the possibility of something imagined being better than everything real.
 
7:13 PM
@Luggage Like I said, you have to REALLY think about it.
And some days it doesn't make sense.
 
Which, I think sort of applies to the original argument as well
 
I had to think about it in the back of my mind for weeks and it just clicked.
 
@KendallFrey I state that in #2.
 
And no, you're summary is a little off.
your*
 
@Luggage No, you state that being real is better than being imaginary, not that everything real is better than everything imaginary.
 
7:15 PM
I'm scared
 
@rlemon Jesus. What is that?
 
One should not encounter black body radiation in their wiring...
 
looks to be poor wiring causing a short
 
For?
 
electricity
 
7:16 PM
Ahh.
 
That's impressive.
 
If you can't accept that Hitler is better than an imaginary slice of decadent cheesecake, you can't accept that everything real is better than everything imaginary.
 
17
Q: How to prevent Screen Capture in Android

AnandIs it possible to prevent the screen recording in Android Application? I would like to develop an Android Secure Application. In that I need to detect screen recording software which are running background and kill them. I have used SECURE FLAG for prevent screenshots. But I dont know is it poss...

 
Wat?
 
red is good right
means it's workin
 
7:17 PM
quick! put some jerky over it!
 
user1596138
@Shmiddty I have seen this, and this is not the method being used.
 
*shrug*
 
Can I repurpose hitler to make him put cheesecakes in ovens?
 
meals cooked on faulty wiring should have their own name
 
user1596138
Yea, oh well. I reported just in case
 
7:18 PM
(if you even put cheesecakes in an oven.. I don't know)
 
@Luggage Can you do that while still keeping him real?
 
user1596138
The app got like 5 times as many ads etc on the last update too... It's all shady
 
@Luggage what, like a Hitler cooking game?
 
In the spirit of going along with the argument, I was trying to think of why a real hitler would be better than an imaginary cheesecake.
 
7:21 PM
 
inb4 cow simulator
 
Colour is...?
 
red means larger resistance
mebbe
 
7 mins ago, by rlemon
user image
I don't think so
 
no, that nut has a lot of resistance actually
see how it's glowing nice and indicator red
 
7:24 PM
@rlemon Is it coated?
 
but not to electricity
 
resistors get hot
 
It's good to have resistance to nutting
 
high resistance would not let much current flow.
 
lol
 
7:24 PM
for a moment, I thought that was a red glass nut
and then I realized.
 
a low resistance resistor will get hotter. like 1 or 2 ohm.
 
@rlemon lower resistors get hotter
 
Holy crap.
@Shmiddty I didn't realize till you said that.
 
@KendallFrey it's still probably got quite a bit of resistance
 
sometimes you just realize.
 
7:25 PM
I learned that while choosing a ballast resistor for an ignition system swap in the Eagle.
 
@KendallFrey that's because the don't halt the flow, they just disspate the power as heat.
That's why we use SMPS when we can.
But unpredictable high drain devices (like processors) tend to need some kind of linear PSU.,
.
 
Perhaps the reistance on the real connection is too high, so it's flowing through the nut?
 
You could put parallel connections at the junction with two resistors in each path of equal value.
You could be getting a runaway reduction in resistance which is causing that.
That's a huge problem with single-transistor based linear regulators.
 
Your mom is a single-transistor based linear regulator.
 
How did you know? We keep her locked up.
 
7:29 PM
@Luggage That would imply the load is supposed to severely pull down the voltage.
 
my mom is sarah jessica parker
 
@KendallFrey <
 
@rlemon buuurn
 
I have absolutely nothing to back this up, but if that connection is as dirty as is looks, then the current could flow through some low resistance nut instead of directly to the copper plate (much lower resistance).
 
Is that plate ground?
 
7:30 PM
But.. I lost interest, just now.
 
Yay! Minnesota finally got rid of the sunday liqour store laws.
 
I still have them in my county.
(laws vary by county in MD)
 
Jokes on me. I
'm in Utah.
 
I can only buy on sunday in a bar. A few bars do 'packaged goods'. And they charge more on sundays.
 
7:34 PM
Have to buy all my alcohol through the State.
 
pft, Utah... where they water down beer and liqour at restaraunts, and then make you promise that you're gonna also eat food there, and you can only have one drink an hour...
 
One beer per hour per wife.
 
To be fair, the Mormon theocracy is moderately even handed considering what they COULD do.
Doesn't excuse their bullshit, though.
 
well remember what theocracies did back when they could get away with it.
 
All government is a farce.
Democracies just abstract it better.
 
7:35 PM
I wouldn't go that far.
 
You either have mob rule, or you have an oligarchy.
 
All goverments will have flaws, but some form of government is needed.
 
What base do you have for that?
 
So it's a constant battle to keep your government as benign as possible.
for which part, that all are flawed or that one is needed?
 
Google Voluntaryism. Read some Rothbard.
Who will build the roads?!
 
7:37 PM
I take it it's the second part.
I have nothing to back it up, to be honest.
Intuition only.
 
Exactly.
 
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Fucking memory leaks man...
 
Doing a react app. ES6. If I'm using Component Container methodologies, where should I be loading component data from the server, how should I be doing it, and what is the ES6 equiv of an XMLHttpRequest?
I'm assuming I would load the component data from server at the highest level component that deals with that data, but should it be in the constructor?
 
1. I don't know what Component Container methodologies is. 2. Data is often loaded as part of a 'router', but a data-loading component that loads, then passes data to a dumb child is also do-able. 3. fetch()
 
@Vap0r you probably want to bind an action to the container and dispatch it on componentDidMount using whatwg-fetch
 
7:48 PM
@SterlingArcher I normally try eliminating them, but whatever bloats your goat.
 
Who's bloating my goat
 
Probably @Zirak
 
class UserList extends Component {
  static propTypes = {
    data: PropTypes.array,
    retrieve: PropTypes.func,  // pass this through the container
  };
  componentDidMount() {
    this.props.retrieve();
  }
}
your action would be something like:
 
That's one way, but I find it nicer to have either a single high level component that loads all data, or have it done as part of the route change.
 
export function getUsers() {
  return async dispatch => {
    dispatch({ type: 'REQUEST_USERS' });
    const users = await fetch('/users');
    dispatch({ type: RECEIVE_USERS, payload: users });
  }
}
@Luggage yeah, the higher level component just seems like a slightly more advanced implementation
 
7:52 PM
doing it on every component (since your example is something like UserList, I assume you do it on many comopnents) is a lot of duplication.
 
it's definitely not the best, but it's a pretty okay starting point. For lists of stuff I usually use a higher order component that handles showing the loading and fetching the data
 
@corvid how does this action "getUsers" link to the UserList component in the above example?
 
@Vap0r the reducer and the container. The reducer will change the state, and the container will pass the action and state to the component
 
That's a redux thing.
 
7:54 PM
So is there any extra setup for the UserList to implement getUsers, or does redux somehow automagically recognize this?
 
@Vap0r you must set up the reducer. The reducer tells the state how to update.
 
I don't think he ever said he was using redux. Am I mistaken?
 
@Luggage you're not. And I'm probably going to stay away from any further abstraction from pure ES6/JS.
 
well, ok, but React is a view engine. It doesn't do app state management. You can do that all yourself, but redux, mobx and other tools exist for that purpose.
 
@corvid you see, this application is going to be used to educate and test reactJS in our environment. Most devs in our environment have basic JS experience and some have Angular experience. I don't want to add too much to their plate
@Luggage this state management is still getting my goat. What, for instance would have been my app state manager in a traditional .NET app using Web API, JS, and HTML5?
 
7:58 PM
there is plain state management via this.state, via mobx, and via redux most commonly
 
Why does a build take 20 minutes i swear.. it's meteor it's not a big data app -_-
 
@Luggage assumed he was because he used the terminology "container"
 
Got that terminology from there. Is "container" the wrong word to use in this instance?
 
I recommend checking out this regex tutorial, very thorough explanation of state management (with redux)
 
class ViewUser extends React.Component {
    render() {
        // ...
    }
}

ViewUser.getData = function(routeArguments) {
    return fetch('/api/users/' + routeArguments.id).then(result => result.json()).then(data => ({ user: data }));
}
// in this above example, you could use the static getData() when the url changes. Call it before you swap components in your main app template. Use the result as props.
 
8:00 PM
@SterlingArcher I wish our build took 20 minutes
 
Yeah but you're not using meteor node and mongo prolly
not much dependencies there to build..
 
in this example your route is something like "/users/{id}", mapped to ViewUser
 
Do I need a state management solution?
 
router.get('/users/{id}', (req) => {
    ViewUser.getData(req.params).then(data => app.setCurrentPage(<ViewUser {...data} />));
}
 
I mean, I know I need state management, but it just doesn't seem like my app has enough fluidity to warrant it.
 
8:04 PM
Nothing you can't write in a dozen lines of code.
Do you have a router already?
 
No.
 
Is Eloquent JavaScript a good book to read for an experienced programmer?
 
Go pick one. Many people use react-router, but it's nothing special. Some use express-router. there are many. Find one that makes sense to you.
 
I was planning on going around that whole part of the process (partially due to concerns on making the education portion too complicated, and honestly partially because I don't understand it)
 
well, since you are using react I assumed it was a single-page-app (doesn't have to be).
And in that case, the router is often responsible to loading initial page data (but your components might still do other async data loading, as needed)
 
8:07 PM
I was about to ask a dumb question, so hopefully this one is better; what quality of reactJS predisposes it to a SPA solution?
 
Nothing, actually. It's just commonly used that way (in my experience) since react is newish and many newish apps are SPA.
SPA concerns like routing are outside the scope of react, just like it was any other template engine.
 
user1596138
Did I just never notice before, or is review queue always PACKED since the new header update?
 
It's always been packed even before the header update
 
user1596138
Guess I never noticed... I swear all the categories I could do were almost always empty before
 
user1596138
I would have like 3 edits to check out
 
user1596138
8:09 PM
Now there's like 120+
 
@Vap0r Maybe being in JS (as opposed to server-only templating like JSP, Razor, etc) makes it more likely to be used in SPAs, but that can be said about any JS view engine.
 
user1596138
@Vap0r None.
 
@Luggage gotcha. There are quite a few components in this application that have nothing to do with the main application's purpose. It's a resource monitoring tool meant to provide workers with a one-stop-shop for everything they should be doing for the day. Imagine a super simple CMS with some dashboard style reports and integrations.
 
user1596138
Just the inherent modularity of using components
 
Are there multiple 'pages' they can go to?
 
8:14 PM
In a sense, yes. The first page will be a dashboard. This dashboard information comes from Exchange Web Services, a Cherwell RSS feed, and a notification feed from a local DB. All other dashboard information is directly related to the resource monitor aspect of the application.
Any metric related to resource monitoring will take you to the main application "page" which is a map with all resources filterable and shown.
 
so, give me an example of one of the other pages they can navigate to, so we can use it as an example.
 
Various other "pages" fit more along the lines of what you might consider CRUD forms for various data sources, namely notifications so supervisors can direct workers.
 
that's fine. name one.
 
notifications works
 
ok, so when they go from the dashboard to the notifications page, does the url change? does the whole page reload or just that part of it?
 
8:17 PM
Well currently it does nothing, but I guess I imagined it navigating to the new page and changing the URL.
 
a full new page refresh, header and all, or just swap out content?
 
I kind of imagined a full new page refresh. What constraints determine whether I would want to do this or not? The amount of content that has to refresh? Because the header is just text with no dynamic actions.
 
OK. I think that's more work. Now you need a server that knows what components you need for each url.
where, with a single-page-app, you just hand out the same thing, then the client-side cide determines what to display based on the url.
Well, i guess it's the same amount of work either way, but in one way the client is split between server and client.
The server says "ohh, you went to /notifications" and hands out the main app.js and the notification.js, etc.
And then, unless you get fancy, it's just handing out .js and the client renders itself with react, so it doesn't do anything.
fancy = isomorphic
 
Lol not getting fancy yet!
 
That's my sales pitch for "if you have 95% of your code on the client anyway, go the last 5%, use a client-side router and you have a SPA"
 
8:24 PM
When you make a pull request to an open source project, are you meant to ping one of the contributors or do you just wait for them to see it themselves?
 
They usually get notified automatically for a pull request.
 
i figured they would, but it's been 21 days so I'm thinking they probably missed it :P
 
I think anyone on the watchers list?
 
it's not a very active repo
 
And alright. I'm gonna go with this because the last time I was on here (a month ago) and was questioning you none of it really made sense until I started working on it, and then it all clicked. Hopefully all of this stuff will click. react sucks though in that there doesn't really seem to be a best practices but more of a "do this because that's the way it be" attitude.
 
8:25 PM
That long? I think it's ok to ping the maintainer in the comment and politely ask them to consider the PR.
 
I thought about adding someone as a reviewer/assignee but that seems odd
I know a couple of people on here work there... I'll try pinging them
Wait no they don't
that's a different company
 
@Luggage thanks for all the help. Last question I guess would be should I write my own router, if so is their a good tutorial? And if not, which should I use?
 
the rabbit hole is deep on this one:
Hi, I'm Garrett, I've been a web dev for 20 years, I've built awarding winning sites for NGOs, and I still have to… https://twitter.com/i/web/status/836305405898809345
(keep on clicking the mentioned tweets)
 
That's a tough one. So many of the routers out there are 'good enough', but have some annoying problem. It's not too much work to write your own (just use other people's code to parse urls and handle html5 history, the two annoying parts).
lemme think for a second.
 
user1596138
@dhh Valid point. Hopefully we won't get to the point where people take as much pride in ignorance about CS as they currently do about math.
 
user1596138
8:29 PM
lol
 
I have a boilerplate with a simple router I made (well, just glued together a couple other libraries), but it's a mess right now and probably more confusing than it needs to be.
was trying experiments with some other data loading..
 
@Luggage just to add (not sure if it matters) I need to support IE11 and edge, other than that chrome and FF edge.
 
Are JavaScript SPA pages a good replacement for a Desktop app? How do you handle documents? e.g. I have a file on my desktop and I want when the customer double-clicks that, that he opens the document in my app.
 
That's not a problem. IE11 supports HTML5 history API.
 
@Luggage conceptually, I should think of the storage concepts as the same thing as cookies, right?\
And/or PHP SESSION variables, but without the server.
 
8:31 PM
'storage concepts'?
 
Oh I misunderstood. My bad. HTML5 history API will just allow the back and forward buttons to work properly?
 
Yea. And let you change the URL without reloading the page.
 
@Luggage really? That's kind of really cool
 
npmjs.com/package/history is a nice wrapper around the html5 history API (with some fallback options for older browsers). I use it. React-router uses it internally.
 
hey guys lets play a game called "i hate meteor"! I'll go first
fuck meteor
 
user2620028
8:34 PM
fuck drupal
 
meteor can suck my meatier.
 
fuck bitches
 
oh, good ol' es room
 
user2620028
wait... the whole "fuck bitches get money" does this mean that these men are prostitutes?
 
maybe
 
8:35 PM
perhaps
 
maybe it's backwards. get the money, then spend it on sex.
 
@Luggage g2g, thanks again!
 
wut, there's a nodejs room? chat.stackoverflow.com/rooms/642/node-js
 
@Luggage spend it on backwards sex, no less
 
user2620028
@Luggage seems like the most likely scenario
 
user1596138
8:35 PM
 
user1596138
:'(
 
Upside-down cowgirl.
 
@Luggage there is no up and down in space
 
user2620028
i think we should make a few jsfiddle examples of state management, and react modals. and then the next time someone asks we can just give them the documented example
 
8:37 PM
You need to be in an accelerating reference frame to copulate. Something about blood flow and erections.
 
user2620028
seems like questions that i have seen a lot of the last few weeks
 
user1596138
@HatterisMad Or they can just google it
 
@Luggage If time dilates in an accelerated reference frame, then penile arteries must as well.
 
user2620028
@Jhawins took me quite a while to learn the importance of state management with react, and i spent a lot of time reading about it
 
> "It's cold in here.. also lorentz contraction, baby."
 
user2620028
8:39 PM
just because someone does research on the topic doesn't mean it answers all the questions for them
 
user1596138
I'm being told I paid my rent too early.. It's 3 days away lol
 
user1596138
Tf kind of complaint is this hahaha
 
user2620028
uhhh wow, never heard that one before
 
user2620028
you paid me too early
 
user1596138
Yea they said gotta wait till 2 days or it credits wrong?
 
8:40 PM
react is easy to get wrong if you are a noob (and sometimes if you aren't). Set people loose in a system where your view and logic can be in the same language, and they'll put it in the same file.
 
user1596138
Lmao I guess I haven't paid early in 2 years
 
Well you guys are in luck. If this application comes to pass, I'll probably have to write up about the technologies used, how they work, and compare them to traditional models.
Assuming my work doesn't suck (it will) it might be helpful!
 
@KendallFrey nothing for a lorentz transformation penis size joke? :(
 
You switched from GR to SR, I got bored?
 
ouch.
 
user2620028
8:52 PM
@Jhawins i would actually believe that
 

« first day (2326 days earlier)      last day (2624 days later) »