« first day (1929 days earlier)      last day (3030 days later) » 

9:02 AM
@Trowski was
>start(PTHREADS_INHERIT_INI | PTHREADS_INHERIT_FUNCTIONS | PTHREADS_INHERIT_CLASSES)
a workaround for something ?
 
posted on January 27, 2016 by nlecointre

/* by Robert Lyall */

 
@Ekin meh, insane people are everywhere. Just look at the RoR userbase.
 
@Ekin the hell I just read.
 
9:16 AM
there was a thing on the news about someone named bob, arguing with twitter folks about the earth being flat ...
 
@Ekin LOL, some people...
 
> People have been into space. How have they not discovered that the earth is flat?

The most commonly accepted explanation of this is that the space agencies of the world are involved in a conspiracy faking space travel and exploration.
lol
 
Hahahaha yeah was just about to post that too. What a joke.
 
@FlorianMargaine read the one about the pictures...
 
@TiagoMatos exactly my reaction.
@DaveRandom insane? for me that's this https://en.wikipedia.org/wiki/Malbolge
 
9:17 AM
"respect and be respected"
 
In general, we at the Flat Earth Society do not lend much credibility to photographic evidence.
 
I'm missing one question in that post though: Why do you guys wear tin foil hats?
 
Have they explained how you can continually fly west and eventually end up in the same place yet?
 
Poe's law is an Internet adage which states that, without a clear indicator of the author's intent, parodies of extreme views will be mistaken by some readers or viewers for sincere expressions of the parodied views. == HistoryEdit == "Poe's law" was originally written by Nathan Poe in 2005, in a post on christianforums.com, an Internet forum about Christianity. The post was written in the context of a debate about creationism, where a previous poster had remarked to another user "Good thing you included the winky. Otherwise people might think you are serious." Poe then replied, "Without a winking...
 
@Leigh Of course, didn't you hear about the 180 degree turnpike at the end of the earth. Gravity there is amazingly strong! ;-)
You're actually flying upside down half the time, you just don't realize it.
 
9:21 AM
@Ekin Love that hello World line.
 
"The evidence for a flat earth is derived from many different facets of science and philosophy. The simplest is by relying on ones own senses..." - there they lost me already
 
Yes, but this one is funny too: "Perhaps the best example of flat earth proof is the Bedford Level Experiment. In short, this was an experiment preformed many times on a six-mile stretch of water that proved the surface of the water to be flat. It did not conform to the curvature of the earth that round earth proponents teach."... 6 whole miles, wow then it must be true!
 
lol
 
LOL
 
posted on January 27, 2016 by kelunik

*Initial Release*.

 
9:24 AM
@Ekin oh that sence of sight, where if you look out over an expansive ocean, you can observe a slight curvature... must be due to atmospheric anomalies
 
@Leigh No, that's just the Jedi's with their mind tricks ;-)
They make you see what they want you to see.
 
@kelunik please tell me you're not going to write an ASN.1 parser :x
 
@Leigh why would he?
 
he's doing "certificate stuff" in PHP
 
@Leigh Just for Aerys and ACME.
 
9:27 AM
the weird stuff is still done by openssl.
 
Ah ok. I just got as far as "transform between different formats" on the readme and my knee jerked
 
@Leigh Just DER to PEM and back.
 
@tereško are there any "flat-Earth" who are in charge of anything?
 
@bwoebi Did you already add documentation for reverse proxy setups in Aerys?
 
9:32 AM
@SamIbraheem No, all the conspiring forces won't let them!
 
@SamIbraheem why do you expect me to know an answer to that?
 
@ter
 
@kelunik ehm? isn't the bit of documentation in readme of aerys-reverse not enough?
 
do you imagine there is a secret list of all the people who believe that earth is flat and that I have a full access to that list and all the relate information?
 
@tereško No I'm just debating you since you started the topic
 
9:34 AM
I don't think people will see it when visiting the Aerys docs ;-)
 
you don't really seem to know what "debate" is
 
@kelunik ah, there. Yes, I'll do ;-)
 
@tereško you're so difficult, I like you
 
We need good documentation for everything and everything properly linked.
 
@kelunik I'd be grateful if you could help me a bit with that
 
9:36 AM
@bwoebi As soon as I have time for open source again…
 
Do you use One big database with many tables or Several smaller ones? (mysql)
 
