Sublime Text 2 is a text editor for OS X, Linux and Windows, currently in beta.
{ "command": "move", "args": {"by": "words_ends", "forward": false} } doesn't do anything
Haskell "module" keyword versus identifier with same prefix
The word "module" is a Haskell keyword, however, creating an identifier with a prefix of "module" is also valid. e.g.
modulez = "hi" -- valid Haskell
Unfortunately, this causes the editor to think I have used the module keyword, which screws up highlighting.
The great environment scam
http://www.thehindubusinessline.com/opinion/the-great-environment-scam/article5075991.ece
The exploitation of natural resources to benefit select industrial houses under the pretext of catering to the socio-economic requirements of the people has become a matter of serious concern. Of course, for the economy to grow we cannot avoid utilising natural resources. The question is: How should we make use of them?
The answer to this simple question is not simple because the issue of utilisation of natural resources is a sensitive matter. Of late, the wrongful allocation of scarce resources such as oil, gas, iron ore and coal by unscrupulous elements has brought the issue into focus.
Examples of how public money has been virtually looted include the 2G spectrum scam, the coal gate scam, irregularities in the exploitation of natural gas in the KG basin, and allocation of iron ore mines in Karnataka. What is alarming is that while states lose huge chunks of revenue due to dubious methods of allocation of natural resources, corporate exploitation of resources to bolster financial prospects ignoresthe consequent ecological imbalance which affectsthe habitat of the regions concerned. But amid all this noise, there is a more fundamental question that has not been asked — what is it really that we are losing?
The loss to national exchequer is the manifestation of only one world view. It is a computation of the loss in rupees incurred by the national treasury because a whole set of people ducked the system. But in fact, the country is losing much more than revenue.According to a Greenpeace India report over 1.1 million hectares of forest are at risk from coal mining in 13 coalfields in central India that the report analysed; 40 others still remain to be evaluated. The estimated loss of Rs1.86 lakh crore is only the notional value of a single resource; it does not include the value of anything. The land is scarred, without concern for economic losses nor legalities.
A programmers ultimate too.
An ability to test compiled code, since we can build .cpp, .rb, .d, etc
selecting/painting text with mouse in vintage mode will stop ui
Vintage mode / mac os x 10.6.8
- Selecting text while your mouse pointer goes outside the editor area will jam the whole app and will have to "force quit" it.
Ctrl+Shift+W closes the program, not all of the tabs
When I want to close a lot of tabs quickly, I use ctrl+shift+w... but instead of closing the tabs, it closes sublime. I'd really just like an option to say "no, don't close sublime, just close all of my tabs."
Investigative Training at Koyal Group: Labour calls for new cyber-crime powers
Labour wants new powers that allow security services to crack down on cyber-crimes, but only with extra checks on how sensitive data is used.
A 30 per cent hike in recorded online fraud is just the "tip of the iceberg", shadow home secretary Yvette Cooper will warn, but fears about abuse of information by British intelligence agency GCHQ in the wake of leaks by ex-US security contractor Edward Snowden means new safeguards are needed to protect privacy.
Last year controversial plans by Home Secretary Theresa May to enable the police and security services to track emails and other online communications under what was labelled a "snooper's charter" were blocked by the Liberal Democrats.
Cooper will warn the government it must not "bury its head in the sand" as she calls for reforms to keep up with the ever-changing cyber world, saying much stricter controls over access to private data must be introduced to give the public confidence amid fears about the way information can currently be accessed and used.
Today, in a speech in central London to the Demos think tank, Cooper will call for a new national strategy for tackling online fraud, tougher action to tackle online child pornography and an overhaul of parliament's Intelligence and Security Committee, which keeps a check on the work of the intelligence agencies.
She is expected to say: "In the face of growing online crime and abuse, and the use of online communications by criminals and extremists, the police, intelligence and security agencies need to be able to operate more effectively in this digital world. But for them to do so, we also need stronger safeguards and limits to protect our privacy and sustain confidence in their vital work.
"The oversight and legal frameworks are now out of date. That means we need major reforms to oversight and a thorough review of the legal framework to keep up with changing technology. And there are difficult wider challenges about privacy, data and the private sector, and how we protect British citizens' interests in a global Internet where everyone follows different rules.
"Above all we need the government to engage in a serious public debate about these new challenges and the reforms that are needed. Online communication and technology is forcing us to think again about our traditional frameworks for balancing privacy and safety, liberty and security.
“The government can't keep burying its head in the sand and hoping these issues will go away – they are too important for that, for our liberty, our security, the growth of our economy and the health of our democracy."
Cooper will highlight the growth in online child abuse as one of the most disturbing developments. Last year the Child Exploitation and Online Protection Agency received 18,887 reports of child abuse – an increase of 14 per cent on the year.
But according to Christian Berg, CEO of NetClean, a company that works with police, Internet service providers and private companies to prevent the exchange of child sexual abuse material, tough words are not enough to tackle the problem.
“Today’s cyber criminals are becoming more sophisticated and their crimes are more complex to investigate,” he said. “The widespread use of smartphones and digital cameras means that police must process a mass of visual evidence as well as written or numerical data. Existing forensic tools aren’t designed to deal with this.
"Police and intelligence services can’t act tougher without the right tools to help them do so. Cyber crime investigations today require police to process terabytes of data comprising millions of individual files. They can't do this effectively with manpower alone.
“It’s definitely possible to take a tougher approach without infringing on privacy. Illegal content can be identified without either a human or a computer having to ‘look’ at it.
“Every image or video leaves a digital fingerprint behind, and by tracking those that are known to be illegal police can spot new occurrences without searching through other content. We’ve got to be smart to tackle cyber crime – talking tough won’t cut it."
Add a version which can run in the terminal
Bug with auto_indent and inserting snippets
Here is a complex bug I stumbled upon: when you recreate an indent by yourself (adding a new line, erasing inserted indent, adding your desired indent) and then insert a snippet with a newline at the end, then if there is no tabstops, then the indent is added ok, but when there are tabstops before newline, then the auto_indent is not created. And fun thing: that happens only when `auto_indent` option is enabled, if you'd disable it, there would be an automatic indent for snippet, but the bug won't be there.
Well, that's complex, but here is an example code that reproduces the problem and what you could run through ST's console:
edit = view.begin_edit("lol");view.run_command('insert', {"characters": "\n"});view.erase(edit, sublime.Region(view.line(view.sel()[0]).a, view.sel()[0].a));view.run_command('insert', {"characters": " "});view.run_command("insert_snippet", {"contents" : "snippet: $1foo\n"});view.end_edit(edit)
Or if expanded:
edit = view.begin_edit("lol") view.run_command('insert', {"characters": "\n"}) view.erase(edit, sublime.Region(view.line(view.sel()[0]).a, view.sel()[0].a)) view.run_command('insert', {"characters": " "}) view.run_command("insert_snippet", {"contents" : "snippet: $1foo\n"}) view.end_edit(edit)
If you'd run it somewhere with an indent, the indent would be created at the end of the snippet when you'd `tab` to the ending tabstop. But if you'd remove the `$1` or set `"auto_indent": false`, then it would magically work.
dark menus in osx
it would be nice to have dark menus (or customizable) in OSX, the sublime window is pretty, why not make the menus pretty too? i made a little example
and here is a screenshot
Customer support service by UserEcho