« first day (822 days earlier)      last day (2966 days later) » 

2:00 PM
IAmAVery@hotmail?
 
0
Q: Ember.js checkbox and Promise

Ed WatsonI have an issue when trying to use a checkbox to work out if a one-to-many relationship exists. I have a userPrivilege table with userId, modelId, privilegeId and scopeId. I am trying to display checkboxes which show whether the user has privileges. To do this, I need to check multiple conditio...

This made me cry
 
    return new Ember.RSVP.Promise(function (resolve, reject) {
      store.find('user', userId).then(function (user) {
        user.get('userPrivileges').then(function (userPrivileges) {
          userPrivileges.find(function (userPrivilege, index, userPrivileges) {
            userPrivilege.get('model').then(function (_model) {
              if (_model.get('name') === model) {
                userPrivilege.get('privilege').then(function (_privilege) {
                  if (_privilege.get('name') === privilege) {
that looks like really crappy code
 
it is
I puked a bit
 
posted on July 31, 2015 by kbironneau

/* by Zodoh */

 
2:05 PM
Any advice on a good feed displayer plugin ? (Like FeedEk)
 
vOv
 
I guess it will be Feedek then
 
morning
my new company is really nice \o/
 
woo!
 
Can someone tell me why my background image is not showing correctly? jsfiddle.net/m5tqpr67
 
2:12 PM
@AshSimpson well you need to set height
 
 
@AshSimpson why would it show?
 
:24802343
Because tyou dont have content
 
@Baldráni -.-
 
@Kitler ?
 
2:13 PM
It showed on a website that ahd the exact same code as me
That's why it WOULD show
 
Teach a man to fish and all that
@AshSimpson you do realise there are no dimensions on any element that you are trying to apply the background image on right?
 
@AshSimpson Yeah but actually your site had something to show; you're trying to set a background to nothing...
 
A background to nothing? Theres an image there..
 
Do you know what * does?
 
@AshSimpson A background img is not an img you can display it as an image
 
2:15 PM
^ that
 
Gonna fucking leave the building. Arrivedecci motherfuckers!
 
* is a global setting
 
!!afk <weekend>
 
@Kitler let me give a fish jsfiddle.net/yt28m1vg :P
 
fucking cap
 
2:15 PM
lol
 
@AshSimpson 1) Drop the attitude 2) Research before asking. 3) Thank people when they help you.
 
@AshSimpson check my fiddle :D
 
@mikedidthis was thinking more along the line of keyboard to the face
 
@AshSimpson jsfiddle.net/m5tqpr67/1 get it ?
 
2:16 PM
uh oh
Well that's fucking shit.
 
wtf feed, LOl
 
Sippy has stopped a feed from being posted into this room
 
All newly added feeds do that
 
Got annoyed with the fact that coding love feed has no images, someone suggested that feed, also has no images. wtf.
 
@NullPoiиteя your code ust zooms my image in way too much.
I want to place it into the bottom left, as it is
 
2:18 PM
@AshSimpson mind if I explain to you why it's not working?
 
Sure
 
vague question vague answer
 
shhh
@AshSimpson right click and inspect where it is currently showing, what do you see
 
background-attachment: scroll;
background-clip: border-box;
background-color: rgba(0, 0, 0, 0);
background-image: url(http://images.habbo.com/c_images/reception/university_background_left.png);
background-origin: padding-box;
background-position: 0% 100%;
background-repeat: no-repeat;
background-size: auto;
display: block;
I see that?
 
not the properties
 
2:19 PM
808 x 8
 
And what is the default behaviour for background images?
 
I don't know Sir.
to show the image?
on a background
 
yes on the background of what?
 
nothing
in my case..
 
well the html tag is there so there's that
 
2:21 PM
well a blank page
 
but by default it has no dimensions
 
I applied background-size
It wouldn't apply
 
and background images don't take up space, they just cover the space of the element they were applied on
 
The width would change, but the height would stay the same.
 
So if the element has no dimensions how can the image show
 
2:21 PM
dimensions?
 
background
 
Understand what's going on there ^ ?
 
No..
That is how I want it, appart from the glitchy image
 
You need to set a width/height on the element that will have the background image
 
You again. The daily "Could you code me this" to vanish as soon as you have your answer. :<
 
2:24 PM
Does anyone know (or can find) the answer to this?
1
Q: HAML generate nested divs in loop

mongolrgataIs there any way to generate many divs nested each other? I expect print some like this: <div> <div> <div> <div> <div> </div> </div> </div> </div> </div> Simple loop is not helping - (1..5).each do |i| %div Goes to <div></div> <div></div> <div></div>

 
@ZachSaucier you need recursion for that kind of task, not a loop
 
@kitler Thank you, I understand now.
 
I know :P
 
np ^^
 
2:26 PM
/looking up whether or not HAML has functions
 
> CodePen removed the words below from your Haml because they could be used to do bad things. Please remove them and try again.
 
@ZachSaucier sweet
 
What is the syntax / shortcut to type some code here again?
 
Use ` for inline, Alt + k for blocks (after selecting it)
 
2:32 PM
Alt + k, that's what I was looking for, thx
$faceSize: 50px;
$colMargin: 0px;
$colMarginEnd: 50px;
.column {
    transform-style: preserve-3d;
    position: absolute;
    animation: explosion 5s ease-in-out infinite;
}
@keyframes explosion {
  from {
    &.column7 { transform: translateZ(($faceSize + $colMargin)*2); }
    &.column8 { transform: translateZ(($faceSize + $colMargin)*2) translateY(-$faceSize - $colMargin); }
    &.column9 { transform: translateZ(($faceSize + $colMargin)*2) translateY((-$faceSize - $colMargin)*2); }
  }
  to {
Is there a way to make this kind of thing works? Or do I have to create a keyframe for every children?
 
have to do an animation for each
 
err
 
can loop through it, but have to do it for each
 
That's what I was scared of. Thanks
 
Lol the nigerian developer sat across from me is drinking beer from a can with a straw
 
2:43 PM
racist
 
terrorist
 
colonist
 
damn ..
 
boom
 
2:52 PM
lol
 
:P
 
Hello
 
shalom
 
@Kitler Shalom. Praise God
 
praise santa
what is a born again christian btw
how do you differ from the other christian sects
 
3:01 PM
@Kitler The difference between born again Christian and others is that we believe that going to church does not let you go to heaven. For you to go to heaven you must become born again (John 3:3) by accepting Jesus the son of God as Lord over your life (Rom 10:9-10)
I have an html sliced images but they came with spacer.gif after I have sliced them. How to remove spacer.gif? When i remove spacer.gif it disrupt my design . I am not yet a full man of css lol
 
@Kitler All Christians should technically be born again
 
That's actually interesting
 
***
 
eiiii
 
@Kitler I'll be happy to answer any questions you have
speaking of which, @Mr.Alien we need to continue our conversation
 
3:05 PM
@ZachSaucier +3000 for all chrisitans should technically be born again. As a matter of fact nobody can claim to be a real chrisitian if he is not born again
So about my question
this is the code i have used for the slicer
i have
<table class="notre_tableau" border="0" cellpadding="0" cellspacing="0">

<tr>
<td>&nbsp; </td>
<td width="684"><img src="images/decoupes/spacer.gif" width="684" height="1" alt="" /></td>
<td><img src="images/decoupes/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="images/decoupes/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="images/decoupes/spacer.gif" width="97" height="1" alt="" /></td>
<td><img src="images/decoupes/spacer.gif" width="31" height="1" alt="" /></td>
 
Use a pastebin service please @ManOfGod
Or at the very least format your code
 
!!tell Man Of God examplepls
 
Cat is already in weekend.
 
I keep forgetting
 
That's actually a very dirty code for a man of God. You definitely should confess.
 
3:12 PM
@RedBreast lol i confess
but that is actually all the code i would like to delete but when i do i get a lot of trouble
it disrupts my design
 
You still haven't asked your question. If you can provide a real example on jsbin you are more likely to get help.
 
Instead of doing bad jokes, I couldn't help about this. This kind of slicer method is fairly obsolete and is easily breakable tbh.
 
@RedBreast that was generated by photoshop (or similar) slice utility that hasnt been relevant in 10 years
@ManOfGod i know this isnt what you want to hear, but we cant really help you translate that to something that doesnt use spacers. translating a design from an image to html/css is quite an involved task. we cant just give you "the answer"
 
3:29 PM
@cimmanon Yes, I understood that as I also used this kind of method one day, have to confess as well. That was the point of my second message, this kind of code is fairly obsolete.
 
I understand
but as at now i have to come up with something because i have read on design lately but i could not figure out how to convert a psd to html5 except i slice it and then use the different slice as image with bootstrap and that takes a long time
@RedBreast Tks . I wish i knew better about designing
I am not familiar with Jsbin but there is an example at usefaith.voiedusucces.net/index-a.php
the design does not start from the top of the page because there are spacer.gif at the top inside a TR.
and when i delete it, it disrupt my design
 
@Rvervuurt at least she believes government run :D
 
well...no
she doesn't :P
 
@ManOfGod if you want a quick and dirty way to remove that whitespace at the top, try negative margins on your table element.
@ManOfGod actually, youre going to kick yourself. its caused by a space in the first cell of the first row.
once you remove it and the display: inline-table from the table, it goes away
 
4:09 PM
I just set up a new game (s1.darkaura.de/Game/#) if anyone wants to play around with the new forum or the game itself, feel welcome.
 
{ "code": 200, "response": {}, "frames": [{"action":"addMessage","target":"ServerNoticeApi","exchange":"Game","route":null,"params":{"html":"PGgyPllvdXIgQWNjb3VudCBTZXNzaW9uIGhhcyBleHBpcmVkLiBQbGVhc2UgbG9naW4gYWdhaW4uPC9oMj4KPHA+UGxlYXNlIGxvZyBpbiBhZ2FpbjwvcD4KPHA+PGEgY2xhc3M9InJlZGlyZWN0IiBuZy1jbGljaz0icmVkaXJlY3QoJy9Qb3J0YWwvI2xvZ2luJykiPkxvZ2luPC9hPjwvcD4="},"messageId":"0.33048400 1438359021","time":1438359021}], "redirect": false}
 
@mikedidthis yeah, that looks like a fun game, doesnt it? :p
 
@cimmanon json is my fav game
 
fun things...
 
sounds really nice game
 
4:16 PM
how do i move :P
 
click on a other room.
 
You're using handlebars?
 
use what?
 
so that's a no :P
 
@cimmanon Do you mean i should put in my css file margin -1px for example ?
 
4:23 PM
@ManOfGod no, just remove the space like i told you to and remove the display: inline-table on the table
 
@cimmanon
Yes when i do that it changes the order of the rest of the design. The design goes someway
 
@ManOfGod the space character, not the spacer images
 
Oh ok
 
actually, i think it was a bunch of newlines. either way, those characters have to go
it should be <td></td>, no spaces or newlines or anything inside
 
@cimmanon I think you are the definition of a genius (That was a compliment). Now it aligned my table to left. How do i align it back to center and i am done ?
 
4:28 PM
@ManOfGod margin-right: auto; margin-left: auto
 
i m out laters people
 
@cimmanon I think i am a Man of God and you are a Man of Css. Praise God forever more
 
1 message moved to Trash can
@ManOfGod sorry, religion is off topic.
 
@mikedidthis Ok sorry
 
No problem
 
4:32 PM
@ManOfGod of course you should still really look at doing this without tables. tables for layout are pretty bad
 
4:46 PM
@cimmanon I have really tried but I can assure you i have faced much difficulties so far with reproducing that design with bootstrap. So far this is what i was able to achieve usefaith.voiedusucces.net/brouillons.php (with bootstrap based on the sliced images) but i have been stacked ever since. Mean while what i wanted to achieve is this usefaith.voiedusucces.net/index.php (with sliced table)
I still can not figure out how to reproduce an exisiting design with bootstrap in spite of what i have read so far
 
@ManOfGod so stop using bootstrap. you dont need it, people just use it because they are lazy
 
Oh ok. So how can i convert an existing website with table into a full responsive one ? Can i do that with css alone ?
 
@ManOfGod what do you think bootstrap is?
 
@cimmanon i think bootstrap is css and Js. Or is it only the css that enables the responsivity ? If yes then i may open the bootstrap.css and begin to read how they coded theirs and code mine .
 
@ManOfGod responsiveness comes primarily from css via media queries
 
4:51 PM
@cimmanon wow. Ok. So can i also have a responsive menu without js like the one at www.theregionalmagazine.com ?
 
@ManOfGod for the styling, yes. but for the opening/closing of the menu, you need javascript, because there is no way to really test for touching on mobiles
but thats like 10 lines of javascript tops, you dont need to download bootstrap just for that
 
@cimmanon I think you are my best private teacher. I would have given you a plus one if this was not on the chat
 
@ManOfGod dont worry about it. just promise me you wont do anymore layouts using tables :D
 
promise that when i learn the css i will stop using the table as much as possible
but i do have a question
 
sure
 
5:01 PM
supposed that i have a design made of an image
and i have to turn that psd image into a responsive website
am i not supposed to slice it ? and when i slice it will it not generate tables ? Am i supposed to slice it first and generate the table or is there another way of turning that single image into a resposive site ?
for example
 
well you have to break it up into smaller images somehow. how you do that exactly doesnt matter as long as you can reassemble them into the design
 
just dont use the markup they generate for you
that image is harder because there isnt really a way to translate it to a responsive design, its just a picture
 
Jade > HAML apparently
 
but breaking them into smaller images is not much of a challenge to me. My challenge is how to turn the markup around into a responsive design
 
5:04 PM
@ManOfGod lol gl
that image is hard to make in web
 
and u see, unfortunately those are the kind of images i receive from my customers and i turn them into a website
 
a website isn't made to look like that
 
well ok, think of it like this. how was the image constructed?
 
the last image i received from a customer was this
 
you see the wood sitting in the background? they probably didnt draw the white box first and then paint the wood behind it
 
5:06 PM
@cimmanon that lighting would be fun to do in CSS.... not.
 
so you would take the wood part and make a repeating background image out of it
does that make sense?
@ZachSaucier yeah, that would be a pain, but its a more interesting question than the kind you usually see on SO :p
 
for that one i was even able to do it easily since the customer did not request for a responsive design
@ZachSaucier really lol
 
@cimmanon I thought SO was for programming help, not requests for fun projects :P The most upvoted web related questions are, "I want to create this effect but failed. Please do it for me?"
 
for example i have received this psd file from a customer
 
@ManOfGod its not really my business to tell you how to handle the requests you get, but you might want to try and urge your customers to look for a more traditional look for their website.
you can make "picture" designs like that work to some extent, but ask them to think about what their competitor's websites look like. if their competitors have crap for websites, have them think about other business they look up to and what their websites look like.
 
5:15 PM
wow, codepen even removes potentially harmful words from comments... That's annoying
 
@ZachSaucier what is a "harmful word"?
 
"node" lol
at least when using Jade
 
maybe they just hate node.js :p
 
"Perc" was another I think
The worst thing about being home alone is that no one reminds me to eat, haha
 
Abe
5:41 PM
 
0
Q: Is there a more concise way to write this SASS?

jkjustjoshing.dark { .header { background: red; } .week .header { background: blue; } } I was hoping something like this: .dark { .header { background: red; .week &^ { background: blue; } } } where $^ would only pull in the most ...

@cimmanon I feel your pain
 
@BoltClock Does my answer count? :P
 
@BoltClock i dont know why he would figure an operator that doesnt exist at all in the documentation would do anything of the sort >.>
 
5:57 PM
dupe close it?
2
Q: Appending a class to the middle of a selector in Sass

cimmanonI have the following SCSS for styling links in my menu: nav { ul { li { a { color: red } } } ul.opened { li { a { color: green } } } } Which generates the following ...

 
I could -1 just for the nesting
 
didn't know that about scss
 
its worse than not having DRY code, i cringe every time i see someone asking how to do this ><
 
0
Q: CSS Circle Working in Every Browser - EXCEPT Chrome

W00tW00t111Okay, so this is a first - my CSS is working in all tested browsers...except Chrome. I am attempting to render a simple circle in a div. Example is: http://redappledev2.wpengine.com/ The login icon in the upper right hand corner of the header (circle with the user image). In Firefox, IE, Safar...

 
Is there a way to select alternating levels of children in sass? As in *:level(odd) { ... } *:level(even) { ... } ? Essentially I have nested elements and I want each layer to rotate the opposite of its parent
 
6:09 PM
@ZachSaucier That would require some arbitrary maximum level to nest in to generate the appropriate number of CSS rules
 
That's what I thought
I can do it with a function and variable determining the amount, but was wondering if there was some sass magic I didn't know of
 
If you didn't have to specify that, it would make a well sought after CSS selector
 
6:26 PM
hey guys, I'm having a really weird problem. The css styles and classes are not applied to my inputs inside my partial view.
and I get no errors in console
 
CSS doesn't throw errors
it's likely that the selectors don't match or the CSS is not being loaded
 
selectors are right
maybe about css not being loaded :(
 
Greetings
 
@cimmanon Any idea why this is throwing an error at the if statement?
 
just seems like a common problem with .net MVC 4
 
6:35 PM
$highestSpokeNum: 3;

$sel: '';
@for $i from 1 through $highestSpokeNum {
    $sel: if($i == 1, ".layer", selector-nest($sel, ".layer")) !global;

    #{$sel} {
        if($i % 2 == 0) // If it's even
          animation: rotateClockwise $dur linear;
        else
          animation: rotateCounterClockwise $dur linear;
    }
}
 
the css styles are not applied to partial views correctly
 
@ZachSaucier The parser does though
 
@ZachSaucier thats not the syntax for if/else :p
@if and @else
 
needs curly braces, too
 
6:38 PM
ya
got in Jade mode, I suppose
ty
 
unless youre using sass syntax instead
 
Abe
7:24 PM
meanwhile in finland
 
Abe
7:34 PM
master troll
 
Abe
7:48 PM
7 messages moved to Trash can
wtf
moved more messages than i wanted to
 
:)
 
It's true though
crackers do love cheese
 
8:07 PM
posted on July 30, 2015 by Fonder

Should have taken the stairs.

 
user wants to use a mixin for something other than its intended purpose, creates horrible pull request to "fix" the behavior: github.com/Compass/compass/issues/2002
 
@Feeds ok I've watched the last 20. They all suck
 
Oh my goodness
I just created the most awesome thing I've made in CSS
Hahahaha
It's so sick
Check out my most recent pen. You can change the number of layers and it's fully responsive in only CSS :D
3
 
8:26 PM
@ZachSaucier very creative :)
 
Thanks!
I tried running it on 6... It worked but nearly froze my browser, haha
 
one improvement, if you can make it rotate without touching the neighbour :)
 
hahaha, gl with that
 
:)
faved 3x hehe
 
haha, sweet
When it comes to the positioning of those elements, I only sort of understand what's happening, haha xD
 
8:34 PM
it's wicked lol
 
Abe
@ZachSaucier cool :D
 
haha
I saw the site
 
@Abe lol
my word of the month
 
Abe
lol
yes, your word :D
 
guess what's his word of the century is?
> rlemon
Tue 5:45 PM
@Nooble is "fuck off" really an insult? I always thought it was just a suggestion
 
8:41 PM
hello
 
Abe
@rlemon how many ml do you vape each day?
 
over 9000
 
Abe
wtf?
that's 9 liters of liquid
 
I pump it into my house
 
Abe
8:51 PM
ahah
 
9:05 PM
ugh why is Popcorn Time such a horrible piece of software?
the UX is so bad I'm half tempted to start making some pull requests
 
I don't get it
 
from pirates of the caribbean
 
man popcorn time annoys me
my food is getting cold
the buttons don't respond. how am I supposed to pause or fast forward this thing?
 
Hasn't happened for me
 
9:13 PM
I get it all the time while on chromecast
for some reason the buttons don't respond, I can't click the timeline to jump anywhere either
also it never shows the actual time so I have to make a wild guess as to where to click, let it buffer, then try 3 more times
(when the timeline does respond, that is)
and every time I restart the movie or the entire app it has to re-download everything
 
Am I too drunk to understand what is being said here or is it just bollocks?
 
@PeeHaa Has anyone really been far as decided to use even go want to do look more like?
 
9:42 PM
@StephanMuller I scrambled think you did some words
:P
 
You've got to be kidding me. I've been further even more decided to use even go need to do look more as anyone can.
 
10:02 PM
damn.
 
10:24 PM
@PeeHaa he sounds confused to me, too
 
@cimmanon It's almost like he took a single sentence out of the entire question and thought "I know this one!"
 
Abe
10:42 PM
@PeeHaa found an answer like that recently, i'm still laughing
so bad author deleted it
10kers can view deleted answers?
 
Abe
i can't find it :(
it was a huge wall of complete nonsense totally unrelated to what was asked
 
@Abe You sure it wasn't just the front page? :P
 
Abe
lol
@PeeHaa maybe you can check within deleted answers stackoverflow.com/users/3277047/php-purest <- this is the author :D
he even asked for upvotes in the php room lol
 
I think I need a direct link to see the answer
 
Abe
10:51 PM
so chat search sucks
 
Yes it does :(
^ that is awesome
 
Abe
i wouldn't ever eat myself, even if roasted
@PeeHaa the best thing ever
still looking for good prefixes/suffixes for immutable/mutable stuff
atm i'm using Stuff & StuffBuilder
but i'm not sure about Builder
should start using given names to stuff when i have no idea how to call them
class Bob{}
 
:P
 
11:29 PM
@PeeHaa I don't think his answer is as bad as the question the he was trying to answer. I would down vote the question, and comment on his answer. Not the other way around. — Adam Buchanan Smith 39 mins ago
O.o
 
Abe
11:45 PM
> Pixes are different from screen to screen
@PeeHaa i imagine this "hey colleague, come rescue my reputation!"
only a colleague or a friend can be the devil's advocate here lol
 

« first day (822 days earlier)      last day (2966 days later) »