I had some minor "issues" after I installed ShellStatus and its dependency StatusMessage using package manager. These may be true for rest of the packages as well, luckily they are all 1-2 minute fixes at most, so they are just small quirks.
The installation instruction said: "There is 'sublime-status' file in this package. Put it in your 'bin' folder..."
I put it in my bin folder, but it didn't read it. This was because on line 20 at shell_status.py, you -only- looked into package folder(and none of "bin") if the default wasn't changed. so unless I changed the settings and put some other name as my command, putting "shell-status" file in my bin folders wouldn't work, thus putting the default file in "bin" doesn't do any good. Just a mismatch between the documentation and code I suppose.
It also didn't create a ShellStatus/ folder under Packages/, which is the place you look for commands, so I had to create that as well.
There was also no entry for settings under "Package Settings", so I had to find the settings at Packages/User/ShellStatus.sublime-settings, it would've been better if I could go Prefences>Package Settings>ShellStatus like I can do with other packages.
Also the example on that page doesn't work, but again this is a minor detail too. There is no "<?php", so it just prints the file content itself. If you just add "<?php" after the comment it works. http://hastebin.com/ezirazekaf.php
I also have a request for anyone developing sublime plugins: I want to execute a shell command while I am working on the file, in-line. This is similar to some of your plugins, so I thought you may be interested. The output could be a comment. This would be useful when developing cli files, or just standard files if we can call it with "php arg1 arg2" or just "arg1 arg2" and have this file run with the correct path, get its output. Some plugins offer terminal access, but it is done in a separate/embedded window and the output is in console or a new file, and they offer no shortcuts to "just run the current file"
Anyways, thanks for the plugin. I will be using some of this.
It is not much worse than using it in javascript. People do this in js because it saves a few keystrokes and its faster, not that it matters. Its a small thing. Its dirtier, for sure.
I just tested it in PHP and it seems it is 20% faster in PHP compared to casting to int. Maybe someone out there will have a weird use case for that, or someone doesn't want to put more effort into writing code into terminal and doesn't care about his code being unreadable. I think its useful to know it exists.
Btw, do you or someone else know why its faster in php too? Its a bitwise operation and I assume under the hood its casting to int, its weird to have it faster than casting it to int, why does this happen? It makes sense in javascript to that its faster than functions, but why it is faster than a cast in PHP?
I wonder if there was an idea of a "strict mode" at any point? When making sure every site works surely you guys will have to render invalid code "correctly", I assume.
For example I am willing to develop in your browser if it meant I wouldn't broke some rules and the browser would care about that. Of course html validators exist and browsers display invalid css in their inspectors but I am asking for something like that would expect valid code. throw an error in my face if I didn't close a html tag or used an invalid css value, at any point.
Like if a javascript code resulted in my page getting invalid layout then browser could yell at me that causes an invalid layout. Maybe even a small performance improvement if my code conformed to every layout rule.
Ok, I think this doesn't mean much and is a flawed experiment.
The test url is: https://devx.lt/en/node/9 which contains ALL the content used in this experiment. All 9 tests are done on the same page, at once.
in the 4th experiment, he searches for "site:devx.lt GetJar is an independent mobile phone app store founded in Lithuania in..." and the result is returned WITHOUT any bold text. So this was a "most relevant" result, not a "found" case. Now the problem is, these paragraphs contain same words. Google returns "LinkedIn /ˌlɪŋkt.ˈɪn/ is a business-oriented social networking service. Founded in..." because, for one it at least contains "founded" part and further the paragraph I'm sure there is more. Since the results are limited to "site:divx.lt", and paragraphs contain same words, of course all 9 tests end with "found", as it is the only page close to being relevant.
I'd like to see the same test repeated, -NOT- all tests on the same page.
Some tests return bolded results, so I consider them to be true. I think 1-2-4-5 are false positives.
I'm not sure how much views get lost, but I wonder is it worth it? There is a short video as introduction which doesn't tell much, I'd much prefer a random video from the series.
Now by making these private, no one will find this from youtube, other sites won't link it and there is no playlist so I will have to click each url every 5 minutes or so, which is not the end of the world, but not fun.
He could have asked for my email for the project files(videos and project files get sent to your email currently as I understand it), and gave videos for free. Anyone actually interested in this would definitely give their email for the files. If he wants my email to teach me something else later -- or sell me something, I think someone who entered their mail while watching the series will be more interested in what he could use the emails for, and now he won't be able to reach these kinds of people from random views, in exchange for the initial email count.
I don't think this is a nice deal, but I have no data, so just an opinion. Maybe something to consider.
The distribution of mt_rand() return values is biased towards even numbers on 64-bit builds of PHP when max is beyond 2^32. This is because if max is greater than the value returned by mt_getrandmax(), the output of the random number generator must be scaled up.
edit: this post went from 5 points to 1, which I don't care about(in ~500 days I posted less than 10 times and I have ~35 points), but who downvotes documentation, seriously? -_-
I agree. Its just they could add a class to css, and instead of setting font tag to each element, just add the class. But of course, since they are generated in a loop anyway, there's no practical difference.
<font>, I don't think there's an excuse. we know for sure that it is not out of incompetence but it was probably easier to write at the time and nobody bothered to fix it because it doesn't really matter.
For the <center>, it is probably not the case here as this is just a text based site but sometimes it is easier to center an image by that tag when your site is partitioned in many margins it is not as easy to center some stuff, or you might just prefer to add a tag.
I also like <br>, it really makes more sense to me and easier to write. It doesn't really break anything either.
I wonder how many there are, like me, think that <center> and <br> are actually really nice things to have?
Well the data sent is "window.innerHeight" so if 1920x1080 is a popular screen resolution, some people will be using windows XP which will have 30 px taskbar size, and some people will be using 40 px taskbars with windows 7. Then some people will have browsers "not maximized" so they will be missing a few pixels too, and so on.
So from single height value, we have many variations differing by few pixels. Then, I think, we can gather some popularity info from this, if there is many variation around 1080 and less around 1200, this would mean the former is more popular.
So we don't need devices with different sizes but just a few different software choices.
Btw, can someone explain to me how they can have ads?
I mean, if US is willing to go far enough that they seem to have obvious influence on other countries and these countries punish these individuals, when normally they don't(or so I think), surely they very interested in taking down TPB or finding out who runs it?
And they had ads when there were no bitcoin etc.
So what I'm wondering is that, if I were interested in putting my ads on TPB, I would have to put/give money to somewhere/someone.
So if I'm working at NSA, why I don't just go to tpb, look at what companies they advertise on tpb, then look at where that companies sent their money. Surely we are not talking about $10-15 here, at some point they should see "yeaah, you guys seem to give these guys $xxxx(more x?) each month" or "$xxxxx once, why?"
To transfer that amount of money I can send via my bank, or transfer it via my personal account. I can use several layers inbetween, and use other people also. Maybe I won't even take money from company but do it personally. I can make it incredibly hard to be found.
But looking at how TOR services seem to go down and the lengths they go to make sure they don't stay alive, surely if NSA actually wanted they could track them down? Surely NSA doesn't lack the power to see our transactions and surely they don't lack the power to personally track basically everyone related with whoever gave the ads. Or maybe they do, but they still know what companies TPB advertises.
Anyway, if they are not very careful, I could find who currently runs TPB. and if they are, I still might have a shot.
Or maybe I'm not interested in finding out who runs TPB, just taking or down/making it harder. Why I(government) don't go to these porn sites and say "well, if we keep seeing your ads there we will have to do something". They did threaten yahoo and others without legal basis(or so I think), why stop now?
Then considering they can't easily find new companies to take ads from considering what happened to the first 3 companies that gave ads, no one sane would want to work with tpb, and they couldn't buy or maintain servers, then finally in current form they would go down.
Of course some methods to keep it alive(fake ads, donations etc.) will be found, and of course someone else will just create a new one but they seem to be interested in making tpb very hard to maintain, take it down even if it is only for days and make sure no one in their right mind would want to create a torrent site.
Now, why I'm wrong and why they don't do just what I said?
why is hotmail so popular in this list? I thought gmail was the most used and even yahoo seems to go on par with gmail here.
May it be because they didn't actually hack dropbox but just hacked about 400 accounts and hotmail users were easier targets because that demographic was more like our parents?
Also the list skips from b-e to b-i in 400 users, surely if there were 7 million email addresses this shouldn't be the case?
This can be easily done with "Faker", see: https://github.com/fzaninotto/Faker
It can create fake names, locations, account info, credit cards and so on...
Not sure if considered bug or "feature" but after first level, on levels that require you to go to your starting point, i.e.: draw a heart or circle, you can click on your starting point again, winning the level with all your nodes remaining. This can be used to skip levels.
https://github.com/shagabutdinov/sublime-shell-status
The installation instruction said: "There is 'sublime-status' file in this package. Put it in your 'bin' folder..."
I put it in my bin folder, but it didn't read it. This was because on line 20 at shell_status.py, you -only- looked into package folder(and none of "bin") if the default wasn't changed. so unless I changed the settings and put some other name as my command, putting "shell-status" file in my bin folders wouldn't work, thus putting the default file in "bin" doesn't do any good. Just a mismatch between the documentation and code I suppose.
It also didn't create a ShellStatus/ folder under Packages/, which is the place you look for commands, so I had to create that as well.
There was also no entry for settings under "Package Settings", so I had to find the settings at Packages/User/ShellStatus.sublime-settings, it would've been better if I could go Prefences>Package Settings>ShellStatus like I can do with other packages.
Also the example on that page doesn't work, but again this is a minor detail too. There is no "<?php", so it just prints the file content itself. If you just add "<?php" after the comment it works. http://hastebin.com/ezirazekaf.php
I also have a request for anyone developing sublime plugins: I want to execute a shell command while I am working on the file, in-line. This is similar to some of your plugins, so I thought you may be interested. The output could be a comment. This would be useful when developing cli files, or just standard files if we can call it with "php arg1 arg2" or just "arg1 arg2" and have this file run with the correct path, get its output. Some plugins offer terminal access, but it is done in a separate/embedded window and the output is in console or a new file, and they offer no shortcuts to "just run the current file"
Anyways, thanks for the plugin. I will be using some of this.