Anyway, I could still use your help in this php problem you guys, let me re-post my code:
<?php
$file_name = $_SERVER['PATH_INFO'];
$file = '<?php bloginfo('url');?>/wp-content/themes/twentysixteen/downloads/' . $file_name;
if (file_exists($file)) {
header('Content-Type: ' . mime_content_type($file_name));
header('Content-Disposition: attachment;filename="' . basename($file_name) . '"');
header('Content-Length: ' . filesize($file));
readfile($file);
} else {
header('HTTP/1.1 404 Not Found');
}
?>
This is what one of SO community has suggested
I think the problem is $_SERVER['PATH_INFO'] statement but I'm not sure
 
@SamIbraheem What's the error?
 
Wes
he's nesting php tags
 
@VeeeneX it keeps giving me the 404 code (file not found)
 
Wes
9:42 AM
$file = '<?php echo "this won't work"; ?>';
 
Although the file is in the specified path
@wes
What do you suggest?
 
@SamIbraheem $file = bloginfo('url') . '/wp-content/...
Since you are already in PHP context
 
Wes
@Oldskool bloginfo echoes, doesn't return anything. wordpress is a great piece of design. there is probably a get_bloginfo function
 
@Oldskool still the same error
 
Wes
writing echo or <?= was too hard for wordpress developers
@Oldskool $file = get_bloginfo('url') . '/wp-...
 
9:48 AM
I died when I saw wordpress' the_loop
 
pukes a little
 
Wes
also 'url' makes me think it's an url :P what you want is a local path
@FlorianMargaine THE_loop()
 
<?php
if ( have_posts() ) {
        while ( have_posts() ) {
                the_post();
                //
                // Post Content here
                //
        } // end while
} // end if
?>
 
@Wes really? you mean I have to write the drive?? like C:/.... etc?
 
@FlorianMargaine I think you should do more WP dev then =) there is lots worse in wp
 
Wes
9:51 AM
@SamIbraheem yes
 
@FlorianMargaine lol I've never seen the example with the redundant if() wrapping
Although it's WP, maybe the zOMG global all the things architecture actually requires it
 
I admit that I wrote some code using globals last night...
then immediately refactored it.
 
@wes even if I'm working on XAMPP? and on local address?
 
Wes
@SamIbraheem yes
 
@wes
@wes am I supposed to write the file name with the path or keep the variable $file_name?\
 
