prompt
stringlengths
4
3.12k
chosen
stringlengths
3
10.5k
rejected
stringlengths
3
8.98k
ios 8.0.1 released, broken on iphone 6 models, withdrawn
i'm still waiting for them to stabilize wifi on the ipad sith ios 8. their quality has really started to slip for me since 10.9 on mac.
for those who upgraded, no need to do a restore. you can just option-click &quot;update&quot; and downgrade the os back to 8.0.0.instructions: <link>
ios 8.0.1 released, broken on iphone 6 models, withdrawn
for those who upgraded, no need to do a restore. you can just option-click &quot;update&quot; and downgrade the os back to 8.0.0.instructions: <link>
upgraded shortly after it was released and suffered the consequences. just was able to restore back down to 8.0i had to turn imessage off and back on again in order for apple to re-register my number... until then i was unable to send to any existing contacts.
ios 8.0.1 released, broken on iphone 6 models, withdrawn
upgraded shortly after it was released and suffered the consequences. just was able to restore back down to 8.0i had to turn imessage off and back on again in order for apple to re-register my number... until then i was unable to send to any existing contacts.
i think they were under a lot of pressure on the healthkit front. that was one of their big flagship ios 8 features, they got all these app developers to integrate it, then ios 8 shipped and they had a showstopper bug and wouldn't release any apps using healthkit.
ios 8.0.1 released, broken on iphone 6 models, withdrawn
i think they were under a lot of pressure on the healthkit front. that was one of their big flagship ios 8 features, they got all these app developers to integrate it, then ios 8 shipped and they had a showstopper bug and wouldn't release any apps using healthkit.
fix for those who already updated: <link>
ask hn: how do us hners get their health insurance? hi guys,<p>i'm from the uk and am engaged to a us citizen. a month and a half ago she lost her job, and health insurance, and since then i've been helping her through some sort of kafka-esque nightmare regarding that. she's decided for now to use cobra, under which she can continue with her old employer's coverage. it took about 3 weeks for the paperwork for that to come through, which we returned immediately, and we're now being told that once the payment comes through, it'll take a week and a half for the coverage to restart. so all in all, it looks like my fiancee is going to have spent over a month without health coverage. while once the coverage restarts, it'll be backdated to the 1st september (so she can claim for any out of pocket expenses she incurred), it seems crazy that for the last month any sort of serious health issue could have financially ruined her.<p>the plan is to move to the us post marriage. this whole ordeal has put me off the idea of getting health insurance through an employer - i certainly don't want to spend time uninsured on the offchance i lose my job for whatever reason - not least because sods law states that that's the point that i'll get hit by a bus or some such. how many american hners pay for their health insurance themselves? if you're working for someone who generally offers health insurance, but you choose not to take it, is there ever any scope for persuading them to contribute some money to your personal costs?
get it from your employer. it's better and cheaper than what you can get in the market.you are allowed to supplement -- this may or may not make sense, but your final coverage will be a lot cheaper if you start with employer insurance.
as someone who moved from the uk to us under almost identical conditions, let me say this: if you have a job that offers health insurance 99% of the time you will be better off taking that health insurance rather than buying it directly from the exchanges.why? at least two reasons:1. employers are in a stronger negotiating position as insurance companies really fight for the business (it is for multiple people, so even if each one is less profitable the entire account will be more profitable with less overhead, so they want it).2. the people buying directly from exchanges are higher risk/greater cost. they're normally poorer, self employed (which includes a lot of people in physically demanding professions as well, who get injured often), and some are early retirees (pre-medicare age, but still &quot;older&quot;).plus the biggest reason is that almost all employers pay a % of your health insurance premium. if you go with the exchange you're paying 100% (of a higher base) rather than 70% of a lower one. so unless your employer has simply terrible health insurance, it is almost never a better idea from a financial perspective to go private.if you're really paranoid about it, just take the employer health insurance, assuming they pay 30% and you pay 70% of the premium, take an equivalent amount out of your pay and save it (e.g. save 30% of the premium a month). since that is what you would have been paying privately anyway (100%), now you're just using the employer's cut to save for a rainy day.personally if it was up to me employer provided health insurance should be banned in the us and everyone (aside from the us military) should be required to go out and get private coverage (e.g. car insurance). that way the prices come down, competition goes up, and certain demographics (unemployed, self-employed, early retirees, etc) aren't unfairly &quot;punished.&quot;but i don't see that happening any time soon (or ever) because employer provided health insurance is too heavily ingrained in us culture. nobody even discussed destroying that link during the obamacare debates. so whatever...for now, until things change, employer is the way to go.
ask hn: how do us hners get their health insurance? hi guys,<p>i'm from the uk and am engaged to a us citizen. a month and a half ago she lost her job, and health insurance, and since then i've been helping her through some sort of kafka-esque nightmare regarding that. she's decided for now to use cobra, under which she can continue with her old employer's coverage. it took about 3 weeks for the paperwork for that to come through, which we returned immediately, and we're now being told that once the payment comes through, it'll take a week and a half for the coverage to restart. so all in all, it looks like my fiancee is going to have spent over a month without health coverage. while once the coverage restarts, it'll be backdated to the 1st september (so she can claim for any out of pocket expenses she incurred), it seems crazy that for the last month any sort of serious health issue could have financially ruined her.<p>the plan is to move to the us post marriage. this whole ordeal has put me off the idea of getting health insurance through an employer - i certainly don't want to spend time uninsured on the offchance i lose my job for whatever reason - not least because sods law states that that's the point that i'll get hit by a bus or some such. how many american hners pay for their health insurance themselves? if you're working for someone who generally offers health insurance, but you choose not to take it, is there ever any scope for persuading them to contribute some money to your personal costs?
as someone who moved from the uk to us under almost identical conditions, let me say this: if you have a job that offers health insurance 99% of the time you will be better off taking that health insurance rather than buying it directly from the exchanges.why? at least two reasons:1. employers are in a stronger negotiating position as insurance companies really fight for the business (it is for multiple people, so even if each one is less profitable the entire account will be more profitable with less overhead, so they want it).2. the people buying directly from exchanges are higher risk/greater cost. they're normally poorer, self employed (which includes a lot of people in physically demanding professions as well, who get injured often), and some are early retirees (pre-medicare age, but still &quot;older&quot;).plus the biggest reason is that almost all employers pay a % of your health insurance premium. if you go with the exchange you're paying 100% (of a higher base) rather than 70% of a lower one. so unless your employer has simply terrible health insurance, it is almost never a better idea from a financial perspective to go private.if you're really paranoid about it, just take the employer health insurance, assuming they pay 30% and you pay 70% of the premium, take an equivalent amount out of your pay and save it (e.g. save 30% of the premium a month). since that is what you would have been paying privately anyway (100%), now you're just using the employer's cut to save for a rainy day.personally if it was up to me employer provided health insurance should be banned in the us and everyone (aside from the us military) should be required to go out and get private coverage (e.g. car insurance). that way the prices come down, competition goes up, and certain demographics (unemployed, self-employed, early retirees, etc) aren't unfairly &quot;punished.&quot;but i don't see that happening any time soon (or ever) because employer provided health insurance is too heavily ingrained in us culture. nobody even discussed destroying that link during the obamacare debates. so whatever...for now, until things change, employer is the way to go.
i went to <link>, filled out some online forms and picked a plan. it's like amazon.com for healthcare -- sort by brand/price/features, add to cart, check out. the only difference is that whatever insurer you sign up with sends out their own bill afterwards rather than paying the website.i've been buying my own insurance since reaching adulthood. before the federal exchange, i typically found personal plans through <link>, though they have less selection now than before the exchange. i think some insurers in states with an exchange pulled out of the private comparison sites like this.
ask hn: how do us hners get their health insurance? hi guys,<p>i'm from the uk and am engaged to a us citizen. a month and a half ago she lost her job, and health insurance, and since then i've been helping her through some sort of kafka-esque nightmare regarding that. she's decided for now to use cobra, under which she can continue with her old employer's coverage. it took about 3 weeks for the paperwork for that to come through, which we returned immediately, and we're now being told that once the payment comes through, it'll take a week and a half for the coverage to restart. so all in all, it looks like my fiancee is going to have spent over a month without health coverage. while once the coverage restarts, it'll be backdated to the 1st september (so she can claim for any out of pocket expenses she incurred), it seems crazy that for the last month any sort of serious health issue could have financially ruined her.<p>the plan is to move to the us post marriage. this whole ordeal has put me off the idea of getting health insurance through an employer - i certainly don't want to spend time uninsured on the offchance i lose my job for whatever reason - not least because sods law states that that's the point that i'll get hit by a bus or some such. how many american hners pay for their health insurance themselves? if you're working for someone who generally offers health insurance, but you choose not to take it, is there ever any scope for persuading them to contribute some money to your personal costs?
i went to <link>, filled out some online forms and picked a plan. it's like amazon.com for healthcare -- sort by brand/price/features, add to cart, check out. the only difference is that whatever insurer you sign up with sends out their own bill afterwards rather than paying the website.i've been buying my own insurance since reaching adulthood. before the federal exchange, i typically found personal plans through <link>, though they have less selection now than before the exchange. i think some insurers in states with an exchange pulled out of the private comparison sites like this.
full time employed, health insurance through my employer.group coverage (i.e. employer-based coverage) is the best insurance you can get in the us because of a number of already-given reasons, as well as the fact that they can't reject you for a preexisting condition. all private plans will exclude preexisting conditions, so if you're already one some medication or treatment, you will have to wait at least a year before your insurer will cover it.i was a freelancer on a private plan previously. private plans were kind of bullshit (and very expensive), but i don't know if the aca has changed that.i would like to see canada-style single-payer health care in the us, but i think it will be a couple of decades before we do.
ask hn: how do us hners get their health insurance? hi guys,<p>i'm from the uk and am engaged to a us citizen. a month and a half ago she lost her job, and health insurance, and since then i've been helping her through some sort of kafka-esque nightmare regarding that. she's decided for now to use cobra, under which she can continue with her old employer's coverage. it took about 3 weeks for the paperwork for that to come through, which we returned immediately, and we're now being told that once the payment comes through, it'll take a week and a half for the coverage to restart. so all in all, it looks like my fiancee is going to have spent over a month without health coverage. while once the coverage restarts, it'll be backdated to the 1st september (so she can claim for any out of pocket expenses she incurred), it seems crazy that for the last month any sort of serious health issue could have financially ruined her.<p>the plan is to move to the us post marriage. this whole ordeal has put me off the idea of getting health insurance through an employer - i certainly don't want to spend time uninsured on the offchance i lose my job for whatever reason - not least because sods law states that that's the point that i'll get hit by a bus or some such. how many american hners pay for their health insurance themselves? if you're working for someone who generally offers health insurance, but you choose not to take it, is there ever any scope for persuading them to contribute some money to your personal costs?
full time employed, health insurance through my employer.group coverage (i.e. employer-based coverage) is the best insurance you can get in the us because of a number of already-given reasons, as well as the fact that they can't reject you for a preexisting condition. all private plans will exclude preexisting conditions, so if you're already one some medication or treatment, you will have to wait at least a year before your insurer will cover it.i was a freelancer on a private plan previously. private plans were kind of bullshit (and very expensive), but i don't know if the aca has changed that.i would like to see canada-style single-payer health care in the us, but i think it will be a couple of decades before we do.
your options depend on where you live.i signed up for covered california, which is subsidized insurance. my husband (non-us citizen, but perm resident) is part of my plan. this depends on what state you live in. some states rejected the federal healthcare funds.as for employer contributions, it depends on the employer -- i offer my employees insurance. if they choose not to take it, i don't give them a pay bump -- the cost per employee is negligible, and insurance is not offered in lieu of higher pay here. the purpose of me buying insurance for employees is mostly to ensure they're healthy while working for us, and getting care so as not to sicken others while on the job.
san diego researcher crowdfunding patent-free cancer drug
what i don't understand is why drugs developed with public money (government grants and non-profit charities) aren't automatically in the public domain.
to everyone sure this will fail because of the amount of money required, ask yourself this: if you told your mom, and your neighbor, and your mailman, and your boss about the occulus rift, or pebble, or the peachy printer, or zach braff's latest movie, and the opportunity to help make those products a reality by preordering them/donating money to them, do you really think any sizable portion of those people would be interested enough to donate? of course not.most successful kickstarter and indiegogo campaigns have an extremely narrow market, the early adopters of technology. cancer casts a wider net by several orders of magnitude. there's no reason to think that, with a good viral marketing campaign, something like this couldn't raise several orders of magnitude more money than the most successful crowdfunding campaigns so far.
san diego researcher crowdfunding patent-free cancer drug
to everyone sure this will fail because of the amount of money required, ask yourself this: if you told your mom, and your neighbor, and your mailman, and your boss about the occulus rift, or pebble, or the peachy printer, or zach braff's latest movie, and the opportunity to help make those products a reality by preordering them/donating money to them, do you really think any sizable portion of those people would be interested enough to donate? of course not.most successful kickstarter and indiegogo campaigns have an extremely narrow market, the early adopters of technology. cancer casts a wider net by several orders of magnitude. there's no reason to think that, with a good viral marketing campaign, something like this couldn't raise several orders of magnitude more money than the most successful crowdfunding campaigns so far.
people don't seem to realize how expensive it is to bring a new pharmaceutical drug to market and why this approach won't work.a typical drug will cost between $1bn-$2bn and take about a decade of work by the time it hits the shelves.(<link> has details for those interested)crowdfunding at those sort of levels just isn't feasible yet.
san diego researcher crowdfunding patent-free cancer drug
people don't seem to realize how expensive it is to bring a new pharmaceutical drug to market and why this approach won't work.a typical drug will cost between $1bn-$2bn and take about a decade of work by the time it hits the shelves.(<link> has details for those interested)crowdfunding at those sort of levels just isn't feasible yet.
many years ago, i worked in a lab where i synthesized a variant of interferon using solid phase peptide synthesis. it was all manual work, using pretty basic materials. it's just a peptide after all.i finished at 11 pm. cleaned it up, walked across the street to probably one of the world's most respected cancer hospitals. gave it to the md on staff, he said we'll try it now. right now.a lot of things go on when people are at life and death cross roads. lots of things out of the mainstream. when all hope is gone, sometimes miracles can happen.
san diego researcher crowdfunding patent-free cancer drug
many years ago, i worked in a lab where i synthesized a variant of interferon using solid phase peptide synthesis. it was all manual work, using pretty basic materials. it's just a peptide after all.i finished at 11 pm. cleaned it up, walked across the street to probably one of the world's most respected cancer hospitals. gave it to the md on staff, he said we'll try it now. right now.a lot of things go on when people are at life and death cross roads. lots of things out of the mainstream. when all hope is gone, sometimes miracles can happen.
i think the negative comments on here have got it upside down. i research and treat cancer, and i think this is great. the fact that it costs billions to develop a drug is why we should support novel pathways of organising drug development, rather than disparaging it.it may not really be obvious from the outside, but there is a coming crisis in that we won't as a society be able to afford new cancer drugs. it is regularly reported that new drugs which are typically priced around us$120k per year (for multiple years in some cases) are not cost effective. case in point: crizotonib. this is a drug that works very well at shrinking tumours and controlling disease in incurable lung cancer. it is targeted - it only works if your tumour has a particular gene fusion, which occurs in about 4% of lung cancer patients. it is well tolerated compared to chemotherapy. it's the kind of personalised medicine we are hoping to achieve more broadly in the future. and the way it is priced isn't cost effective [1].i can guarantee you that the coming surge in immunotherapies will be exorbitantly priced. and these are drugs we will be giving not to 4% of cancer patients, but &gt; 50% of advanced cancer patients in a given tumour type.these problems are even worse in countries where the government pays for drugs, because they are far more restricted in what they can afford. patients just end up missing out. and if you think having cancer is bad enough, knowing there is a drug that might help and not being able to afford it is just heart breaking.so good luck to them, i hope they can draw some money away from nonsense like crowd funding potato salad.[1] <link>
rethinking the origins of the universe
i'm not a physicist. i imagine that if i were, this would be exciting news (that is, an exciting possibility).i am a literary critic, though, and i have to say that it's bittersweet news at best. black holes are so much a part of the space-age imagination. the article mentions hollywood, but black holes are woven deeply into our everyday metaphors and have been for decades. they have stood among the most wondrous things in the universe -- an awe-inspiring thing.it reminds me a bit of when the press reported that the catholic church had &quot;gotten rid of limbo&quot; (the actual case was a bit more complex, and involved some fairly weighty theology).then again, we all still talk of things &quot;being in limbo.&quot; perhaps that next project will still be a black hole, even if it turns out that there's no such thing.
i'm not at all acquainted with astrophysics but i remember seeing an article state that there was a different physicist who proved this same thing:<link> quick google shows his response to this:<link> response:&quot;hawking radiation is unproven. and particle physicists are not aware that even without any quantum mechanics, classical gravitation dictates that all gravitational collapse must be accompanied by radiation. :<link> then grav collapse should naturally lead to radiation supported eco: <link> as far as non -formation of ``event horizon'' is concerned, in contrast to the conjectures of the present yet unpublished paper i gave exact proof:<link> phys.org never highlighted my research which is infinitely more accurate than the present paper whose authors are not even aware that question of hawking radiation would arise only if there would already be a black hole with an event horizon. therefore this paper is not self-consistent. but that does not matter:the lead author of this paper has cambridge affiliation.so phys.org is glad to highlight an inconsistent and yet unpublished paper by ignoring my series of my exact and original papers on the same topic.&quot;i don't have any background in astrophysics, can anyone comment on dr. mitra's response and the relation of his work to the above research?the best discussion i can find on dr. mitra's work is on quora: <link>
rethinking the origins of the universe
i'm not at all acquainted with astrophysics but i remember seeing an article state that there was a different physicist who proved this same thing:<link> quick google shows his response to this:<link> response:&quot;hawking radiation is unproven. and particle physicists are not aware that even without any quantum mechanics, classical gravitation dictates that all gravitational collapse must be accompanied by radiation. :<link> then grav collapse should naturally lead to radiation supported eco: <link> as far as non -formation of ``event horizon'' is concerned, in contrast to the conjectures of the present yet unpublished paper i gave exact proof:<link> phys.org never highlighted my research which is infinitely more accurate than the present paper whose authors are not even aware that question of hawking radiation would arise only if there would already be a black hole with an event horizon. therefore this paper is not self-consistent. but that does not matter:the lead author of this paper has cambridge affiliation.so phys.org is glad to highlight an inconsistent and yet unpublished paper by ignoring my series of my exact and original papers on the same topic.&quot;i don't have any background in astrophysics, can anyone comment on dr. mitra's response and the relation of his work to the above research?the best discussion i can find on dr. mitra's work is on quora: <link>
this paper claims that black holes can't come into existence, which is subtly different from claiming that they cannot exist. in particular, black holes can exist as long as they've always existed – it's just that new ones can't come into existence. maybe the universe just has a fixed number of singularities. [i am not a physicist – this just struck me as an inaccurate implication in the article.]
rethinking the origins of the universe
this paper claims that black holes can't come into existence, which is subtly different from claiming that they cannot exist. in particular, black holes can exist as long as they've always existed – it's just that new ones can't come into existence. maybe the universe just has a fixed number of singularities. [i am not a physicist – this just struck me as an inaccurate implication in the article.]
interesting; if the paper finds general acceptance, it'll be fun to watch a new flurry of activity. the fairly recent controversial concept of &quot;firewalls&quot; has reinvigorated that subfield of physics.whether black holes exist or not, there's something really dense at the center of our galaxy. it's a challenge to come up with a consistent non-black-hole explanation for the observed motion of stars at the galactic center.<link> here: <link>
rethinking the origins of the universe
interesting; if the paper finds general acceptance, it'll be fun to watch a new flurry of activity. the fairly recent controversial concept of &quot;firewalls&quot; has reinvigorated that subfield of physics.whether black holes exist or not, there's something really dense at the center of our galaxy. it's a challenge to come up with a consistent non-black-hole explanation for the observed motion of stars at the galactic center.<link> here: <link>
ethan siegel just posted a detailed response to this.<link>
slacktextviewcontroller: a new growing text input for ios
as someone that doesn't do ios development it boggles my mind that you guys have to build this feature into your apps.
apple developed swift to make developer's more expressive and efficient yet they do not provide simple controls like this. can't tell you how many hours i wasted in the chat portion of my app trying to get a simple growing text input to work!
slacktextviewcontroller: a new growing text input for ios
apple developed swift to make developer's more expressive and efficient yet they do not provide simple controls like this. can't tell you how many hours i wasted in the chat portion of my app trying to get a simple growing text input to work!
so i'm making ios apps sometimes, but have not implemented a chat feature.why would i want to use this rather than a uitableview where i append the newest message in the end of the uitableview every time (you'd have to increase it's length +1 for each new message, but hey that may be ok)?
slacktextviewcontroller: a new growing text input for ios
so i'm making ios apps sometimes, but have not implemented a chat feature.why would i want to use this rather than a uitableview where i append the newest message in the end of the uitableview every time (you'd have to increase it's length +1 for each new message, but hey that may be ok)?
&gt; inverted mode for displaying cells upside-down (using catransform) -- a necessary hack for some messaging apps (including ours)care to elaborate? sounds intriguingly crufty.
slacktextviewcontroller: a new growing text input for ios
&gt; inverted mode for displaying cells upside-down (using catransform) -- a necessary hack for some messaging apps (including ours)care to elaborate? sounds intriguingly crufty.
cool. i was just shopping for a new growing text view since hpgrowingtextview seemed like it was not maintained and buggy on ios 8.i settled on <link>'s nice, simple, and does the trick. however, i will definitely checkout slacktextviewcontroller.for people not in ios development: yes this is crazy that it is not built in. but our tool chain is better :)
cve-2014-6271: remote code execution through bash
according to <link> it appears that this is because bash allows functions to be exported through environment variables into subprocesses, but the code to parse those function definitions seems to be the same used to parse regular commands (and thus execute them).edit: after a brief glance over the affected code, this might not be so easy to patch completely - the actual method where everything interesting starts to take place is initialize_shell_variables in variables.c and parse_and_execute() in builtins/evalstring.c, so parsing and execution happen together; this is necessary to implement the shell grammar and is part of what makes it so powerful, but it can also be a source of vulnerabilities if it's not used carefully. i suppose one attempt at fixing this could be to separate out the function parsing code into its own function, one which can't ever cause execution of its input, and use that to parse function definitions in environment variables. this would be a pretty easy and elegant thing to do with a recursive-descent parser, but bash uses a lex/yacc-generated one to consume an entire command at once...however, all in all i'm not so sure this ability to export funcdefs is such a good idea - forking a subshell automatically inherits the functions in the parent, and if it's a shell that wasn't created in such a manner, if it needs function definitions it can read them itself from some other source. this &quot;feature&quot; also means environment variables cannot start with the string '() {' (and exactly the string '() {' - even removing the space between those characters, e.g. '(){', doesn't trigger it) without causing an error in any subprocess - violating the usual assumption that environment variables can hold any arbitrary string. it might be a rare case, but it's certainly a cause for surprise.
funny, this works even after bash fix / upgradeenv x='() { (a)=&gt;\' sh -c &quot;echo date&quot;; cat efrom <link>
cve-2014-6271: remote code execution through bash
funny, this works even after bash fix / upgradeenv x='() { (a)=&gt;\' sh -c &quot;echo date&quot;; cat efrom <link>
it might still be an issue. the patches may not have done enough.$ env x='() { (a)=&gt;\' sh -c &quot;echo date&quot;; cat echo<link> x='() { (a)=&gt;\' bash -c &quot;echo echo vuln&quot;; [[ &quot;$(cat echo)&quot; == &quot;vuln&quot; ]] &amp;&amp; echo &quot;still vulnerable :(&quot;
cve-2014-6271: remote code execution through bash
it might still be an issue. the patches may not have done enough.$ env x='() { (a)=&gt;\' sh -c &quot;echo date&quot;; cat echo<link> x='() { (a)=&gt;\' bash -c &quot;echo echo vuln&quot;; [[ &quot;$(cat echo)&quot; == &quot;vuln&quot; ]] &amp;&amp; echo &quot;still vulnerable :(&quot;
here's how to patch ubuntu 8.04 or anything where you have to build bash from source: #assume that your sources are in /src cd /src wget <link> #download all patches for i in $(seq -f &quot;%03g&quot; 0 25); do wget <link>$i; done tar zxvf bash-4.3.tar.gz cd bash-4.3 #apply all patches for i in $(seq -f &quot;%03g&quot; 0 25);do patch -p0 &lt; ../bash43-$i; done #build and install ./configure &amp;&amp; make &amp;&amp; make install not sure if ubuntu 8.04 with custom built bash will be upgradable to 10.04??
cve-2014-6271: remote code execution through bash
here's how to patch ubuntu 8.04 or anything where you have to build bash from source: #assume that your sources are in /src cd /src wget <link> #download all patches for i in $(seq -f &quot;%03g&quot; 0 25); do wget <link>$i; done tar zxvf bash-4.3.tar.gz cd bash-4.3 #apply all patches for i in $(seq -f &quot;%03g&quot; 0 25);do patch -p0 &lt; ../bash43-$i; done #build and install ./configure &amp;&amp; make &amp;&amp; make install not sure if ubuntu 8.04 with custom built bash will be upgradable to 10.04??
there's some misunderstanding of how the one-liner works, so here's a writeup.you can break the one-liner into two lines to see what is happening. 1. hobbes@media:~$ export badvar='() { :;}; echo vulnerable' 2. hobbes@media:~$ bash -c &quot;echo i am an innocent sub process in '$bash_version'&quot; 3. bash: warning: badvar: ignoring function definition attempt 4. bash: error importing function definition for `badvar' 5. i am an innocent sub process in 4.3.25(1)-release 1. create a specially crafted environment variable. ok, it's done. but, nothing has happened!2. create an innocent sub process. bash in this case. during initialization...3. ...bash spots the specially formed variable (named badvar), prints a warning,4. ...and apparently doesn't define the function at all?5. but other than that, the child bash runs as expected.and now the same two input lines on and old bash: 1. hobbes@metal:~$ export badvar='() { :;}; echo vulnerable' 2. hobbes@metal:~$ bash -c &quot;echo i am an innocent sub process in '$bash_version'&quot; 3. vulnerable 4. i am an innocent sub process in 4.3.22(1)-release 1. create a specially crafted environment variable. ok, it's done. but, nothing has happened!2. create an innocent sub process. bash in this case. during initialization...3. ...bash accidentally executes a snippet that was inside the variable named 'badvar'?!4. but other than that, the child bash runs as expected. wow, i should update that machine. :)
up, up, down, down, left, right, left, right, up, up, up, up
every time i need to unlock developer settings in a recent android phone i get a little nostalgic for the codes of old.if you're of that era you likely also remember...007 373 5963...and...justin bailey------ ------
my first thought was that it was a sequence for a mortal kombat fatality.
up, up, down, down, left, right, left, right, up, up, up, up
my first thought was that it was a sequence for a mortal kombat fatality.
the contra code . . . you'll never forget . . .popularized among north american players in the nes version of contra, for which it was also dubbed both the &quot;contra code&quot; and &quot;30 lives code&quot;<link>
up, up, down, down, left, right, left, right, up, up, up, up
the contra code . . . you'll never forget . . .popularized among north american players in the nes version of contra, for which it was also dubbed both the &quot;contra code&quot; and &quot;30 lives code&quot;<link>
a friend of mine worked on the netflix debugging tools for a majority of their players (tvs, blu-ray players, consoles, etc) and there are a number of remote combinations like that inside the players to bring up all sorts of goodies.
up, up, down, down, left, right, left, right, up, up, up, up
a friend of mine worked on the netflix debugging tools for a majority of their players (tvs, blu-ray players, consoles, etc) and there are a number of remote combinations like that inside the players to bring up all sorts of goodies.
heh, it's pretty close to the konami code, i wonder if that was the inspiration? <link>
relativistic hash tables
in case people find it interesting, this is very similar to how one efficiently builds a search engine for high qps and update rate (lockless realtime document index), though that example is slightly more involved than a hash map.the basic premise is that the entry point to your data structure (or internal pointers) can change over time. you don't dismantle older entry points/pointers until all older readers release, though you don't have to wait for all concurrent readers to exit.
could someone explain all of the grounds?
relativistic hash tables
could someone explain all of the grounds?
i wrote the paper and dissertation this work was based on, and i'm happy to answer any questions people might have.(really awesome to see a production implementation of this.)
relativistic hash tables
i wrote the paper and dissertation this work was based on, and i'm happy to answer any questions people might have.(really awesome to see a production implementation of this.)
forgive me if this is stupid, but this could work for implement a concurrent vm?
relativistic hash tables
forgive me if this is stupid, but this could work for implement a concurrent vm?
maybe i'm daft, but the growing and shrinking explained looks like how you'd do it for any hash table, is that not how a normal one works? do normal hash tables &quot;freeze the world&quot; to change tables or something?looks to me like an &quot;rcu grace period&quot; (not sure what this is, sleep maybe?) is introduced to allow concurrent threads time to &quot;finish reads&quot; in between pointer changes.
programming the atari st 20 years later
i learned basic on a atari 800 i got for christmas because our bundle included the cartridge. after about 6 months i managed to get my parents to buy me a tape drive so i wouldn't have to retype programs completely out each time.i think my biggest day of my programming life was when i got an advanced book that showed me what gosub was for.
i wrote an atari st emulator out of nostalgia called stonx myself when i started to use a unix box (sun ipc), i believe it was the first open source st emulator ('94 or '95, also the first for unix with big/little endian support, ran on linux, decstations with ultrix, sun/solaris etc.). it was somewhat special in that it supported &quot;native&quot; graphics capabilities, i.e. bigger resolutions than 640x400 using vdi if the host hardware supported them. had a bunch of bugs though that i never got round to fixing...my memories of the st were fond: it was quite powerful yet still a system that you could look into every aspect of, you could single-step through the os in rom if you wanted and there weren't dozens of strange tasks running all the time like today. when mint (unix-like os layer) was released, we could even play in the unix league using gcc, bash, tcsh, emacs.
programming the atari st 20 years later
i wrote an atari st emulator out of nostalgia called stonx myself when i started to use a unix box (sun ipc), i believe it was the first open source st emulator ('94 or '95, also the first for unix with big/little endian support, ran on linux, decstations with ultrix, sun/solaris etc.). it was somewhat special in that it supported &quot;native&quot; graphics capabilities, i.e. bigger resolutions than 640x400 using vdi if the host hardware supported them. had a bunch of bugs though that i never got round to fixing...my memories of the st were fond: it was quite powerful yet still a system that you could look into every aspect of, you could single-step through the os in rom if you wanted and there weren't dozens of strange tasks running all the time like today. when mint (unix-like os layer) was released, we could even play in the unix league using gcc, bash, tcsh, emacs.
an atari st was the first computer i ever owned.i sent my father to the shops to buy a c64 and he was convinced by a salesman that what i really wanted was an st.atari shortly after pulled out of australia and i found myself paying $15 a month for copies of st format from england.seeing screenshots of the os bring up some serious childhood flashbacks.
programming the atari st 20 years later
an atari st was the first computer i ever owned.i sent my father to the shops to buy a c64 and he was convinced by a salesman that what i really wanted was an st.atari shortly after pulled out of australia and i found myself paying $15 a month for copies of st format from england.seeing screenshots of the os bring up some serious childhood flashbacks.
&quot; a dark shadow falls over me when i think about all the hours of work spent by atari st engineers to build something almost lost to oblivion.&quot;sigh. there are sooooooooo many things people have built which are sitting there in &quot;oblivion&quot; now. one of the most awesome things of playing with turn of the century computers (like pdp 11's or vaxen) is that you can see the stuff they did, in the contraints they had, and really understand how amazingly inefficient/overpowered oses are today. when you have only one font, its fixed width and size, and it comes out of a rom you don't worry about typography for example.
programming the atari st 20 years later
&quot; a dark shadow falls over me when i think about all the hours of work spent by atari st engineers to build something almost lost to oblivion.&quot;sigh. there are sooooooooo many things people have built which are sitting there in &quot;oblivion&quot; now. one of the most awesome things of playing with turn of the century computers (like pdp 11's or vaxen) is that you can see the stuff they did, in the contraints they had, and really understand how amazingly inefficient/overpowered oses are today. when you have only one font, its fixed width and size, and it comes out of a rom you don't worry about typography for example.
sorry, but the amiga was wayyyy better.
how to design classes (2012) [pdf]
is there a mirror of this anywhere? i can't get to it right now.edit: working again
666 pages... coincidence? i don't think so.
how to design classes (2012) [pdf]
666 pages... coincidence? i don't think so.
for those interested, it looks like programming examples are in java. probably a good read for those who never quite get classes.
how to design classes (2012) [pdf]
for those interested, it looks like programming examples are in java. probably a good read for those who never quite get classes.
the first four chapters are written with the professorj teaching environment in mind (cf. page xiii).<link> the later chapters, the reader is encouraged to explore the concepts within a full-fledged java or c# development environment such as eclipse, intellij, visual studio, etc.
how to design classes (2012) [pdf]
the first four chapters are written with the professorj teaching environment in mind (cf. page xiii).<link> the later chapters, the reader is encouraged to explore the concepts within a full-fledged java or c# development environment such as eclipse, intellij, visual studio, etc.
very excited to see how they project their vision (htdp, etc) onto oop in full details.
indoor mapping with estimote beacons
is the reason you cannot simply use a software/cell phone gps solution to accomplish the same thing that there's poor granularity and potentially also poor indoor gps reception indoors?
low energy bluetooth is neat technology and i'm impressed with estimote too.my question is what happens when the batteries die in these beacons if you have set many of them them up in a constellation like this for intra-room location? do you have to replace all together and reconfigure or is there some easier way to replace individual beacons that have gone flat and reconfigure them to act exactly like the one they are replacing?
indoor mapping with estimote beacons
low energy bluetooth is neat technology and i'm impressed with estimote too.my question is what happens when the batteries die in these beacons if you have set many of them them up in a constellation like this for intra-room location? do you have to replace all together and reconfigure or is there some easier way to replace individual beacons that have gone flat and reconfigure them to act exactly like the one they are replacing?
it says it doesn't support their stickers because they are intended to be placed on moveable objects. that sounds like it is a hardware limitation, otherwise why would they be restricting their developer community? still very excited about this.
indoor mapping with estimote beacons
it says it doesn't support their stickers because they are intended to be placed on moveable objects. that sounds like it is a hardware limitation, otherwise why would they be restricting their developer community? still very excited about this.
from my experience as someone who has already implemented an complete ibeacon based ios app that is used as an art gallery guide i don't believe that this indoor location tracking you're advertising is working when there is more than one person in the room.as my academic advisor always said: every human is an 80kg water bag thats disturbing the signal.did you test this with multiple persons in the room and if so, what was your result concerning accuracy.
indoor mapping with estimote beacons
from my experience as someone who has already implemented an complete ibeacon based ios app that is used as an art gallery guide i don't believe that this indoor location tracking you're advertising is working when there is more than one person in the room.as my academic advisor always said: every human is an 80kg water bag thats disturbing the signal.did you test this with multiple persons in the room and if so, what was your result concerning accuracy.
any reason why the devkit is three beacons and not four? if you need a minimum of four.. it seems a bit daft not to have that as the default size and then sell single addon beacons as necessary.
ask hn: hackers who cook while going through a producthunt post[1] i came across a fellow hner[2] who was following nyt cooking[3] and cooking with a plan on a regular basis. i was very curious to understand how he spaces time to cook and work. and the type of stuff he cooks.<p>which kind of inspired me to start working on project to follow someone and get inspired by their – meal plans, shopping patterns, recipes, hacks, tips etc (another inspiration [4])<p>i am trying to find hackers who cook at home on a regular basis (even if its only 2-3 times a week).<p>if you cook, some questions:<p>1. why do you cook? is it to save cash or is it recreation? or something else?<p>2. do you plan ahead? like a weekly meal plan?<p>3. what kind of things do you cook usually?<p>4. do you follow any diet? atkins, slow carb etc.<p>5. do you have any life hacks, tips to be more productive as a cook?<p>disclosure: i run cucumbertown (<link>, the tumblr for cooks.<p>[1] <link><p>[2] <link><p>[3] <link><p>[4] <link><p>edit:<p>seems like this was taken off the homepage for some reason. the comment rate’s coming down.<p>thanks a lot for the encouraging comments. a short but exciting q&amp;a. if you can help me out more, please reach me on cherian@cucumbertown.com
1. i cook because it's cheap. sometimes i cook for the ladies... err, well, actually just the one lady:my gf2. sometimes. depends how fancy we're getting. no weekly meal plan3. simple/fast/practical meals, specifically stir fries and salads. we want to get into shakes (we just bought a blender)4. trying to follow paleo5. best life hacks? get a cook! or use a service like bigoven, gobble, amazonfresh/googleshoppingexpress,thestonesoup (5ingredients, 10min recipes) or just be disciplined about developing good habits! bigoven, for example let's me find stuff to cook fast. it's on ios, windows, android and it even lets you import from text. only thing i hate about the service is the fact you're locked in because there's no way to export your data...
hey, cucumbertown looks really cool. can you talk a bit about your tech stack and major design decisions? i'm thinking of something similar for a different niche.
ask hn: hackers who cook while going through a producthunt post[1] i came across a fellow hner[2] who was following nyt cooking[3] and cooking with a plan on a regular basis. i was very curious to understand how he spaces time to cook and work. and the type of stuff he cooks.<p>which kind of inspired me to start working on project to follow someone and get inspired by their – meal plans, shopping patterns, recipes, hacks, tips etc (another inspiration [4])<p>i am trying to find hackers who cook at home on a regular basis (even if its only 2-3 times a week).<p>if you cook, some questions:<p>1. why do you cook? is it to save cash or is it recreation? or something else?<p>2. do you plan ahead? like a weekly meal plan?<p>3. what kind of things do you cook usually?<p>4. do you follow any diet? atkins, slow carb etc.<p>5. do you have any life hacks, tips to be more productive as a cook?<p>disclosure: i run cucumbertown (<link>, the tumblr for cooks.<p>[1] <link><p>[2] <link><p>[3] <link><p>[4] <link><p>edit:<p>seems like this was taken off the homepage for some reason. the comment rate’s coming down.<p>thanks a lot for the encouraging comments. a short but exciting q&amp;a. if you can help me out more, please reach me on cherian@cucumbertown.com
hey, cucumbertown looks really cool. can you talk a bit about your tech stack and major design decisions? i'm thinking of something similar for a different niche.
(1. why?) well it does save cash :) i only consider it recreation when i have friends over. the main reason, however, because it's normal. probably a cultural thing (not judging!). in the netherlands (or at least in my circles), it'd be considered &quot;weird&quot; if you eat out (or takeout) more than once or twice a week. it's just considered normal that people cook, like doing laundry. also means it's not going to be fancy always, sometimes it's just fuel and nutrients (some/any combo of vegetables, proteins and carbs). i also believe it's more expensive to eat out than in the us, relative to cooking from basic ingredients (or maybe vegetables are cheaper, i dunno). i can make tasty dinner for about €5-7 (two portions). getting something healthy readymade for you is at least €10 (one portion).(2. planning) remember that article a while back about &quot;people sized cities&quot; (or something like that)? in nl, if you live in a medium-size town, a supermarket is never farther away than a 5 minute bicycle ride. my closest one is less than 200m, the next (bigger) one is 700m. but i'm lucky :) there are people that do weekly shopping of course, usually either big families or people that live out in the country, where the nearest supermarket is a cardrive away (like in the us). besides shopping-planning, if i cook for myself, i usually make at least two-three portions because it's really the same amount of work as making one. also you can't buy many kinds of fresh ingredients in single-meal amounts. so i do need to plan ahead to be able to eat all that stuff before it goes bad. sometimes that means having weird dinner-type things for breakfast. i hate throwing food away, but i try not to be too hard on myself if it means i ate healthy stuff, but messed up on the planning.(3. what do i cook) everything. my staple go-to meals, however are some kind of pasta-vegetable-salad (fusili pasta, cherry tomatoes, any kind of salad vegetables, cucumber, paprika, shallots, etc, any cheese, salami, bacon, eggs, olives etc whatever i have in the fridge + dressing from mayo+mustard+honey) and broccoli + fried tempeh or organic sausages. also, brussel sprouts. these last two vegetables seem (for me) to cover most nutrients i've been missing when i feel i haven't been eating healthy. at least i feel better immediately :)i also love cooking weird and/or special stuff. i could write a whole series of posts on that. and i did, but the stories/pictures are spread over many different parts and ages of the internet.(4. diet) not really. i did paleo/keto for a while, twice, it was fun, tasty and really interesting to find your body can go into a different &quot;mode&quot; (ketosis) for energy. however i found that my physical condition for running improved a great deal when i added more carbs to my diet. i probably did something wrong, cause many people seem to be able to do sports just fine on keto diets. anyway, these days i just don't eat a lot of carbs. i find i have to pay attention to eating enough (sorry i'm probably weird), both calorie-wise and nutrients (as i said, broccoli/sprouts).(5. hacks and tips) i have zillions. get a good knife. learn how to use your microwave effectively (it cooks broccoli and many other things to perfection, if you know how--i'll explain if asked). dishwashing machine. check out the kitchen-tools section in shops every now and then, see if there's any tools that may make your particular way of cooking easier. if you don't have bbq tongs, get them, even if you're vegetarian. fresh ginger keeps for a long time in the freezer. get to know the chemistry behind cooking, preparing food, nutrition, etc. watch alton brown's series good eats, it'll not only teach you loads of basic cooking techniques, but also the how &amp; why behind these techniques, and even the chemistry/science of it. plus it's entertaining. just pick some random episodes on topics you think are interesting. i guarantee you'll learn something useful from every one of them. many can be found on youtube.
ask hn: hackers who cook while going through a producthunt post[1] i came across a fellow hner[2] who was following nyt cooking[3] and cooking with a plan on a regular basis. i was very curious to understand how he spaces time to cook and work. and the type of stuff he cooks.<p>which kind of inspired me to start working on project to follow someone and get inspired by their – meal plans, shopping patterns, recipes, hacks, tips etc (another inspiration [4])<p>i am trying to find hackers who cook at home on a regular basis (even if its only 2-3 times a week).<p>if you cook, some questions:<p>1. why do you cook? is it to save cash or is it recreation? or something else?<p>2. do you plan ahead? like a weekly meal plan?<p>3. what kind of things do you cook usually?<p>4. do you follow any diet? atkins, slow carb etc.<p>5. do you have any life hacks, tips to be more productive as a cook?<p>disclosure: i run cucumbertown (<link>, the tumblr for cooks.<p>[1] <link><p>[2] <link><p>[3] <link><p>[4] <link><p>edit:<p>seems like this was taken off the homepage for some reason. the comment rate’s coming down.<p>thanks a lot for the encouraging comments. a short but exciting q&amp;a. if you can help me out more, please reach me on cherian@cucumbertown.com
(1. why?) well it does save cash :) i only consider it recreation when i have friends over. the main reason, however, because it's normal. probably a cultural thing (not judging!). in the netherlands (or at least in my circles), it'd be considered &quot;weird&quot; if you eat out (or takeout) more than once or twice a week. it's just considered normal that people cook, like doing laundry. also means it's not going to be fancy always, sometimes it's just fuel and nutrients (some/any combo of vegetables, proteins and carbs). i also believe it's more expensive to eat out than in the us, relative to cooking from basic ingredients (or maybe vegetables are cheaper, i dunno). i can make tasty dinner for about €5-7 (two portions). getting something healthy readymade for you is at least €10 (one portion).(2. planning) remember that article a while back about &quot;people sized cities&quot; (or something like that)? in nl, if you live in a medium-size town, a supermarket is never farther away than a 5 minute bicycle ride. my closest one is less than 200m, the next (bigger) one is 700m. but i'm lucky :) there are people that do weekly shopping of course, usually either big families or people that live out in the country, where the nearest supermarket is a cardrive away (like in the us). besides shopping-planning, if i cook for myself, i usually make at least two-three portions because it's really the same amount of work as making one. also you can't buy many kinds of fresh ingredients in single-meal amounts. so i do need to plan ahead to be able to eat all that stuff before it goes bad. sometimes that means having weird dinner-type things for breakfast. i hate throwing food away, but i try not to be too hard on myself if it means i ate healthy stuff, but messed up on the planning.(3. what do i cook) everything. my staple go-to meals, however are some kind of pasta-vegetable-salad (fusili pasta, cherry tomatoes, any kind of salad vegetables, cucumber, paprika, shallots, etc, any cheese, salami, bacon, eggs, olives etc whatever i have in the fridge + dressing from mayo+mustard+honey) and broccoli + fried tempeh or organic sausages. also, brussel sprouts. these last two vegetables seem (for me) to cover most nutrients i've been missing when i feel i haven't been eating healthy. at least i feel better immediately :)i also love cooking weird and/or special stuff. i could write a whole series of posts on that. and i did, but the stories/pictures are spread over many different parts and ages of the internet.(4. diet) not really. i did paleo/keto for a while, twice, it was fun, tasty and really interesting to find your body can go into a different &quot;mode&quot; (ketosis) for energy. however i found that my physical condition for running improved a great deal when i added more carbs to my diet. i probably did something wrong, cause many people seem to be able to do sports just fine on keto diets. anyway, these days i just don't eat a lot of carbs. i find i have to pay attention to eating enough (sorry i'm probably weird), both calorie-wise and nutrients (as i said, broccoli/sprouts).(5. hacks and tips) i have zillions. get a good knife. learn how to use your microwave effectively (it cooks broccoli and many other things to perfection, if you know how--i'll explain if asked). dishwashing machine. check out the kitchen-tools section in shops every now and then, see if there's any tools that may make your particular way of cooking easier. if you don't have bbq tongs, get them, even if you're vegetarian. fresh ginger keeps for a long time in the freezer. get to know the chemistry behind cooking, preparing food, nutrition, etc. watch alton brown's series good eats, it'll not only teach you loads of basic cooking techniques, but also the how &amp; why behind these techniques, and even the chemistry/science of it. plus it's entertaining. just pick some random episodes on topics you think are interesting. i guarantee you'll learn something useful from every one of them. many can be found on youtube.
1. why do you cook? is it to save cash or is it recreation? or something else?i cook as another creative outlet, as a way to relax and a way to put a break between work and personal time. it's a nice ritual to come home and cook a quick dinner, or take the time to make a big meal on a weekend and try something new.cooking for myself is also much cheaper most of the time, especially this time of year when we get so many great vegetables in season.2. do you plan ahead? like a weekly meal plan?i tried to do a weekly plan, but it just didn't work for me. i like to buy groceries for 2 days at a time, at most, and i enjoy the trip to the store to see what's looking good and inspires me.the only real planning i do is to keep a well organized list of posts and recipes in evernote that i want to try at some point.3. what kind of things do you cook usually?this summer i've been cooking a ton of fish and fresh corn succotash(like a cooked corn salsa). in the cooler months i love making a universal broth for ramen, braising greens ,etc and have it on hand for a couple days. and lots of simple roasts with a primary protein like chicken or pork and a ton of vegetables.food52 and saveur are my go-tos for great recipes and a little inspiration. if you're looking for something simple and jsut starting out, i recommend sidechef.com for great beginner recipes and tips from start to finish.4. do you follow any diet? atkins, slow carb etc.i like the slow carb foods and naturally gravitate towards that without having to follow a real plan. beans, lentils, proteins and a ton of vegetables are always staples on my plate at home.5. do you have any life hacks, tips to be more productive as a cook?just like exercise, reading, social time, it's all about how you prioritize. cooking can be a quick 10 minutes to make a simple frittata, or several hours for something more elaborate on a weekend.personally, if i'm working from home, i schedule a break to start cooking dinner in the afternoon. and i usually cook enough to have leftovers to play with for another day or two. it saves time and money to make larger batches.other hacks are focusing on one-pot dishes and the slow cooker in the winter. i love putting a bunch of stuff in the slow cooker in the am and coming home to a done meal at the end of the day with no additional work needed.
ask hn: hackers who cook while going through a producthunt post[1] i came across a fellow hner[2] who was following nyt cooking[3] and cooking with a plan on a regular basis. i was very curious to understand how he spaces time to cook and work. and the type of stuff he cooks.<p>which kind of inspired me to start working on project to follow someone and get inspired by their – meal plans, shopping patterns, recipes, hacks, tips etc (another inspiration [4])<p>i am trying to find hackers who cook at home on a regular basis (even if its only 2-3 times a week).<p>if you cook, some questions:<p>1. why do you cook? is it to save cash or is it recreation? or something else?<p>2. do you plan ahead? like a weekly meal plan?<p>3. what kind of things do you cook usually?<p>4. do you follow any diet? atkins, slow carb etc.<p>5. do you have any life hacks, tips to be more productive as a cook?<p>disclosure: i run cucumbertown (<link>, the tumblr for cooks.<p>[1] <link><p>[2] <link><p>[3] <link><p>[4] <link><p>edit:<p>seems like this was taken off the homepage for some reason. the comment rate’s coming down.<p>thanks a lot for the encouraging comments. a short but exciting q&amp;a. if you can help me out more, please reach me on cherian@cucumbertown.com
1. why do you cook? is it to save cash or is it recreation? or something else?i cook as another creative outlet, as a way to relax and a way to put a break between work and personal time. it's a nice ritual to come home and cook a quick dinner, or take the time to make a big meal on a weekend and try something new.cooking for myself is also much cheaper most of the time, especially this time of year when we get so many great vegetables in season.2. do you plan ahead? like a weekly meal plan?i tried to do a weekly plan, but it just didn't work for me. i like to buy groceries for 2 days at a time, at most, and i enjoy the trip to the store to see what's looking good and inspires me.the only real planning i do is to keep a well organized list of posts and recipes in evernote that i want to try at some point.3. what kind of things do you cook usually?this summer i've been cooking a ton of fish and fresh corn succotash(like a cooked corn salsa). in the cooler months i love making a universal broth for ramen, braising greens ,etc and have it on hand for a couple days. and lots of simple roasts with a primary protein like chicken or pork and a ton of vegetables.food52 and saveur are my go-tos for great recipes and a little inspiration. if you're looking for something simple and jsut starting out, i recommend sidechef.com for great beginner recipes and tips from start to finish.4. do you follow any diet? atkins, slow carb etc.i like the slow carb foods and naturally gravitate towards that without having to follow a real plan. beans, lentils, proteins and a ton of vegetables are always staples on my plate at home.5. do you have any life hacks, tips to be more productive as a cook?just like exercise, reading, social time, it's all about how you prioritize. cooking can be a quick 10 minutes to make a simple frittata, or several hours for something more elaborate on a weekend.personally, if i'm working from home, i schedule a break to start cooking dinner in the afternoon. and i usually cook enough to have leftovers to play with for another day or two. it saves time and money to make larger batches.other hacks are focusing on one-pot dishes and the slow cooker in the winter. i love putting a bunch of stuff in the slow cooker in the am and coming home to a done meal at the end of the day with no additional work needed.
1. i enjoy performing the motions to a satisfactory result. i enjoy sharing that result with others. i enjoy (sometimes) creating new things.2. sometimes i will go shopping having a specific meal in mind, other than that -- no.3. something fast, so i won't be eating fastfood or prepared meals. something elaborate, so that i can make an event feel more celebratory. something nostalgic, so that i get to remember how things used to be. mostly it's something fast though.4. i try to minimize processed foods and maximize fish consumption. really that's about it.5. don't over-do it. it's a bit like sculpture, where you take away from the base; only you add to the base. don't be afraid to mess it up, but plan accordingly.
adding strlcpy() to glibc
hopefully it will be added to the standard c library so it will be everywhere - eg microsoft, apple, etc.
deep in the comments, 'slibc' is mentioned. i hadn't known about it, but this library provides str..._s() implementations of all the standard str...() functions as defined in annex k of the c11 standard (which i also hadn't known about).<link> a glance, this seems like a better solution than any of alternatives: require the buffer length to always be specified, and call a user controlled handler instead of allowing an overflow. this handler defaults to abort().while there are fine arguments to be made for using a real string library like bstring, are there downsides to the str_s approach compared to using the str, strp, or strl family of functions?
adding strlcpy() to glibc
deep in the comments, 'slibc' is mentioned. i hadn't known about it, but this library provides str..._s() implementations of all the standard str...() functions as defined in annex k of the c11 standard (which i also hadn't known about).<link> a glance, this seems like a better solution than any of alternatives: require the buffer length to always be specified, and call a user controlled handler instead of allowing an overflow. this handler defaults to abort().while there are fine arguments to be made for using a real string library like bstring, are there downsides to the str_s approach compared to using the str, strp, or strl family of functions?
i agree with drepper on this; it's a solution in search of a problem. you should either know wtf you can accept or use a higher level construct that can resize. silent truncation seems bad - truncation attacks are a real attack vector that ssl, for example, tries to prevent.
adding strlcpy() to glibc
i agree with drepper on this; it's a solution in search of a problem. you should either know wtf you can accept or use a higher level construct that can resize. silent truncation seems bad - truncation attacks are a real attack vector that ssl, for example, tries to prevent.
safe string handling in c can be done, but not with char*.php's zend engine has safely-handled strings, for example, but we do that by reference-counting them and having an explicit length.
adding strlcpy() to glibc
safe string handling in c can be done, but not with char*.php's zend engine has safely-handled strings, for example, but we do that by reference-counting them and having an explicit length.
i usually use strncpy and enforce null at end, that virtually is the same that does a strlcpy.but if you know how long is the source and destiny buffers (and if you are using str[nl]cpy, probably you know it), you could use memcpy and get a much more faster copy.
how to migrate 50m records from mongo to postgresql in less than a day
why use python for real work?for reference, i was handling 30m daily records in about an hour on hardware 15 years ago. this performance is absurd.
this is a perfect example of doing something row by row instead of in a data sets is bad for anything with over a million rows. bulk dump / copy load and then run the rules to clean up data.
how to migrate 50m records from mongo to postgresql in less than a day
this is a perfect example of doing something row by row instead of in a data sets is bad for anything with over a million rows. bulk dump / copy load and then run the rules to clean up data.
this requires you to wait for the whole batch to complete, instead of starting a new process as soon as one finishes.for these cases, i started using gnu parallel instead of plain shell. it does the heavy concurrency lifting for you, and even allow almost seamless parallelization across different machines.for example, your final code could be written as such: parallel ./settings.sh python bin/migrate_media.py {} $limit ::: $(seq 0 $limit $numplaylists) <link>
how to migrate 50m records from mongo to postgresql in less than a day
this requires you to wait for the whole batch to complete, instead of starting a new process as soon as one finishes.for these cases, i started using gnu parallel instead of plain shell. it does the heavy concurrency lifting for you, and even allow almost seamless parallelization across different machines.for example, your final code could be written as such: parallel ./settings.sh python bin/migrate_media.py {} $limit ::: $(seq 0 $limit $numplaylists) <link>
seems like this would've been a completely ideal place to rock some mongo_fdw, which would give postgres the ability to query and extract data directly from mongo. <link>
how to migrate 50m records from mongo to postgresql in less than a day
seems like this would've been a completely ideal place to rock some mongo_fdw, which would give postgres the ability to query and extract data directly from mongo. <link>
&quot;we were mostly i/o bound so we knew we’d like to use gevent’s quick task switching so we could write the maximal amount of data per-process. a single process really constrained us to one vcpu. therefore, to speed it up meant running more than one process.&quot;wait. what?! the response to being i/o bound is not using more processes...
cling: an interactive c++ interpreter, built on top of clang and llvm
how does something like this work in general? my naive idea about how to make such a thing essentially seems like a virtual machine, which is quite a bit of effort.
link to previous hn submission 2 years ago (it has moved on since then):<link>
cling: an interactive c++ interpreter, built on top of clang and llvm
link to previous hn submission 2 years ago (it has moved on since then):<link>
this might be interesting. i'm not actually interested in c++ (any more) but i'm still looking for the easiest possible way for me to get into llvm. i think “learning llvm” seems like the obvious next iteration of what used to be “learning assembler”, except this time around, it's actually portable. i love experimenting with languages and having an llvm backend ready at my fingertips must feel like programmer's heaven...
cling: an interactive c++ interpreter, built on top of clang and llvm
this might be interesting. i'm not actually interested in c++ (any more) but i'm still looking for the easiest possible way for me to get into llvm. i think “learning llvm” seems like the obvious next iteration of what used to be “learning assembler”, except this time around, it's actually portable. i love experimenting with languages and having an llvm backend ready at my fingertips must feel like programmer's heaven...
i think every language would be more productive if it were interpreted at development and compiled at production.
cling: an interactive c++ interpreter, built on top of clang and llvm
i think every language would be more productive if it were interpreted at development and compiled at production.
one of my favorite early rust features, in theory, was the interactive shell called &quot;rusti&quot;. in practice it was awful to use because it was slow, crashed all the time, and required whole blocks of code be entered at once (declaring, defining, and using a variable for example). some of that was attributable to beta status of the language but it seems like they ditched it in the end. is there actual value to this sort of thing for languages that are classically compiled instead of interpreted? at least for go, rust, and c speed of compilation is less of an issue overall but compiling c++, even with clang, is so much of a bear that i can't see this catching on.
the underground wind bulbs of utah
seems like if there is a salt mine they could make some sort of battery out of the salt.
my favorite method of short-term energy storage at scale is to use excess energy during non-peak times to pump water uphill, back into a reservoir. the topology has to be right for it (and obviously it requires there to be plenty of excess water), but it's a simple method to smooth out peak demand.
the underground wind bulbs of utah
my favorite method of short-term energy storage at scale is to use excess energy during non-peak times to pump water uphill, back into a reservoir. the topology has to be right for it (and obviously it requires there to be plenty of excess water), but it's a simple method to smooth out peak demand.
wikipedia has rather more information on this, including (in the history section) a bunch of examples of this at scale going back to the 70s<link>
the underground wind bulbs of utah
wikipedia has rather more information on this, including (in the history section) a bunch of examples of this at scale going back to the 70s<link>
this is pretty neat. i wonder how cost effective it is vs compressed fluid storage.
the underground wind bulbs of utah
this is pretty neat. i wonder how cost effective it is vs compressed fluid storage.
what if there's a leak in the salt mine?i mean, a salt mine is just a large hole in the ground. what assurance do we have that it doesn't have any hairline cracks through which compressed air can escape?and if the air does begin to escape and erode the surrounding rock, how do you prevent a massive explosion occurring at some point? is the weight of the rock above the cavern enough to keep the air compressed at 1100 psi?
opengov, a startup intended to transform the way governments manage tax dollars
definitely think this is a step in the right direction.unfortunately, it looks like this solution does not address the balance sheet side of the equation, which is where most towns are in dire straights (even if they don't admit it as they have more latitude in not recognizing the future costs of say pensions than corporations do). until people have true transparency into this area, it will be hard to make good decisions as an electorate.again, think its a great step forward...on a very long road
see balance sheet here: www.sausalitoca.opengov.com<link>
opengov, a startup intended to transform the way governments manage tax dollars
see balance sheet here: www.sausalitoca.opengov.com<link>
as somebody who is interested in improving my awareness of local politics, i think this is really great. not only have these guys created a beautiful interface for viewing budget allocations, they have actually convinced governments to use it. i look forward to the day this comes to san francisco. even those with no interest in politics will be better off for it, as greater transparency will surely improve the way our money is being spent.as usual, most hn comments are negative. i've met balaji, and he can talk some good hype when he wants to, but i think it's hardly disingenuous or linkbaity to emphasize that opengov already has customers with $50 billion in revenues/spending. it could potentially be used by any city, state, or national government, or really any large organization spending public dollars. that's an enormous potential market.
opengov, a startup intended to transform the way governments manage tax dollars
as somebody who is interested in improving my awareness of local politics, i think this is really great. not only have these guys created a beautiful interface for viewing budget allocations, they have actually convinced governments to use it. i look forward to the day this comes to san francisco. even those with no interest in politics will be better off for it, as greater transparency will surely improve the way our money is being spent.as usual, most hn comments are negative. i've met balaji, and he can talk some good hype when he wants to, but i think it's hardly disingenuous or linkbaity to emphasize that opengov already has customers with $50 billion in revenues/spending. it could potentially be used by any city, state, or national government, or really any large organization spending public dollars. that's an enormous potential market.
if you want to learn more about the civic tech/gov tech space, checkout the code for america summit live stream when it continues tomorrow at <link> plug: i will be presenting about our start-up tomorrow)it's not just a16z who's getting into this space. check out the new fund by ron bouganim.<link> obviously, y-combinator is now getting into the government space. <link>'s been a slow build, but the industry is huge.
opengov, a startup intended to transform the way governments manage tax dollars
if you want to learn more about the civic tech/gov tech space, checkout the code for america summit live stream when it continues tomorrow at <link> plug: i will be presenting about our start-up tomorrow)it's not just a16z who's getting into this space. check out the new fund by ron bouganim.<link> obviously, y-combinator is now getting into the government space. <link>'s been a slow build, but the industry is huge.
pretty sad to see hn become a parody of itself on a near constant basis: half of the comments attacked the article as &quot;link bait&quot; without even addressing the actual content. i've been watching opengov closely for the last year and have been impressed (and jealous that i didn't start this myself having worked in big gov it shops my whole career and half jokingly playing around with the idea of a saas offering for publishing budget data online; something that seemed a difficult enough problem that i though it was magic when i was able to see it firsthand with opengov's software)
blackberry, under new leadership, unveils its newest smartphone
why only a 3 line keyboard? having to use an on-screen keyboardlet for punctuation and #'s seems to detract from the point.if they were serious about spreadsheets, why not shrink the keyboard horizontally and make the first phone (in a long time?) with a numeric keypad.
in contrast to many of the others, i think the industrial design of this thing is beautiful. of greater potential interest around here is they relatively quietly added the amazon app store to it.still, it amazes me that they don't do something fairly obvious like team up with bloomberg on becoming the mobile bloomberg terminals, complete with the chat and coloured keys.
blackberry, under new leadership, unveils its newest smartphone
in contrast to many of the others, i think the industrial design of this thing is beautiful. of greater potential interest around here is they relatively quietly added the amazon app store to it.still, it amazes me that they don't do something fairly obvious like team up with bloomberg on becoming the mobile bloomberg terminals, complete with the chat and coloured keys.
i know my opinion isn't in line with the positive feedback loop culture on hn, but this phone looks like a joke!i feel like hardware keyboards on mobile devices are archaic and overhyped. i know it's blackberry's key thing, but instead of trying the same old tired keyboard, why not embrace the software keyboard with some innovations? they could do some research in ultrasonic haptic feedback, shape shifting displays, even something as far fetched as claytronics to replicate the the textures and friction of everyday objects.if you like or have to use blackberry, i guess this is the phone for you, but otherwise how can anybody want to choose a painfully mediocre device? i don't feel sorry for their slow fade into obsolescence.
blackberry, under new leadership, unveils its newest smartphone
i know my opinion isn't in line with the positive feedback loop culture on hn, but this phone looks like a joke!i feel like hardware keyboards on mobile devices are archaic and overhyped. i know it's blackberry's key thing, but instead of trying the same old tired keyboard, why not embrace the software keyboard with some innovations? they could do some research in ultrasonic haptic feedback, shape shifting displays, even something as far fetched as claytronics to replicate the the textures and friction of everyday objects.if you like or have to use blackberry, i guess this is the phone for you, but otherwise how can anybody want to choose a painfully mediocre device? i don't feel sorry for their slow fade into obsolescence.
why the hell can't i just have my blackberry curve back? please! the form factor was perfect, the battery was great, the operating system was hella snappier than my current nexus, all it needed was to run android apps and have a better camera. why are they trying to sell us bathroom tiles now?
blackberry, under new leadership, unveils its newest smartphone
why the hell can't i just have my blackberry curve back? please! the form factor was perfect, the battery was great, the operating system was hella snappier than my current nexus, all it needed was to run android apps and have a better camera. why are they trying to sell us bathroom tiles now?
if a brand is out of fashion, of course everyone loves to join in the fun and pile on, and any innovation, good or bad, is automatically thrown onto the bonfire.it's too bad because i think the screen is innovative, and i wish others would follow suit. some extra space on the side is more valuable to me than more at the top. i tried a squarish lg phablet a couple years ago and loved it. unhappily the software was poor and i had to switch to something with a more standard aspect ratio.also, i trust blackberry shares my priorities about productivity and security; anything to save me a few seconds each time i use it would be great. i hardly ever use my phones for anything else, other than occasional maps and web browsing. if it works well, i'm tempted, though its potential in the marketplace is worrying. and no, i don't care if you think my phone is unfashionable.edit: added a couple words to the first paragraph to clarify.
daala: painting images for fun (and profit?)
i'm thrilled to see people still thinking through an entirely different approach to image and video compression.
tldr: far better quality than low quality jpeg, same size file. not a replacement for high quality jpeg due to visible artifacts. major drawback is slow processing, but tweaks and a well-parallelizable algorithm should resolve this... and be ideal for gpus (and thus very light on mobile device power consumption).search page for 'as a com' to get the definitive jaw-dropping image.
daala: painting images for fun (and profit?)
tldr: far better quality than low quality jpeg, same size file. not a replacement for high quality jpeg due to visible artifacts. major drawback is slow processing, but tweaks and a well-parallelizable algorithm should resolve this... and be ideal for gpus (and thus very light on mobile device power consumption).search page for 'as a com' to get the definitive jaw-dropping image.
this is so great to see. i know we're years away, but what does the hn community think it would take for daala to reach the opus-levels? not just in technical achievement, but widespread usage/hardware support? i would love to have a completely free codec dominate video.
daala: painting images for fun (and profit?)
this is so great to see. i know we're years away, but what does the hn community think it would take for daala to reach the opus-levels? not just in technical achievement, but widespread usage/hardware support? i would love to have a completely free codec dominate video.
no comment on the technical stuff, but the paint algorithm applied to the video looks really pretty.
daala: painting images for fun (and profit?)
no comment on the technical stuff, but the paint algorithm applied to the video looks really pretty.
the codec wars are almost over thanks to moore's law. the decoder will soon be streamed with the content, taking up more than a couple seconds of bandwidth. and not surprisingly, the decoder will be written in javascript/webcl. the codecs no longer have to be installed on the system, they can be pushed along side the content. two to three years from now, on modern hardware, you will be able to use the codec of your choice.
a mildly satanic new video game that you can only play online with money
jason rohrer's games are fantastic - i'd recommend his game passage, which only lasts for five minutes.<link>
i set my expectations low when i saw the empty hype the beginning of the article was building up, but this game actually sounds quite strategically interesting.i definitely see why this is the kind of game that isn't the same without money, much like poker and backgammon. i hope there's some kind of micropayment platform that it could eventually support to avoid the credit-card fees and the check-mailing fees.(no, not bitcoin. most people can't use bitcoin.)
a mildly satanic new video game that you can only play online with money
i set my expectations low when i saw the empty hype the beginning of the article was building up, but this game actually sounds quite strategically interesting.i definitely see why this is the kind of game that isn't the same without money, much like poker and backgammon. i hope there's some kind of micropayment platform that it could eventually support to avoid the credit-card fees and the check-mailing fees.(no, not bitcoin. most people can't use bitcoin.)
the success of this game is partly predicated on player trust, i.e. how do i know that it's not being rigged against me by the operator? it is a game of skill, but gives the player imperfect information (unlike chess), leaving the possibility of various forms of cheating and fraud.i am interested to see how this could be addressed.
a mildly satanic new video game that you can only play online with money
the success of this game is partly predicated on player trust, i.e. how do i know that it's not being rigged against me by the operator? it is a game of skill, but gives the player imperfect information (unlike chess), leaving the possibility of various forms of cheating and fraud.i am interested to see how this could be addressed.
what i thought was compelling is that a well-known indie game developer had the really smart idea to target the online-poker skilled-game competition niche that's opened by short-sighted us laws
a mildly satanic new video game that you can only play online with money
what i thought was compelling is that a well-known indie game developer had the really smart idea to target the online-poker skilled-game competition niche that's opened by short-sighted us laws
this is a new trend starting in gaming industry. apple has now started approving skill-based &quot;gambling&quot; games. one such example is dollar candy created by ian ippolito (who also created planetsourcecode.com and rentacoder.com). these games are addictive, you play against real human and there is money on the line in each game.gambling had been banned for a reason for long time in many cultures - it's all too common for poorest people to blow up their earnings in the hope of a jackpot. they do so not because they are less smart but because they are too desperate and don't have any other opportunity to making it through. now game creators have found a loop hole in the law aka &quot;skill-based&quot; games. i can see lot of people barely making ends burning their kids school money in these stuff while standing in grocery lines.
blackberry goes for qwerty keyboard, again, with passport smartphone
blackberry, ditch the os...it's holding you back.i loved my moto droid pro back in the day. i got a decent ecosystem, compact portrait qwerty package, and serviceable screen.your problem now is that your ecosystem is toast. trim the fat in your development house, package a nice android os with some throwback gui cute shit to your old blackberry feel, and move on with your life as a hardware player.
i see a pattern in this article:&quot;said analyst rob enderle of enderle group&quot; &quot;maribel lopez, an analyst at lopez research, added&quot; &quot;jack gold, an analyst at j. gold associates,&quot;
blackberry goes for qwerty keyboard, again, with passport smartphone
i see a pattern in this article:&quot;said analyst rob enderle of enderle group&quot; &quot;maribel lopez, an analyst at lopez research, added&quot; &quot;jack gold, an analyst at j. gold associates,&quot;
it's a bit of an ugly duckling device, and i'm not sure it can ever grow into a beautiful swan.
blackberry goes for qwerty keyboard, again, with passport smartphone
it's a bit of an ugly duckling device, and i'm not sure it can ever grow into a beautiful swan.
love the blackberry keyboard, but hate the os. if i could get their keyboard on an android or iphone i'd be all over it. i don't like touchscreen keyboards, but since they're the only option offered on devices with an acceptable os, i use them grudgingly. clearly the security-first mantra that blackberry adheres so religiously to isn't doing them any favors--as their market share, even among the security conscious, falls precipitously.
blackberry goes for qwerty keyboard, again, with passport smartphone
love the blackberry keyboard, but hate the os. if i could get their keyboard on an android or iphone i'd be all over it. i don't like touchscreen keyboards, but since they're the only option offered on devices with an acceptable os, i use them grudgingly. clearly the security-first mantra that blackberry adheres so religiously to isn't doing them any favors--as their market share, even among the security conscious, falls precipitously.
&gt; while the passport is almost exactly the size of a travel passport, it is much heavier at 6.9 ounces.hilarious comparison. must it be actually be stated that the passport is heavier than a travel passport?apples and oranges... passports and passports.
cve-2014-7169: bash fix incomplete, still exploitable
earlier on a mailing list someone pointed out that there is still an awful lot of string processing going on by bash even after this afternoon's fix. so further bugs were likely to be found now that everyone is constantly sniffing around the place.
can someone explain why bash is evaluating and looking for function definitions in every environment variable? what would be broken if this entire &quot;feature&quot;, whatever it is, was completely disabled?that's almost like a c compiler looking for c programs in string literals. it just doesn't make sense to me.
cve-2014-7169: bash fix incomplete, still exploitable
can someone explain why bash is evaluating and looking for function definitions in every environment variable? what would be broken if this entire &quot;feature&quot;, whatever it is, was completely disabled?that's almost like a c compiler looking for c programs in string literals. it just doesn't make sense to me.
proposed patch for cve-2014-7169 here:<link> am building bash updates for ubuntu containing the proposed fix here and will publish them once the fix has been made official:<link>
cve-2014-7169: bash fix incomplete, still exploitable
proposed patch for cve-2014-7169 here:<link> am building bash updates for ubuntu containing the proposed fix here and will publish them once the fix has been made official:<link>
with the patched bash, if you run env x='() { (a)=&gt;\' sh -c &quot;echo date&quot; this is equivalent to running date &gt;echo that is, you can put something in the environment which causes it to drop the first token, run the result as a command, and redirect the result to the dropped first token.an example of a context where this would be exploitable, is a cgi webapp which accepts an uploaded zip file, stores it in a fat filesystem, and and runs system(&quot;unzip /path/to/file&quot;). then putting a corrupt string in a header would cause the file to be executed, rather than unzipped.
cve-2014-7169: bash fix incomplete, still exploitable
with the patched bash, if you run env x='() { (a)=&gt;\' sh -c &quot;echo date&quot; this is equivalent to running date &gt;echo that is, you can put something in the environment which causes it to drop the first token, run the result as a command, and redirect the result to the dropped first token.an example of a context where this would be exploitable, is a cgi webapp which accepts an uploaded zip file, stores it in a fat filesystem, and and runs system(&quot;unzip /path/to/file&quot;). then putting a corrupt string in a header would cause the file to be executed, rather than unzipped.
all this &quot;echo date, cat echo&quot; business is confusing.let me fix that for you. hobbes@metalbaby:~$ export badvar='() { (a)=&gt;\' hobbes@metalbaby:~$ bash -c &quot;somestring executeme&quot; bash: badvar: line 1: syntax error near unexpected token `=' bash: badvar: line 1: `' bash: error importing function definition for `badvar' bash: executeme: command not found hobbes@metalbaby:~$ cat somestring #it exists but is empty. hobbes@metalbaby:~$ bash -c &quot;somestring date&quot; bash: badvar: line 1: syntax error near unexpected token `=' bash: badvar: line 1: `' bash: error importing function definition for `badvar' hobbes@metalbaby:~$ cat somestring thu sep 25 11:01:35 cdt 2014 hobbes@metalbaby:~$ bash -c &quot;somestring echo hello&quot; bash: badvar: line 1: syntax error near unexpected token `=' bash: badvar: line 1: `' bash: error importing function definition for `badvar' hobbes@metalbaby:~$ cat somestring hello gititgotitgood? great. now how the heck does anybody think that is as bad as the first one?for this one, an attacker needs to control both the environment and the command line of the child shell.people, if those criteria are met, the attacker wins, with or without bugs.yes, yes, there are situations where the attacker has partial control of the command line via a filename argument or whatever--whatever indeed! that's not even in the same category as the first bug.
docker hub official repos: announcing language stacks
pity they choose &quot;golang&quot; instead of &quot;go&quot; for their default go image. it's called &quot;go&quot;. and they built docker with go.
maybe i'm missing something here but i don't see this as being particularly useful?it's a nice quick way to get an application running in docker but realistically would you want to be depending upon these images in production?the power i see in docker is the ability to create portable images that contain everything my application needs. i don't want to depend upon docker (the company) to figure out what these images should look like.am i looking at this the wrong way?
docker hub official repos: announcing language stacks
maybe i'm missing something here but i don't see this as being particularly useful?it's a nice quick way to get an application running in docker but realistically would you want to be depending upon these images in production?the power i see in docker is the ability to create portable images that contain everything my application needs. i don't want to depend upon docker (the company) to figure out what these images should look like.am i looking at this the wrong way?
can someone explain to me what the fuss is about? i mean, e.g. the java 7 dockerfile is 3 lines. why is it better for me to from these images instead of copying those three lines into my own dockerfile?
docker hub official repos: announcing language stacks
can someone explain to me what the fuss is about? i mean, e.g. the java 7 dockerfile is 3 lines. why is it better for me to from these images instead of copying those three lines into my own dockerfile?
i'm very happy to see hy language among the official repos! i think more people should know about it.
docker hub official repos: announcing language stacks
i'm very happy to see hy language among the official repos! i think more people should know about it.
does anyone know why debian was chosen as the source for these repos? i thought they were defaulting to ubuntu.ie. <link>
ask hn: get feedback on my bootstrapped web scraping as a service project? hi hn,<p>i worked on <link> for the past 5 months or so. i would like some feedback please.<p>thank you.
page itself looks nice, but why you've decided to have a custom scroll? i think it would be so much better without it. will try to look into app itself later.
it looks great, very good job.one question you should be prepared to answer is how you compare to alternatives:- services like kimonolabs and import.io- building a scraper with scrapy- using scrapehubfrom what i understand the price point of the above is lower (some are free) while still offering the same features. what can you offer that they don't?
ask hn: get feedback on my bootstrapped web scraping as a service project? hi hn,<p>i worked on <link> for the past 5 months or so. i would like some feedback please.<p>thank you.
it looks great, very good job.one question you should be prepared to answer is how you compare to alternatives:- services like kimonolabs and import.io- building a scraper with scrapy- using scrapehubfrom what i understand the price point of the above is lower (some are free) while still offering the same features. what can you offer that they don't?
the ui for defining the scraper targeting rules is an a+ in my book. i've used a number of visual tools for this over the years but most try to do to much and the usefulness suffers. yours doesn't.your price however feels off by about a factor of somewhere between 4 and 8. i haven't really got your system usage data to fully analyse but it feels too high a price. if your using full desktops and chrome browsers and the overhead is higher than i'm expecting based on past experience then perhaps the pricing is off by a factor of only 2that also doesn't even account for the ability to take the scrape rules, reformat them to run with a headless scraper like scrapy when the website is suitable and is able to be scraped by scrapy, offering a reduced cost scraping option powered this way, throttled back to &quot;human speed&quot; is probably best priced around $1 or $2 a month per crawl thread.i'm not saying the chrome browser powered crawling part couldn't be so inefficient you need to charge $20 to make 1 crawler pay for itself, but if that's the case, it's a growth limiter you should consider ways to optimise.right now your ui is about 10 times better than the open source portia ui from scrapinghub, but your also 10x the cost of operating a portia crawler. it's just something to keep in mind.tl;dr? nice product, but a bit expensive.
ask hn: get feedback on my bootstrapped web scraping as a service project? hi hn,<p>i worked on <link> for the past 5 months or so. i would like some feedback please.<p>thank you.
the ui for defining the scraper targeting rules is an a+ in my book. i've used a number of visual tools for this over the years but most try to do to much and the usefulness suffers. yours doesn't.your price however feels off by about a factor of somewhere between 4 and 8. i haven't really got your system usage data to fully analyse but it feels too high a price. if your using full desktops and chrome browsers and the overhead is higher than i'm expecting based on past experience then perhaps the pricing is off by a factor of only 2that also doesn't even account for the ability to take the scrape rules, reformat them to run with a headless scraper like scrapy when the website is suitable and is able to be scraped by scrapy, offering a reduced cost scraping option powered this way, throttled back to &quot;human speed&quot; is probably best priced around $1 or $2 a month per crawl thread.i'm not saying the chrome browser powered crawling part couldn't be so inefficient you need to charge $20 to make 1 crawler pay for itself, but if that's the case, it's a growth limiter you should consider ways to optimise.right now your ui is about 10 times better than the open source portia ui from scrapinghub, but your also 10x the cost of operating a portia crawler. it's just something to keep in mind.tl;dr? nice product, but a bit expensive.
it looks quite easy to use from your video.which cloud provider do you use for your backend crawl, and do you run the scraper from a single node or from multiple nodes?
ask hn: get feedback on my bootstrapped web scraping as a service project? hi hn,<p>i worked on <link> for the past 5 months or so. i would like some feedback please.<p>thank you.
it looks quite easy to use from your video.which cloud provider do you use for your backend crawl, and do you run the scraper from a single node or from multiple nodes?
needs more details, a couple of examples that instantly spring to mind:do you spread requests out across multiple ip's to avoid bans / rate limiting?do you run javascript on the pages?
aws issues unavoidable reboot schedules with short notice on many ec2 instances
a couple of points:autoscaling is your friend. if you're not leveraging it (multiple availability zones), you're doing it wrong. even single instances can be launched in autoscaling groups with a desired capacity of 1 to ensure that if it falls over, a new one is spun up.point 2: aws is likely trying to rotate capacity for updates, which means they need to evict instances. that are running on doms that they need to update/deprecate/etc. the longer your instances are running (or the more specialized the type of instance is), the more likely you'll see an eviction notice. it should be part of a good practice to launch new instances often as new amis become available, or as private amis are updated for security patches, etc. - at least monthly! autoscaling and solid config management simplifies this practice greatly.good luck!
pretty crappy that you cannot immediately check if an instance has restarted on a patched host or not.i would have expected amazon to rush out a tool you can use to check or add a little marker to the dashboard or a simple api to query. some sort of synchronous option.having to wait possibly hours for an email to see if your vm migrated to patched host or not is a terrible solution.
aws issues unavoidable reboot schedules with short notice on many ec2 instances
pretty crappy that you cannot immediately check if an instance has restarted on a patched host or not.i would have expected amazon to rush out a tool you can use to check or add a little marker to the dashboard or a simple api to query. some sort of synchronous option.having to wait possibly hours for an email to see if your vm migrated to patched host or not is a terrible solution.
i don't think a lot of people are really understanding how much of a larger issue this would be for us if aws didn't patch a major security issue before it was made public.the company has treated me very well over the years, from aws to retail. my stuff arrives on time, if it doesn't i get reimbursed, most of the time with an extra few bucks for my trouble. the aws platform is more mature and feature rich than anyone else and keeps getting better.these reboots are going to save a lot of peoples butts, they wouldn't give a 48 hour notice if they had a better option.that being said, i'm very curious to see what info is released next week.
aws issues unavoidable reboot schedules with short notice on many ec2 instances
i don't think a lot of people are really understanding how much of a larger issue this would be for us if aws didn't patch a major security issue before it was made public.the company has treated me very well over the years, from aws to retail. my stuff arrives on time, if it doesn't i get reimbursed, most of the time with an extra few bucks for my trouble. the aws platform is more mature and feature rich than anyone else and keeps getting better.these reboots are going to save a lot of peoples butts, they wouldn't give a 48 hour notice if they had a better option.that being said, i'm very curious to see what info is released next week.
this isn't a direct answer, but for others who are coming to this page and need help on where to start, here is some info on what to do now from rightscale's cto, it also has a little comparison to what happened in dec 2011 reboot too (just an interesting side note): <link>
aws issues unavoidable reboot schedules with short notice on many ec2 instances
this isn't a direct answer, but for others who are coming to this page and need help on where to start, here is some info on what to do now from rightscale's cto, it also has a little comparison to what happened in dec 2011 reboot too (just an interesting side note): <link>
on aws you should be prepared for an instance to disappear at any time, for any reason. why is a scheduled reboot such a big deal?