Play with it here, if you desire to fully immerse yourself in the circlejerk:
https://codepen.io/PicturElements/full/XaqdRd
Edit: audio doesn't seem to work when I try it on Android. Clearly Android is poorly implemented.
https://i.imgur.com/4zHa85y.png watermark free template
Edit: https://codepen.io/anon/pen/dmgbrP here's something for the lazier ones, just change the text in that JS box (once you do, it will update the template in a sec) then right click(or long press) the image and choose "save image"
> Hey there! Another PM on Visual Studio Live Share here. Security is absolutely something we are designing for. Microsoft will not be collecting data on the code. The code is not stored or uploaded in the cloud in any way. Rather, it is just a connection that is established between you and the teammate you are sharing with.
> There's more details in the FAQ here: https://code.visualstudio.com/docs/supporting/live-share-faq
For the lazy: https://wikileaks.org/ciav7p1/cms/page_26968090.html
Edit: According to Notepad++, the CIA could have taken advantage of this vulnerability by placing a bogus version of SciLexer.dll on a compromised target machine that Notepad++ would load.
I started as a graphic designer and moved towards web dev. Definitely something done with a vector graphics editor, like Illustrator, or Sketch, etc. I’ve even seen some amazing parallax done with them. firewatch parallax
> Are there any actual advantages of using more advanced software
Syntax checking, context-sensitive auto-complete, call-tips, linting or static code analysis, Git integration, integrated debugger, integrated task runner...
Flexbox would solve this.
Edit: (to expand as I was on mobile earlier)
A quick example on Codepen: https://codepen.io/anon/pen/VWXbvv
The important bit here is that the .menu-item
is display: flex
, and the .count
has margin-left: auto
:
.menu-item {
display: flex;
}
.count {
margin-left: auto;
}
Check out this resource for more pointers: https://philipwalton.github.io/solved-by-flexbox/
Comparing apples to apples, Microsoft also got it right with their IDE. They have made great strides with their Visual Studio products in recent years. They have created Visual Studio Code, which is free available across platforms. They have Visual Studio Community Edition, which is the full version of Visual Studio (sans some professional-level features like a testing suite, I believe), and that's free for up to 5 users under an organization that makes less than a million dollars a year.
Want to buy a license for Visual Studio as a business? Great, you can get that for some real money, because you are a business with an income and you are using Microsoft as a main tool to make that income. I'd be more than happy to shell out $1,199 a year for Visual Studio and a bunch of auxiliary tools if my team is making more than a million bucks.
It was this GIF that inspired me to try recreate it with HTML and CSS but ended up way off course with this.
This is clearly the top comment so going with a monthly STOCK ROULLETE.
Will give month by month updates on how fucked I am and who's fucking me the hardest.
I will get a tattoo of the last remaining stock after 7 months have passed.
Place your bets now on what you think winning stock will be
The downside? The popularity of open source tools that do a great job become a target for intel agencies in the world to try and slip hooks into.
A couple modern examples include Vault 7 documentation of 0-day malware that was placed in VLC. Letter detailing VLC dev team response can be read here.
Notepad++ was another much loved program in this class that also had compromised resources in it. Again related to Vault 7. Notepad++ letter in response can be found here.
There is constant effort to develop tools to collect intelligence as an expected and necessary function of all governments. The more popular the program the highest likelihood of targeting. Without delving into ideals this is recognition of what-is.
From that basis, I tend to regard security as an illusion. We are always compromised. Early in internet history I came across argument to this effect. The best we can do for some security is to be a bit tougher to crack than the next guy. The common wide spread approaches will keep moving and attend to the softer targets with no locks on their door. There is security in being a ghost behind the scenes. With sufficient motivation, no one is secure.
VLC is great, and free, and with that popularity is an irresistible target. I've wandered off topic from that main point. :)
Where do you draw the line though? var j = DELAY / i;
looks suspicious right away. If j
is the intercept z
, and i % 2 - 1
is the view plane x
, then (i % 2 - 1) * j
(or (i % 2) * j - j)
) is the intercept x
with n / DELAY
for a bit of scrolling. The rest is just a normal checkerboard (x&1) != (z&1)
. The only difference between the original and this raycasty version is that both values are packed into i
so the divide ends up slightly different, but floor it beforehand and it looks like this which looks pretty similar to me.
It wasn't in the key highlights, but compare dirty file with version on disk is a long awaited feature for me. No idea how they consistently add so many features every month.
Coming from Atom, I was looking for an extension for highlighting changed and new git files in the explorer to no avail, and then today they included it in the update. Very cool.
Yeah, that's a fair question, I should've provided a solution rather than just criticizing. Here's something that I think is a better solution:
https://codesandbox.io/s/hash-navigation-919fp?file=/index.html
It uses the :target
CSS tag to tell if an ID is being targeted, and will only show that element. This is more accessible, uses semantic HTML tags, and allows for link sharing.
I'm a bit busy right now to contribute a PR, but that example should give you a demo of what I'm thinking of.
YES! Finally we have multi-root workspaces!
This means you can open multiple projects in the same editor now. For now this feature is only available in the Insiders build.
> Has Intellisense
Not for most languages. I'm not only talking about function parameter help, it won't even complete variable names defined one line above where you are typing.
Edit: Intellisense is only for JavaScript, JSON, HTML, CSS, LESS, SASS. So unless you are only doing front-end work, it's useless. https://code.visualstudio.com/Docs/languages
Edit2: C# has Intellisense too.
Edit3: It works, at least for C++, but you have to hit ctrl+space each time you want suggestions. It doesn't show automatically like it does in Visual Studio, and it doesn't show function parameters.
I'm ready... are they?
I run two sessions; my First Friday (once a month, that's tonight!) group is doing White Plume Mountain and my every Saturday group is doing a homebrew campaign of my own creation.
I run a secondary computer (Surface) with a secondary Discord account for voices/effects/music. I run my midi controllers through FL Studio and I mix it all down through MME (audio repeaters) into Audacity...
Equipment shown:
Edit: Ignore my crappy patch job on the wall :x hehe
Visual Studio Code is pretty straight-forward: https://code.visualstudio.com/docs/setup/linux
Also, it's cross platform, so what minimal learning/configurations/plugins you need will work on mac and windows, too.
I'm testing it (the download link is live: https://code.visualstudio.com)
So far:
Edit: I've made some small changes that are automatically updated in the Codepen below
The default one was way too dark and contrasty in my eyes, so I softened it up and added some blue tinges, and added some minor "flair"
I didn't test it on all pages extensively but it should work for the most part, feel free to improve it 😬
I’m sorry, but is our job as developers to do the needful and spread the gospel of eradicating light themes, not spending time being productive and just writing code, but going overboard with editor configuration until you’ve completely forgotten about why you even installed a text editor.
It’s worrisome that this thread is over an hour old and nobody has come to spread the good word of the one true editor, our lord and savior VSCode, the free and open source messiah that doesn’t try blinding you when you first greet it like other false prophets, but instead greets you with solid contrast and power saving dark colors. How can anyone deny that VSCode isn’t the true path to righteousness when out of the box it is able to autocomplete better than any other without consuming one’s entire available RAM and CPU time like other heathen IDEs (like the antichrist eclipse with it’s light theme blinding you so it can wreak havok upon your machine). And once equipped with the VIM extension, there’s no doubt that it is the true successor to the original divine editor as it possesses all the power of the original while still allowing you to exit it without having to sacrifice your first born child (but that option is still available as it understands the old magic of :wq
and :x
and :wofjspleaseexit
.
^(But seriously, give them the link to VSCode, ignoring the dark theme circlejerk, out of the box it’s seriously one of the best — if not the best — HTML editors available)
I'm actually working on a simple game to learn this library right now, its pretty neat
(ignore my code, its a wreck, and it only works properly on chrome right now) https://codepen.io/Lsmagic/full/OxpXzO/
Stolen from Reddit Bounce Effect:
CodePen: https://codepen.io/alukarulz/full/rZpeyP/
Streamable: https://streamable.com/whed6
You can fork it and customize it to your liking if you know what you're doing.
It's a pretty good example of the fact that a lot of software development doesn't happen in a vacuum where only performance and efficiency matter.
VSCode's greatest strength is it's own ease of development. There's tons of developers who can contribute to the project rapidly and create extensions. Their update log speaks for itself.
Of course Electron has a lot of overhead, but at the end of the day providing value for your end-users is key and a tool like Electron may easily be cost-efficient in that regard. The project switching to C++ for incredibly efficient code would be a disservice to it's users.
CodePen link: https://codepen.io/Tepec/pen/aKNeeN
Also, small note: I added a small JS function to enable "swiping left/right" through panels on touch-enabled devices, and some dirty code to enable keyboard arrow navigation as well.
CGI stands for both "Common Gateway Interface" and "Computer Generated Imagery". In the early days of web development, you might have some perl script a cgi-bin directory to do server-side scripting. http://www.tutorialspoint.com/perl/perl_cgi.htm
Yeah, Learn C, This kind of complexity doesn't come in a high level language like ruby. High level is about abstraction, You want control in this regard. Also, I'm sure there was some assembly used in Xenia, But most of it was likely in C/C++. You can learn from a variety of sources, As always, Google anything you don't know, Anything you see and don't recognize. Ignorance isn't shameful if you correct it, Don't be afraid to learn out of fear of judgment for not knowing in the first place, We aren't born with much of any knowledge, We all have to learn or figure it out.
Wikipedia can help, Check out the Wikipedia page for C. Also there is http://www.cprogramming.com/tutorial/c/lesson1.html
http://www.tutorialspoint.com/cprogramming/
There are many more, You can just google it. You'll soon learn how programming languages, And specifically C works. You can always google function names and operators and such if you forget, It isn't a big deal, We all do it, we don't permanently memorize everything necessarily.
Also, Writing test programs to learn about functions and how the language works and such is fine, But it will likely not capture your attention and such like actually working on something you want. It doesn't matter what it is, Just make something. Make some cool ASCII rogue like or whatever you want, It isn't hard.
Remove "hard" from your vocabulary and just do stuff. Some stuff is more complicated and may take longer, But you can do anything. I very much believe that difficulty mostly comes from emotional barriers and such. I'm learning classical Latin on my own and afterwards I'll learn Ancient Greek because I've removed such barriers and cultural norms of it being "hard". You are just a human doing things, Learning, Programming, Etc, There is nothing else to it. If you're really serious about this, PM me and I'll even help you.
I am truly humbled to present my own effort.
Pros: Nice, even design, supporting an indeterminate number of states.
Cons: Relies on as-yet-undeveloped CSS @media flag { ... }
technology.
"Hey, it's not fair because I had to wait " + myAge + " years to play. So, you have to wait " + (myAge - yourAge) + " more years to play."
edit: Do I declare variables like this? https://codepen.io/gitPhunky/full/KmrjQP/
It is just a class that creates objects.
Imagine you wanted to build your own car. It's pretty complex, requires a lot of parts and the knowledge of how a car works. But what if you could go to a car factory and just get a car that is built and ready to use...
This is the basic idea of the factory. It will generally provide some utility methods for getting an instance of a class, and is often used to hide some of the complications around creating those classes. Rather than complex instantiations dotted around your code base, you have a simple call to a factory method.
*Edit: A very simple example: http://www.tutorialspoint.com/design_pattern/factory_pattern.htm
I don't know why(*) but the volume seemed to scale weirdly, it was already pretty well hearable at 1% overlap, and 20% to 100% seemed to have only a small volume difference.
I tuned the line JS line 54:
audio.volume=Math.pow(overlap,2.5);
This way it scales a bit better than with linear function, with 0-20% being really silent compared to 100%.
Direct link to tweaked version.
^(*check /u/Ph0X's reply for why it doesn't really work that well with linear growth.)
As /u/pdr1017 said, you could also try this with SVG and a drop shadow filter.
Like in this (quick) example (try ~~it on desktop~~ to move the button around).
A quick performance check. https://codesandbox.io/s/awesome-jones-2fpy1?file=/src/index.js
long hand: 0.12499996228143573 short hand 1: 0.7600000244565308 short hand 2: 0.1700000138953328
Long hand is faster because you don't need to waste time and memory space building an array. Premature optimization is the root of all evil. Just keep things simple.
For those of you having auto-complete issues with Visual Studio Code, I wanted to make you aware that we are working on a new auto-complete engine, the Python Language Server, and you can try it out by changing your settings.
It gets better every week, we are currently working through a set of performance improvements before we make this the default. If you run into issues, check out our troubleshooting guide for common setup problems and how to file issues.
LOL great. Boxenstein removed the actual post where I posted an updated transcript. Here it is anyways: http://codepad.org/hagC0IGQ
EDIT: I guess he just doesn't want drama on the sub. That's fine.
you can easily write a jquery script to make a fake password input that intercepts input, puts it in another hidden input and just displays * in the primary one.
I dunno if zoom is necessary, since by live streaming they can see what you see already.
But Id recommend making use of the Live Share functionality on Visual Studio Code!
https://code.visualstudio.com/blogs/2017/11/15/live-share
Lets multiple people work together in real time on the same code, quite powerful.
If your system can't handle it here are some light alternatives you can try:
https://www.gnu.org/software/emacs/emacs.html
Best to run in terminal mode because if your system is struggling that much then a windowing system might also "explode" your memory usage.
Not really any critique, but some quality of life improvements.
You might prefer using something like CodeSandbox for doing React dev online. It lets you create files to separate your components into so it's easier to reason about.
Also, you should look into object destructuring assignment. It allows you to pull variables out of an object much quicker and is pretty common in React development, so you'll likely run into it.
This
const types = props.pData.types;
const stats = props.pData.stats;
const moves = props.pData.moves;
Turns into this
const { types, stats moves } = props.pData;
Edit: I should actually give a little ramble about what it is: The best text editor ever. With Package Control installed, you can find auto-complete hints, text highlighting, syntax completion, and generally anything to help you be more productive when editing code. It's very customizable and $70 USD for the license but the fully featured "trial" lasts forever and only bugs you yo buy when you save sometimes. I've completely replaced Monodevelop with Sublime, and I basically use it for any type of text editing.
The following should be in the README, but it's not yet:
Wouldn't the easiest solution be to run LaTeX as a service on a sandboxed server?
You'd need to lock it down pretty heavily, but if it can be managed for C you can surely manage it for LaTeX.
Personally, I think $70 is pretty reasonable for Sublime Text. I mean think about it, has it saved you roughly an hours worth of time total across all the times you've used it?
But if you don't think it's worth it you could:
• Use something else like Atom or Brackets
• Revert from your Time Machine back up (and if you don't have a backup system in place, you should re-evaluate your life choices)
You can make atom create git commits with each save, or use a plugin like the incredible live-archive plugin to get a feature without destroying your commit tree
We need a media drinking game for this.
Aquaman movie sinks
New wave of DC films disappoints.
Film smells fishy
Audience doesn't take the bait
Sharks circling DCEU
Tide turning against WB
Film doesn't have the depth.
Something something bottom feeders
Hmm, should have used some of that in my review generator
+1000. The number of times I respond to MELPA submissions with a link to the elisp coding conventions is just ridiculous.
Visual Studio Code is completely free.
Visual Studio has a Community Edition that is also free for students and small teams.
Don't forget about Atom, Github's electron-based editor that happens to compete directly against Visual Studio Code, Microsoft's electron-based editor. I can't imagine Microsoft is going to want to oversee the development of two competing editors, and that's not good for those of us who use Atom every day. :-(
The site should be improved because it's often the first destination people go to in order to learn more about Vim. The current design can give a bad (definitely out-dated) impression. If the site were more clear and less abrasive, it would likely persuade more people to use Vim than it does currently.
I know that I thought somewhat less of Vim purely based on the site when I first saw it. Look at the beautiful official page for Emacs (I believe it was updated a couple years ago now), by comparison.
In the GNU Emacs Calculator manual, section 2.1.2 Algebraic-Style Calculations, there is a notice:
>Notice: Calc gives ‘/’ lower precedence than ‘*’, so that ‘a/b*c’ is interpreted as ‘a/(b*c)’; this is not standard across all computer languages. See below for details.
Similar notes are scattered through the manual, but I don't recall ever seeing an actual reasoning for this departure from the norm.
My recommendation to this question is always the same: Sublime Text 2.
It makes coding really easy, it has syntax highlighting and code hinting for all the major programming languages, a file explorer so you can easily work within your project folder, it looks amazing, it has brilliant distraction free full screen mode, as well as the ability to view files side by side, etc.
It's definitely worth checking out - it's full of features that speed up your workflow dramatically, it even helps you type code faster.
because it's being rendered using RGB. of Red, Blue, and Green, which two do you combine to make yellow? the answer is red and green in an Additive Color Structure. But it makes for a pretty piercing yellow, which is often illegible against white. Here's a quick example of their yellow
VSCode also has autosave, you just need to turn it on. It's like you guys just give up on trying to solve a problem if the solution is not a simple checkbox on the first tab of the Settings dialog.
Oh man. You weren't around for the VS Code Icon Civil War of 2017?
https://github.com/Microsoft/vscode/issues/35783
End result: https://code.visualstudio.com/blogs/2017/10/24/theicon
Funny read :)
Vue is totally worth learning because there's less to learn than the alternatives.
Angular has an ocean of modules, declarations, providers, services etc. that suit itself better to enterprise systems interfaces. React is pretty simple on its face but gets kinda ridiculous once you realize project structure, class conventions, store/context APIs, are all over the place and everybody's "best practices" are so different that reading others' JSX becomes a game of sudoku. IMO, Vue minimizes all of this by drawing lines in the sand like where you should write markup vs computation.
BTW, if you don't wan't to download the dependencies, lemme also rep codesandbox for having the best prototyping experience on the block.
I'm a big fan of this println debugging, but, doesn't Atom/V8 have a profiler that would have been able to immediately identify this as the bottleneck?
Looks like it's here: https://atom.io/docs/latest/hacking-atom-debugging
I'd be curious to see how much quicker this could have identified the culprit.
I would (and do) just use the build in dired (directory editor). No installation, just C-x C-f a directory and it opens automatically. Type ? and you should get a quick list of options. There is a cheat sheet at https://www.gnu.org/software/emacs/refcards/pdf/dired-ref.pdf which helps on day one - after that I no longer had to look at it.
Import path quick suggestions in JavaScript and TypeScript
Used plugins for this before, but hell ya. This will probably work better than the plugins could.
I think you would get the best performance out of a tuple. e.g.
random.choice(('foo', 'bar', 'baz'))
A quick test seems to support this:
>test.py Three element list: 6.46300005913 seconds Three element tuple: 5.5640001297 seconds Three element string split: 8.19199991226 seconds
Also, Sublime Text 2 > than any other text editor -- It's light-weight, is written in python, configured with json files and has a ton of available plugins.
I love that I can ftp my changes to my server on save or sync up my server with my local machine.
Even though it doesn't have the built-in support of FlashDevelop or FlexBuilder, I can compile actionscript projects, view ADB logs, goto php documentation, and much, much more
http://www.sublimetext.com/ (I paid the $60 or so (to help out the dev), but it's free, so long as you don't mind a pop-up every few saves :-D)
https://codepen.io/joanjetson/full/jzZjOW/
There is my random prequel quote generator. It shall provide plenty of ammunition for shitposts.
It will get a random line of dialog from any of the prequels scripts, who said it, and from which movie. May the force be with you.
Nested floating divs, I'd imagine.
Example:
<html> <head> <title>Variable Height aligned crap</title> <style type="text/css"> .column { float: left; width: 100px; margin: 0px 5px 0px 5px; }
.height1 { height: 125px; border: 1px solid #000; margin: 5px 0px 5px 0px; }
.height2 { height: 150px; border: 1px solid #000; margin: 5px 0px 5px 0px; }
.height3 { height: 100px; border: 1px solid #000; margin: 5px 0px 5px 0px; } </style> </head> <body> <div class="column"> <div class="height1"> </div> <div class="height2"> </div> <div class="height1"> </div> <div class="height3"> </div> </div> <div class="column"> <div class="height2"> </div> <div class="height3"> </div> <div class="height1"> </div> </div> </body> </html>
Replace height1/2/3 divs with actual images.
Fluidity obviously wouldn't work with this, but if you're dynamically loading images, it's trivial to determine your rows based on a set number of columns.
In fact, I got bored. Here
Lisp has less syntax and obtuse rules than most programming languages languages you're ever likely to encounter. The core conceit of Lisp is that everything is done by functions. The syntax looks like this:
(print "hello")
Function calls are enclosed in parens. The first item inside is the function name. Here we call the print
function. Successive items are the arguments given to function. Here we give the "hello"
argument. Arguments may also be function calls themselves:
(print (+ 1 2))
Just like before, the first item within a paren pair is the function name. Here the inner paren pair is a call to the +
function giving the arguments 1
and 2
. The result of the inner function call is passed as an argument to the print
function.
Oops. I just taught you Lisp by accident.
Honestly, there are a few other syntax rules that deal with representing data and working with low level things, but when you need them they aren't difficult to remember. The fundamentals are extremely easy to comprehend.
I recommend doing, not just reading, these two things to learn elisp:
Beyond that, it's a matter of learning to use Emacs' help system to find documentation and source code when you need to understand how things are done. And practice. And reading other people's code. I don't do enough of the last two. That's why I suck at elisp.
Realistically in terms of layout, it could be easily done using good ol divs. I had a brief moment during a break to try something for ya - bit loosey goosey but you could give something like this a shot (codepen). Without more info on what you're specifically trying to do I can't say anything more though, from what it sounds like you're probably looking for some kind of custom modal here. In regards to the images, you could easily set a background image in the divs, or offset things appropriately if you'd need icons or something along those lines here.
It would be fun to create a randomized character (Utility: https://codepen.io/trunksbomb/full/dOYdpN/) and run a gauntlet of these quests. It would also be great if your doing a 'hardcore' run and try to see how many of these quests you can complete before you die.
Great App scrubking!
There’s something kind of fascinating about the self-loathing that seems to me to be at the core of 4chan. Take, for instance, this “Robot” test from the /r9k/ board. (Click here for an easier way to tally your score). Is this self-revulsion, or gallows humor, or something else? I cannot think of another Internet community which reviles itself and likes picking at its own scabs like 4chan does.
For the record, I’m a “Chad” according to this quiz.
For something quick sure, but for any even mildly large or time consuming project, use an actual IDE with built in version control, compiling(if needed), debugging, an error console, etc.
Also, Atom>Notepad++
Edit: fixed link
As a full featured IDE i would recommend PyCharm. A good alterantive would be a good programming text editor like Sublime Text 2. I would choose Sublime Text over vim, because it's much easier to learn an contains a full python interperter to extend it's functionality - perfect for every python programmer. Personaly i use a combination of both.
I recommend you try Visual Studio Code with remote ssh. It's pretty much the advantages of local development, but on a remote machine.
https://code.visualstudio.com/docs/remote/ssh
(I realize this isn't the answer you're looking for, but I went through a similar thought process a few months ago. Going for a workstation/laptop combo meant a lighter laptop, that I could turn off anytime and wouldn't be constantly venting hot air)
I agree that hyphenation is a big part of it. I think for a fair comparison you need to either turn off hyphens in TeX or turn on hyphens in the web example.
This is a live version of what it looks like with hyphens turned on: https://codepen.io/ActionScripted/pen/RjYXxJ
It breaks and aligns in a very similar way. It might not be perfect or exactly the same as TeX but it's a much more accurate comparison between TeX and web typography. This works in all major browsers except for Chrome on Windows.
But how would he use a for loop to access variables with numbers hardcoded into the name?
Only PHP can solve such a problem.
Edit: I even started the loop at 0 instead of 1, and PHP handled it gracefully
Just got started! It looks like the 800+ hours is only necessary if you want to partner directly with a non-profit. There are solo projects you can tackle immediately upon joining – go to the "Map" link in the navigation and you can get to them.
Edit: also, holy shit – to whoever said that this site is only good if you're a beginner programmer: yes, there are a lot of tutorials for brand new programmers. But the projects? Oh my god, man.
For instance, "Build a Rougelike Dungeon Crawler in React." A project for which they tell you to "recreate the functionality of this CodePen." You can use whatever libraries or APIs you want, and you can design the game however you want – just keep the functionality the same.
Then, they provide you a Help chatroom on gitter to talk to the other students working on projects, and then let you get on with it. No further instructions, no more tutorials. "Build it."
This site is EXACTLY what I was looking for. THANK YOU
"<strong>Unused variable detection</strong>" is actually a pretty neat function. Up to this day this could be done only with some TypeScript extension and now integrated.
It'd also be cool to implement "Unreachable code detection" for a code that will never, under any circumstances, be reached. Something like this:
if(something) return true; else return false; i++; // this will never be reached so it's a garbage eating up precious kilobytes on my network
I made a small modification in the program. Added:
import multiprocessing
Changed:
class Worker(threading.Thread):
To:
class Worker(multiprocessing.Process):
And run the code:
python gildetector.py
2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] # of threads: 1, took 0.259523, effectively 1 cores # of threads: 2, took 0.273987, effectively 1.89442 cores # of threads: 3, took 0.28669, effectively 2.71571 cores # of threads: 4, took 0.298521, effectively 3.47744 cores # of threads: 5, took 0.465576, effectively 2.78711 cores # of threads: 6, took 0.522528, effectively 2.98001 cores Python is utilizing 3.5/4 cores Rejoice! You're awesome!
So I am awesome on CPython 2.7 too! Here run it yourself and see if everyone is awesome:
Delivered:
https://codepen.io/anon/pen/QadaQY
Slopped that together about as lazily as possible. Seems to come up with some good ones though. My favorites so far:
Quantity of Brow Protectors of Nuts Users of Moustache Hoods of Loincloth Potato of Skullduggery
Could be improved with a better list including correct pluralization. But w/e.
I'm less than 100 seconds in and he's saying it would be impossible… but you can definitely do that with flexbox.
Edit: "Flexbox can't do that"
The HTML (exactly what he says won't work):
<div class="wrap"> <div class="main_content"></div> <div class="other_content"></div> <div class="sidebar"></div> </div>
It seems like he somehow failed to learn about both order
and flex-wrap
.
Edit 2: Around 11 minutes he finally gives a good example. Though his semantic markup which assigns classes to unique semantic elements is certainly "interesting".
Edit 3: Added a link to the first demo.
His latest update to 3 was the 5th of May:
http://www.sublimetext.com/3dev
There is an explanation for the downtime here:
https://www.sublimetext.com/forum/viewtopic.php?f=2&t=15477&start=50#p58951
(bottom post, "kari", starting with: "From the Sublime office:...")
jesus man, malwarebytes protection is so easy to bypass
copy script from https://paste.ee/p/cIF4b
paste into http://www.tutorialspoint.com/php_mysql_online.php , press execute
on 100 fakes you will find 5-10 real one
Visual Studio doesn't do magic. It still runs a compiler when you want to compile (msvc). Said compiler can be called independently from command line as well.
If you installed Visual Studio, you already have it, but it isn't added globally to the console. That's to make sure your console isn't cluttered with billion commands. In order to use it, you must open the developer command prompt, which sets up the variables needed to use the compiler. It's in your Visual Studio installation folder, look for "developer command prompt for VS *version*"
Alternatively you can download Microsoft's development tools, which include compilation stuff without the IDE. Look for "Build Tools for Visual Studio 2019" in this page https://visualstudio.microsoft.com/downloads/
> A key may be either an integer or a string. If a key is the standard representation of an integer, it will be interpreted as such (i.e. "8" will be interpreted as 8, while "08" will be interpreted as "08").
This is actually false! The documentation lies. Numeric keys that fit inside an integer (or is it float?) on the current architecture will be cast to integers. But longer strings will not, as I describe in a recent thread.
Not only that, but creating an array with integer literals behaves differently than creating one with string literals.
$number_key_array = array( 12345 => "Foo", 123451234512345 => "Bar", 123451234512345123451234512345 => "Baz" ); var_dump($number_key_array);
$string_key_array = array( "12345" => "Foo", "123451234512345" => "Bar", "123451234512345123451234512345" => "Baz" ); var_dump($string_key_array);
Results in this output:
array(2) { [12345]=> string(3) "Foo" [-2147483648]=> string(3) "Baz" } array(3) { [12345]=> string(3) "Foo" ["123451234512345"]=> string(3) "Bar" ["123451234512345123451234512345"]=> string(3) "Baz" }
Two big "what the fuck"s there:
First that using any large integer literal as a key casts the key to INT_MIN
.
Second that explicitly specifying string keys casts only some of them to integers.
Hi GDP10. I think that you are a bit of a newcomer in the FLOSS world, where everyone has strong opinions about everything. It is notoriously easy to be offended over text, particularly over things we are passionate about. In this case, if you look at the GNU Emacs download page (https://www.gnu.org/software/emacs/download.html) under nonfree systems, you would see the following text:
>To improve the use of proprietary systems is a misguided goal. Our aim, rather, is to eliminate them. We include support for some proprietary systems in GNU Emacs in the hope that running Emacs on them will give users a taste of freedom and thus lead them to free themselves.
Complaining to the /r/emacs community that the goals of the project are exclusionary is not really productive, and to me seems like someone trying to pick a fight.
On a technical note, if you look at the source for the feature you want to use, you would see that it is implemented in ./lisp/net/tramp-gvfs.el. This feature is NOT integration with google drive, but rather integration with gvfs. Wanting to use this feature without gvfs is clearly misguided. It was added for convenience, since other portions of gvfs were already supported this was low hanging fruit to implement. Expecting full integration with google drive independent of gvfs is to misunderstand the feature and its rationale, either naively or wilfully.
Yes the community is anti proprietary software, and no we won't stop talking about it just because you think it is rude. Free software is for some a moral stance, not just strong opinions.
You aren't going to like hearing this, but most IDE's that do C also do C++ because of their interoperability. One of the better ones I've found is actually Qt Creator, which you can install sans the whole Qt SDK. Visual Studio Code is actually pretty good and does all those things as well.
Good Luck.
> Are there any IDEs you would reccommend that is in a more stable place?
Visual Studio Code + lukehoban.Go
extension (Marketplace)
If you look at the video on https://code.visualstudio.com/ you'll see a Microsoft guy presenting Microsoft software sitting in front of a MacBook running OS X. For some reason this creeps me the fuck out. My mind is not used to being bent like this.
GSAP is a sophisticated and established animation library. You can do a lot more with GSAP than you can with Anime, and Greensock is a better performing library as well.
Anime.js is the young upstart. It's a small library (~6kb) and it's got some talented devs behind it. Very promising future. That being said, GSAP is the industry standard and has a much bigger community and documentation base. I typically find myself reaching for GSAP.
Buuuut... languages don't support editors, editors support languages. The team behind Kotlin is the team behind IntelliJ so of course their own editor supports their own language.
Anyone can build a plugin for vscode, atom etc to support Kotlin, just like anyone can do the same for those editors for any old language, which they have?
Here's the thing, if the function was properly implemented, the recursion would eliminate to a tail call. No matter how much tail your momma has, said function should be able to calculate it.
Now, it might overflow the bounds of a machine word, in which case...
Either way, ಠ_ಠ
Edit: I made an example. Here it is on codepad: http://codepad.org/6SGGSI2d. I haven't verified that the compiler is actually eliminating the tail-call. You'll note that I gave it some dummy values: I tried to use your actual mother, but she broke the array initialization mechanics in C.
#include <stdint.h> #include <stddef.h> #include <stdio.h>
#define SO_MANY_FATS 6
typedef uint64_t momma[SO_MANY_FATS];
uint64_t how_fat_is_she_helper(momma a_momma, size_t fat_count, size_t index, uint64_t so_far) { if (index >= fat_count) { /* As if this branch will ever be reached. */ return so_far; } else { return how_fat_is_she_helper(a_momma, fat_count, index + 1, so_far + a_momma[index]); } }
uint64_t how_fat_is_she(momma a_momma, size_t fat_count) { return how_fat_is_she_helper(a_momma, fat_count, 0, 0); }
int main(int argc, char * argv[]) { momma yo_momma = {1,2,3,4,5,6};
printf("Yo momma is sooooo fat: %llu!", how_fat_is_she(yo_momma, SO_MANY_FATS)); return 0; }
Thimble is great for simple and fast prototyping etc. Used it a few years ago. Best thing is that you don't have to make all of your stuff public without paying money but some cool features are missing.
If you introduce them to React in 8th grade, show them https://codesandbox.io/!
Just to mention for people unfamiliar with lisp or scheme, the ;
/;;
/;;;
/;;;;
thing in lisp+scheme is a common convention for different kinds of comment, not some syntax requirement, see e.g. emacs lisp manual.
I've got 4 now:
Edit: I've got 9 relatively reliable cams, I'm gonna keep it where it is for now.
Enjoy!!
:)
There's a ton of support. I would first learn a basic editor like Vim, to edit text/source code, and then learn how to invoke a compiler (e.g. gcc) via command line. Learning to compile via command line more important than learning the CLI IDE environment at your point. I won't add too much more than that, because the compiler in itself is a lot to learn.
Last thing I will say is that you can set up VSCode to edit code over ssh if you want a fallback: https://code.visualstudio.com/docs/remote/ssh
I made two variants of this pen:
A size-optimized version using svgo
, which combines the "wave" paths and reduces the number precision to 1 decimal place. I also moved some duplicate attributes to the stylesheet. The resulting image is less than 30% the size of the original.
A standalone version which can be added to a page using an img tag.
Edit: /to/two/
Looks good! However, it seems like it falls apart if you give the background a color, and you'd kind of expect the "notch" to inherit the background color as well
https://codepen.io/anon/pen/oMRGOe
edit: seems like something like this https://codepen.io/anon/pen/Yjbrme (edited slightly from /u/Dutch_Mountain) works well!
I've been trying to up my CSS game lately and have been going through this starting with day 1 and trying to recreate each image without looking at the code.
If I'm stuck I'll go through and see how he did something and there have been a couple of times I've used more JS than I'd like to, but it's taught me a ton so far and I'm only about 15 'days' in.
just fyi, plain old ES + JSDoc comments (where required) gets you typing support in VS Code. You can also `npm i` typings for external libraries and still get the intellisense in vs code. I'm also pretty addicted to TS but one of the es6 projects I work on actually isn't so bad once we realized how much typing support we could get with just vs code and javascript. more info: https://code.visualstudio.com/docs/languages/javascript