« first day (1183 days earlier)      last day (2605 days later) » 

12:01 AM
any idea what this does? "config": {"preferred-install": "dist"},
 
Wes
no idea, but why are you looking at these things? :B
 
weird, Laravel just copies their composer.json when creating an new install.
 
Wes
copies... where?
 
well I was just going to remove everything I don't need, I don't think I need that but not 100% because I don't no exactly what it does
into the root of your new project
 
Wes
whoever did that has no clue of composer
isolate project's actual files
ie code your actually wrote
 
12:11 AM
if you do "composer create-project --prefer-dist laravel/laravel blog" (the recommended way to install laravel) you end up with this: raw.githubusercontent.com/laravel/laravel/master/composer.json
 
Wes
then delete the laravel's stuff
create a new composer.json
{
    "require": {
        "laravel/laravel": "*"
    }
}
and run the thing till it works
 
one sec, asking the laravel chat room. I think maybe you don't "require" laravel you just clone it?
 
Wes
i don't know but i'm trying
 
yeah I think thats right, because you require laravel/framework. Laravel/laravel is like a project template
 
Wes
looks like a mess
 
12:19 AM
lol XD
 
Wes
i mean, clearly works that way but looks like a mess...
you usually have dependencies in the vendor dir. you don't have the dependencies mixed with your actual project
but hey, i'm not an artisan
 
 
2 hours later…
2:01 AM
@Wes I see what you mean about not using base PHP classes, DOMDocument doesn't even properly support utf-8 :(
 
Wes
did i say that? :B
and domdocument sucks but i think it supports utf-8 fine
 
68
Q: PHP DOMDocument loadHTML not encoding UTF-8 correctly

Slightly A.I'm trying to parse some HTML using DOMDocument, but when I do, I suddenly lose my encoding (at least that is how it appears to me). $profile = "<div><p>various japanese characters</p></div>"; $dom = new DOMDocument(); $dom->loadHTML($profile); $divs = $dom->getElementsByTagName('div'); forea...

you said it when I was investigating csv importing
 
Wes
was referring mostly to functions
classes are better
why are you using domdocument?
 
oh sorry, I misremembered them
 
Wes
you will have bad times with html parsing
 
2:10 AM
pull request for third-party plugin: github.com/tijsverkoyen/CssToInlineStyles
 
Wes
DOMDocument::loadHTML will treat your string as being in ISO-8859-1 unless you tell it otherwise.
which means you'll need a <meta charset="UTF-8"> in the source
or
since it's libxml better doing it the old way
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
shouldn't it work in the constructor? php.net/manual/en/domdocument.construct.php
like new \DOMDocument('1.0', 'UTF-8');
 
hello
 
hi
 
can i ask a question?
about jquery
 
2:19 AM
sure. Don't forget to read the rules on the top right
 
thank you sir so this is my problem
i have a hide/show on click(jquery) if i click then put an empty in first click how can replace the empty value into his original value if i hide it
 
sorry I'm not sure what you mean. Can you make a jsfiddle?
 
ok ill make one wait for a min sir
 
@Wes any idea why saving with a dom node returns utf-8? sandbox.onlinephpfunctions.com/code/…
 
2:40 AM
i dont know why it doesnt work but some thing like that
@joshhunt
 
@reyjoel you have some errors, have a look at the dev console
 
yeah just like that syntax my concern is if i put input in .hide a empty string and then decided to hide it how can put the value of original value in it? and replace the empty string
 
one step at a time. did you have a look at the dev console?
 
@joshhunt
 
no need to ping me
 
2:49 AM
i mean in my work it does well just in fiddle it doesnt work
sorry
sorry for pinging
 
Wes
@joshhunt 3v4l.org/q3hM6
why do you want it not-utf-8?
 
3:06 AM
no I want it utf-8 but including the original doctype. just having a look to see if I can do it with DomDocument->doctype
@reyjoel yes there is a reason for that. If you look at the dev console it will tell you
 
dev console in jfiddle?
jsfiddle i mean
 
dev console in your browser while you have jsfiddle open. Also you can edit messages using the arrow on the left of messages
 
 
1 hour later…
4:34 AM
can anyone please help me out stackoverflow.com/questions/38565977/…
 
5:01 AM
posted on July 26, 2016