9:55 AM
@FlorianMargaine I've been writing C# a lot recently, it's v. annoying that resharper actually suggests that you make methods static :-(
 
@DaveRandom well
I don't like C# or java because you can't have free functions
but free functions definitely make sense... and their equivalent is static methods in C#/java
 
@FlorianMargaine +1
 
Moin '11
 
@DaveRandom generally speaking, if the multiple dispatch isn't needed, then I use a free function
 
Morning Sean
 
10:03 AM
... in lisp
in php I just group the functions in an object because it's the only way to have a sane API..
@DaveRandom hey, my latest project is an init system that provides an REPL.. so you can inspect the services (a la systemd) et al using the REPL. It's pretty cool.
ralt@genera:~/common-lisp/linit/
$ sudo ./sbin/init
Starting REMOUNT-FS...
REMOUNT-FS started.
Starting DUMMY...
DUMMY started.
* REMOUNT-FS changed to state ERRORED.
DUMMY changed to state STOPPED.

*services*
(#<SERVICE {1003D52A03}> #<SERVICE {1003C89F03}>)
* (first *services*)

#<SERVICE {1003D52A03}>
* (name (first *services*))

REMOUNT-FS
*
lets me do this kind of thing ^
* (state (find-service 'remount-fs))

ERRORED
*
 
10:21 AM
@PeeHaa Jeeves needs an update. :P
 
Wes
is it possible that an old java program has an hardcoded memory limit? why would one do that?
 
@Wes I'm no Java specialist, but I guess it could. And you would do that if your program is hogging memory like crazy and you want to prevent your system from becoming unstable.
 
Wes
a client is trying to open many windows at once in this crm program but he's getting memory errors, not because the computer is actually out of memory. the limit seems imposed by the software
 
@Wes AFAIK many Java programs run in a virtual machine instance created by Java itself. That has a memory limit set.
 
@Wes every java program have a memory limit
 
10:33 AM
A Java virtual machine (JVM) is an abstract computing machine that enables a computer to run a Java program. There are three notions of the JVM: specification, implementation, and instance. The specification is a document that formally describes what is required of a JVM implementation. Having a single specification ensures all implementations are interoperable. A JVM implementation is a computer program that meets the requirements of the JVM specification. An instance of a JVM is an implementation running in a process that executes a computer program compiled into Java bytecode. Java Runti...
 
it's funny, btw, because java takes all of this memory at startup and only frees up when it closes the program
 
54
Q: How to set the maximum memory usage for JVM?

erotsppaI want to limit the maximum memory used by the JVM. Note, this is not just the heap, I want to limit the total memory used by this process.

 
Wes
@FlorianMargaine but it looks to be set to about 1gb, the computer in question has 8gb and they are mostly free :\
it's nothing he can solve by changing a setting is it? it's in the actual program and can't be changed?
 
@Wes depends how he runs the program
you can probably run java -jar yourself, that would let you set these limits
iirc it's something like -jMX or w/e... haven't done much java
 
@Wes Check that question I just posted. That should do the trick. Just add a -Xmx 4G (or however much you want) to the java command.
 
Wes
10:44 AM
thank you i'm trying that one. teamviewer is slow :P
oh by the way if you make software and at some point you decide to quit, go bankrupt, etc. you are an asshole if you don't make your software open source. the program in question was developed by a company that went bankrupt. they closed down and their code lost. it was a good program, good enough to continue developing it...
 
@Wes just when your connection is too crappy.
 
Wes
could be :P
 
java can be converted to editable code
 
It can't be converted to usable programs though
 
not the exact same code in some cases, but close enough
yes it can
oh oh
yeah, it will still be shit when you are done with it :D
but all is not lost is what I'm saying @Wes
 
10:55 AM
If you guys have time please check out my question.
-1
Q: Expiration data and countdown for enable and disable button

Butter Toast1st Q : How do I set my data on MYSQL to expiration on date? And How do I remove SILVER package from User1 on expiration date and set it into FREE package. User2 and GOLD package has the same question as User1. For an example : I would like to set expiration date for SILVER and GOLD package l...

I have no idea how to do that.
 
JetBrains IDEA has a built in Java decompiler IIRC @Wes
 
I need inspiration or example please.
 
Wes
it would be easier copying it. possibly without getting sued :P
 
@ButterToast Wow you're building apps to be launched in 2559? Got some weird dates in that question ;-)
But try looking into DateTime objects.
 
@Wes maybe if you got the source out and approached them, they would allow you to open it ...
 
10:58 AM
@ButterToast It basically let's you do stuff like $expirationDate = new DateTime('30 days from now'); and calculates the correct day for you.
 
they probably think it's worthless ... since their business failed and whatever ...
if it were me, you'd get permission ...
 
Wes
@JoeWatkins tried. they would have made it open, but they lost it... no one bothered making a backup
 
but you don't need a backup
 
Pretty sure I seen this function native now? Anyone that can help me remember the name?
function toBool($var) {
  if (!is_string($var)) return (bool) $var;
  switch (strtolower($var)) {
    case '1':
    case 'true':
    case 'on':
    case 'yes':
    case 'y':
      return true;
    default:
      return false;
  }
}
 
Wes
a backup of the source code
 
10:59 AM
you don't need it !
java can be decompiled
you can get the source code from the binary, which you seem to have ... so nothing is really lost ...
might take some editing ...
 
@ErikLandvall Probably php.net/boolval ?
 
if they've given that kind of response, I have no problem doing it for you ...
 
Not too sure about 'y' and 'yes' though.
 
@Oldskool more like the 'no' that won't work
 
@FlorianMargaine Uh yeah, right. Strings are true :)
 
11:01 AM
Think this is what I was thinking of: filter_var($val, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) @Oldskool
 
Wes
@JoeWatkins decompiled to shit i suppose :P
 
no, editable code
 
Wes
again it would be easier just rewriting it
 
9 mins ago, by Joe Watkins
not the exact same code in some cases, but close enough
 
Wes
that sounds strange
 
11:05 AM
@ErikLandvall Ah yeah, that could work as well.
 
@Wes noooope nope nope nope.
 
well compiled java, the equivalent of our op arrays, are not exact mirrors of the code written, just like our op arrays, for one thing they may have already been optimized, if/while/do/for these all use generic instructions, generally in a different order ... the original code is obviously lost, good decompilers will generate idiomatic output when they can ...
and when they can't, it doesn't matter ...
 
Wes
how about class names, variable names? method names? they are lost... no? understanding a program without the names is a pita
 
they're not lost
 
@ErikLandvall y and n appear problematic without doing it manually: 3v4l.org/sgb7D
 
11:09 AM
unless some special effort was made to obfuscate the code, which is doubtful, no one does that ...
 
@DaveRandom Yes, wasn't the exact functionality I was thinking of. The filter works good for me. But thanks for pointing it out :)
 
12 mins ago, by Florian Margaine
@Oldskool more like the 'no' that won't work
@DaveRandom am I a small avatar for you now? :(
that said, Lisp has a yes-or-no-p function
 
Wes
i didn't know that... @JoeWatkins and surprising... if i had the time i would try doing it
 
@FlorianMargaine I actually seem to have tinyed you earlier by accident :-(
Sorry about that
 
Anonymous
11:17 AM
object(Cake\I18n\Time)#80 (3) {
["time"]=> string(24) "2015-12-10T14:20:27+0000"
["timezone"]=> string(3) "UTC"
["fixedNowTime"]=> bool(false) }
Is there a better of way of changing the ['time'] value other than using a foreach loop?
 
@FlorianMargaine The parse_ini/filter_var approaches can cope with no, but not n
Which I think is why you sometimes see PHP-based sites that think it's OK to pass bools in query strings as yes and no
 
@DaveRandom oh, fun
 
I have just untinyed most of the people on my list because I have no idea who they are/were, let's see who can make it back on there first...
 
Hello guys! Just a quick question for y'all! When using a switch statement, is using multiple cases a thing? E.g.:

switch ($mySwitch)
{
case "a":
case 1:
//do something
break;
case "b":
case 2:
//do something
break;
}
 
Yes
@kelunik Will update tonight
 
11:31 AM
@SamSwift웃 Yes. But be careful mixing types - switch uses loose typing
 
@AllenJB, so using case "a": case "A": break; would be the best way of doing it?
 
Using a sane design where a variable can only contain a single type is the best way of doing it
 
hi guys, we asked someone to create a web based payroll system for us and he used codeigniter for development. We should change the design of the interface but I'm not familiar with CI. Do anyone of you knows how to?
 
@PeeHaa, so use seperate functions for ints, strings, bools etc.?
 
11:33 AM
functions?
$mySwitch should should either contain a string or an integer
 
@SamSwift웃 No, just ensure that $mySwitch only contains a string, int or bool anywhere in your program
 
If it can hold both you're doing it wrong
 
I am creating a class that uses a switched function to decide what to to do, would it be best to create multiple functions for each type or have checks?
 
PHP may be loosely typed, but pretend it isn't 99.999% of the time.
 
@SamSwift웃 Why does you switch need to handle different types in the first place is what we are asking
 
11:35 AM
@Pretorian Assuming the developer is sane, all the HTML should be in the views subfolder.
 
@DaveRandom Have you seen the wordpress codebase?
 
@AllenJB thanks
 
@Jimbo types is the least of its problems. trust me on this
 
@PeeHaa Would have pinged @SamSwift웃 with the newest commit that he should format his code with Ctrl+K. :P
 
@PeeHaa, the design is that it is a class thaat can be derived from and use many different format of files to read something, so if a class needs to implement a file to be read, it uses the function to switch the type of file and then read and return it
@kelunik, I didn't know that was a thing... xD
 
11:37 AM
That is not design. That's a ball of mud :P
 
@Jeeves would have told you. :P
 
@PeeHaa, heap of crap is more what I was going for :P
 
@SamSwift웃 That sounds scary like some god object
@SamSwift웃 hehehe :-)
 
@PeeHaa, I wanted something that can handle that one type of work, which is what it does, badly xD
 
Can you share the code of the class perhaps. I'm curious now
 
11:39 AM
sadist
 
@PaulCrovella Let me spank you boy!
 
@PeeHaa, just gimme a sec to get it sorted and I'll post the smelly piece of crap :P
 
kk
 
@PeeHaa Or a factory
/ abstract factory
 
<?php
class SwitchType
{
    public function switchFileType($switch, $path)
    {
        switch ($switch)
        {
            case "xml":
                case 1:
                return simplexml_load_file($path);
            case "inc":
            case 2:
                return include $path;
            case "inc_once":
            case 3:
                return include_once $path;
            case "req":
            case 4:
                return require $path;
            case "req_once":
 
11:41 AM
First of all you didn't follow their advice - they specifically said a musical artist, of which Bieber is neither. — AviD ♦ Jan 20 at 17:27
lol
 
@PeeHaa, it's not finished, not by any stretch!
 
Certainly isn't
 
@SamSwift웃 I would personally totally split that up in separate classes
 
Don't dynamically include stuff, that's what autoloaders are for
 
i suppose if you're going to do something that sucks, you may as well use simplexml
 
11:42 AM
lol
 
You have method which returns completely different things which is going to be hell
 
@Jimbo, I don't really know about autoload, I've tried using spl_autoload_register with limited success... @PeeHaa, what do you suggest?
 
Implement autoloading and split it up
I am just not sure whether I can call methods from the thing that is returned or perhaps it's a string or perhaps it is null
 
Hmm....
 
For example it might return an SimpleXMLElement object or a string or null
 
11:46 AM
I got the idea for a "loader" from my question on CR (codereview.stackexchange.com/questions/118040/… just for ref)
@PeeHaa, good point, seems a bit odd not I look back at it...
 
So I would first look into autoloading because you will never look back
 
True story.
 
@PeeHaa, can you suggest some good reading on this? (As I said, tried with very limited success...)
 
That alone removes a case or perhaps even multiple
@SamSwift웃 Are you using namespaces?
 
@PeeHaa, I am not, should I be?
 
@SamSwift웃 Not mandatory. Will make your life easier later though. But for autoloading it doesn't matter as long as you have at least some directory structure
 
Can you specify different directories using autoload to decide if it is a class/interface/trait etc.?
 
Depends. Probably not
The autoloader simply gets a name of a class/interface/trait to load
If there is no distinction in the name between them there is no way to do it
Name here being the fully qualified name (so both the class/interface/trait name and the namespace it is in)
 
Hmm, so appening the type (class/interface/trait) and using regex would be the best way to do it? (Without composer as I cannot get that to work)
E.g. class UserClass { ... }
 
I would not separate them in different directories in the first place, however if you want to do that I would simply put the in different namespaces
 
11:53 AM
Lots to think about!
 
Hi all
Has anyone ever worked with the twitter search/tweets api?
 
nope, you'll be the first
 
@SamSwift웃 I would start by slowly improving the code piece by piece instead of trying to solve evrything at once
The video linked by @TiagoMatos seems like a decent explanation of a autoloading standard
 
I'm trying to get a continuous feed, so to speak of tweets based on a search term, but I'm a little bit unsure about to go about this
 
It was the one I used to get composer autoload to work, classmap or namespaces.
 
12:12 PM
@PeeHaa, so fix each issue as it arises?
 
If you are hitting a hard deadline just continue and deal with the consequences later. Otherwise pick one topic (e.g. autoloading) and try to implement it making your code nicer piece by piece
 
@PeeHaa, good job it's a project I am using for my own development then!
 
Yeah. Those are the best projects :)
 
@PeeHaa, thank you for your help, it's hugely appreciated :P
 
anytime
 
12:33 PM
best usecase for a neural network … ever: youtube.com/watch?v=2lf2Caz8CDM
 
@FlorianMargaine Drupal and Magento? really? o_0
 
@PeeHaa Well... Ehh. Before you laugh, I wanna make clear that I started learning PHP when I joined this job, so this is all I know. ...we do use one big index.php file, which shows different pages based on the requested URL. — Sean 33 mins ago
Now I feel bad for the guy :P
 
1:01 PM
Hello. Anyone here feel like helping out with a math/geometry question? Doesn't seem to be getting much attention on the question.
 
@CharliePrynn As the topic says: "Don't ask to ask, just ask."
 
Fair enough
If anyone gets a chance, could they take a quick look at this: stackoverflow.com/questions/35034838/… Driving me nuts not be able to work it out.
 
> Maybe I'll go to Stackoverflow and ask a question. Oh, looks like they really don't care for the way I asked the question. Guess I need to wrap it up in a perfect, hermetically sealed magic spell that's not asking an opinion in order for them to even take a look at my question.
Contradicting much ...
 
Hm.. is there a plugin for FF that opens a url if I double-tap the button?
 
1:09 PM
@Patrick ?
 
Anonymous
>Oh, I see you already understand the 'grumpiness' of professional, elitist coders who are offended, as if someone took a shit in their Lucky Charms, when a noob asks an ignorant question. No, it's not ok to be ignorant around those sites, and you just validated my point.
 
Anonymous
It was more this point that I agreed with
 
posted on January 27, 2016 by nlecointre

/* by Frankie */

 
Hi
Can anybody help me here with php arrays: pastie.org/10697702 please
I'm trying to ask on SO but it is giving me an error...
 
@Azevedo What error?
 
1:23 PM
"error on submitting your question"
 
@Azevedo That is odd. Your history doesn't look crap enough to get banned
@Azevedo Not even a "why"?
 
i'm not banned
it doesnt give me a reason... it just give the error
 
Crap UX
 
Very weird.
 
@Azevedo Try to post your problem on Meta and see if you get the same error
 
1:25 PM
@PeeHaa Click on Ask a question and scroll down to see what happens to the right side notes :P
 
@Machavity where exactly?
 
It's a site for discussing problems/concerns/philosophy of SO
 
And if that does work, try editing the question saying you cannot post that question. Should prevent some "Meta is not for programming questions" flaming :)
That way an admin can look into it.
 
Yeah, don't post your programming question, post you're having a problem posting
 
1:28 PM
exactly. Post that screen shot in your Meta question
 
0
Q: Can't post. Error message

AzevedoI'm trying to post this (http://pastie.org/10697702) question but I'm getting this:

 
Yeah, looks good. Now just wait for a staff member to clarify it.
 
That should hopefully get you some help in why you can't post
 
thanks guys!
 
@Azevedo As for your issue, I'd just create a secondary array based on the customer id. Like $itemsPerCustomer = array(); foreach ($customers as $customer) { if (!array_key_exists($itemsPerCustomer[$customer['customer_id']]) { // create new sub-array } else { // add product to existing sub-array } } ... something along those lines
 
1:37 PM
@Oldskool I thought of writing a function that does that manually. But before I start writting it I wonder if there is a ninja way of doing that using php array functions
 
@Azevedo could check the console whether it has any more details
 
@Gordon hold on
@Gordon the error persists. the console is empty
no reason reported
firefox 44. i will restart the browser and try again...
 
hmm. thanks for checking. might wanna add that info to your question
 
after restarting the browser:
0
Q: How to encode an associative array grouping one of its members?

AzevedoHow to encode an associative array grouping one of its members? $my_array = Array( // customer 1 [0] => Array ( [customer_id] => 1 [cutomer_item] => 7 ) [1] => Array ( [customer_id] => 1 [cutomer_item] => 9 ...

thanks everyone
 
@Azevedo you have two separate questions there: 1) how to group them; 2) how to emit json. #2 is trivial: use json_encode()
#1 is just, iterate over the array and build a new array with the values.
 
1:44 PM
@jbafford hmm
so there is not a ninja way.. I'll have to itarate it
 
A ninja way hasn't immediately come to mind
 
@Azevedo ninja way is using array_map.
 
@Azevedo try to write code that's easy to read and understand. a "ninja" way implies something that you won't understand 2 weeks later
 
or array_reduce, haven't looked at your question
 
I'm not seeing how array_map would help.
array_reduce takes an array and turns it into a single value, but that's not really the appropriate tool for this, I think
 
1:47 PM
reduce is always the solution.
 
easiest way, though, is to use your customer_id as a key and build up a new array indexed on customer_id (so that it's easy to get the data into the proper target array), and then json_encode(array_values($groupedData))
(array_values to remove the customer_id-based keys, or you'll likely not get what you want from json_encode)
hm, ok, yeah, I guess you could use array_reduce. I don't see that it actually offers much of a benefit apart from shunting the actual loop into php code in exchange for calling a userspace function on every iteration.
 
@TiagoMatos lol amateurs
 
@jbafford if he used something like a template to place the values on a file, would that be feasible ?
 
do what now?
 
The way you use templates to dynamically generate html. Could the same be done to create is json file, it will be easier to order the content.
 
1:52 PM
We really need short closures in PHP…
 
@TiagoMatos Don't see how that would help. The problem is organizing the data, not converting its format.
 
ask @bwoebi
oh wait... :D
 
@kelunik tell that those who voted no on my RFC…
@FlorianMargaine lol
 
hello guys.. I accidentally bought a magento theme for 1.9.. Is that compatible with Magento 2.0.1?
 
yeah, you could do something templatey, but it'd fall apart as soon as the array is not in sorted order. And that's really the wrong way to build up json.
 
1:54 PM
thanks in advance.
 
@bwoebi It's really nice using them in ES6.
 
@kelunik Ikr …
 
@jbafford if he segmented the template on to entries maybe he could later order them. Dunno just getting creative. The wrong way :P
 
I still don't get why people are so in love with short closures. They're incredibly hard to read.
 
@jbafford Are they? Only when misused IMO
@kelunik maybe we should give fn() => a shot…
 

« first day (1929 days earlier)      last day (3030 days later) »