Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lazyeye
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
811.
▲
by
lazyeye
4y ago
Nope. What you call the "hard part" is if (rowcount > 100) newpage(); But lets use an entirely new, esoteric PDF specific layout language instead and we wont call that the "hard part". Actually to be fair it obviously
812.
▲
by
lazyeye
4y ago
Well obviously you'd have that code on each page. So thats the incredibly complex and challenging page numbering problem solved. As far as pagination is concerned I wrap each page in this tag <page size="A4"> <
813.
▲
by
lazyeye
4y ago
Well it does nothing of course. Nothing at all. Just like all the useless moral posturing on here (you know, as long as there is no personal cost involved beyond expressing an opinion).
814.
▲
by
lazyeye
4y ago
Here's some PHP code to handle page numbering (page breaks are no problem at all rendering html to pdf) :- <?php $pagenum = 1; $pagenum++; print("Page: $pagenum"); ?>
815.
▲
by
lazyeye
4y ago
Here's some PHP code to handle page numbering :- <?php $pagenum = 1; $pagenum++; print("Page: $pagenum"); ?>
816.
▲
by
lazyeye
4y ago
You cant do page numbering in html? Seriously? I haven't had an issue with any of these things rendering html to pdf.
817.
▲
by
lazyeye
4y ago
I havent found this at all. Ive been rendering very complex html to pdf (complex svg charts, headers, footers etc) and its been fine. Just a matter of getting the element heights/widths correct. Once you've got the basic page temp
818.
▲
by
lazyeye
4y ago
None of these things are difficult at all with html. Plus you have the benefit of having the document viewable in a web browser too. You use the exact same html layout for both with specific css (heights, widths mainly) for each.
819.
▲
by
lazyeye
4y ago
Why you would use anything other than a HTML -> PDF rendering engine is beyond me.
820.
▲
by
lazyeye
4y ago
Agreed. Inconvenience is a small price to pay to avoid blandness.
821.
▲
by
lazyeye
4y ago
To all the likely incredibly highly paid people here (by world standards) commenting on the poor Kenyan wages. Rather than having vacuous, facile discussions on social media that achieve absolutely nothing other than signal how virtuous you
822.
▲
by
lazyeye
4y ago
For a great example of an utterly different way of life, I recommend checking out the TV reality series "Port Protection" where they document the lives of people living a modern-day subsistence lifestyle in a small community on an
823.
▲
Sitting all day is terrible for your health
(theconversation.com)
31 points
by
lazyeye
4y ago
|
5 comments
824.
▲
by
lazyeye
4y ago
https://reddit.com/r/overemployed
825.
▲
by
lazyeye
4y ago
This piece is just as much the simplistic, black and white thinking it pretends to argue against. I think what we are seeing now is a re-balancing of priorities due to a significantly changed environment. This is not an extremist position.
826.
▲
by
lazyeye
4y ago
Apple only cares "really deeply" about ethics where there is no financial penalty attached. China would be an obvious exception to this. https://www.theinformation.com/articles/facing-hostile-chine... Note: T
827.
▲
by
lazyeye
4y ago
There is injustice in our society no doubt and there are many ways of interpreting this and how it should be understood. You simply appear to be following the very narrow railroads tracks (norms) of a particular ideology without seemingly a
828.
▲
by
lazyeye
4y ago
I couldnt disagree more. In terms of breadth of coverage all the woke stuff get ways more coverage and interest. I don't how any objective person could say otherwise.
829.
▲
by
lazyeye
4y ago
You seem to be conforming to a particular set of norms yourself very well.
830.
▲
by
lazyeye
4y ago
So does wage inequality (doesnt get remotely the same level of attention though "for some reason").
831.
▲
by
lazyeye
4y ago
I find this absurd. The idea that those on left dont also have their own norms (which they police ruthlessly) is ridiculous.
832.
▲
by
lazyeye
4y ago
"Or the opposite - when the Left seeks social justice it is to satisfy the self-interests of the relatively poor" It also suits the interests of the rich if everybody is constantly arguing about issues that cost them nothing (gend
833.
▲
by
lazyeye
4y ago
Whatever the situation the arguments/analysis/incentives/outcomes always seem to align with the interests of the mega-wealthy. Recently, for example, the arguments around off-shoring jobs have changed completely due to the su
834.
▲
by
lazyeye
4y ago
Most students are at that stage of life where they are too stupid and ignorant to know how stupid and ignorant they are. This is why the primary responsibility to protect free speech lies with the faculty. And as we know, they often fail mi
835.
▲
by
lazyeye
4y ago
Yes they do. You are simply lying.
836.
▲
by
lazyeye
4y ago
And the FBI 100% knew the laptop was genuine. They publicly lied to support an election outcome. Not only is this not remotely a conspiracy theory, its something that needs to be taken incredibly seriously.
837.
▲
by
lazyeye
4y ago
There needs to be a publicly funded charity that pays people to work fulltime de-obsfucating all the major apps. This should be a well-resourced ongoing operation.
838.
▲
by
lazyeye
4y ago
Rather than all the useless ineffectual discussions that happens whilst a minority at Stanford continues to impose their views on the majority, what can be done to push back in a way that actually changes things?
839.
▲
by
lazyeye
4y ago
Google has no interest in you or your problems. I recommend watching the "Talks at Google" channel on youtube to see the kinds of things that interest the people at Google.
840.
▲
by
lazyeye
4y ago
Yes it is. What is the reason why China blocks all foreign social media apps within its own borders?
More ›