New Cyanide and Happiness Comic

 
5:28 AM
hey guys. I'm trying to make a projects section for my personal website. How do I make the corresponding pictures for each project the same size?
each project's picture dimensions are different but i'm looking for a way to display those images with a 700x400 image regardless of original picture dimensions
 
 
4 hours later…
9:43 AM
Hi All
I am using bootstarp modal . when rotating ipad screen, my modal vanishes. Can anyone please tell , what might be the cause ?
 
 
2 hours later…
11:47 AM
Hi anyone here ?
 
hi guys
I have been doing that model: http://imgur.com/a/EeCBX
but unfortunately this is what I've done: http://imgur.com/a/KE2p5
how to correct the alignment?
https://jsfiddle.net/2vbw1bn7/
this is my code
 
 
1 hour later…
12:53 PM
Johny
https://jsfiddle.net/RobertCS/2axs687q/
 
1:08 PM
Hi anyone here ?
 
 
2 hours later…
3:01 PM
Help: http://skyblock.lol/new.php
Below the logo there should be 3 images.
Inspect element to see them.
They are showing as 0x0, I guess because the are absolute positioned, but that is so that I can fade them on hover via jquery. Please help!
 
Hi Matt, can you repro that in a JSFiddle instead?
 
hi
The problem I think is a mixture of your positioning of the images and the elements you're putting them on
why do you need jquery to fade the elements on hover?
Just use the :hover pseudo class
 
3:20 PM
I wasn't sure how to do it with CSS, so i just did it with jQuery.
Could you do it in CSS for me?
Will CSS still be able to do the smooth transition between the two images?
 
a:hover img { opacity: .5; }
something like that
you can add transition: 1s or something as well to make a smooth/gradual transition
@MattCowley Example: jsfiddle.net/TylerH/t9a7Lya0/2
 
But the images would still have to have the same positing?
So that wouldn't fix the issue?
 
Like I said, your problem is a mixture of the position added to em
 
3:40 PM
Can you fix it?
 
Not at the moment, sorry. I don't have time
I'd recommend you start over with placing the elements normally on the page, and give them a width and a height
then you can position them as necessary
 
I want them to be responsive though, so I've just given them a max-width.
The thing that breaks it is adding absolute to them, but without that, I can't do the fading/transitioning images...
 
Well I've already shown you how you can do fading images without position: absolute, so... I wouldn't dwell on that artificial limitation if I were you
 
hello
hello @MattCowley
 
you also can do responsive images with width
just use a percentage
 
3:50 PM
I need someone help in here.
I have a quick question, I have an open-source project "owncloud" i have identified the script which calcs the storage , and it changes or alters the results of HTML id field but that field is of input type and is hidden.
I want to display the results on HTML page itself.
I'm given (-1) score
-1
Q: Echoing html id from script to HTML

