kukuruku

Kukuruku Hub

RATING

13.90
Karma: +7.66
avatar
move/remove
avatar
«code» tag is intended for code only. Anyway, how does your move function look like?
avatar
omg, why don't you use indentation? You should also paste your code by using the «code» tag.
this is wrapped with code tag.
avatar
Yes, this is exactly what it does. It uses ternary operator ?:. You can read about it here.
avatar
I agree. In this specific case it's better because the regex is a little bit shorter and more precise.
root@nm3:/ # grep -E '\b[0-9]{1,3}(\.[0-9]{1,3}){3}\b' /etc/resolv.conf
The \b is a word boundary modifier, which means that it matches before and after an alphanumeric sequence. To be honest, this regular expression does not represent IP address as per RFC. For instance, this rule [0-9]{1,3} will also match 745, which is far over 255. But usually you do not care too much, as you can visually distinguish between real IP address and something like 745.983.001.874.
avatar
CSSComb.js is basically a new version of CSSComb, which has much more features. It can also «fix» your CSS, not only sort. In addition, it was written with Node.js, which means that engineers have much more chances to use it in their projects (comparing to an old, PHP-based, CSSComb)
avatar
Wow, it looks very interesting, I'll definitely take a look into it tonight. Btw, you should write an article about its core functionality.

# Spin up a new Ubuntu 14.04 instance on DigitalOcean:
$ overcast digitalocean create db-01

# Spin up a new Ubuntu 14.04 instance on Linode:
$ overcast linode create db-02

digitalocean,linode — are these just an alias to ip?
avatar
agree, the new syntax is simpler. Do you know if typedef going to be deprecated?
avatar
This is great idea, Constantine. Try now.
avatar
I would say it's a combination of both. The expiring session issue is really a corner case. I don't even think that every QA engineer could find it initially.

P.S. Editing comments is a real pain. We'll add it to our backlog. Thanks for pointing that out.
avatar
What do you mean by header?
avatar
Sorry for a late response. Here is a quick example:

readfile =: 1!:1
writefile =: 1!:2

NB. Create a file and write to it
fn =. < 'test.txt'
'Hello Kukuruku' writefile fn

NB. Read from file
data =. readfile fn


data will contain the content. But this is just a very simple example. Have you installed J?
avatar
hm, interesting. I think the that's the list you mentioned about: https://www.mail-archive.com/[email protected]/msg00231.html
avatar
oh, yeah, that's a good point. Well, I'll keep it as it is, just for the sake of details. But definitely, agree with you.
avatar
Well, when you install J, you can run the J session and either run sentence by sentence in a J execution window(ijx) or create a new script window(ijs) where the source code will go to. (File -> New ijs). Ctrl+1 to run the ijs script. But we'll have a better article about the language itself + some more cool stuff around that topic.
avatar
Thank you, Mike! I personally really appreciate your input! As you can see, we don't have a lot of users right now, so any support from community helps us to move forward. We are currently working on design for email notifications, as they basically look like shit. Let me know if you have any ideas related to whole project in general.
avatar
Slashdot sucks.
avatar
We are not going to translate all the articles and don't want to be a clone. We are in process of building community and making the project unique. Users will have much more opportunities at Kukuruku Hub in future.
avatar
We've added the link. Thanks for pointing that out.
avatar
I guess they have some plans for future.