« first day (593 days earlier)      last day (3199 days later) » 

12:11 AM
!!/live
mornings @JohnPaul
what brings you by?
 
 
2 hours later…
2:30 AM
@CSᵠ Hey any change? regexdoc.com/t
 
@hwnd not
 
@CSᵠ Can you take a screenshot of what it looks like so I can see how small the text is ..
 
computed fontsize 13.2px
rules: 0.825em
just set it at 1em
 
I changed it a bit, any difference?
 
2:53 AM
yes
it's a bit bigger
could be ok now
computed font 14px
would be great if you leave this line out "font-size: 0.875em;" @hwnd
try it
it's a menu, things need to be bigger right?

HTML / CSS / WebDesign

This room is now defunct. RIP.
 
 
5 hours later…
7:44 AM
@CSᵠ interesting approach
@CapricaSix are you classified as a human being?
2 messages moved to bin
 
 
1 hour later…
8:46 AM
@CSᵠ that isset() trick, can you show it again? I forgot it already :P
 
user652649
9:18 AM
@HamZa what isset trick?
 
user652649
also, morning :D
 
Morning
 
morning
 
@WesleyCrushed something for php
 
user652649
i know some php :P ask
 
user652649
9:27 AM
what was it?
 
I can't remember that's the problem. Normally you would do something like
if(isset($GET['foo'])){
$bar = $_GET['foo'];
}else{
$bar = ''; //default
}
he had another method
 
user652649
ok
 
user652649
got it, you mean this:
 
user652649
function issetor(&$var, $orVar)
{
	return isset($var) ? $var : $orVar;
}

function issetorc(&$var, callable $createOr)
{
	return isset($var) ? $var : $createOr();
}
 
@WesleyCrushed he had a more elegant solution :p
 
user652649
9:35 AM
$data = issetor($_GET['page'], 1);
 
user652649
you mean the ternary operator?
 
no... Wait...
 
user652649
isset($_GET['page']) ? $_GET['page'] : 1;
 
user652649
issetorc($this->connection, function(){ return $this->connection = new DBConnection(); });
 
$bar = '';
isset($_GET['foo']) && $bar = $_GET['foo'];
var_dump($bar);
something like that ^
 
user652649
9:39 AM
$bar = isset($_GET['foo']) ? $_GET['foo'] : 'default';
 
yeah that's already known. I guess I need to wait for @CSᵠ
 
user652649
but mine is better:
$bar = issetor($_GET['foo'], 'default');
 
user652649
i'm pretty sure you can do more with php :P
 
haha Yeah
 
user652649
@HamZa 99.9% sure
 
user652649
9:41 AM
but they are making what you want: wiki.php.net/rfc/isset_ternary
 
Yeah saw that too
 
user652649
issetor() is a common solution that many php devs use
 
user652649
9:53 AM
@WesleyCrushed i'm pretty sure you can't do more with php :P
 
user652649
yea but @CSᵠ is a noob :D that could cause an "undefined variable" notice on line 6, when $_GET['where'] is not set
 
haha
 
 
2 hours later…
11:32 AM
not sure why this was closed as dup
1
Q: Controlling balanced parenthesis

Overly ExcessiveAssuming we have a string containing different parentheses (by parentheses in this context I mean (, [, and { ) the string could also contain other content like so {[balanced(parenthesis)]} but the rest of the content will largely be ignored. Would it be possible to use regular expression to cont...

I edited it to show the differences, but oh well
tried thinking about it, didn't get much yet.
 
 
7 hours later…
6:21 PM
0
A: Java Regular Expression for detecting class/interface/etc declaration

nhahtdhThis regex is an incomplete specification of Java class and interface declaration. However, it can match declarations like this: abstract class X<B extends Integer,D extends java.io.InputStream,R extends Comparator<? super D>>extends java.util.ArrayList<Integer>implements java.util.Queue<Integer

@Jerry: It was closed twice
And it is a dup, as in the answer from other question can be modified
 
6:42 PM
@nhahtdh pray tell how?
for his particular example, I believe {[balanced(parenthesis)]} is valid but {[balanced(parenthesis])} is not (closing square bracket and closing paren switched positions)
and the number of times it was closed is not a reason why it was correctly closed
 
7:02 PM
@Jerry: OK, just reopen it
Think again, it is not so trivial
The question doesn't really mention any research or attempt, though
 
that's why "tried thinking about it, didn't get much yet."
I said this earlier
yea, but that deserves a downvote, not a closevote
and I don't have my openvote because I already used it once on the Q.
 
Why didn't you comment on why it is not a dup?
 
because I didn't have to wait for 3 votes to reopen it maybe
just like gold badge allows instant dup close, it allows instant open
(from dup closure)
plus I really thought people were reading questions better :)
 
@Jerry I didn't think it needs downvoting, since the topic is a bit advanced, so I close dup (thinking it is trivial to convert)
@Jerry Well, commenting would signal that previous closure was incorrect and prevent other people from closing it again
 
yea, I can understand that thought. I too thought about it before doing anything, then tried adapting the usual way I did when using balancing groups and by the time I came back, Avinash had insta-closed it.
and yes, I guess. Lesson learned....
 
 
1 hour later…
8:16 PM
@Jerry: Done
Please test my answer for that question
 
8:35 PM
0
A: Controlling balanced parenthesis

nhahtdhIt is possible to do this with the regex below, albeit a bit ugly. (Feel free to test the regex, as thoroughly and as brutally as possible. I can't write up an explanation now, since I'm too tired. Will edit the post within the next 12 hours) (Also feel free to take the idea from this regex and...

Crowd-sourcing: please test the regex in that question. If you want it in validation mode, add \A and \z (or ^ and $)
 
looks like it works. just one question, what is the intended purpose of:
(?=
  (?=\})(?!\k<mc>)
  |
  (?=\))(?!\k<mr>)
  |
  (?=\])(?!\k<ms>)
)
I doesn't look like doing something... beneficial of some kind to me?
and yes, figured the anchoring ages ago lol
I like the fact that you added a stack to each type of paren regardless of the one that is actually being matched
 
 
3 hours later…
11:50 PM
!!s/sta/fu/
 
@CSᵠ You iz in mindjail
 

« first day (593 days earlier)      last day (3199 days later) »