if I want to same a matrix as following : save(matrix,x); and x is equal to 1.. then I want to repeat the measurements and save : save(matrix,x); there x=2 now ,, matlab complains because x is a number ,, how to fix that?
@Joe Your question is off-topic for this room. It's not our fault that there's no one active in the matlab room. You should still post your question there and hopefully someone will see it in the next day or so.
@AshishNitinPatil Some might, but it's not a standard feature. However all chat messages are archived, so they can be accessed via the transcripts. Many room regulars skim the transcripts for interesting messages that were posted while they were offline.
@AshishNitinPatil Probably. Questions that can be answered by simply reading the docs are not very welcome on SO. OTOH, if the OP has difficulties understanding the docs, and posts some relevant code, then the question is more likely to get a positive response.
We expect people to search the docs, and SO, before they ask a question. Of course, it can be hard to search effectively if you don't know the appropriate search terms, and we try to take that into account. But that OP knows that the relevant OOP keyword is "super", so they have no excuse.
In fact, they're very lucky that they didn't get multiple downvotes for "does not show any research effort".
@AshishNitinPatil The theory is that it's more important to deal with fresh questions than old ones. If a bad question is attracting bad answers we want to deal with it quickly. But if a bad question is basically being ignored it doesn't matter so much. Hopefully, if a bad question is attracting answers it will also attract the attention of people who will flag or close-vote it.
Here's what I'd do. Before even thinking about response objects, I would take my two xml objects and combine them into a single xml object. I don't know how specifically that would be done, but I assume any good xml library has a way to turn <a>b</a> and <c>d</c> into <a>b</a><c>d</c>. Then I would take that single xml object and put it into a single HttpResponse object.
This is the same approach that Python programmers take when they need to return more than one object from a function call. return a,b takes a and b, combines them into a single tuple, and returns that single tuple object.
It's thanks to optional parentheses for tuple literals, and thanks to argument unpacking, that most people don't even know that a tuple is involved in the process at all
@RhysCopperthwaite Long story short, depending on what you're actually wanting to do with the xml objects, look into render and Django's templating system
@IntrepidBrit Reminds me of a lot of OpenGL tutorials I read in years past, which all start you off with a suite of matrix-manipulating functions that no "real" graphics program actually uses, apparently. They're just easier for newbies to grasp.
I do think there is a practical sensibility in getting readers from "nothing" to "successfully rendered a (triangle | web page) on the screen" as fast as possible, in order to encourage them, even if they have to un-teach some things later.
This is assuming that HttpResponses are actually easier and/or faster than the right way to do it
I can get on-board with that style of teaching - nothing worse than learning, learning and learning without having anything to show for it and turning people off to what they're trying to learn
-H, --set-home
Request that the security policy set the HOME environment variable to the home directory specified by the target user's password database entry. Depending on the policy, this may be the default behavior.
But the problem is the HTTPResponse is just that, a little better than a raw http response. I'm a bit rusty on my Django, but you can't do all the really important things like protecting against cross site scripting attacks etc
hi everyone, sorry i am trying to look for some help i am a begginer in python and i am tryign to retrive some data from a website using Selenium, i am facing some issues. Can anyone help me please?
@idjaw Ok, so it takes 6,600 computer-years to create a SHA-1 collision if you have control of both docs, and 100,000 times longer if you're brute-forcing the second document. That's not a huge risk, but it is good evidence to encourage people to move away from SHA-1. OTOH, as article mentions, it's been known that SHA-1 is vulnerable with current technology for several years.
My overall goal is to get the data from the website to then make a visualisation of it. The website shows animal population data by year but first it shows a selectable field to select the year then after this has been selected it loads a table with the information for that year
what i want is to get that information for all th years so i am trying to get the website to select one year load the table, select the next year and again select the table....and so on for each year available in the year field options
For the problem you mention in your comment, it may be worthwhile making an entirely new question for just that. Answerers tend to get discouraged when they post something and the reply they see is "that works, but now I have this other issue..."
OTOH, that just refers to a simple SHA-1 hash. It has virtually no impact in its use in algorithms that use repeated hashing like HMAC, where even the old MD5 is still quite safe.
@PM2Ring Every time I read a news item like "vulnerability in security algorithm discovered", I mentally replace "discovered" with "publicized". I just assume that shadowy government agencies discovered it years ago.
And it's only now getting out because some NSA drones finally discussed the algorithm in enough detail by the potted plant that Bruce Schneier dropped a hidden microphone into years ago, that it could be reverse-engineered by private citizens.
@Kevin Wikipedia says that knowledge of its vulnerabilities were known back in 2005. However, that's a far cry from being able to produce a pair of colliding documents. Especially if you want the documents to appear to be normal documents and not just a bunch of gobbledygook.
@idjaw Make that 1000 old computers sitting in the basement. Or at least a cluster of supercomputers. IIRC, people were starting to use GPUs for non-graphic computations back then, but of course GPUs have increased in speed and power quite a bit since then.
Could someone with the appropriate privileges un-duplicate this question? They aren't duplicates, they have similar symptoms to different problems.. stackoverflow.com/questions/26045113/…
If you think about it, most words have an unclear origin. Even if you can trace their lineage back to ancient Sumerian or whatever, you still don't know where the Sumerians got it from.
The exception being onomatopoeias. The origin of "moo" is from cows, because cows go "moo". (approximately)
> When you run pip with sudo, you run setup.py with sudo. In other words, you run arbitrary Python code from the Internet as root. If someone puts up a malicious project on PyPI and you install it, you give an attacker root access to your machine. Prior to some recent fixes to pip and PyPI, an attacker could also run a man in the middle attack to inject their code when you download a trustworthy project.
Not even physical time travel is necessary, necessarily. You just need a time-looker-backwards-tube so you can peek over the shoulder of Mesopotamian scribes.