asadzIn an open-source project I have a script a part of which does storage calculation, the imp lines of codes are show here. var usedSpacePercent = $('#usedSpacePercent').val(); if (usedSpacePercent > 98) { OC.Notification.show(t('files', 'Your storage is full, files can not be updated or synce...

 
@asadz pay attention to the comments on your question
Also, this is not a JS room
 
@TylerH You have shown me how to fade an image. But I need another image underneath it still to do the fading transition, so I still need position absolute do I not?
 
You can actually fade images out and other images in with keyframes but you would need them to be on top of one another yes
 
@TylerH So what your saying is my issue still exists?
 
4:31 PM
@btrballin You change the size of them
@LakinMohapatra make a minimal demo and we might be able to help
 
or better yet, use a library or write a script that sizes them for you :D
 
@clickhere which is better: a human's eye of what should be included or cut out or a computers?
 
because that's useless.
 
perhaps in your experience
 
4:37 PM
what's an example where both would better than just a human's decision? Talking in terms of realistic use cases of sizing previews for personal projects
 
I literally wrote a script to resize and center crop images myself. Posted on my website. Was planning on making it demoable later obscurefjord.com/projects/image-manipulation
 
Hi, anybody knows how to add metadata (author e.g.) into a svg?
 
center and crop != cropping intelligently
@VincentVerheyen what have you researched? What doesn't work about it?
and cropping is just one part of sizing images for preview
 
I know, I'm not saying it's applicable for all use cases. But it's nonetheless a useful method that I occasionally employ myself
 
@ZachSaucier Just can't find anything. I know <title> and <desc> works, but don't know how to include author info.
 
4:39 PM
why do you need to?
 
@ZachSaucier Tries in between <metadata>, but didn't succeed. Well, I am just exploring svg's possibilities. Try to be complete.
@ZachSaucier See here, they use the publisher field; but that doesn't render for me <metadata>
 
What do you mean when you say "render"?
Do you have an example of what you're trying to do? Perhaps in a jsfiddle?
 
Well, that was jarring
 
@ZachSaucier OK. Zach - When I copy the whole thing in between <metadata> from the cited source - then it works fine ... but, I would appreciate if the info would show up in a web browser, e.g. when using "page info" in Firefox. Do you see what I mean. The rendering-issue has been solved (I meant the svg gave an error message instead of showing)
This might be interesting too schepers.cc/authoring-accessible-svg
 
Sorry, I'm not that familiar with Firefox. What "page info" feature are you talking about?
 
4:45 PM
@TylerH, are people getting banned for offering criticism of the docs?
 
@clickhere no
 
@ZachSaucier If you use COMMAND(apple symbol)-I when on Mac.
@ZachSaucier On Windows, it's probably CTRL+I
 
that pulls up Bookmarks for me :P
 
@ZachSaucier ;D It's under Tools > Page Info in the menu bar.
 
In Firefox on Windows it's Alt > T > I
 
4:47 PM
@TylerH Wow, that's difficult.
 
It's the keyboard way to get there
 
who looks at that crap anyway, lol
 
not really a shortcut
except it cuts out the tabbing
 
@ZachSaucier ;D When I try to cite sources very specifically.
@TylerH It's more like a long-cut ;)
 
compared to Alt, 11 arrow key presses, and an enter key press, it's a shortcut :-)
it's not any worse than Ctrl + Shift + I for the Firefox Developer Tools shortcut
 
4:50 PM
it is in terms of key expectations, but that's about it
 
I guess, to solve my problem, I would need to go out of the standalone svg msdn.microsoft.com/en-us/library/gg589526(v=vs.85).aspx
 
Hello guys. Please give me some advice to find remote job with 3-4 year expierence and less english. Thanks in advance.
 
@SheraliTurdiyev where are you located?
 
:)) Uzbekistan, Tashkent city
 
Are you looking for jobs locally?
 
5:02 PM
nope, international
 
That's very difficult then. Especially since your English is not the great (according to yourself). Do you have a website or CV?
 
yeah, I did motors.co.uk mobile apps and surface apps (I am doing in local company as well)
 
@SheraliTurdiyev In the mean-time I'd suggest Duolingo.com to help with your English conversational skills. Becoming more fluent in English is probably the number 1 thing a non-English speaking person can do to become employable internationally
(assuming you're not already working on improving it :-) )
 
:)) thank you. yeah you're right. I will improve my english skills.
 
On first glance, that's a pretty weak resume for applying internationally to places. It might be better to continue to work more locally before really trying internationally
 
5:15 PM
I'm working in local company, could you give me some international resume
 
Personally I think my resume is a bit stronger stackoverflow.com/cv/zachsaucier
 
yeah, your resume is perfect. So, could i find any job from international if i change my resume
:))
 
There are no guarantees. Getting a job has countless variables
 
@ZachSaucier, @TylerH. Thank you guys for help! Good luck.
 
5:32 PM
idk Zach, seems to be lacking content :P
 
5:54 PM
Stack Snippets has been out for almost 2 years now?? I thought it was only last year...
 
6:29 PM
yeah 22 months so far
crazy
 
7:06 PM
http://www.commitstrip.com/en/2016/07/26/coders-and-gafa/
CommitStrip
Coders and GAFA
CommitStrip
1469559794
 
 
3 hours later…
9:44 PM
@Wes if I understand it correctly the php libxml extension isn't standalone, it just links to the libxml library installed on your computer? So you can't guarantee libxml version based on php version?
 
Wes
10:30 PM
i have no idea tbh
nope
it's compiled in php
 
oh thats interesting, no idea what I was doing wrong then :/
LIBXML_HTML_NOIMPLIED should theoretically have worked for me (Only available in Libxml >= 2.7.7 (as of PHP >= 5.4.0)) but for some reason it wasn't but the same code was in sandbox.
not important though
php extensions don't need to be updated separately do they?
 
Wes
if they are shared yes
but they are usually 1:1 with php
 
10:54 PM
hmm ok I will investigate further. thanks for your help!
 

« first day (1183 days earlier)      last day (2605 days later) »