I made a simple bash shell script to perform three imagemagick commands on every file in a directory. I did not use & nor | to make each command run concurrently.
#!/bin/bash
jpg="$1/*.jpg"
jpeg="$1/*.jpeg"
JPG="$1/*.JPG"
png="$1/*.png"
#convert to png
to_png() {
for file in $jpg; do mogri...
I am working on BLE using BLuez-5.46. I have two PC Master and slave communicating to each other via BLE. The slave advertises and the Master sends the connection and protocol request.
My problem is now I would like to know which function receives the requests being sent from the master in the s...
@terdon: Could you please send a super-ping or the likes to askubuntu.com/users/769225/hemangi-pithava? He or she made various edit suggestions that format natural-language names of technical artefacts as code.
…and it's getting annoying to clean up the edit suggestions since they often do contain worthwhile changes.
@DavidFoerster Just leave them a comment. Editors are pingable if you @ping them on the post they've edited. The name doesn't autocomplete, but the notification is sent.
You can use @name syntax anywhere in your comment to reply to a specific user. This will notify that user in their global inbox. There can also be notification through email if you set it up in the preferences found in your profile page.
Who can be notified with this feature?
The author of th...
> Any user who has a visible (non-deleted) comment on the post.
@dessert: Good question. I think the easiest way to answer that is an experiment.
@dessert: My expected result would be that it runs at the earliest possible time to be consistent with the behaviour for jobs scheduled to run in the past. From the manual: “If you specify a job to absolutely run at a specific time and date in the past, the job will run as soon as possible.”
I want to schedule a job using at command, but my laptop may have gone to sleep by that time. So the question is will that command will be executed?
If yes, how? I mean will my computer will wake and than the command will run or something else?
If not, why not?
So I've recently installed both Ubuntu 16.04 and Debian 9 (Stretch) as guest machines on VirtualBox on a Windows 10 host. Both are able to connect to the internet just fine when I'm not on VPN (updates, web browsers, etc.). However, when I connect to VPN, which both VM's show that they are connec...
Hmm, looks like it will run now if you give it a time in the past:
If you specify a job to absolutely run at a specific time and date in
the past, the job will run as soon as possible. For example, if it is
8pm and you do a at 6pm today, it will run more likely at 8:05pm.
@terdon I understand where you come from. The question is whether at interprets job times as “at (almost) exactly this time and only then” or “at the earliest possible time but no earlier than the given time”.
@terdon Then it might please you to hear that I wrote my own q-gram text index for similarity searches to enter in a competition in a bio-informatics tutorial during my studies.^^
@terdon I came in a close 2nd out of ~10 in the entire contest but this specific submission was 1st by a big margin.
I was the only contestant to consider memory-mapped files which significantly lowered the amount of system calls without the need to load the entire index into memory.^^
@terdon @DavidFoerster maybe it's XY after all: I wonder how I can run a command at 18:30 every day, but if the computer is off I want it to run asap when it's on again. cron will fail to do the latter, so I thought about using anacron with period=1 and at 18:30 – or is there a better way?
@dessert I don't think there's a proper solution because your problem is so far underspecified. For instance, what should happen when the job scheduler misses two or more invocations of the job.
Package management . Is a simple enough idea . A database and adding and removing files to a file system . Now dependency hell is used to make all kinds decisions . A dependency is program that another program or part of one as its self . So that is what i'd like to talk about , what is the best solution to the software manger crises
Sure, the presentation happens to be of that very concept but its an independent problem.
@FireInTheSky So you want to discuss how to "fix" your issues with Ubuntu as a whole? I thought you wanted to debate abstract conceptual issues of package management.
The concrete issue with Software Center appears to be that its developers haven't managed to integrate the presentation of Apt and Snap packages next to each other all that well yet. However, both Apt and Snap work quite well next to each other when used through their command-line user interfaces.
@FireInTheSky: On another note, you're a prime example of the joke "How do you spot a vegan?"
@DavidFoerster Software Center is a "nice tool to have" ... just for "looking around" and exploring stuff ... but for software management I recommend to use the command line @FireInTheSky . :)
What you call honey is fungus , bee hairs , poo , wee , dead babys and the eldery who died from the smoke who could not flee in time not to suffocate on the smoke , smoke and mold and dust mites and parsites
I don't know that is in apple juice that stops sugar from recrystallising and making honey but it does . It taste alot better because it does not have bee we and bee body pats and hairs and fungus and such in it
People pick up apples of all qualities from the dirty ground, throw them onto a truck and drive them somewhere where they splash some water over them and then shred and press the whole things, including all brown parts and worms inside.
@FireInTheSky What's an "avairy"? If you mean bee hives from a bee keeper, I disagree. I ate honey pretty much straight from the comb on multiple occasions at it tastet good.
Glucose is not the only thing that can make ATP , but it is the only thing the body can control and is water soluble . Fructose is more of drug over a certain amount and if i'm going to do nay drugs , it do nector first before resorting to more extream things
Well is must be on some mind controlled place because , it is normally very dark with all kind horrors . Have dust on the wings , have the dust mites on them and other parities and nits , they fart and poo and wee and die and the hives are artificial and dark and damp and moldy . The honey is dam near pitch black full of crap
I strive to do no unnecessary harm to others , if i cna can my metanine amino acid fro protein syntheies from some where other then my grand mothers face , i will . Every thing contains all amino acids acids .
@cl-netbox I think so too – and in these times I don't see why I should sacrifice my money to a bank instead of investing it in land that nourishes me and my family and is a much more stable investment…
@cl-netbox Unfortunately, neither solves the ecological problems that large scale stock farming causes. (By "large scale" I mean overall, not per farming business.)
Like you said a bull is made of grass . so you can eat every thing , so why be cruel . Don;t be cruel to a heart that is cruel , listen to the spirit of elvis , he died for your sins
Dr elsworth is a vegan open heart surgin who retired at 98 years old . Belive it or not most intelligent people are are . You will strugle finding any body in the sciences that is not vegans . Obliviously not in the department of dairy and meat sciences . Some day there will be a department of strawberry and banana
@terdon And here in 2017 Poettering tried to argue that because it would remove .. and shouldn't implement that security in systemD's reimplementation of rm.
I don't think I've ever met a vegan scientist. I'm sure there will be some, but it certainly isn't particularly common. Or, at least, not in my field (biology).
Due to a rather unfortunate series of events that can be directly attributed to a surplus of egg nog, the company that provides our hat rentals has requested that we immediately return them without refund. We can't really get into the particulars of what went down, but we did our best to explain ...
That is most intelligent people . Eeistein was so smart only Einstein could understand einstein and when people asked Eisteisn if he could understand him self he said no , proving Einstein is the smartest man
" Eeistein was so smart only Einstein could understand einstein" but he couldn't understand himself. If you can't understand yourself, you're a bit of a moron, really.
@FireInTheSky I thing you mixed up a few things here. People usually try to prove things so they can then know the proven property. If you already know about a property, that implies it has been proven.
hey guys, I'm facing some weird issue say i ran that command "swift build" and it says that permission is needed, so when I do "sudo swift build" it says command swift not found, so I ran sudo su then update the .profile by set the swift variables then source it and still facing the same issue
@Lamar Throwing around sudo without knowing why often leads to permission issues like that in the first place. I recommend that you open a question and include the exact commands that you ran, their full, verbatim output and the permissions of all the files that the commands may try to fruitlessly access (e. g. with ls -l).
Any way it is established , it is impossible to say some body is smarter . For all you know they are insane unless can prove they aint and to do that is to prove are just as smart
@Videonauth Have you ever seen one of those things? They're relatively common in France, and the first time I saw one in a super market I had to go and get my girlfriend so she could confirm I wasn't hallucinating.
The conversation is better dependency management . First premise is no one is smarter then me , now we got that proof locked down solid , we may continue
@terdon I've worked on a folder in Gimp, using an A4 template (300dpi). Client asks for PDF file, but obviously the high resolution ends up cropping the text on the PDF file unless you zoom in. I think a laser print would print the details so it doesn't look bad on paper, but a regular printer would result in a cropped impression?
@terdon I'm not sure what the question would be here lol
Linux file structure is set up like the person who posted that kitten in tea pots head
Skip details and go logic . The system shares files . Called dependencies . These are different version of the same document full of machine instructions called a source file
@terdon it's alright, I'll ask the guy if he wants the PDF for printing or for sending online, if it's the latter I'll have to scale down the resolution anyways
if it's for printing, then I'll have to figure that out lol
@IanC What do you mean the text is cropped during conversion to PDF? Shouldn't GIMP produce raster images anyway which circumvents all further font rendering issues? Do you haven an illustrative example?
300 dpi is not enough for a good print btw. 600 dpi are common for that.
So with these dependency documents : a foot is a foot and an arm is an arm . Feed in to it the size and shapes and colours etc and it out puts the code for that object
@DavidFoerster It rasterized the image, but the resolution is so dense that visualizing the image/document on a regular screen gets some details a little hard edged. It's expected, and "solved" by just zooming in, but I was worried if the guy tried to print it on a printer that didn't support a high dpi, if the hard edges would still be there
because I don't think I'll be there on the printing phase, I'm just delivering the image
@IanC In that case I suggest that you scale the image, that you use to make the PDF, up and apply any filters that you need to make the edges appear the way you want. Then you can be relatively sure that the artefacts won't reoccur when the image is sampled down again for printing.
@DavidFoerster I'll try to send a big image here, not sure if it'll work. The edgeness is due to the high resolution image being rendered in a smaller resolution, I'm not sure doubling the resolution could help
Don't go stupid doing it , keep away from probably crap , it aint real numbers for get it . Or is it essential , because every thing shape is a circle ?
There is no true circle in the universe , but saying that is wrong because all matter is a circle . any thing that is not matter is radiation . So the definition of a circle is a repeating path , is returning back to the original place in time and space . But if it is moving then it is not circle it is a spiral . When it stops it is again a circle . Any shape at all is a circle
@IanC The source of the artefacts here is the font which uses straight line segments instead of curves to approximate arcs. You can see the issue in the font collection sample PDF too if you enlarge it to 800%.
Is that the same font as in the actual graphic in question?
Because other than that I can't spot any artefacts in the sample graphic.
@DavidFoerster Yes, Zing Rust Script Rust, the same font I'm using on the image I'll deliver
so there's nothing to do except changing the font? It looks fine on Gimp, only noticed those issues when exporting the final image and opening it without zooming to 100% (or close to it)
My mom just called with her granddaughter, my niece, on her arm who, she says, looked perplexed when she heard me greet her through the phone. :-D
@IanC I looked at the circles too but the aliasing there looks different and much smoother. On the font glyphs you can see actual "corners" while the circles just exhibit the typical (smoothed) jagged edges.
@IanC The aliasing around the circles can be alleviated through super-sampling, the aliasing around the font glyphs cannot because it is a flaw in the font design that would scale together with an increased sampling rate.
@FireInTheSky I don't know. How does that make you feel?
@DavidFoerster Oh, I see what you mean now, but this wasn't showing on the original image because the font-size there was much smaller, so the straight lines weren't really noticeable. But you're right, that's a big issue with the font if it's needed on very large font-sizes
BREAKING: The FCC just voted to dismantle #netneutrality. This represents a radical departure that risks erosion of the biggest free speech platform the world has ever known.
@jrg I believe it's just economic warfare against hulu and netflix, but will creep slowly in to other areas over time because corruption. I participated in the mail your congressmen and H of R people, and I have one response to prove it. But, uh, I should have gotten more responses than that.
Net neutrality is the principle that Internet service providers must treat all data on the Internet the same, and not discriminate or charge differently by user, content, website, platform, application,
@RobotHumans Yep. The live example I've heard for that is Portugal which doesn't have net neutrality and no affordable fast general internet access, only bundles of various individual internet-based services that you can buy.
And that's even though Portugal doesn't have regional internet access provider monopolies.
I can understand charging someone a % of their bottom-line profits for keeping the site around, but that would require everyone opening their books and cable companies taking a slice of everyone's profits. It has scary implications for FOSS downloads and open source free to non-commercially use, but I do understand the corporate warfare for profit margins.
But then a shitty paying cable company could determine the pay rate of a SE admin. Which is shit. If people were just moral...
@RobotHumans Isn't that overly complicated and backwards? The access providers could easily charge their consumers for… well… internet access. Why go through the content providers?
Because the US already pays more per person in most of the first world for poorer service. And it's just my opinion that the effort was just a fight because everyone is cancelling their cable TV and just watching hulu, netflix, or amazon prime.
@RobotHumans That doesn't answer why access providers don't just charge their customers more. They're causing bandwidth usage, not the content providers.
The only feasible explanation I can come up with is that access provider believe that they can get content providers to pay up more easily than their own customers.
@DavidFoerster Because they'ld go out of business. They already know they're charging consumers as much as they can bear, and maintain subscriptions. Here's a local example. AT&T locally streams TV over your DSL connection. Then counts your TVs as bandwidth usage. So, you don't get the service you paid for if you use both at the same time. Shiesty.
Just think about the dominos. "We'll just charge everyone more than almost everywhere else" then "Everyone goes to coffee shops with free internet" then "Coffee shops can't afford it because it's a feedback loop" then "Why don't we have any subscribers?". It makes it almost worth it just to watch the monopoly burn. I hope the established services can outlast the cable/DSL providers.
They already did. They just didn't tell anyone. They already throttle based on where your traffic is going. F/E they throttled my 10MB to steam, and I was lagging in games. Random disconnects and DNS drops because I use 8.8.8.8 etc etc.
Both internet providers and mail companies increasingly remind me of a fictional Victorian delivery boy who charges both the sender and the recipient of his deliveries because "the other didn't pay me enough."
Yes. What's missing is the delivery boy offering "I will only charge you 3 shillings if I can buy the [thingy] for you at William’s instead of Dunner’s because William gives me 2 shillings for every purchase I direct his way."
You want to telecommute to save money? Great, your employer has to pay an extra $10/hr for your labor, because remote testing requires a lot of traffic generation. -- just an example.
…and then you go "You little rascal! I'll get another boy to do it then." – "No you won't. The boys and I split up our areas and agreed not to compete with each other, so you won't find anybody else."
"Oh, and if you think you can get your son to do delivery services, he won't be able to. The stores will only give packages to us, and your son would have to pay us for packages to deliver."