identifier
stringlengths
7
768
collection
stringclasses
3 values
open_type
stringclasses
1 value
license
stringclasses
2 values
date
float64
2.01k
2.02k
title
stringlengths
1
250
creator
stringlengths
0
19.5k
language
stringclasses
357 values
language_type
stringclasses
3 values
word_count
int64
0
69k
token_count
int64
2
438k
text
stringlengths
1
388k
__index_level_0__
int64
0
57.4k
https://pl.wikipedia.org/wiki/Istres
Wikipedia
Open Web
CC-By-SA
2,023
Istres
https://pl.wikipedia.org/w/index.php?title=Istres&action=history
Polish
Spoken
66
181
Istres – miejscowość i gmina we Francji, w regionie Prowansja-Alpy-Lazurowe Wybrzeże, w departamencie Delta Rodanu. Według danych na rok 1990 gminę zamieszkiwały 35 163 osoby, a gęstość zaludnienia wynosiła 309 osób/km² (wśród 963 gmin regionu Prowansja-Alpy-W. Lazurowe Istres plasuje się na 18. miejscu pod względem liczby ludności, natomiast pod względem powierzchni na miejscu 22.). Bibliografia Miejscowości w departamencie Delta Rodanu Istres Miasta w regionie Prowansja-Alpy-Lazurowe Wybrzeże
2,061
https://stackoverflow.com/questions/21776813
StackExchange
Open Web
CC-By-SA
2,014
Stack Exchange
dkozl, https://stackoverflow.com/users/1021726, https://stackoverflow.com/users/1432140, user1021726
English
Spoken
225
386
KeyCommand disabled MenuItem Whenever I add a Command to a <MenuItem> the MenuItem and foreground is grayed out. If I remove the Command it is styled as normal. It seems as if the MenuItem gets disabled when it uses a command. Could this just be a styling issue? I'm using MahApps.Metro which sets the style of my app. <MenuItem Header="_SETTINGS" Margin="0,0,10,0"> <MenuItem Header="_View Settings" Command="ApplicationCommands.Properties"> <MenuItem.Icon> <Image Height="16" Width="16" Source="../Images/settings-26.png"></Image> </MenuItem.Icon> </MenuItem> </MenuItem> Do you have something attached to this command? If there is nothing to execute it will be disabled @dkozl - No I don't! Not yet. Post this as an answer and I'll vote it as correct if it turns out that was the problem :) You need to attach some CommandBinding for that command otherwise it will be disabled RoutedCommand.CanExecute The actual logic that determines if a RoutedCommand can execute on the current command target is not contained in the CanExecute methods, rather CanExecute raises the PreviewCanExecute and the CanExecute events which tunnel and bubble through element tree looking for a object with a CommandBinding. If a CommandBinding for that RoutedCommand is found, then the CanExecuteRoutedEventHandler attached to CommandBinding is called. These handlers supply the programming logic for determining if the RoutedCommand can execute or not. Without CommandBinding CommandManager.CanExecute event will always came back as false and your button will be disabled
20,476
https://softwareengineering.stackexchange.com/questions/251652
StackExchange
Open Web
CC-By-SA
2,014
Stack Exchange
Frank, JeffO, Nathan Stretch, Robert Harvey, Telastyn, https://softwareengineering.stackexchange.com/users/1204, https://softwareengineering.stackexchange.com/users/16375, https://softwareengineering.stackexchange.com/users/51654, https://softwareengineering.stackexchange.com/users/855, https://softwareengineering.stackexchange.com/users/87628
English
Spoken
3,949
4,987
How important is automated testing in rapid release, non-critical (web) apps? I think I understand the theoretical benefits of automated testing, especially unit testing. However, I'm not sure what the optimal amount of testing is when the project is a non-critical, rapidly developed (and deployed) web app with a reasonably large user base. My current reasoning goes like this: Most of the core functionality of our app can be manually tested in a matter of seconds. (The site is a type of search engine, so basically - run search, get results, it works.) Of course, there are many edge cases and options and such that could be tested, as well as unit testing of underlying logic, but if anything significant breaks and isn't caught before it's made live, we literally tend to get email from users within an hour. (Within minutes if it's a major problem, but very rarely does one of those get out.) So the consequence of any significant problem going live is that a few people are inconvenienced for a few minutes. Maybe some percentage of new visitors we get in that period would be lost, although the numbers should be very low since the time period is so short. Lower impact bugs might take longer for someone to email about - days, or even weeks depending on the severity - but they will also have less of an impact on users, so from a business perspective likely don't "matter" as much. Now, I'm not saying that excellent test coverage is useless. Of course it would be nice to catch every issue before it goes live. But in the cost/benefit tradeoff between working on tests and responding quickly to user feedback / adding and refining features, the latter seems to win. The one exception I've found is in code that doesn't directly affect the user. For example, ad serving code, or data collection. These don't directly impact the user's value from the site, so people are unlikely to let us know when they break. They will also be less noticeable in our feature testing. So I can see a strong case for well-defined unit tests there. (And from there, there ironically seems to be a spectrum where good test coverage becomes less important as features become more important, to the point where code that is critical to the site's operation doesn't really need to be tested (in a well defined manner) at all.) So my question is, am I way off base here? Is widespread test coverage and/or test-driven development optimal even in a non-critical, continuous-release environment? And if so, where am I failing in my reasoning? Or, assuming we fix bugs immediately when reported, is it reasonable to focus on rapid, nimble development, knowing that our users will let us know if we break something? (With the exception that we will have formal tests for functionality that is not directly exposed to the user.) Define "reasonable." If your goal is to crowdsource the bulk of your testing effort (what I euphemistically call beta testing your software on your customer base) without preserving testing qualities like repeatability and code coverage, then yes, it is reasonable. In addition, a full set of unit tests makes it easy to do refactoring (and even extension) so you can make your site better without continually releasing. I also question the validity of your manual tests. Sure you get results, but are they good results? Are they worse than what was there before? @Telastyn - good point regarding testing the results themselves. The site I was thinking of is powered by (highly customized) Google Custom Searches, so their code is largely a black box, but we could and should have some tests that check the sanity of those results for advanced search parameters and things like that that wouldn't be immediately obvious. @RobertHarvey, If there is indeed a tradeoff between testing and development speed, I expect many (most?) of our users would prefer to get the features they want more quickly, at the expense of occasional bugs, provided that we fix bugs immediately and quickly once reported. So I guess thinking of the product as a continuous beta to some extent would be fair. What I'm not sure about is whether there is indeed a tradeoff between testing and speed, or if I just need to change how I think about testing. Nothing will decrease user's confidence in your app than to know you fixed a bug only to introduce another in an area that they think are completely unrelated. To be honest, these days I am more and more inclined to simply comment on this as unprofessional behavior. There are very good books like Legacy Code 1, Refactoring [2], or Clean Code [3], which explain much better why professional software development should always include tests. Warning: the following are my opinions and sometimes phrased rather strongly, because I do strongly believe them, not because I want to put you or your project into a bad light. Advantages You gave a few reasons, why one might want to add tests, however, you seemed to have missed a few details on those. Code that doesn't directly affect the user This is a double-edged sword at best, or just plain pointless. If it doesn't affect your user, then it's simply by the very definition of the word useless. Every piece of code should affect your user, because it is the reason why your user wants your app at all. Of course, you meant it in the sense of code that relates to the visually observable aspects of your app (aka GUI parts). But that means we're discounting such a small portion of your overall codebase, that it's not really worth discussing. It's like having a warehouse full of plums and wondering whether it's worth it to buy a corer for the plums at all, because it may not even work for that one apple in your hand. Consequence is inconvenience You are quite correct in that existing users are inconvenienced. But I do hope you are the market leader, or even better the monopolist. If there is a second app available to the user which does not inconvenience her - guess what? she'll switch. Often this happens faster than you can say "I'll fix it". Obviously, newcomers to your app will just throw it into the trash right away.. it's not working at all when they try, so why bother? However, apart from simply losing direct sales on your app, there is another thing at stake: your company's reputation. What do you want people to think and tell others about your company? "These guys know what they're doing. Almost never do I have an issue with their products and if I do, they fix it asap", or do you prefer "I have no idea what these guys are doing.. every once in a while their products just stop working for a few hours. They should have fixed that long ago, but somehow they just can't get it right". The more impact your products have, the worse the problem. As a rather extreme case look at something like the Diablo 3 game, which was not functional for the first week after its release due to the massive demand of players. What did function very well though was the users venting their frustration everywhere on the net.. even today, the game has not exceeded 3 stars on amazon - granted, there are other issues with it, but the name Blizzard is marked in players' heads as "do not even expect to play on release dates. they'll screw it up again.". Complexity of test suite (you mentioned that one in your comment) Oh so true, more complex software means more complex tests.. or maybe not. This is a typical fallacy. Stop believing this. It is on the same line as "Sht in, sht out".. if your software is ever-so-complex, then tests or their complexity are not your problem. It's simply that software's complexity. Increased test complexity is just a symptom of that original problem. Tackle the real problem and make your software less complex, and lo and behold, your tests don't need to be complex either. It is also a very short-sighted argument that you lose time due to having to update tests when you make changes. Look at what really happens: you change the code and a test fails. Duh.. stupid tests.. but really, this just told you that you changed the code in a way that also changes the previously specified behavior of your program. Were you aware of that even? If not, then stop complaining right now, because you have been acting carelessly! If you do want to change the specified behavior, then tests even ensure that you did just that. What if you want to change from previous behavior to a new one, so you change the code, but no test fails? Oh oh.. major problem spotted right there. Complexity is a beast and truly unavoidable overall. But tests are the cage that keep it at bay and help you deal with it in a controlled manner. And several more you missed: Legacy code Most developers consider the code you are writing for your app today as legacy code. In 1 legacy code is even defined as code without tests. So what are the problems of legacy code? oh right.. that one guy which knew the code was just hit by the bus (aka left the company for a better opportunity). I bet your successor would contemplate giving his left foot for solid test coverage when he realizes that he now has to maintain someone else's software which goes into production to thousands of users, which even expect bugs to be fixed by the hour. Refactoring You can't do that. Period. The evolvability of your software is crippled to the point of non-existence. Everything you add to the product, every bug you fix, every minute you invest into that code, translates to even more costs further down the road. There is no risk-free clean up and there quickly comes a limit when you will no longer be able to just say "oh let's rewrite that.. if we mess up we'll hear from our users soon". Since you have no evolvability and refactoring, it just snowballs from there.. code complexity will rise together with bug counts and costs, each trying to out-do the other. Of course, this is no issue for you and your software, because it's small, simple, easy to maintain - step back just one step and look into the mirror. When you tell that to others what they hear is "famous last words". Stop fooling yourself if you really still believe that. In my experience, the only software that does not grow is the one that has utterly failed all of its assigned tasks - and you have bigger worries than testing in those projects. Development speed Every fix, every new feature, every single line of code you add or change, profit from tests. Combined with active refactoring of your codebase the development speed surpasses a project without tests very very quickly. The keyword here is feedback loop. While the feedback loop you have described via your customers is indeed a very short one, which is good!, it is also a very costly one (see above). Tests simply mean that you get an earlier feedback loop that is shorter and cheaper. Multi-Project view: When working on source code in a company, your project seldomly works in isolation. Projects can cross-fertilize each other by re-using or sharing common code. While this does add complexity and gives your architects headaches, it is all based on the very foundation of testing. Do not even dare to think about re-using or sharing code that is untested - you'll sacrifice both projects on the altar of ignorance that way. Regression Even though you can fix bugs within an hour (I do certainly not admire your sleeping pattern if that is for real!), your customers MAY (yes, that is a huge may) accept that for new features and previously unknown bugs. It is simply unacceptable and projects an immensely bad picture of your company, if the same bugs appear again lateron. If you start fixing a bug without writing a test to verify its existence first, then you are making a huge and costly mistake. If you cannot write a test against the bug, then you definitely are in no position whatsoever to even attempt to fix it. And if you wrote that test, you immediately see when it is fixed (because the test should of course assert the correct behavior, hence, turn from red to green due to the fix). Finally, the very same test serves as a regression test from now on to ensure your users will never ever see that identical bug again. (Off-topic: I'm sometimes wondering if it's worthwhile to introduce a saying like "Write once, profit everywhere" to capture this..) Professionalism What do you tell your manager? Do you have any moral conflict in confidently stating that you made this piece of software? or do you feel slightly ashamed, knowing that you just hacked it together and most of your confidence of the software's capabilities relies on sheer hope? Have you really done the company a service, or did you just create further obligations it has to pay for dearly in the future? The other side of the coin While I do argument in favor of automated testing, it was correctly pointed out, that this answer was one-sided, so let's take a look at the cons of automated testing. I have written another lengthy answer that goes into more detail on the general disadvantages of all automated testing. But in short, these disadvantages turn into advantages when you do not implement automated testing. Here's that same list in its "advantage"-point of view formulation: Development time: You get faster time-to-market Skill level: Your developers don't need to know anything about automated testing. Tooling: You don't need these tools or licenses. Failed and non-failed tests: You are not wasting time on tests anyways. Deployment costs: Costs are reduced to what you need for operation. Testing infrastructure cost is no longer needed. Summary In the end, its up to a lot of factors on what the best approach is. I would argue that there is no objective answer that holds for all projects and is concrete enough to implement. You can of course say that there are costs/profits (positive and/or negative) over time and you can think of two mathematical functions, one for automated tests, one for development without them. At the very least, there will be an intersection somewhere after which if you spend more time on the project, automated tests will have a better overall cost/profit. That point is definitely too late for a switching strategy though. Personally, in my experience, people severely over-estimate how long it takes to reach the point when automation pays off - myself included. Even projects that are supposed to only take 2 weeks have that tendency to keep going. Since the automated tests already help during development, the time delay caused by adding automated testing is similarly over-estimated. I am still unsure at what point automated tests start to pay off, but in my past that point was reached already a week or two into the project. In some projects the tests were there and a retrospective revealed the benefit, in other projects problems soon (and later) started to come up that would have been avoidable. I'd suggest to dismiss the notion of automated testing yes-or-no, and instead have automated testing and think of it as a tradeoff trying to find out just how much of it you need. 1 Michael Feathers' Working Effectively with Legacy Code (ISBN 0-13-117705-2) [2] 1999. Refactoring: Improving the Design of Existing Code, With Kent Beck, John Brant, William Opdyke, and Don Roberts (June 1999). . Addison-Wesley. ISBN 0-201-48567-2. [3] Clean Code: A Handbook of Agile Software Craftsmanship. Prentice Hall PTR. 2008. ISBN 0-13-235088-2 Thanks Frank, this is exactly the kind of response I was hoping for. I will check out those books as well. I'm not sure yet that I agree with all of your points, but some of them definitely resonate with me, particularly the Legacy Code section. I think part of the reason why we haven't run into many of the other issues you listed is that I've been working on this project since the beginning, and basically grok the entire code base. So I can easily see most ramifications of a given change. That's not sustainable though; even if I keep doing what I'm doing, it puts a cap on potential growth. I'm a bit cautious about the refactoring book, as it's quite dated imho, but still useful. The others are about the same age, but their content is still highly accurate these days. So far I think we actually would get the "These guys know what they're doing. Almost never do I have an issue with their products and if I do, they fix it asap" description. Bugs really do get fixed immediately (and I do manage to sleep fine, since I make a habit of not pushing significant changes right before bed!) Also, I have regularly encountered bugs from companies like Google and eBay that stick around for weeks or months, if they ever get fixed - not that their failure is a reason for us not to do better. - It's possible that we win more users with faster features than we lose with bugs, rare and brief as they are. Likewise, we do continuously refactor, and it works out so far because I review everything, but again - unsustainable. Also, we do have tests; just not very extensive test coverage so far.) Your points on test suite complexity and development speed are well taken. I'm not sure about the "unprofessional" label though. Several of our developers work in their pajamas; not professional, but effective. Regardless, I'm much more compelled by the concrete points, of which you made many. As you said you are the one who groks the codebase now, so the typical next step is for you to get one more responsibility (outside of this project), and fixes start getting delayed.. so your hours become days and soon you'll be as good as Google - at least in that sense :) +1 for pajamas.. but bare in mind, that professionalism applies to your project's code, not your dress code (at least for developers.. unfortunately some other business areas kind of mix that up a bit) Understood. My point was just that code being "unprofessional" doesn't really mean anything concrete, at least to me, whereas "legacy code will be more difficult for a new developer to refactor," for example, definitely does. Oh, one last point I forgot to address - I would argue that code can be very useful without being of direct benefit to users. As mentioned in the question for example, ad-serving code. Users likely don't care if our ads work properly, but they are obviously useful in terms of keeping the business viable, and so certainly indirectly benefit users. Anyway, tangential to the question. Again, I appreciate your thoughts. You somewhat overstate the professionalism case, and underestimate the enormous benefit of a shorter time to market. I did work in the kind of cowboy coding environment you describe for a few years, and while I wasn't always proud of the result, I am proud of the fact that the small company I worked for doubled its revenue at the height of the great recession, largely on the software foundation I took part in creating. @RobertHarvey, yes, that is the tradeoff that brought be here. As a business we have been very successful, and our customers seem happy with our product. (We have strong organic growth with no advertising.) However, I expect that we are building up a technical debt the longer we operate without good automated tests. Perhaps the question I should have asked is, at what point is it optimal to switch to more formal testing. Some would say immediately, but perhaps from a business perspective releasing quickly trumps everything for a period of time. (Or perhaps not.) -1 because of the phrasing that does not leave any door open. Subjectivity, when it is assumed as in your case is good, and I really liked your answer in this regard. However, it is very unbalanced, as if no counter-arguments could exist. This isn't the case, as Robert harvey points out - rather, literally all arguments can be challenged. I'd happily turn this into a +1 if you somehow salted your answer. Maybe you could try to sketch the border between "testing is good" (which it is) and "testing is critical". @Frank: ah, much better now! +2 because I've turned my vote :) This depends on how good you are at writing tests, as well as, how much you want to maintain and improve your test writing skills. If you're not good at it and don't care to learn, it could increase the amount of time wasted. Of course you may think having to write tests will slow down your rapid release cycle, but at some point the application may become so complex that having the tests will save time in the long run. You can create all types of scenarios where it appears you can avoid following sound coding habits, but they rarely exist. How much coding can you get away without having source control? It's like not requiring a strong foundation for a house because you don't plan on having a lot of people in it at one time. Cutting corners will probably cause you to end up spending a disproportionate amount of time fixing a bug. Wouldn't that really be the true waste of time on a non-critical app? Obviously being better at writing tests will speed up the process, as with everything. I am considering putting more focus on that skill in our organization. I'm not sure about, "at some point the application may become so complex that having the tests will save time in the long run," though, at least for all types of tests. It also seems that as the application gets more complex, so does the test suite, so the time taken to maintain it increases as well (proportional to its size). This is why I'm trying to get a handle on which kinds of tests are worthwhile, and which (if any) aren't. Maybe I should have used the word complicated instead of complex. Writing your own square root function is complicated, but the test is pretty simple since the outcomes are predictable. Also consider adding another developer. Would it be easier to get that person up to speed when there is a unit test suite available? There's no law that says once you start writing tests, you can never stop. You may discover they're not worth continuing and maintaining. To answer directly, unit testing is critical, even for non-critical web applications. Have you considered what vulnerabilities exist in your search engine? There may be issues in your web app that some customers have noticed and not provided notification. Unit testing at the very least can check for input validation (or lack thereof) in all layers of your software. Another thing to consider is how much you value your own time as a developer. Fixing bugs that could have been caught with simple unit tests, or making re-fixes because one defect affected another are known time-wasters. Take the effort to write unit tests.
30,309
https://stackoverflow.com/questions/40062739
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
English
Spoken
392
1,032
How to store a value as a string from a text input using javascript What I'm attempting to do is to save some user input from a html text field into a JS variable and then on a button click place that text into an iframe. Retrieving the information from the text field using jQuery isn't the issue as I can console log '$('#userinput').val()' which returns the value but then saving it into a variable seems to return an empty string. This is my code which uses both the jQuery and the vanilla to attempt to store the string: $(document).ready(function () { $result = $('#userinput').val(); var output = document.getElementById('userinput').value; var iframe = document.getElementById('iframe'); doc = iframe.contentDocument; doc.open(); doc.write("test"); doc.close(); $('#btn_run').click(function () { console.log($('#userinput').val()); console.log(output); console.log($result); doc.open(); doc.write(output); doc.close(); }); }); And HTML: <input type="text" id="userinput"> <iframe id="iframe"></iframe> <button id="btn_run">Run</button> Confused. Any help is appreciated :) You need to get the value of #userinput in your event listener. This is because strings are a primitive value and are not passed by reference. So when you use .value you are getting the value at the time of the call. When you were in the callback you got the value of an empty string as the input was empty when the value was stored in the output variable. The snippet won't work here due to the iframe. $(document).ready(function() { $result = $('#userinput').val(); var iframe = document.getElementById('iframe'); doc = iframe.contentDocument; doc.open(); doc.write("test"); doc.close(); $('#btn_run').click(function() { console.log($('#userinput').val()); var output = document.getElementById('userinput').value; console.log(output); console.log($result); doc.open(); doc.write(output); doc.close(); }); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <input type="text" id="userinput"> <iframe id="iframe"></iframe> <button id="btn_run">Run</button> you again elongating your code by still using $('#userinput').val() instead of $result after your declaration. Do close your input tag when you initialize the value of output on line 4, there's still no user input, so output == "". That value is never updated in your code, so when you call doc.write(output) you're essentially running doc.write(""). <input type="text" id="userinput"> <button id="btn_run">Run</button> <iframe id="iframe"></iframe> <script type="text/javascript"> $( document ).ready(function() { var doc = iframe.contentDocument; $('#btn_run').click(function(){ doc.open(); doc.write(document.getElementById('userinput').value); doc.close(); }); }); </script> This way, the value is determined when needed. In this simple case, there's no reason to define a variable. you don't even really need jQuery for this <input type="text" id="userinput"> <button id="btn_run">Run</button> <iframe id="iframe"></iframe> <script type="text/javascript"> var doc = iframe.contentDocument; function writeToIframe() { doc.open(); doc.write(document.getElementById('userinput').value); doc.close(); } document.getElementById('btn_run').addEventListener('click', writeToIframe); </script>
24,738
https://es.wikipedia.org/wiki/Municipio%20de%20Clay%20%28condado%20de%20Hubbard%2C%20Minnesota%29
Wikipedia
Open Web
CC-By-SA
2,023
Municipio de Clay (condado de Hubbard, Minnesota)
https://es.wikipedia.org/w/index.php?title=Municipio de Clay (condado de Hubbard, Minnesota)&action=history
Spanish
Spoken
152
245
El municipio de Clay (en inglés: Clay Township) es un municipio ubicado en el condado de Hubbard en el estado estadounidense de Minnesota. En el año 2010 tenía una población de 69 habitantes y una densidad poblacional de 0,74 personas por km². Geografía El municipio de Clay se encuentra ubicado en las coordenadas . Según la Oficina del Censo de los Estados Unidos, el municipio tiene una superficie total de 93.71 km², de la cual 87,31 km² corresponden a tierra firme y (6,82 %) 6,39 km² es agua. Demografía Según el censo de 2010, había 69 personas residiendo en el municipio de Clay. La densidad de población era de 0,74 hab./km². De los 69 habitantes, el municipio de Clay estaba compuesto por el 100 % blancos. Del total de la población el 0 % eran hispanos o latinos de cualquier raza. Referencias Enlaces externos Municipios de Minnesota Localidades del condado de Hubbard
17,749
https://math.stackexchange.com/questions/2203851
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
David K, https://math.stackexchange.com/users/139123
English
Spoken
189
320
how can i prove Bernoulli's inequality? Could you help me prove Bernoulli's inequality: For all $x\geq -1$ and integers $r\geq 0$, $(1+x)^r\geq 1+rx$ using the relationship between arithmetic and geometric means? What do you know about this and what have you tried? See the advice on "Search and Research" in http://math.stackexchange.com/help/how-to-ask -- for math, the "research" includes trying the problem yourself. At least now since the problem has been edited to spell the name correctly and show what the inequality is, you might have more luck looking it up than before. You can edit the question to show anything you have learned so far. Try setting up the weighted arithmetic-geometric mean inequality with the right variables, then manipulating it until it is of a form similar to that of the Bernoulli inequality. Then you're a substitution away. Start with $\frac{\lambda_1 a + \lambda_2 b} {\lambda_1 + \lambda_2} <= $ ... and let $a=1$ and $b=1+x$. If you get stuck, the Wikipedia article on Bernoulli's inequality has what you want. Apply the AM-GM inequality to $r$ terms: $1$ taken $r-1$ times and $1+rx$ taken once. Start from the geometric mean.
32,576
https://cs.wikipedia.org/wiki/Spr%C3%A1vn%C3%AD%20obvod%20obce%20s%20roz%C5%A1%C3%AD%C5%99enou%20p%C5%AFsobnost%C3%AD%20Sokolov
Wikipedia
Open Web
CC-By-SA
2,023
Správní obvod obce s rozšířenou působností Sokolov
https://cs.wikipedia.org/w/index.php?title=Správní obvod obce s rozšířenou působností Sokolov&action=history
Czech
Spoken
241
763
Správní obvod obce s rozšířenou působností Sokolov je spolu s Kraslicemi jedním ze dvou správních obvodů obcí s rozšířenou působností v okrese Sokolov v Karlovarském kraji. Správní obvod zahrnuje města Březová, Habartov, Horní Slavkov, Chodov, Krásno, Kynšperk nad Ohří, Loket, Nové Sedlo a Sokolov a 21 dalších obcí. Rozloha správního obvodu činí 489,19 km² a v roce 2020 zde žilo 75 028 obyvatel, hustota zalidnění tedy činí 153 obyvatel na km². Správní obvod obce s rozšířenou působností Sokolov zahrnuje správní obvody obcí s pověřeným obecním úřadem Horní Slavkov, Chodov, Kynšperk nad Ohří, Loket a Sokolov. Územní vymezení Seznam obcí, jejichž územím je správní obvod tvořen, včetně výčtu místních částí (v závorkách). Města jsou vyznačena tučně, městyse kurzívou. Březová (Arnoltov, Kamenice, Kostelní Bříza, Lobzy, Rudolec, Tisová) Bukovany Citice (Hlavno) Dasnice Dolní Nivy (Boučí, Horní Nivy, Horní Rozmyšl) Dolní Rychnov Habartov (Horní Částkov, Kluč, Lítov, Úžlabí) Horní Slavkov Chlum Svaté Maří Chodov (Stará Chodovská) Josefov (Hřebeny, Luh nad Svatavou, Radvanov) Kaceřov (Horní Pochlovice) Krajková (Anenská Ves, Bernov, Dolina, Hrádek, Květná, Libnov) Královské Poříčí (Jehličná) Krásno Kynšperk nad Ohří (Dolní Pochlovice, Dvorečky, Chotíkov, Kamenný Dvůr, Liboc, Štědrá, Zlatá) Libavské Údolí Loket (Dvory, Nadlesí, Údolí) Lomnice (Týn) Nová Ves (Louka) Nové Sedlo (Chranišov, Loučky) Rovná (Podstrání) Sokolov (Hrušková, Novina, Vítkov) Staré Sedlo Svatava Šabina Tatrovice Těšovice Vintířov Vřesová Odkazy Reference Externí odkazy ORP Sokolov, Veřejný dálkový přístup do Registru územní identifikace, adres a nemovitostí SO ORP Sokolov, Český statistický úřad Geografie okresu Sokolov Sokolov Sokolov
16,566
https://fr.wikipedia.org/wiki/Symboles%20du%20Zimbabwe
Wikipedia
Open Web
CC-By-SA
2,023
Symboles du Zimbabwe
https://fr.wikipedia.org/w/index.php?title=Symboles du Zimbabwe&action=history
French
Spoken
510
868
Le Zimbabwe possède un certain nombre de symboles notamment son drapeau et ses armoiries. Son histoire est marquée par l'histoire colonial, où le pays s'appelait Rhodésie entre 1890 et 1980. Les drapeaux de Rhodésie Entre 1890 et 1980, la Rhodésie a eu 6 drapeaux différents (en plus de l'Union Jack de 1923 à 1968). La Rhodésie du Sud sous l'administration de la BSAC (1890-1923) Entre 1890 et 1923, le drapeau de la British South Africa Company (BSAC) était en vigueur. Il s'agissait de l'Union Jack britannique avec au centre le lion impérial britannique. La colonie de Rhodésie du Sud (1923-1953) De 1924 à 1953, le drapeau officiel de la colonie de Rhodésie du sud fut le blue ensign britannique sur lequel fut placé les armoiries de Cecil Rhodes (une pioche au milieu d'un blason vert) surmonté d'un lion britannique entouré de chardons. La fédération de Rhodésie et de Nyassaland (1953-1964) Entre 1953 et 1964, la Rhodésie fut membre de la fédération de Rhodésie et Nyasaland laquelle disposa d'un drapeau similaire au blue ensign mais le blason amalgamait les représentations des 3 colonies. La colonie (rebelle) de Rhodésie du Sud (1964-1968) De 1964 à 1968, la Rhodésie reprit son drapeau colonial antérieur à la fédération mais avec un fond de couleur bleu azur. Il fut inchangé après la proclamation unilatérale d'indépendance par le gouvernement de Ian Smith le . La Rhodésie indépendante (1968-1979) Le fut hissé le drapeau de la Rhodésie indépendante gouvernée par Ian Smith. Considéré comme le drapeau rhodésien par excellence, il se présentait sous la forme de 3 bandes verticales verte, blanche, verte. Au milieu de la bande blanche se situaient les armoiries coloniales de Rhodésie soutenues par 2 gazelles à cornes et surmontées par l'oiseau jaune emblématique des ruines de Zimbabwé. Au pied du blason figurait sur une bandelette la devise du pays « Sit Nomine Digna » (Qu'elle soit digne de son nom). Ce drapeau rhodésien fut très populaire parmi les colons et demeure pour les nostalgiques de la Rhodésie son véritable emblème. Il restera en vigueur jusqu'au . Le Zimbabwe-Rhodésie (1979) En 1979, après les accords internes de Salisbury entre le gouvernement de Smith et les noirs modérés, un sixième drapeau fut choisi pour symboliser la nouvelle Zimbabwe-Rhodésie. Présentant horizontalement 3 bandes rouges, blanches et vertes, l'oiseau jaune du Zimbabwé figurait sur une bande verticale noire à gauche du drapeau. Ce drapeau restera en vigueur 6 mois de juin à , date à laquelle la Rhodésie revient sous le giron britannique. L'Union Jack devient alors le seul emblème du territoire rhodésien du au , date à laquelle le drapeau actuel du Zimbabwe sera hissé pour la le jour de l'indépendance. Des armoiries Jours fériés Vendredi Saint Lundi de Pâques Jour de l'An Whit Monday - de juin Rhodes Day - de juillet Founders Day - de juillet Pioneer Day - Republic Day - Independence Day - Noël - Boxing Day - Un hymne national La République de Rhodésie possédait un hymne, intitulé , qui fut officialisé le et demeura l'hymne rhodésien jusqu'en 1979. Rhodésie Rhodésie
9,731
https://bg.wikipedia.org/wiki/%D0%9A%D0%BE%D1%89%D0%B8%D0%BD%D1%8F
Wikipedia
Open Web
CC-By-SA
2,023
Кощиня
https://bg.wikipedia.org/w/index.php?title=Кощиня&action=history
Bulgarian
Spoken
199
556
Франсишко Жозе Родригеш да Коща (, изговаря се най-близко до Франсишку Жузе Родригеш да Коща по-известен като Кощиня, Costinha) e португалски полузащитник. Играе в Аталанта, присъединявайки се в клуба от Атлетико Мадрид. Неговият най-голям успех в Порто е вкараният гол, с който елиминират Манчестър Юнайтед в първия елиминационен кръг на Шампионска лига през 2003-04. Порто печели купата, като побеждава Монако на финала с 3:0. След по-малко успешната серия с Порто през сезон 2004-05 е продаден на ФК Динамо Москва заедно с Маниш и Гюркус Сейтаридис, присъединявайки се към съотборника си Дерлей. Кощиня играе за националния отбор на Португалия на Евро 2000, Евро 2004, Световно първенство по футбол 2006. Вкарва 2 гола в 49 мача за Португалия. На 25 юни 2006 на световното първенство в Германия е изгонен след два жълти картона в мача с Холандия. Кощиня носи капитанската лента на националния отбор в приятелска среща с Дания на 1 септември 2006. Изглежда, че той ще бъде бъдещият капитан на отбора. Титли Шампионска лига (2004) Купа на УЕФА (2003) Португалска Суперлига (2003, 2004) Лига 1 (2000) Интерконтинентална купа (2004) Португалски футболисти Футболисти на Динамо Москва Футболисти на ФК Порто Футболисти на Атлетико Мадрид Футболисти на АС Монако Футболисти на Аталанта
46,644
https://ceb.wikipedia.org/wiki/W%C4%81d%C4%AB%20al%20%E2%80%98%C4%81birah
Wikipedia
Open Web
CC-By-SA
2,023
Wādī al ‘ābirah
https://ceb.wikipedia.org/w/index.php?title=Wādī al ‘ābirah&action=history
Cebuano
Spoken
88
167
Wadi ang Wādī al ‘ābirah sa Yemen. Nahimutang ni sa distrito sa Kitaf wa Al Boqe'e ug lalawigan sa Muḩāfaz̧at Şa‘dah, sa kasadpang bahin sa nasod, km sa amihanan sa Sanaa ang ulohan sa nasod. Ang klima init nga kamadan. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Agosto, sa  °C, ug ang kinabugnawan Enero, sa  °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Abril, sa milimetro nga ulan, ug ang kinaugahan Pebrero, sa milimetro. Ang mga gi basihan niini Mga suba sa Muḩāfaz̧at Şa‘dah
43,297
https://math.stackexchange.com/questions/1240523
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
Jack Lee, John, https://math.stackexchange.com/users/105625, https://math.stackexchange.com/users/1421
English
Spoken
308
574
Necessary of completeness assumption for Cartan Hadamard theorem I have learnt the Cartan Hadamard theorem, Let $M$ be a complete Riemannian manifold with nonpositive sectional curvature. Then $\forall x\in M, \exp_x:T_xM\to M$ has no conjugate point. Then the notes point out completeness assumption is required since for $\mathbb{R}^3\setminus \{0,0,0\}$ with induced metric, the theorem fails. I don't quite understand the reason. Does it mean $\exp_x$ has some conjugate points for some $x$? By definition in the notes, if $(d\exp_x)_p$ is singular, then $p$ is called a conjugate point of map $\exp_x$ and $\exp_x(p)$ is called a conjugate point of $x$ along geodesic $\exp_x(tp)$. I have also learnt, $(d\exp_x)_{p}$ is singular iff there exists a normal Jacobi field $U(t)$ along $\gamma(t)=\exp_x(tp)$ not identically zero such that $U(0)=U(1)=0$. I think some geometric explanation of conjugate point might be helpful. I saw some online materials say if $p$ and $q$ are conjugate along $\gamma$, one can construct a family of geodesics that start at $p$ and $\underline{almost}$ end at $q$. I don't quite understand the reason and I am not sure whether it's useful to answer my question. The Cartan-Hadamard theorem is considerably stronger than the statement you wrote. It says that if $M$ is complete with nonpositive sectional curvature, then for each $x\in M$, the map $\text{exp}_x$ is a covering map. It has no conjugate points on any manifold with nonpositive curvature, complete or not; but if you don't assume completeness it might not be a covering map (and it won't be globally defined on $T_xM$). @JackLee so for the example I gave, why $exp$ is not a covering map? For one thing, in your example, given any $x\in \mathbb R^3\setminus{(0,0,0)}$, the map $\exp_x$ not defined on all of $T_xM$. But more to the point, it's not surjective. For example, the point $-x$ is not in the image of $\exp_x$.
26,632
https://zh.wikipedia.org/wiki/%E8%90%A8%E5%AE%BE%E8%AF%AD
Wikipedia
Open Web
CC-By-SA
2,023
萨宾语
https://zh.wikipedia.org/w/index.php?title=萨宾语&action=history
Chinese
Spoken
5
77
萨宾语是马来半岛一种已在2013年灭绝的南亚语系亚斯里语支语言。 参考 马来西亚语言 亚斯里语支 亚洲绝迹语言
2,276
https://fr.wikipedia.org/wiki/V%C3%A9ronique%20buissonnante
Wikipedia
Open Web
CC-By-SA
2,023
Véronique buissonnante
https://fr.wikipedia.org/w/index.php?title=Véronique buissonnante&action=history
French
Spoken
228
423
La véronique buissonnante, ou véronique des rochers (Veronica fruticans Jacq.) est une petite plante montagneuse à fleurs bleu vif, appartenant au genre Veronica et à la famille des Plantaginacées selon la classification APG II (autrefois les véroniques étaient classées dans les Scrophulariacées). Description Écologie et habitat Plante vivace rencontrée presque toujours en altitude, jusqu'à 3000 mètres. En France, elle pousse surtout dans les Alpes et les Pyrénées. Elle est beaucoup plus rare en Auvergne et dans les Vosges. On la rencontre également au nord de la Grande-Bretagne, en Islande et en Scandinavie. Elle apprécie surtout les lieux ensoleillés et rocheux : éboulis, prés caillouteux. Floraison de juin à septembre. Morphologie générale et végétative Plante basse, glabre ou à peine velue, à souche généralement ligneuse, à tige ascendante assez ramifiée, souvent rougeâtre. Feuilles opposées entières ou à peine dentées, étroites, oblongues à ovales, ayant tendance à s'élargir dans la partie supérieure du limbe. Morphologie florale Fleurs hermaphrodites groupées en racèmes simples. Chaque fleur est portée par un pédicelle assez long. Calice hérissé à quatre sépales. Corolle à quatre pétales bleu vif, avec en général une petite couronne rouge à la base des pétales. Deux étamines et un style très longs. Pollinisation entomogame ou autogame. Fruit et graines Le fruit est une capsule oblongue à peine échancrée à son sommet. Dissémination épizoochore. Références Flore des Hautes-Alpes Flore (nom vernaculaire) Scrophulariaceae
41,368
https://cy.wikipedia.org/wiki/Preston%2C%20Iowa
Wikipedia
Open Web
CC-By-SA
2,023
Preston, Iowa
https://cy.wikipedia.org/w/index.php?title=Preston, Iowa&action=history
Welsh
Spoken
29
75
Dinas yn , yn nhalaith Iowa, yw . Poblogaeth ac arwynebedd Pobl nodedig Ceir nifer o bobl nodedig a anwyd yn Preston, gan gynnwys: Cyfeiriadau Dinasoedd Jackson County, Iowa
7,280
https://it.wikipedia.org/wiki/Ljiljana%20Petrovi%C4%87
Wikipedia
Open Web
CC-By-SA
2,023
Ljiljana Petrović
https://it.wikipedia.org/w/index.php?title=Ljiljana Petrović&action=history
Italian
Spoken
166
341
Rappresentò la Jugoslavia all'Eurovision Song Contest 1961 con il brano Neke davne zvezde, classificandosi all'8º posto. Biografia Nata a Bosanski Brod nel regno di Jugoslavia, fu cresciuta a Novi Sad, nella Voivodina, dove iniziò a cantare amatorialmente. Nell'estate del 1960 si presentò ad un concerto presso villa Carolina, nei pressi di Lussinpiccolo, dove conobbe un regista dell'etichetta jugoslava Jugoton, che le propose di incidere un singolo. Nel febbraio 1961 la cantante partecipò al Jugovizija con il brano Neke davne zvezde, scritto da Miroslav Antić e composto da Jože Privšek, vincendo il festival e ottenendo il diritto di rappresentare la Jugoslavia all'Eurovision Song Contest 1961 di Cannes, in Francia (era la prima volta che la Jugoslavia partecipava al concorso musicale). Esibitasi sotto la direzione d'orchestra di Jože Privšek, si classificò 8ª con 9 punti. Discografia Album in studio 1991 - Najlepse ciganske pesme (con Šaban Bajramović) Singoli 1961 - Neke davne zvezde 1962 - Očaravanje 1962 - Mali cvet Note Collegamenti esterni Partecipanti all'Eurovision Song Contest 1961
4,388
https://hy.wikipedia.org/wiki/%D5%80%D5%80%20%D4%B3%D4%B1%D4%B1%20%D5%BF%D5%A5%D5%B2%D5%A5%D5%AF%D5%A1%D5%A3%D5%AB%D6%80%3A%20%D5%96%D5%AB%D5%A6%D5%AB%D5%AF%D5%A1
Wikipedia
Open Web
CC-By-SA
2,023
ՀՀ ԳԱԱ տեղեկագիր: Ֆիզիկա
https://hy.wikipedia.org/w/index.php?title=ՀՀ ԳԱԱ տեղեկագիր: Ֆիզիկա&action=history
Armenian
Spoken
196
1,011
ՀՀ ԳԱԱ տեղեկագիր։ Ֆիզիկա, հրատարակվում է ռուսերեն՝ հայերեն համառոտագրություններով «Известия НАН Армении. Физика» անվանումով ՀՀ ԳԱԱ Գիտություն հրատարակչության կողմից 1966 թ․-ից և անգլերեն՝ «Journal of Contemporary Physics (Armenian Academy of Sciences)» անվանումով Allerton Press, Springer հրատարակչությունների կողմից 1984 թ․-ից։ Ամսագրի ISSN նույնականացման համարներն են՝ տպագիր ռուսերեն, տպագիր անգլերեն և էլեկտրոնային անգլերեն հրատարակությունների համար։ Գլխավոր խմբագիր՝ Վլադիմիր Հարությունյան, Գլխավոր խմբագրի տեղակալ՝ Էդվարդ Շառոյան, Պատասխանատու քարտուղար՝ Նաթելլա Աղամալյան։ Խմբագրական կազմ՝ Արամ Պապոյան, Արսեն Հախումյան, Դավիթ Սարգսյան,Արմեն Մելիքյան, Էդուարդ Ղազարյան, Ալբերտ Սիրունյան։ Ամսագրում ներառված են ժամանակակից ֆիզիկայի բոլոր ոլորտները։ Այն մեծ ներդրում ունի հիմնարար և կիրառական գիտությունների այնպիսի բաժիններում, ինչպիսիք են գերբարձր էներգիաներով տարրական մասնիկների միջև փոխազդեցություն, տարրական մասնիկների ֆիզիկա, լիցքավորված մասնիկների փոխազդեցությունը նյութի հետ, հոծ միջավայրերի ֆիզիկա, տարածական քվանտացման երևույթներ, ռադիոֆիզիկա և էլեկտրոնիկա, օպտիկա և քվանտային էլեկտրոնիկա, նանոֆիզիկա, ազդակների ֆիզիկա և գերհաղորդականություն։ Դասակարգվում և համառոտագրվում է․ Science Citation Index Expanded (SciSearch), Journal Citation Reports/Science Edition, SCOPUS, INSPEC, Chemical Abstracts Service (CAS), Google Scholar, Academic OneFile, Expanded Academic, OCLC, SCImago, Summon by Serial Solutions․ Ընդգրկված է Հայաստանի Հանրապետության բարձրագույն որակավորման հանձնաժողովի (ՀՀ ԲՈՀ) սահմանած գիտությունների դոկտորական և գիտությունների թեկնածուական ատենախոսությունների հիմնական արդյունքների և դրույթների հրատարակման համար ընդունելի պարբերական գիտական հրատարակությունների ցուցակում։ Պատկերասրահ Ծանոթագրություններ ՀՀ ԳԱԱ գիտական ամսագրեր Հայաստանի հանդեսներ
1,839
https://hr.wikipedia.org/wiki/Draga%20%28%C5%A0marje%C5%A1ke%20Toplice%2C%20Slovenija%29
Wikipedia
Open Web
CC-By-SA
2,023
Draga (Šmarješke Toplice, Slovenija)
https://hr.wikipedia.org/w/index.php?title=Draga (Šmarješke Toplice, Slovenija)&action=history
Croatian
Spoken
37
97
Draga je naselje u slovenskoj Općini Šmarješke Toplice. Draga se nalazi u pokrajini Dolenjskoj i statističkoj regiji Jugoistočnoj Sloveniji. Stanovništvo Prema popisu stanovništva iz 2002. godine naselje je imalo 14 stanovnika. Izvor Naselja u Općini Šmarješke Toplice
17,909
https://stackoverflow.com/questions/9329822
StackExchange
Open Web
CC-By-SA
2,012
Stack Exchange
E VIGNESH, Jalen Chen, Pritesh Dongare, Van Hue Pham, etm124, https://stackoverflow.com/users/21187280, https://stackoverflow.com/users/21187281, https://stackoverflow.com/users/21187282, https://stackoverflow.com/users/21187532, https://stackoverflow.com/users/21190860, https://stackoverflow.com/users/862132, user21187281
Finnish
Spoken
398
919
onKeyUp function not returning all results Background - I have a form with a text field. The user enters 2-6 digit integers. On each key stroke, the Javascript function is called matching up values from a dropdown. My text field: <input type="text" name="orgSICCode" value="" allownull="FALSE" size="5" maxlength="10" datatype="dtNumeric" onKeyUp="ActivateOption(description,this.value);" onBlur="this.value = description.options[description.selectedIndex].value;" emsg="Must choose a SIC Code before you can continue."> My dropdown field: <select name="description" STYLE="width:275px;" onChange="orgSICCode.value = this.options[this.selectedIndex].value;sic_code_description.value = this.options[this.selectedIndex].text;"> <option value="">Select One ...</option> <option value="085101">085101 - Forest management services</option> <option value="0831">0831 - Forest Products</option> <option value="083100">083100 - Forest products</option> <option value="083199">083199 - Forest products, nec</option> <option value="08">08 - Forestry</option> </select> My Javascript function ActivateOption: function ActivateOption(selectObj, strValue) { for(var idx=0;idx<selectObj.options.length;idx++) { if(selectObj.options[idx].value.substring(0,strValue.length) == strValue) { selectObj.selectedIndex = idx; return true; } } selectObj.selectedIndex = 0; return false; } When a user types '08', the first option that should populate is the 08 value, "08 - Forestry" option. The option that does populate is '085101', '085101 - Forest Management services'. Am I doing something wrong? use a better filter to check the option string // this function return the most similer string, // sarr take a string arr which to filte function checkString ( sarr, srcStr ) { var ret = "", val = 0, srcStr = srcStr.split(""); sarr.forEach( function ( content, index ) { var i, l, curval = 0, cont = content.split(""); for ( i = 0, l = cont.length; i < l; i += 1 ){ if ( cont [i] === srcStr[i] ){ curval += Math.pow ( 10, i ); } else { break; } } if ( curval > val ){ val = curval; ret = content; } else if ( curval === val && Math.abs ( content.length - srcStr.length ) < Math.abs ( ret.length - srcStr.length ) ){ ret = content; } }) return ret; } Because you are returning true for the first item that starts with strValue, your dropdown will be set to the first matching item - not the item with the best match. Try: function ActivateOption(selectObj, strValue) { selectObj.selectedIndex = 0; for(var idx=0;idx<selectObj.options.length;idx++) { if(selectObj.options[idx].value.substring(0,strValue.length) == strValue) { selectObj.selectedIndex = idx; } } } thanks for the response adam, but that doesn't seem to be working. It is returning similar results to my current function. It seems like the first part of my if condition is matching any of the values of my strValue, not the FIRST.
39,468
https://stackoverflow.com/questions/9329566
StackExchange
Open Web
CC-By-SA
2,012
Stack Exchange
472084, Anil Rai, Mohit Jagtiani, Prajwal Vinod, Quentin, Sarfraz, https://stackoverflow.com/users/139459, https://stackoverflow.com/users/19068, https://stackoverflow.com/users/21186622, https://stackoverflow.com/users/21186623, https://stackoverflow.com/users/21186624, https://stackoverflow.com/users/21186816, https://stackoverflow.com/users/21187046, https://stackoverflow.com/users/334053, https://stackoverflow.com/users/472084, maruthi kathi, qJake, sisham singh
English
Spoken
296
511
php POST, GET, PUT, DELETE testing Well, "created script": $method = $_SERVER['REQUEST_METHOD']; switch($method) { case 'PUT': echo 'put method'; break; case 'GET': echo 'get method'; break; case 'POST': echo 'post method'; break; case 'DELETE': echo 'delete method'; default: echo 'valid method\'s: PUT, GET, POST, DELETE'; } What's is best/simplest way to test each method ? Wanna test them because actually in each method exist different task. What are you expecting ? The code in your Q seems a good test? You should probably output a 405 Method Not Allowed status for the last one Write a script that makes one or more HTTP requests (containing known data) for each method to the URI that the script you are testing resides at. After each request the script should check that the response is as you expect it and that any side effects (such as the creation of files on the server, or entries in a database have changed) are as you expect. Set up a form with a particular action: <form action="your_page.php" method="PUT"> <input type="submit" value="Put me!" /> </form> <form action="your_page.php" method="POST"> <input type="submit" value="Post me!" /> </form> <form action="your_page.php" method="DELETE"> <input type="submit" value="Delete me!" /> </form> For "GET" you can just send in a querystring by calling your URL and appending ?key=value Well that's stupid. What's the point of having a method="XXXXX" if you can only put 2 of the 4 important verbs inside it? — For PUT you'd need to add additional rules to the form such as "The body of the form must contain exactly one file input and one submit input". It would make even less sense to use a form to DELETE something as there is no use input being gathered at all, it would just remove the resource at the action.
10,733
https://ru.wikipedia.org/wiki/%D0%90%D0%BB%D0%BB%D0%B0-%D0%98%D0%BA%D0%BF%D0%B0%D1%80
Wikipedia
Open Web
CC-By-SA
2,023
Алла-Икпар
https://ru.wikipedia.org/w/index.php?title=Алла-Икпар&action=history
Russian
Spoken
93
255
Алла-Икпар (Аллахюэкбер, ) — гора на северо-востоке Турции (граница провинций Карс и Эрзурум). Высота горы составляет 3120 метров над уровнем моря. Иногда гору Алла-Икпар относят к меридиональному хребту Арсиан или даже к хребту Соганлуг. C 2004 года гора располагается в природоохранной зоне. История 13 декабря 1914 года в годы Первой мировой войны на склонах горы погибло до 10 тыс. солдат из X корпуса 3-й турецкой армии (30 и 31 пехотные дивизии), которые совершали маневр для участия в Сарыкамышском сражении и попали в сильную метель. Примечания Горы Турции Рельеф ила Карс География ила Эрзурум
4,303
https://nl.wikipedia.org/wiki/Bomaanslag%20op%20Plaza%20Miranda%20op%2021%20augustus%201971
Wikipedia
Open Web
CC-By-SA
2,023
Bomaanslag op Plaza Miranda op 21 augustus 1971
https://nl.wikipedia.org/w/index.php?title=Bomaanslag op Plaza Miranda op 21 augustus 1971&action=history
Dutch
Spoken
558
977
De bomaanslag op Plaza Miranda was een aanslag tijdens een campagnebijeenkomst van de Liberal Party op 21 augustus 1971 op Plaza Miranda in de Filipijnse hoofdstad Manilla. Bij de aanslag kwamen 9 mensen om het leven en vielen ruim 100 gewonden. Onder de gewonden waren ook enkele prominente politici van de Liberal Party. Het is nooit vast komen te staan wie verantwoordelijk was voor de aanslag. President Ferdinand Marcos stelde de communisten verantwoordelijk en de oppositiepartijen beschuldigden op hun beurt Marcos van betrokkenheid bij de aanslag. De aanslag De campagnebijeenkomst van de Liberal Party op 21 augustus 1971 vond plaats in de aanloop naar de verkiezingen die eind 1971 gepland stonden. Het was een roerige periode met diverse geweldincidenten. De betreffende avond zou de partij haar kandidaten voor de senaat en het burgemeesterschap van Manilla presenteren en een menigte van zo’n 4000 mensen had zich verzameld voor het podium om de toespraken aan te horen. Op dat moment werden er twee handgranaten kort na elkaar richting het podium geworpen. Bij de explosies die volgden kwamen negen mensen om het leven, waaronder Ben Roxas, een fotograaf van de krant Manilla Times en raakten ruim 100 mensen gewond. Bijna alle prominente sprekers van de Liberal Party zaten op de eerste rij waar de granaten ontploften. Meerdere politici raakten ernstig gewond, waaronder senator Jovito Salonga, partijvoorzitter Gerardo Roxas en voormalig presidentskandidaat Sergio Osmeña jr., de zoon van voormalig president Sergio Osmeña. Een van de meeste prominente senatoren van de oppositie, Benigno Aquino jr. was verlaat door een trouwerij, en raakte niet gewond. De schuldvraag Omdat niemand de verantwoordelijkheid van de aanslag opeiste, werd er in de nasleep veel gespeculeerd over opdrachtgevers ervan. Marcos die de aanslag een “nationale tragedie” noemde beschuldigde de communisten van betrokkenheid. De liberalen ondertussen dachten dat president Marcos achter de aanslag zat. Later veranderden enkele prominenten uit die partij, zoals Jovito Salonga, van mening en beschuldigden ook zij de communisten. Een verklaring van voormalig New People's Army-commandant Victor Corpus, die zei dat Jose Maria Sison, de voorman van de CCP opdracht had gegeven voor de aanslag, ondersteunde deze vermoedens. Sison heeft echter altijd alle betrokkenheid bij de aanslag ontkend. Ook de CCP heeft nooit een officiële schuldbekentenis afgelegd. Na de aanslag Marcos greep de aanslag aan om de habeas corpus-wet op te schorten. Voortaan kon iedereen worden opgepakt zonder dat er enige verdenking tegen die persoon was gerezen. De verkiezingen werden voor de Liberal Party een groot succes. Zes van de acht senaatszetels werden door hen veroverd. Er werd naar aanleiding van de uitslag met veel optimisme vooruitgekeken naar de presidentsverkiezingen van 1973, wanneer Marcos’ tweede en laatste termijn zou aflopen. Op de Constitionele Conventie werd bovendien in die periode een resolutie in stemming gebracht waarin werd bepaald dat Marcos noch een van zijn directe familieleden het land zou mogen leiden, ongeacht of zou worden gekozen om de Filipijnen om te vormen tot een parlementaire democratie. Een maand later zou de president echter de staat van beleg aankondigen en werden de verkiezingen opgeschort. Marcos zou uiteindelijk nog tot 1986 aanblijven als president tot een volksopstand hem dwong zijn paleis te ontvluchten. Herdenking Op 21 augustus 2002, werd ter nagedachtenis aan de aanslag op Plaza Miranda een herdenkingsmonument onthult door president Gloria Macapagal-Arroyo . Referenties Aanslag in de Filipijnen Geschiedenis van de Filipijnen (na 1946) Geschiedenis van Manilla
39,429
https://nl.wikipedia.org/wiki/Kurusrivier
Wikipedia
Open Web
CC-By-SA
2,023
Kurusrivier
https://nl.wikipedia.org/w/index.php?title=Kurusrivier&action=history
Dutch
Spoken
66
142
Kurusrivier (Zweeds – Fins: Kurusjoki) is een rivier annex beek, die stroomt in de Zweedse gemeente Kiruna. De rivier verzorgt de afwatering van de moerassige omgeving van het Kurusmeer. De rivier stroomt naar het zuidoosten en doet onder meer het Luongasmeer aan. Na 16450 meter mondt zij uit in de Luongasrivier. Afwatering: Kurusrivier → Luongasrivier → Muonio → Torne → Botnische Golf Rivier in Norrbottens län
48,787
https://es.wikipedia.org/wiki/Juan%20Pascual%20Azor%C3%ADn
Wikipedia
Open Web
CC-By-SA
2,023
Juan Pascual Azorín
https://es.wikipedia.org/w/index.php?title=Juan Pascual Azorín&action=history
Spanish
Spoken
952
1,618
Juan Pascual Azorín Soriano (Yecla, 6 de agosto de 1951). Político, fue alcalde de Elda y senador por Alicante en el Senado de España. Pertenece al Partido Socialista del País Valenciano (PSPV-PSOE). Trayectoria Se trasladó con su familia a Elda a los dieciocho meses. En 1983, tras un periodo en el que trabajó como cortador en la industria del calzado, fue elegido concejal en las listas de la Candidatura Independiente de Elda y posteriormente, en 1984, se integró en el PSOE. En 1985 fue nombrado Secretario General de la Unión General de Trabajadores de la Comarca del Alto Vinalopó. Como concejal, ocupó los puestos de Personal e Industria. Fue reelegido en las listas socialistas de 1987 y 1991. En este último año y ostentando la Concejalía de Desarrollo Económico e Industria, Elda perdió la Institución Ferial Alicantina y con ella las Ferias del Calzado que se realizaban en la ciudad desde el año 1960. En 1996 accedió a la Alcaldía de Elda. Fue Presidente del PSPV-PSOE. Legislaturas como alcalde En las elecciones de 1995, el Partido Popular (PP) gana por primera vez las elecciones en Elda, con un margen de más de 4000 votos sobre el PSOE. No obstante, Camilo Valor fue nombrado alcalde en minoría por un voto. Pocos meses después ya en 1996, Azorín y el líder local de IU, Domingo Orgilés, pactan llevar a cabo una moción de censura para hacerse con el poder. Antes de que esta se produzca, Valor dimite, y en la nueva votación es investido Azorín, siendo Orgilés teniente de alcalde. En 1999 consigue ser elegido alcalde por mayoría absoluta. En 2003, su lista es la más votada por un estrecho margen de votos. La sesión de investidura fue polémica, ya que en conversaciones previas, el PP y la Unión para el Progreso de Elda (UPE) llegaron a un pacto, con el cual, sumándose a la abstención que había anunciado IU, el candidato popular sería nombrado alcalde. El edil de UPE Emiliano Bellot se salta el pacto de partido en la investidura, por lo que Azorín vuelve a ser elegido alcalde, esta vez en minoría. En 2004, lleva a cabo un pacto de gobierno con Bellot (que había sido expulsado de su partido), nombrándolo concejal de sanidad, y con Orgilés, que pidió ser concejal de urbanismo. Meses más tarde, el pacto entre Azorín y Orgilés se rompe, en medio de acusaciones mutuas de corrupción. Se llega a hablar de una moción de censura entre PP, UPE e IU, que finalmente nunca llega a producirse, y termina Azorín su mandato en minoría. Durante la alcaldía de Azorín se realizaron algunas importantes reformas, como las del Teatro Castelar, la Plaza de la Ficia, la Plaza del Ayuntamiento, o el aparcamiento de la Gran Avenida. Se llevaron a cabo así mismo nuevas obras como el Museo del Calzado, el Polideportivo Ciudad de Elda y el Polígono Finca Lacy. En cambio, durante su periodo se achaca un notable estancamiento económico y social en la ciudad. El casco antiguo eldense ahondó en su abandono y desperfectos, y algunos elementos de patrimonio, como la Casa-Tienda modernista de la plaza del ayuntamiento, fueron derribados. Durante su segunda legislatura, Elda vivió así mismo un grave episodio de inseguridad ciudadana, que trajo consigo la práctica desaparición del ocio nocturno en la zona centro. Senador En las elecciones de 2008, Azorín es elegido senador por la provincia de Alicante, donde ocupará la portavocía de calzado y textil en la Comisión de Industria del Senado. Ocupó otros cargos, como el de Vicepresidente Primero en la Comisión de Industria, Turismo y Comercio, y el de Secretario Primero en la Comisión de Entidades Locales, y es Presidente de Honor de la Institución Ferial Alicantina. Tras ocupar su puesto en Madrid, abandonó su acta de concejal en el consistorio eldense, donde fue edil durante 25 años consecutivos, 11 de ellos como alcalde. Trama Urbanística En su segunda y tercera legislatura, fue acusado frecuentemente de irregularidades y opacidad por el difundo concejal de UPE, Jiménez Huertas, tanto en el consistorio como en la tertulia local que presentaba en la televisión local Canal 43. En 2002 el PP puso una demanda contra Azorín, acusándole de fraude, cohecho y prevaricación, en la supuesta concesión irregular de las obras del polideportivo al empresario alicantino Enrique Ortiz. En 2005 Azorín rompe el pacto de gobierno con IU entre acusaciones cruzadas de corrupción. Quienes fueron sus socios de gobierno desde 1996, le pusieron una serie de demandas judiciales en 2007, acabado su último mandato, acusándole de montar una trama urbanística. En septiembre de 2014, el Juzgado de Instrucción n.º 3 decreta la imputación de Juan Pascual Azorín, junto con 5 personas más, entre quienes se encuentran uno de sus concejales de urbanismo, su arquitecto municipal, y un empresario de la construcción. La fiscalía le atribuye hasta 8 presuntos delitos distintos, tales como cohecho, prevaricación en concesión de subvenciones, tráfico de influencias, fraude a la administración, aprovechamiento de información, y otros. Entre los casos que se le acusa, están la permuta de unos terrenos en la obra de una piscina cubierta, irregularidades en la elaboración de un nuevo PGOU, o la recalificación de terrenos en zonas montañosas no urbanizables para la construcción de proyectos como la Ciudad del Fútbol, o una macrourbanización con campos de golf y 7200 viviendas. Referencias Nacidos en Yecla Alcaldes de Elda Alcaldes de España del reinado de Juan Carlos I Alcaldes del Partido Socialista Obrero Español Diputados por la provincia de Alicante Diputados de la VI Legislatura de España Senadores por la provincia de Alicante Senadores de la VIII Legislatura de España Senadores de la IX Legislatura de España Políticos de España del siglo XX Políticos de España del siglo XXI
4,898
https://ceb.wikipedia.org/wiki/Brang%20Lantung%20%28suba%2C%20lat%20-8%2C71%2C%20long%20117%2C51%29
Wikipedia
Open Web
CC-By-SA
2,023
Brang Lantung (suba, lat -8,71, long 117,51)
https://ceb.wikipedia.org/w/index.php?title=Brang Lantung (suba, lat -8,71, long 117,51)&action=history
Cebuano
Spoken
53
85
Alang sa ubang mga dapit sa mao gihapon nga ngalan, tan-awa ang Brang Lantung. Suba ang Brang Lantung sa Indonesya. Nahimutang ni sa lalawigan sa West Nusa Tenggara, sa habagatang bahin sa nasod, km sa sidlakan sa Jakarta ang ulohan sa nasod. Ang mga gi basihan niini Mga suba sa West Nusa Tenggara
50,144
https://ar.wikipedia.org/wiki/%D9%83%D9%84%D8%A7%D8%B1%D9%86%D8%B3%20%D9%85%D9%8A%D8%AC%D8%B1
Wikipedia
Open Web
CC-By-SA
2,023
كلارنس ميجر
https://ar.wikipedia.org/w/index.php?title=كلارنس ميجر&action=history
Arabic
Spoken
163
464
كلارنس ميجر (1936، أتلانتا في الولايات المتحدة)؛ شاعر، رسام وروائي أمريكي. روابط خارجية المصادر أعضاء هيئة تدريس جامعة بينغامتون أعضاء هيئة تدريس جامعة كاليفورنيا (دافيس) أعضاء هيئة تدريس كلية بروكلين أفارقة أمريكيون في القرن 20 أفارقة أمريكيون في القرن 21 أنثولوجيون رجال أمريكيون أفارقة في القرن 20 رجال أمريكيون أفارقة في القرن 21 رسامون أفارقة أمريكيون رسامون أمريكيون رسامون أمريكيون أفارقة في القرن 20 رسامون أمريكيون في القرن 20 رسامون أمريكيون في القرن 21 رسامون من كاليفورنيا روائيون أمريكيون روائيون أمريكيون في القرن 20 روائيون أمريكيون في القرن 21 روائيون من ولاية نيويورك شعراء أمريكيون شعراء أمريكيون في القرن 20 شعراء أمريكيون في القرن 21 فنانون أمريكيون أفارقة في القرن 21 فنانون ذكور أمريكيون في القرن 20 فنانون ذكور أمريكيون في القرن 21 فنانون ذكور في القرن 21 كتاب أمريكيون أفارقة في القرن 20 كتاب أمريكيون أفارقة في القرن 21 كتاب أمريكيون في القرن 20 كتاب أمريكيون في القرن 21 كتاب مقالات أمريكيون في القرن 21 كتاب من كاليفورنيا مواليد 1936 أنثولوجيون أمريكيون
18,233
https://gis.stackexchange.com/questions/216018
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
LarsVegas, Matthias Kuhn, Shiko, bugmenot123, https://gis.stackexchange.com/users/51035, https://gis.stackexchange.com/users/5545, https://gis.stackexchange.com/users/59601, https://gis.stackexchange.com/users/9839
English
Spoken
359
562
Importing NULL in PyQGIS This resource shows how to use NULL values in PyQGIS. Within the Python Colsole the comparison value == NULL passes without exception. However, when run from my plugin NULL is neither in the global nor the local namespace: NameError: global name 'NULL' is not defined The only way to check for NULL values seems to be to check for an instance of QPyNullVariant: from PyQt4.QtCore import QPyNullVariant if isinstance(value, QPyNullVariant): pass How do I import NULL so I can compare value == NULL? For those wondering why and how NULL is different from None have a look at this blog entry. Essentially historically is wasn't possible to return None: Turns out by removing QVariant from PyQt it had some impact on methods that expected a NULL QVariant - A QVariant with no value. Passing None didn't work because those methods needed the type information that QVariant holds, even when NULL. On None comparisons it says: One way to check if something is Null in Python is to use value is None however this will not work with our NULL type. Overloading the is operator in Python is not supported and there is no way we can support this - trust me I have tried. is is really doing id(object) == id(object) under the hood: Have you tried None instead ? https://docs.python.org/2/library/constants.html The NULL class is defined in qgis.core: import qgis.core if f["SAMPLE"] == qgis.core.NULL: ... Normally you should be able to do a normal is None check however due to tool we use to generate the Python API it will convert null values on the C++ side (which is what QGIS is written in) to QPyNullVariant. We tried to talk the PyQt devs around to making it just return None but didn't have much luck. Thanks for your answer, this was what I was looking for. I also have edited my question to provide more information on the topic. Good answer. Minor sidenote None is used for invalid attributes (e.g. were not specified in setSubsetOfAttributes) so NULL was left there on purpose and the two should not be confused. Some more context and info: https://woostuff.wordpress.com/2013/08/31/qgis-2-0-dealing-with-null-values-in-pyqgis/
14,322
https://sv.wikipedia.org/wiki/Sergiolus%20capulatus
Wikipedia
Open Web
CC-By-SA
2,023
Sergiolus capulatus
https://sv.wikipedia.org/w/index.php?title=Sergiolus capulatus&action=history
Swedish
Spoken
35
83
Sergiolus capulatus är en spindelart som först beskrevs av Charles Athanase Walckenaer 1837. Sergiolus capulatus ingår i släktet Sergiolus och familjen plattbuksspindlar. Inga underarter finns listade i Catalogue of Life. Källor Externa länkar Plattbuksspindlar capulatus
10,736
https://stackoverflow.com/questions/62247234
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
Arjun Bajaj, https://stackoverflow.com/users/13002578, https://stackoverflow.com/users/13700582, lnx
English
Spoken
717
1,863
wrong contours and wrong output of handwritten digit recognition AI model After training a model for handwritten digit recognition, when I provide the input image it shows the wrong contours and the wrong output. The input data contains 5 digits, but the output say 10-15 digits. Even it does not create right triangle. Following is the code to train the model and the code to give new image input import cv2 import numpy as np from keras.datasets import mnist from keras.layers import Dense, Flatten from keras.layers.convolutional import Conv2D from keras.models import Sequential from keras.utils import to_categorical import matplotlib.pyplot as plt (X_train, y_train), (X_test, y_test) = mnist.load_data() print ("Shape of X_train: {}".format(X_train.shape)) print ("Shape of y_train: {}".format(y_train.shape)) print ("Shape of X_test: {}".format(X_test.shape)) print ("Shape of y_test: {}".format(y_test.shape)) X_train = X_train.reshape(60000, 28, 28, 1) X_test = X_test.reshape(10000, 28, 28, 1) y_train = to_categorical(y_train) y_test = to_categorical(y_test) ## Declare the model model = Sequential() ## Declare the layers layer_1 = Conv2D(32, kernel_size=3, activation='relu', input_shape=(28, 28, 1)) layer_2 = Conv2D(64, kernel_size=3, activation='relu') layer_3 = Flatten() layer_4 = Dense(10, activation='softmax') ## Add the layers to the model model.add(layer_1) model.add(layer_2) model.add(layer_3) model.add(layer_4) model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy']) model.fit(X_train, y_train, validation_data=(X_test, y_test), epochs=3) model.save('Digit_Recognition_Model_2.model') and to give new image input and make predictions import tensorflow as tf import numpy as np import cv2 import matplotlib.pyplot as plt model=tf.keras.models.load_model('Digit_Recognition_Model_2.model') image = cv2.imread('test_images/test3.jpeg') grey = cv2.cvtColor(image.copy(), cv2.COLOR_BGR2GRAY) ret, thresh = cv2.threshold(grey.copy(), 75, 255, cv2.THRESH_BINARY_INV) contours, _ = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) preprocessed_digits = [] for c in contours: x,y,w,h = cv2.boundingRect(c) # Creating a rectangle around the digit in the original image (for displaying the digits fetched via contours) cv2.rectangle(image, (x,y), (x+w, y+h), color=(0, 255, 0), thickness=2) # Cropping out the digit from the image corresponding to the current contours in the for loop digit = thresh[y:y+h, x:x+w] # Resizing that digit to (18, 18) resized_digit = cv2.resize(digit, (18,18)) # Padding the digit with 5 pixels of black color (zeros) in each side to finally produce the image of (28, 28) padded_digit = np.pad(resized_digit, ((5,5),(5,5)), "constant", constant_values=0) # Adding the preprocessed digit to the list of preprocessed digits preprocessed_digits.append(padded_digit) print("\n\n\n----------------Contoured Image--------------------") plt.imshow(image, cmap="gray") plt.show() inp = np.array(preprocessed_digits) for digit in preprocessed_digits: prediction = model.predict(digit.reshape(1, 28, 28, 1)) print(prediction.argmax()) now given an image with digits 504192 it outputs 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 8 2 5 4 5 0 the output after threshhold and drawing contours is !https://drive.google.com/file/d/1-H5Ov3SKyuCCkUUsSuq9gXqyn99J2c7T/view?usp=sharing may be the problem is with image processing. what's the output image after threshold and after drawing contours?? @Inx I know the problem is with image processing as I am new to this. I have attached a drive link to the output after the threshold and after drawing contours. what's the output after thresholding?? Also provide original image so that i also can try try cv2.CHAIN_APPROX_NONE instead of cv2.CHAIN_APPROX_SIMPLE why don't you take a look at every crop from image then decide how to preprocess to avoid false contours @Inx I tried cv2.CHAIN_APPROX_NONE but the problem still persist. Do few changes orig=cv2.imread('numbers.png') img=cv2.imread('numbers.png',0) ret, thresh = cv2.threshold(img.copy(), 150, 255, cv2.THRESH_BINARY_INV) contours, _ = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE) digits=[] for c in contours: x,y,w,h = cv2.boundingRect(c) cv2.rectangle(orig, (x,y), (x+w, y+h), color=(0, 255, 0), thickness=2) digit = thresh[y:y+h, x:x+w] padded_digit = np.pad(digit, ((10,10),(10,10)), "constant", constant_values=0) digit=cv2.resize(padded_digit,(28,28)) digits.append(digit) inp = np.array(digits).reshape((len(digits),28,28,1)) y_pred = model.predict(inp) #instead of one by one predict, all at once These are segmented digits if you want you can use little dilation for better results I tried doing this but it messed up the contours and now it is not predicting even a single digit. Divide the problem into 2 . First is segmentation digits (I have provided the code) . Second is recognition If the digits still not getting recognized then problem may be, we have segmented the digits from a image which is relatively higher than 28x28 that's why, while resizing the digits some vital information may be lost, so I think you should try dilation on original image and then segmentation, this may help. Let me know if this works or not @Inx I tried giving it a 28x28 image so that we dont have to resize and it gave the correct answer. I think grayscaling, thresholding is correctly done. The only problem is to convert the image to (1,28,28,1).
7,822
https://ar.wikipedia.org/wiki/%D9%83%D8%A7%D8%A8%D9%88%20%D8%B1%D9%88%D8%AE%D9%88%20%28%D8%A8%D9%88%D8%B1%D8%AA%D9%88%D8%B1%D9%8A%D9%83%D9%88%29
Wikipedia
Open Web
CC-By-SA
2,023
كابو روخو (بورتوريكو)
https://ar.wikipedia.org/w/index.php?title=كابو روخو (بورتوريكو)&action=history
Arabic
Spoken
40
153
كابو روخو هي بلدية تقع على الساحل الجنوبي الغربي لبورتوريكو وتشكل جزءًا من منطقة سان جيرمان-كابو روخو الحضرية بالإضافة إلى المنطقة الإحصائية المشتركة ماياغويز-سان جيرمان-كابو روجو الكبرى. المراجع أماكن ساحلية مأهولة في بورتوريكو أماكن مأهولة أسست في 1771 بلديات بورتوريكو
18,241
https://stackoverflow.com/questions/49924209
StackExchange
Open Web
CC-By-SA
2,018
Stack Exchange
Adrián Arroyo Perez, Jello, https://stackoverflow.com/users/4961771, https://stackoverflow.com/users/6509168
English
Spoken
137
177
image alignment vs image stabilization? From my understanding, image alignment and image stabilization are two different things. I consider that image alignment is just about shifting (rotating or translating) the image so that it follows a specific axis, but without modifying the original image. On the other hand, image stabilization tries to modify the original image so that most of it looks similar to the previous ones. Am I correct in this reasoning? Considering this, for a radar-based image, in which it is going to be applied some mechanical stabilization, is it worth using an image stabilization technique? Or just using the output of the mechanical stabilization with some kind of image alignment?? Radar image example: Cheers Can you give an example of a radar-based image you would be working with? @Jello editted post with picture ;)
40,946
ffO-7Xh2zEo_1
Youtube-Commons
Open Web
CC-By
null
Muhammed Ali LAST WORDS are SHOCKING #shorts
None
English
Spoken
41
53
Muhammad Ali is a very inspiring figure for me. His last words inspires me. Why do we get sad in our lives? Why do we worry a lot? Believing God puts your trust in him and you're going to be saved..
16,025
https://uk.wikipedia.org/wiki/%D0%94%D1%96%D0%BE%D0%BD%D1%96%D1%81%D1%96%D0%B9%20%D0%9A%D0%B0%D1%82%D0%BE%D0%BD
Wikipedia
Open Web
CC-By-SA
2,023
Діонісій Катон
https://uk.wikipedia.org/w/index.php?title=Діонісій Катон&action=history
Ukrainian
Spoken
205
716
Діоні́сій Като́н ( III-IV століття) — давньоримський поет пізнього часу. Ймовірний автор знаменитих «Дистихів Катона». Біографічні відомості Знаменита збірка «Дистихи Катона» в минулому приписувалася Марку Порцію Катону Старшому. Насправді Катон Старший жив за багато століть до написання цієї збірки, що її зараз датують III-IV століттям. Імовірним автором «Дистихів Катона» зараз вважають Діонісія Катона. Біографічних відомостей про нього збереглося вкрай мало. Відомо, що цей поет написав чотири книги апофегм морального характеру у вигляді двовіршів (дистихів) з двох гекзаметрних рядків. Вірші мають монотеїстичне спрямування, але не виражено християнське. Фахівці відзначають високу якість версифікації та метрики «Дистихів Катона». Збірка Дистихи Катона була надзвичайно популярна з часів середньовіччя й перекладалася багатьма мовами. На цю збірку неодноразово посилається в своїх творах Джеффрі Чосер. Переклади й видання Найвідоміші видання «Дистихів Катона»: Les Mots et sentences dorés du maître de sagesse Caton, 1533, передрук 1798 Антуаном-Марі-Анрі Буларом. Distiques: Otto Arntzenius cum notis variorum: Amsterdam, 1754 Friedrich Zarncke, Leipsig, 1852. Український переклад Українською «Дистихи Катона» перекладали Мирон Борецький та Андрій Содомора. Дистихи Катона // Давня римська поезія в українських перекладах і переспівах: хрестоматія. — Львів: Світ, 2000. — с. 271–275. Дистихи Катона / Переклад з латини Андрія Содомори — Київ: Грані-Т, 2009. — 320 с. Примітки Посилання Дистихи Катона в оригіналі Давньоримські поети
7,928
https://codereview.stackexchange.com/questions/128450
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
200_success, Keatinge, abuzittin gillifirca, h.j.k., https://codereview.stackexchange.com/users/102872, https://codereview.stackexchange.com/users/20251, https://codereview.stackexchange.com/users/24141, https://codereview.stackexchange.com/users/9357
English
Spoken
734
1,606
Extracting coordinates file that are inside a bounding box I'm scanning a CSV file to see which values fit inside of a given box. The CSV file has X and Y coordinates, and the arguments to the function are the perimeters of a box (i.e, top, bottom, left side, right side). I don't want to use any external libraries; part of the purpose of this is to learn how to speed up code manually. I'm fairly new to Java, so any input would be helpful. I'm trying to get this down to 100ms if possible, but right now it's taking about 1000ms. Scanner dataStream = new Scanner(fileMain); while (dataStream.hasNext()){ String data = dataStream.next(); String[] values = data.split(",", 3); if(Double.parseDouble(values[0]) > lowX && Double.parseDouble(values[0]) < highX){ if(Double.parseDouble(values[1]) < highY && Double.parseDouble(values[1]) > lowY){ System.out.println(data); } dataStream.close(); Data is formatted like so: 90.92, 102.3 40.28, 82.32 13.02, 80 72, 104.82 In two places in this code you parse the same value as a double twice. Parse it once and save it. @Racialz Comments are for seeking clarification. Please write that as an answer, even if it is just that short. Welcome to Code Review! Do not vandalise your post, we are alerted to it in Charcoal HQ and have to clean it up. This may result in a question ban. see question bans How many lines are there? Can you supplement your question with the method declaration, so that we have a better sense of where the variables are coming from? First of all, note that you can always use Point2D.Double for representing points in a plane. Next, I would split your program into two methods: the first one for pruning points that are not within a specified bounding box, and the second one for reading the points from the standard input, and putting them into the first one. What comes to coding conventions, I would have a blank line before the if statement. Also, you should surround the condition of an if statement with a single space. So, instead of String[] values = data.split(",", 3); if(Double.parseDouble(values[0])){ ... you should write String[] values = data.split(",", 3); if (Double.parseDouble(values[0])) { ... All in all, I had this in mind: import java.awt.geom.Point2D; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.Scanner; public class CoordinateUtilities { public static List<Point2D.Double> getPointsWithinBoundingBox(final List<Point2D.Double> pointList, final double lowX, final double highX, final double lowY, final double highY) { Objects.requireNonNull(pointList, "The list of points is null."); checkXBounds(lowX, highX); checkYBounds(lowY, highY); final List<Point2D.Double> ret = new ArrayList<>(pointList.size()); for (final Point2D.Double point : pointList) { final double x = point.x; final double y = point.y; if (lowX <= x && x <= highX && lowY <= y && y <= highY) { ret.add(point); } } return ret; } public static void main(final String... args) { final Scanner scanner = new Scanner(System.in); final double lowX = 50.0; final double highX = 100.0; final double lowY = 30.0; final double highY = 60.0; final List<Point2D.Double> allPoints = new ArrayList<>(); while (scanner.hasNextLine()) { final String line = scanner.nextLine(); if (line.trim().equals("quit")) { break; } final Point2D.Double point = parsePoint(line); if (point != null) { allPoints.add(point); } } final List<Point2D.Double> boundedPoints = getPointsWithinBoundingBox(allPoints, lowX, highX, lowY, highY); boundedPoints.forEach(System.out::println); } private static Point2D.Double parsePoint(final String line) { final String[] tokens = line.trim().split("\\s*,\\s*"); if (tokens.length < 2) { return null; } try { final double x = Double.parseDouble(tokens[0]); final double y = Double.parseDouble(tokens[1]); return new Point2D.Double(x, y); } catch (final NumberFormatException ex) { return null; } } private static void checkXBounds(final double lowX, final double highX) { if (Double.isNaN(lowX)) { throw new IllegalArgumentException( "The lower bound of the x-coordinate is NaN."); } if (Double.isNaN(highX)) { throw new IllegalArgumentException( "The upper bound of the x-coordinate is NaN."); } if (lowX > highX) { throw new IllegalArgumentException( "The lower bound of the x-coordinate (" + lowX + "is " + "larger than the upper bound of the x-coordinate (" + highX + ")."); } } private static void checkYBounds(final double lowY, final double highY) { if (Double.isNaN(lowY)) { throw new IllegalArgumentException( "The lower bound of the y-coordinate is NaN."); } if (Double.isNaN(highY)) { throw new IllegalArgumentException( "The upper bound of the y-coordinate is NaN."); } if (lowY > highY) { throw new IllegalArgumentException( "The lower bound of the y-coordinate (" + lowY + "is " + "larger than the upper bound of the y-coordinate (" + highY + ")."); } } } Hope that helps.
19,573
https://stackoverflow.com/questions/44936867
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
Wolof
Spoken
270
1,028
spring-boot-maven-plugin include other projects from workspace I have a spring STS project which depends on two other projects in the same workspace. I have included them in my pom.xml but when I build jar they are excluded from the generated jar.Could you please let me know how to include these two dependent projects in the build. I have below entries in pom.xml <dependencies> <dependency> <groupId>org.acord.standards.life</groupId> <artifactId>txlife</artifactId> <version>2.37.00</version> </dependency> <dependency> <groupId>com.xxx.service.query</groupId> <artifactId>queryutil</artifactId> <version>1.0</version> </dependency> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>${spring-cloud.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>org.acord.standards.life</groupId> <artifactId>txlife</artifactId> <version>2.37.00</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.xxx.service.query</groupId> <artifactId>queryutil</artifactId> <version>1.0</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> <configuration> <attach>true</attach> <!-- <includes> <include> <groupId>org.acord.standards.life</groupId> <artifactId>txlife</artifactId> <version>2.37.00</version> <classifier>2.37.00</classifier> </include> <include> <groupId>com.xxx.service.query</groupId> <artifactId>queryutil</artifactId> <version>1.0</version> <classifier>1.0</classifier> </include> </includes> --> </configuration> </plugin> </plugins> </build> I solve this problem following this documentation from Spring.io. An alternative approach is you run Maven Install for each dependency project and, after it, set them in your pom.xml (in your main project). For example, I have a main spring project called Alna Rest that depends of others particular spring projects how Alna Data and Alna Service, then, in my Alna Rest project my pom.xml has this: <dependency> <groupId>com.alna.data</groupId> <artifactId>alna-data</artifactId> <version>0.0.1</version> </dependency> <dependency> <groupId>com.alna.service</groupId> <artifactId>alna-service</artifactId> <version>0.0.1</version> </dependency> After it I can run Maven Install in my Alna Rest project that the Spring Boot Maven Plugin build an executable jar with all projects dependencies. Well, this works for me. But I don't know if it is the better approach for build a project that requires many othes spring boot projects. Then I recommend you search more about this.
10,218
https://ru.wikipedia.org/wiki/%D0%A0%D0%BE%D0%BC%D0%B0%D0%BD%D0%BE%D0%B2%2C%20%D0%9D%D0%B8%D0%BA%D0%B8%D1%82%D0%B0%20%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B0%D0%BD%D0%B4%D1%80%D0%BE%D0%B2%D0%B8%D1%87
Wikipedia
Open Web
CC-By-SA
2,023
Романов, Никита Александрович
https://ru.wikipedia.org/w/index.php?title=Романов, Никита Александрович&action=history
Russian
Spoken
808
2,265
Ники́та Алекса́ндрович (, Санкт-Петербург — 12 сентября 1974, Канны) — князь императорской крови, третий сын великого князя Александра Михайловича и великой княгини Ксении Александровны. Внук императора Александра III по материнской линии, и правнук императора Николая I по прямой мужской линии. Детство и юность Князь императорской крови Никита Александрович родился во дворце своих родителей на Мойке. Он был четвёртым ребёнком в семье великого князя Александра Михайловича и великой княгини Ксении Александровны. В детстве и юности Никита Александрович подолгу вместе с родителями и братьями путешествовал по Европе. Любимым местом в России у князя было имение отца Ай-Тодор, находящееся в Крыму на берегу Чёрного Моря. Во время Первой мировой войны учился в Морском Его Императорского Высочества Наследника Цесаревича кадетском корпусе в Севастополе. После революции находился под домашним арестом вместе с родителями и другими Романовыми в имении Дюльбер в Крыму. В апреле 1919 года покинул Россию на английском линейном корабле «Мальборо» вместе с другими Романовыми. Эмиграция Первые годы эмиграции Никита Александрович провел в Париже, живя в доме своей сестры, княгини Ирины Александровны Юсуповой. В Великобритании он закончил Оксфордский университет. В отличие от своих братьев, в эмиграции Никита Александрович являлся активным участником монархического движения. Князь был одним из руководителей «Общества памяти императора Николая II», руководителем «Монархического союза русской дворянской молодёжи», который был основан в 1930 году, входил в состав Высшего монархического совета, а также являлся шефом созданного в Харбине в 1924 году «Союза мушкетёров его высочества князя Никиты Александровича». В 1930 году он стал шефом корпуса имени наследника цесаревича Алексея Николаевича. Это полувоенное среднее учебное заведение для мальчиков-эмигрантов находилось в Версале и существовало на средства Высшего монархического совета. На момент начала Второй мировой войны семья князя находилась в Париже. Не имея возможности вернуться в Лондон, Романовы отправились в Рим, а затем в Чехословакию. После начала наступления Красной Армии на Восточном фронте, из-за опасения, что они могут оказаться на занятой советскими войсками территории, семья Никиты Александровича перебралась в Париж. В 1946 году Никита Александрович вместе с семьей переехал в США, где одно время преподавал русский язык в армейском учебном заведении в Монтерее, потом жил в Нью-Йорке, работая в банках и конторах. За всю свою жизнь Никита Александрович так и не получил вид на жительство ни в одной стране мира и навсегда оставался подданным России. После смерти матери великой княгини Ксении Александровны, получив наследство, Никита Александрович вместе с супругой Марией Илларионовной поселился на юге Франции. Династические споры После смерти великого князя Николая Николаевича младшего в 1929 году часть русской монархической эмиграции на Дальнем Востоке именно Никиту Александровича считала потенциальным наследником российского престола. С ним с 1933 года переписывался генерал Дитерихс, который считал его будущим верховным правителем России. Сам же Никита Александрович признавал главой семьи Кирилла Владимировича, однако после того, как последний стал сотрудничать с младороссами, князь отправил своему дяде следующее письмо. «Милый дядя, Как Тебе известно, несколько лет тому назад я вместе с моим отцом признал все Твои права и подчинился Тебе. Я считал Тебя носителем исконных, веками великих и дорогих нам всем идеалов православной Русской Монархии. Твоё последнее обращение к Русским людям показало Твой полный отказ именно от этих идеалов. Желая действовать совершенно открыто и добросовестно, я считаю своим долгом сообщить Тебе, что я отныне за Тобой больше не следую и выхожу из твоего подчинения. Никита». В ответ Кирилл Владимирович отправил следующий ответ: «Ваше Высочество, Ознакомившись с содержанием Вашего письма от 16/29 Января сего года и в соответствии с его содержанием, Я объявляю Вам, что Вы отныне исключаетесь из числа Членов Императорской Фамилии. Кирилл. 18/31 Января 1932 г. С. Бриак». В будущем Никита Александрович отказался признавать права на престол своего троюродного брата князя Владимира Кирилловича (1917—1992). В 1959 году он поместил в печати следующие заявление: «Я никогда не признавал Е. В. Князя Владимира Кирилловича ни Главою Дома, ни Наследником Престола. В полном согласии с другими Членами Императорской Фамилии, я заявляю, что решения, когда бы то ни было принятые Кн. Владимиром Кирилловичем и относящиеся к нашей Династии, не могут считаться мною действительными. Дела Дома Романовых, за отсутствием Царствующего Императора, решаются временно совокупностью агнатов». Брак 19 февраля 1922 года в Париже женился на подруге детства графине Марии Илларионовне Воронцовой-Дашковой (1903—1997), дочери графа Иллариона Илларионовича Воронцова-Дашкова (1877—1932) и его первой жены Ирины Васильевны, урождённой Нарышкиной (1879—1917). Дети От брака с княгиней Марией Илларионовной имел двоих сыновей: Князь Никита Никитич (1923—2007) — в 1961 году женился на Джанет Энн (в православии — Анна Михайловна) Шонвальт (1933—2017). Сын Федор Никитич (1974—2007). Князь Александр Никитич (1929—2002) — в 1971 году женился на княжне Марии-Иммакулате ди Ниучелли (род.1931). Дочь Анастасия Александровна р.10 октября 1986 г. Смерть Князь Никита Александрович умер 12 сентября 1974 года в Каннах. Он был похоронен на Рокбрюнском кладбище рядом с родителями. Позднее княгиня Мария Илларионовна вспоминала, что её покойный супруг мечтал быть погребённым в любимом им Ай-Тодоре, и добавила: «Человек предполагает, а Бог располагает»… Литература Ссылки Н. А. Романов на thePeerage.com Никита Александрович Никита Александрович Русские эмигранты первой волны во Франции Русские эмигранты первой волны в США
1,062
https://diy.stackexchange.com/questions/138781
StackExchange
Open Web
CC-By-SA
2,018
Stack Exchange
Ed Beal, Jack, StayOnTarget, elrobis, https://diy.stackexchange.com/users/12354, https://diy.stackexchange.com/users/16006, https://diy.stackexchange.com/users/35141, https://diy.stackexchange.com/users/41781, https://diy.stackexchange.com/users/44366, isherwood
English
Spoken
745
963
Manual methods to compact base for concrete? I'm planning to pour a reinforced concrete pad and am looking for advice for how to compact the material underneath. A plate compactor would work - but can I get by without one? For instance, if I tamp down the soil and later gravel with a 12' sledgehammer head, 4x4 post, or concrete block (etc.) would the results be acceptable? Notes: We have rocky clay soil, over which will be a base layer of gravel, and then the reinforced concrete. The soil is quite dry since this has been within the interior of the house for ~45 years. The pad will be about 4x6 feet - not very large. (I don't mind renting a compactor if that really is the best option but for a small project it seems worth considering alternates.) EDIT: Clearly I was assuming that a plate compactor was like the gold standard and other choices might be acceptable but inferior. But one answer has questioned that and it may be an erroneous assumption. Are you aware of a tool called a tamper? @elrobis vaguely aware but I haven't used one. I guess I wondering if a plate compactor is going to do a different/better job than manual tamping, or if it is just faster but the other methods will produce as good of a result. When I was younger and worked in foundation construction we made our own effective manual soil compactors. They consisted of two parts, a pipe handle and a round base. The handle was a five or six foot long piece of 1" galvanized pipe. The base was a cast iron wheel hub from junk yard similar to that pictured below. The hubs were about six or seven inches in diameter and weighed enough that they easily absorbed the shock when tamped to the ground. The pipe handle was threaded into a pipe fitting that was welded into the center hole of the hub. (Obviously the grease cover of the hub was discarded). If I recall there was no issue of the bottom side of the hub having a small diameter center hole. Use of the compactor was a good amount of exercise and always seemed to be assigned to us young folks at the time by my father who was the foreman. I totally agree that a hand tamp is the way to go. On this small of a space and the scrap wheel hub would be a good DIY tamp, we had them made out of 1-1/4 or 1-1/2" pipe with thick steel plate welded to the pipe the wheel hub would be cheaper and would do a good job. Tool-free method: Level it, walk on it, saturate it with low pressure water, wait an hour, walk on it again, saturate it again with low pressure water, wait a few hours, walk on it once more. If it still doesn't feel compacted, do more watering, waiting and walking. Once you can walk on the compacted soil without leaving a footprint, you're good to put stuff on top of it. (If you're a ninja, get one of your non-ninja friends to walk on it, then check for footprints). A plate compactor is not appropriate. It has far too large a surface area for its weight and force, and is mostly intended to flatten the surface of soil. If you want to use a power tool, a "jumping jack" would do, though it's probably overkill for such a small project. We mostly used them around foundations. You need a small-ended tool with a high weight-to-area ratio. A simple 4x4 post can do well, or a 2x4 of 8 feet or longer, or really anything long and narrow. By applying force along the length of the tool, a very large amount of pressure is created by the momentum of the impact. You can also do water compaction. By saturating soil, air migrates out and the soil is left in a very dense state once the water percolates out. Do you think watering followed by drying and then mechanical compaction would be advisable? Thank you for the comment about plate compactors being too large but also insufficient - I hadn't considered that. There's no harm in using both compaction methods. I'd probably do water first if you have time available for thorough drying, otherwise reverse the order. Be very careful about wetting clay based soil. It wants to hold water, not perc through.
31,689
https://nl.wikipedia.org/wiki/Tanah%20Periuk%20I
Wikipedia
Open Web
CC-By-SA
2,023
Tanah Periuk I
https://nl.wikipedia.org/w/index.php?title=Tanah Periuk I&action=history
Dutch
Spoken
27
66
Tanah Periuk I is een bestuurslaag in het regentschap Musi Rawas van de provincie Zuid-Sumatra, Indonesië. Tanah Periuk I telt 1903 inwoners (volkstelling 2010). Plaats in Zuid-Sumatra
21,404
https://de.wikipedia.org/wiki/Rudolf%20Angerer
Wikipedia
Open Web
CC-By-SA
2,023
Rudolf Angerer
https://de.wikipedia.org/w/index.php?title=Rudolf Angerer&action=history
German
Spoken
247
560
Rudolf Angerer (* 24. November 1923 in Großraming; † 17. Mai 1996 in Wien) war ein österreichischer Illustrator und Karikaturist. Leben Angerer besuchte in Linz das Gymnasium und studierte ab 1946 an der Hochschule für angewandte Kunst in Wien. Er arbeitete dreißig Jahre als politischer Karikaturist für die österreichische Tageszeitung Kurier. Zudem illustrierte er Bücher von Ephraim Kishon, Fritz Muliar, Helmut Qualtinger, Hugo Wiener, Trude Marzik, Carl Merz, Cissy Kraner und anderen Autoren. Auch die Hüllen der 7"/45rpm Schallplattenreihe „Kabarett aus Wien“ des österreichischen Plattenlabels Preiser Records wurden von ihm gestaltet. Seine Karikaturen pflegt er mit „RANG“ zu signieren. Rudi Angerers Leidenschaft waren Schiffe und das Meer. Daher verbrachte er viel Zeit in der Marina Punta Verde, einem Hafen in der Nähe von Lignano. Angerer war seit 1979 Mitglied der Loge Zur Wahrheit und 1995 Gründungsmitglied der Loge Helios. Angerer wurde am Neustifter Friedhof bestattet. Werk (Auswahl) Angerer´s Nibelungenlied Angerer´s Erste Hilfe Ein Apfel ist nicht schuld Ich und Du Hänschen klein 1966: Illustrationen für Peter Orthofer: Österreich hat immer Saison. Von denen Türcken, Nibelungen, Frantzosen und anderen Österreichern. Ein vaterländischer Schmöker. Verlag Schwarzer, Wien 1966. 1986: Illustrationen für Peter Orthofer und Hans Peter Heinzl: Wir zeigen die Zehne. 10 Jahre Orthofer & Heinzl. Fotos Pedro Kramreiter. K & K-Theater, Wien 1986. 1987: Illustrationen für Peter Orthofer: Highlife für Jedermann. Ueberreuter-Verlag, Wien 1987. ISBN 3-8000-3254-6 Auszeichnungen 1971 Dr.-Karl-Renner-Publizistikpreis Literatur Weblinks Einzelnachweise Karikaturist (Österreich) Illustrator (Österreich) Karl-Renner-Preisträger Freimaurer (Österreich) Freimaurer (20. Jahrhundert) Österreicher Geboren 1923 Gestorben 1996 Mann
30,584
https://de.wikipedia.org/wiki/Homo%20sociologicus
Wikipedia
Open Web
CC-By-SA
2,023
Homo sociologicus
https://de.wikipedia.org/w/index.php?title=Homo sociologicus&action=history
German
Spoken
830
1,617
Der homo sociologicus (lat. = soziologischer Mensch) ist ein von Ralf Dahrendorf konzipiertes Akteursmodell der Soziologie, bei dem der Mensch als ein durch die Gesellschaft bedingtes Wesen gesehen wird, das sich Normen, Werten und Erwartungen beugen muss. Definition Der homo sociologicus bezeichnet einen Menschen, dem in seinem alltäglichen Leben verschiedene soziale Rollen zukommen, mit welchen wiederum verschiedene Normen, Werte und damit gesellschaftliche Erwartungen verbunden sind, denen er sich beugen muss. Diese Rollen können in einem Inter- oder Intra-Rollenkonflikt stehen, wobei sich der homo sociologicus immer der Rolle fügen wird, bei der der Druck durch Normen, Werte und Erwartungen am stärksten ist. Dabei wird zwischen Muss-, Soll- und Kann-Erwartungen unterschieden. Da die Erwartungen von der Gesellschaft ausgehen und der Einzelne keinen Einfluss auf sie hat, kann er sich ihnen nicht entziehen. Dies kann sogar so weit gehen, dass das Individuum Normen internalisiert, und sich dadurch bei Nichteinhaltung selbst negativ beziehungsweise bei Einhaltung positiv sanktioniert (Beispiele hierfür sind das Empfinden von Scham und Stolz). Erwartungen, Normen und Werte gehen allerdings selten von der Gesamtgesellschaft, in der der homo sociologicus lebt, aus, sondern meist von kleineren Gruppen, die für die jeweilige Rolle von Relevanz sind. Jeder Mensch ist dadurch einer individuellen Mischung von Normen und Erwartungen unterworfen, die sein Handeln bestimmen. Die Theorie des homo sociologicus hat sich daher oft den Vorwurf gefallen lassen müssen, dem Menschen den freien Willen abzusprechen. Muss-, Soll- und Kann-Erwartungen (Quelle:) Muss-Erwartung Eine Muss-Erwartung ist eine Erwartung, die in jedem Fall zu erfüllen ist. Oft sind solche gesellschaftlichen Erwartungen gesetzlich geregelt und eine Verletzung wird dementsprechend nicht nur mit sozialen Sanktionen, sondern auch mit rechtlichen Strafen geahndet. Beispiele für Verletzungen von Muss-Erwartungen sind Diebstahl oder Mord. Soll-Erwartung Soll-Erwartungen üben einen kaum schwächeren Druck auf den homo sociologicus aus als Muss-Erwartungen, werden jedoch bei Verletzung nur mit sozialen Sanktionen geahndet. Soll-Erwartungen sind beispielsweise leises Verhalten in einer Bibliothek oder pünktliches Erscheinen am Arbeitsplatz. Kann-Erwartung Kann-Erwartungen ziehen in der Regel keine negativen Folgen nach sich, wenn sie nicht erfüllt werden. Außergewöhnliches Engagement oder allgemein altruistisches Verhalten fällt unter diesen Bereich. Da Kann-Erwartungen nicht von vornherein erwartet werden, wird lediglich bemerkt, wenn sie erfüllt werden und dadurch positive Reaktionen, wie etwa Zuneigung oder Anerkennung, hervorrufen. Der homo sociologicus in anderen Bereichen Der homo sociologicus wirft auch ein Problem für die Philosophische Anthropologie auf: die Frage nach dem Widerspruch zwischen dem von Anderen beeinflussten Rollenhandeln einerseits und der Autonomie (Willensfreiheit) des Individuums andererseits. Es geht also um das nicht erst seit dem 19. Jahrhundert (dort z. B. von Georg Wilhelm Friedrich Hegel, Karl Marx und Ferdinand Tönnies) erwogene Paradox zwischen Notwendigkeit und Freiheit des menschlichen Willens. Zugespitzt: Was bleibt, wenn man vom Menschen ‚an sich‘ den homo sociologicus abzieht? „Der Mann ohne Eigenschaften“ (nach Robert Musil)? Da aber kein Mensch rollenlos leben kann und somit stets Erwartungen und Sanktionen ausgesetzt ist, prägte Dahrendorf dafür die viel zitierte und unterschiedlich interpretierte ironische Formel von der ärgerlichen Tatsache der Gesellschaft. Begriffsgeschichte Der Begriff stammt von Ralf Dahrendorf, der ihn ursprünglich 1958 als Teil einer Festschrift zum 65. Geburtstag des Philosophen Josef König entwarf. Ein Aufsatz zum homo sociologicus erschien dann in zwei Teilen in den Heften 2 und 3 des 10. Jahrgangs der Kölner Zeitschrift für Soziologie und Sozialpsychologie. 1959 veröffentlichte der Westdeutsche Verlag diesen Artikel als eigenständiges Buch mit dem Titel Homo Sociologicus: Ein Versuch zur Geschichte, Bedeutung und Kritik der Kategorie der sozialen Rolle. Zuletzt wurde das Werk 2010 in seiner 17. Auflage vom VS Verlag für Sozialwissenschaften herausgegeben. Dahrendorf hat mit dieser Schrift der 1958 mit der Rollenthematik noch ganz unvertrauten deutschen Soziologie ein viel beachtetes Analyseinstrument vorgeschlagen. Eine intensive fachliche Diskussion (so durch Friedrich Tenbruck, Erhard Wiehn, Dieter Claessens) schloss sich an. Ihr Erfolg kollidierte mit Deutungen nach Karl Marx („Charaktermaske“) und wurde also nach 1967 von marxistischer Seite kritisiert (Frigga Haug). Uta Gerhardt schloss 1971 diese Diskussion mit ihrer Habilitationsschrift Rollenanalyse als kritische Soziologie so nachhaltig ab, dass der deutsche „Rollen“-Diskurs, trotz gelegentlich beachtlicher Beiträge (Gottfried Eisermann), praktisch bis zur Jahrtausendwende erlosch und sich erst seither wieder belebt. Literatur Dieter Claessens: Rolle und Macht. 1968 Rose Laub Coser: Role Distance. In: American Journal of Sociology. Band 72, 1966 Ralf Dahrendorf: Homo Sociologicus. Ein Versuch zur Geschichte, Bedeutung und Kritik der sozialen Rolle. VS Verlag für Sozialwissenschaften, Wiesbaden, 17. Auflage 2010. books.google Vorschau Uta Gerhardt: Rollenanalyse als kritische Soziologie. 1971 Frigga Haug: Kritik der Rollentheorie. 1972 Hans Joas: Die gegenwärtige Lage der soziologischen Rollentheorie. 3. Aufl. 1978 Robert K. Merton: Der Rollen-Set: Probleme der soziologischen Theorie. In: Heinz Hartmann (Hg.): Moderne amerikanische Soziologie. 1967 Heinrich Popitz: Der Begriff der sozialen Rolle als Element der soziologischen Theorie. 1967 Johann August Schülein: Rollentheorie revisited. In: Soziale Welt. Band 40, 1989, S. 481 ff. books.google Friedrich H. Tenbruck: Zur deutschen Rezeption der Rollentheorie. In: Kölner Zeitschrift für Soziologie und Sozialpsychologie. Band 13, 1961 Günter Wiswede: Rollentheorie. 1977 Siehe auch Handlungstheorie (Soziologie) Mikrosoziologie Homo academicus Homo oeconomicus Homo socio-oeconomicus Emotional Man freier Wille Anmerkungen Handlung und Verhalten (Soziologie) Soziologische Rollentheorie Soziologische Publikation Ralf Dahrendorf
50,816
F3nqGrHN6zk_1
Youtube-Commons
Open Web
CC-By
null
Gina Rosenthal, Dell, Part 2 - Dell Storage Forum 2011 - theCUBE
None
English
Spoken
1,562
1,938
In Prairie, folks down in Austin, people based globally, then we have our customers from all these different acquisitions and our partners, finding everybody and seeing what we all have in common that we're all one Dell storage and growing it and growing it and showing that expertise and making this technical community really visible. That's why this was such an important event, right? Yeah, absolutely. And it coincided very nicely with the close of the compelling deal. I just think, I think events like this, right, it's all about the networking. It really is. Things happen after you get together an event like this. People trade cards and then they collaborate all the time. Do people still trade cards? Oh, totally. Okay. I saw a lot of people just getting Twitter names. Yeah, they do that a lot on the BOMB app or what, but not, I don't know if they have a Android, sorry. I don't know if they're on Android. That's still cool. They're like logos. But, you know, I was thinking, as you were saying about all the stories and everything, you know, NPR's, I don't know the name of it, I always blank on it, but basically NPR has this effort and they have people come in and tell their stories, their heritage, all of this and they're capturing it in audio so that it's recorded for future generations. I mean, that's like, you know, very far-reaching, yeah, something archive. I always blank on it. It's not a very good name because I can't remember it, but I think you should do something like that. Oh, okay. You should have a little booth and all the offices and people come in. We should do something like that and I mean, just not only hear Adele to get some of those stories out because some of the folks that are here have been all over the place, right? All sorts of different companies. Oh, yeah, they have. And I know, you know, you even hear our execs telling these stories, even Michael Adele when he told the story when he was in his dorm room and how it all started. He started in storage. I didn't know that. Isn't that awesome? Yeah. I can't retell it. John McCrotha told me. He said he started developing a storage. So the first thing that he was doing were hard drives and storage-related stuff. And who was... And he sold it to Lockheed Martin or something. Well, somebody came in to look at the drives and they were like, well, are you selling that over there? And it was his PC. Yeah. They had to build a computer to format the drives. So they were making these IBM-compatible drives. Right. That is so awesome. And they built a computer so they could get the drives formatted, but they were just all about some... And I don't remember the company either, but they came and wanted like hundreds of drives and they were just like, whoa, and cleaned up the little shop and went and bought a suit. And the guys came and they were showing them their little process, how it worked. And he was like, what's that do? And they wanted the computer and he hadn't thought about something. And that's kind of what... Wow. Say the whole thing. In the months even, very quickly, it had changed their business model. That's it. That's really interesting. But how do we... But you're right about like the archive stories. How many of those stories do we have from some of these folks that are now like, if you think about, you know, how long we've been doing computing, you know, as an industry. Right. We've got a lot of people that are getting to that retirement age. There's a lot of these stories of our history of our, you know, our industry's history we really do need to record. We captured Phil in the cube today, didn't we? We got his... Three different days. Yeah. We got a lot of good stories from him. He went through his whole history and how he started all these companies. That sounded like really interesting the bits I heard. So every year the cube can come in and you guys can gather more stories and more stories. That would be great. I would love it. That would be awesome. And then you can sell storage to store all this stuff. There you go. You can't beat that, right? More storage? More storage. Michael actually tweets himself, doesn't he? He does. And I hear that, you know, he loves it, that he's always on his phone tweeting and on the internal aspect of stuff. I've talked to Dell employees about what you guys do internally with the chatter. And you guys are using chatter, Salesforce chatter, to keep the conversation and innovation going within the company. Absolutely. So we have a storage group inside chatter. So the team that wasn't able to come with me to the event, they've been working so hard Jennifer and Allison to curate everything we found through listening and we have it on our Facebook page but we also put it on chatter because lots of people have the chatter alert set so they'll actually see what's going on. So we're able, like one thing we've been sharing is the links every time that somebody new comes on, we say who it is and we share that link with people. Another way it's been working is anyone that's doing storage is able to ask questions really quickly, is able to say, hey, here's this new paper that we wrote, could you help us promote it? That kind of thing. And there's several storage groups internally based on what people are working on different projects and kind of cross pollinate depending on what it is we're trying to share with the whole community. And it's working out well, obviously. It's great because there's an app that can be on your desktop. I don't have that but you can set it to get alerts daily or as they happen in your email. And then it's integrated with the other common corporate enterprise applications that we use for work. So you're pretty social media savvy, you were showing me some pictures from your command center. Yeah. Have you guys heard about the social media command center? I've heard of it but tell us. It is so awesome. So there is an organization within Dell that concentrates on social media. So they do all the training, they set up our radiant six listening posts so we're able to hear different signals that are going on when people mention SR products. Radiant six is a service that gathers all of, as they talk about you online and tells you what your reputation is. Kind of, yes. So it's a listening tool and it's an enterprise listening tool. It can, you can configure it to listen to specific, you can filter it down to specific keywords to bring back everything about a topic. And relationships around keywords as well. And relationships around keywords, excuse me. You can also, you can also listen and monitor any of your branded Facebook, Twitter, blogs, that kind of thing. So as things happen in real time, it's just, it's kind of like tweet deck. You can see things from these filters pop up. They have a really, so the command center, what the command center is, they actually have people who listen 24-7 to people saying things about Dell, all Dell stuff. And they have a command center and it looks like a knock, it's just a room with this big glass window with a bunch of flat screen TVs in it and the people that are the listeners sit in there and listen. And one, radian six kind of application that we have, they have displayed on the TV these big circles and they're based on keyword and if, and it's based on product. So if the key, if the circle is red, people are saying lots of negative things about it. Circle is green, it's positive. And the size of the circle is how, how, how the velocity is going with that. So they might be doing some other things, looking and see, oh wow, that's a big red circle. They can go to Dell then and check out and see what they can do to resolve the situation. It's really cool. Can you share some success stories, you know, customers you've won over, you know, bad situations that you've turned positive, have any of those in? There's a lot and right now what I'm doing, I'm not too related to that. One thing that we've been piloting and working on is we have a gentleman who sits in Nashua which is where the ecological offices are and he, all he does all day is he listens for, for people who are having problems with ecological gear and, and he, he tracks it back and he looks in the support database to see if someone's already opened a case. He must be very bored because we had some ecologicalism before, they're like the Maytag. No, nothing's going on. Nothing ever. He just, I don't know what he does.
7,255
https://en.wikipedia.org/wiki/Saint-Cyr-de-Salerne
Wikipedia
Open Web
CC-By-SA
2,023
Saint-Cyr-de-Salerne
https://en.wikipedia.org/w/index.php?title=Saint-Cyr-de-Salerne&action=history
English
Spoken
25
51
Saint-Cyr-de-Salerne is a commune in the Eure department in Normandy in northern France. Population See also Communes of the Eure department References Communes of Eure
16,726
https://fr.wikipedia.org/wiki/Half%20of%20Me%20%28chanson%20de%20Geri%20Halliwell%29
Wikipedia
Open Web
CC-By-SA
2,023
Half of Me (chanson de Geri Halliwell)
https://fr.wikipedia.org/w/index.php?title=Half of Me (chanson de Geri Halliwell)&action=history
French
Spoken
197
339
Half of Me est une chanson de la chanteuse britannique Geri Halliwell, sortie le . Elle est son 1er single sortit sous le label Sony et le 1er depuis Desire, en 2005. Développement Alors qu’elle habite en Australie pour être juge de la célèbre émission Australia's Got Talent, Geri rencontre le duo de producteurs musical DNA et écrit cette chanson remplie d’humour, d’espoir, d’amour et d’optimisme. Sortie Geri signe alors avec la maison de disques Sony Music Australie, pour sortir la chanson uniquement sur ce territoire, tout en prévoyant un album. Promotion La première a été un concert privé gratuit à l’hôtel Beresford à Sydney et la seconde a eu lieu pendant le Nine Network programme The footy Show le Accueil Si la chanson reçoit d’excellentes critiques, elle est échec, en se classant à la 281eme place des meilleures ventes de singles en Australie et n’a pas du tout bénéficiée d’une promotion à l’international. Vidéoclip Le vidéoclip a été filmé en Australie et démontre Geri accompagnées d’hommes déguisé en ours, de manière humoristique. Geri Halliwell Half Of Me vidéo officielle sur youtube.com Pistes et formats "Half of Me" – 3:11 Classements Références Single musical sorti en 2013
32,228
https://arz.wikipedia.org/wiki/%D9%88%D9%84%D9%8A%D8%A7%D9%85%20%D8%A8%D9%8A%D9%86%D8%AF%D9%8A%D9%83%D8%B3
Wikipedia
Open Web
CC-By-SA
2,023
وليام بينديكس
https://arz.wikipedia.org/w/index.php?title=وليام بينديكس&action=history
Egyptian Arabic
Spoken
58
150
وليام بينديكس كان ممثل افلام و ممثل تلفزيونى و فنان كوميدى و ممثل و سيناريست من امريكا. حياته وليام بينديكس من مواليد يوم 14 يناير سنة 1906 فى نيو يورك. جوايز نجمه على ممر الشهره فى هوليوود وفاته وليام بينديكس مات فى 14 ديسمبر سنة 1964. لينكات برانيه مصادر ممثل افلام من امريكا وفيات 1964 مواليد 1906 ممثلين
25,795
https://sr.wikipedia.org/wiki/%D0%90%D1%80%D1%85%D0%B0%D0%BD%D0%B3%D0%B5%D0%BB%20%28%D0%B8%D0%BC%D0%B5%29
Wikipedia
Open Web
CC-By-SA
2,023
Архангел (име)
https://sr.wikipedia.org/w/index.php?title=Архангел (име)&action=history
Serbian
Spoken
57
183
Архангел је хришћанско мушко име грчког порекла. Значење и порекло Потиче из грчке речи „-{Ahrangel}-“, која означава арханђела, заповедника анђела. Календарско је име. Изведена имена Од овог имена изведена су имена Аранђел, Рака, Ранђел и Ранђија. Занимљиво је да име Рака постоји и на хинду језику и значи „пун месец“. Референце Грчка имена Српска имена Мушка имена
9,945
https://id.wikipedia.org/wiki/Menesia%20signifera
Wikipedia
Open Web
CC-By-SA
2,023
Menesia signifera
https://id.wikipedia.org/w/index.php?title=Menesia signifera&action=history
Indonesian
Spoken
59
140
Menesia signifera adalah spesies kumbang tanduk panjang yang tergolong famili Cerambycidae. Spesies ini juga merupakan bagian dari genus Menesia, ordo Coleoptera, kelas Insecta, filum Arthropoda, dan kingdom Animalia. Larva kumbang ini biasanya mengebor ke dalam kayu dan dapat menyebabkan kerusakan pada batang kayu hidup atau kayu yang telah ditebang. Referensi TITAN: Cerambycidae database. Tavakilian G., 25 Mei 2009. Menesia
22,786
https://zh.wikipedia.org/wiki/%E6%B2%99%E8%B5%A4%E6%98%9F%E5%8F%B0%E5%90%89
Wikipedia
Open Web
CC-By-SA
2,023
沙赤星台吉
https://zh.wikipedia.org/w/index.php?title=沙赤星台吉&action=history
Chinese
Spoken
7
224
沙赤星台吉(),孛儿只斤氏。16世纪蒙古右翼土默特部領主,达延汗第三子巴尔斯博罗特之孙,俺答汗的第八子,母亲是三娘子。 万历四年(1576年),明神宗封他为副千户,万历十一年(1583年),升任为指挥佥事,加封明威将军。与明朝互市于山西大同各个市口,他和明朝和睦相处。沙赤星哑不能说话,没有后嗣。 参考文献 孛儿只斤氏 古代蒙古族军事人物 明朝指挥佥事 明朝明威将军
39,602
https://ru.wikipedia.org/wiki/%D0%9B%D0%B5%D1%81%D0%BD%D0%B8%D0%BA%D0%BE%D0%B2%2C%20%D0%98%D0%B2%D0%B0%D0%BD%20%D0%9F%D0%B5%D1%82%D1%80%D0%BE%D0%B2%D0%B8%D1%87
Wikipedia
Open Web
CC-By-SA
2,023
Лесников, Иван Петрович
https://ru.wikipedia.org/w/index.php?title=Лесников, Иван Петрович&action=history
Russian
Spoken
564
1,588
Лесников, Иван Петрович (10 сентября 1811 — 15 апреля 1893) — санкт-петербургский городской голова 1851—1857 годах, потомственный почетный гражданин и купец 1-й гильдии. Биография Окончил петербургское Главное немецкое училище (Петришуле), затем учился в Императорской Академии художеств на правах вольнослушателя и за рисунок с натуры получил в 1828 году от Академии медаль второго достоинства. По классу живописи занимался у таких знаменитых живописцев, как А. И. Иванов, В. К. Шебуев и А. Е. Егоров. Являлся хозяином крупнейшего в Петербурге торгового дома, занимавшегося производством и продажей суконных изделий. Владел в городе тремя каменными домами на Большой Морской ул., 18; ул. Чайковского, 17; Караванной ул., 9. Ещё один деревянный дом — был у Ивана Петровича в Лесном, он располагался тогда на территории нынешнего филиала Алмазовского центра, на углу современных улиц Пархоменко и Орбели. Продолжил дело своего отца, Петра Васильевича Лесникова, устроителя и содержателя петербургской Александринской больницы, став её директором 11 января 1849 года. Выбран городской общей думой городским головой с 9 июня 1851 по 25 мая 1857 года. Петербургская городская дума в годы Крымской войны внесла немалый вклад в формирование государственного ополчения. Город нес большие расходы по обмундированию и продовольственному обеспечению ополченцев, размещению и организации ополченских дружин. И. П. Лесников из своих средств лично внес десять тысяч рублей, за что получил в феврале 1855 года очередную Высочайшую благодарность. Надо отметить, что, внося деньги на нужды армии, Иван Петрович, как и раньше, не переставал оказывать денежную помощь медицинским и благотворительным организациям Петербурга. Так, за поддержание устроенной в 1845 году его отцом Александринской сыпной больницы 3 февраля 1852 года он был награждён орденом Cвятой Анны третьей степени. С 12 марта 1853 по 1 января 1859 года состоял директором Петербургского попечительного о тюрьмах комитета, члены которого оказывали серьёзную помощь заключенным, улучшая условия их содержания и питания, а также заботясь об участи детей арестантов. За труды по благотворительности И. П. Лесников был пожалован в апреле 1853 года орденом Cвятой Анны второй степени. 26 апреля 1854 года его произвели в чин надворного советника. За благотворительность он был также награждён 21 мая 1856 года орденом Cвятой Анны второй степени с императорской короной. И. П. Лесников был пожалован чином коллежского советника. За деятельность по Александринской сыпной больнице пожалован 19 апреля 1863 года чином статского советника. За многолетнюю благотворительную деятельность награждён 30 августа 1865 года орденом Cвятого Владимира третьей степени. Получил потомственное дворянство 14 октября 1866 года с внесением в дворянскую родословную книгу Санкт-Петербургской губернии. В 60-е годы XIX века он являлся попечителем Калинкинской городской больницы. Один из главных благотворителей Храма Преображения Господня при Доме милосердия в Лесном. С 1887 г. по 1889 г. Иван Петрович Лесников своими пожертвованиями принимал участие в строительстве нового каменного храма, из отчётов которого известно, что после окончания строительства Иван Петрович пожертвовал храму: «отличной работы бронзовое вызолоченное паникадило на 44 свечи», а также, «2 больших, к местным иконам, подсвечника». В конце жизни был награждён чином тайного советника. Умер И. П. Лесников в 1893 году в собственном доме № 9 на Караванной улице. Похоронен в Александро-Невской лавре в Петербурге. Связь с семейством Глазуновых. Дочери его братьев (Василия и Игната) были замужем за Глазуновыми (отцом и сыном). Анна (дочь Василия) была замужем за Иваном Ильичем Глазуновым (1826—1889), а Надежда (дочь Игната) — за Ильей Ивановичем Глазуновым (1856—1913), его сыном. И Иван Ильич Глазунов, и его сын Илья Иванович Глазунов в разное время были городскими головами Санкт-Петербурга. Сам Иван Петрович неоднократно выступал в роли крестного отца детей Ивана Ильича Глазунова. Примечания Санкт-Петербургские городские головы
14,761
https://fo.wikipedia.org/wiki/Hal%20Holbrook
Wikipedia
Open Web
CC-By-SA
2,023
Hal Holbrook
https://fo.wikipedia.org/w/index.php?title=Hal Holbrook&action=history
Faroese
Spoken
307
664
Harold Rowe "Hal" Holbrook (føddur 17. februar 1925 í Cleveland, Ohio; d. 23. januar 2021) var ein amerikanskur filmsleikari. Hann hevur spælt við í fleiri sjónvarpsfilmum og røðum. Hann hevur eisini spælt leiklutir í spælifilmum. Í 2007 var hann tilnevndur eina Oscar-virðisløn og ein Screen Actors Guild Award fyri sín leiklut í filminum Into the Wild. Hann er eisini kendur fyri at spæla í sjónvapsrøðum, eitt nú spældi hann leiklutin sum Abraham Lincoln í 1976 sjónvarpsrøðini Lincoln, og sum Hays Stowe í The Bold Ones: The Senator. Hann hevur verið giftur trýggjar ferðir og eigur trý børn. Hann giftist við Ruby Holbrook í 1945, tey fingu tvey børn, blivu síðan skild í 1965. Í 1966 giftist hann Carol Eve Rossen, tey fingu eitt barn saman, tey vóru skild í 1983. Hann giftist sjónleikararnum Dixie Carter í 1984, tey vóru gift til hon doyði í 2010. Filmografi The Group (1966) Wild in the Streets (1968) They Only Kill Their Masters (1972) Jonathan Livingston Seagull (1973) (voice) Magnum Force (1973) All the President's Men (1976) Midway (1976) Julia (1977) Rituals (1977) Capricorn One (1978) The Awakening Land (1978) The Fog (1979) When Hell Was in Session (1979) The Kidnapping of the President (1980) Creepshow (1982) The Star Chamber (1983) Girls Night Out (1983) North and South Book I (1985) North and South Book II (1986) Wall Street (1987) The Unholy (1988) Fletch Lives (1989) Evening Shade (1990–1994) The Firm (1993) Innocent Victims (1996) Eye of God (1997) Cats Don't Dance (1997) Hercules (1997) Hush (1998) Walking to the Waterline (1998) The Bachelor (1999) Waking the Dead (2000) Men of Honor (2000) The Majestic (2001) The West Wing (2001, 2002) The Seventh Day (2002) Country Music: The Spirit of America (2003) Shade (2003) The Sopranos (2006) NCIS (2006) Into the Wild (2007) ER (2008) That Evening Sun (2009) Amerikanskir sjónleikarar
36,384
https://stackoverflow.com/questions/7567520
StackExchange
Open Web
CC-By-SA
2,011
Stack Exchange
Ima, Leth Engberg, Nguyễn Thị Thanh Nhàn, Smruti , Thang ka, Yash Belsare, https://stackoverflow.com/users/16740510, https://stackoverflow.com/users/16740511, https://stackoverflow.com/users/16740512, https://stackoverflow.com/users/16740979, https://stackoverflow.com/users/16741996, https://stackoverflow.com/users/294625
English
Spoken
366
789
Decrypt in Python an encrypted message in Java I'm trying to decrypt in Python (with M2Crypto) an encrypted message generated in Java with this library My code (which I actually found here) works decrypting messages encrypted by itself, but not from Java's library, I get the following error: EVPError: 'wrong final block length' I have tried both *aes_128_cbc* and *aes_128_ecb* and I get the same error. I guess the failure is that Java's result is Ascii's encoded and Python's code is expecting some other encoding (as it works with base64) but I don't know where to make the change (in my Python's code). I'm open to use any other Python encryption library. Thanks import M2Crypto from base64 import b64encode, b64decode ENC=1 DEC=0 def AES_build_cipher(key, iv, op=ENC): """""""" return M2Crypto.EVP.Cipher(alg='aes_128_cbc', key=key, iv=iv, op=op) def AES_encryptor(key,msg, iv=None): """""" #Decode the key and iv key = b64decode(key) if iv is None: iv = '\0' * 16 else: iv = b64decode(iv) # Return the encryption function def encrypt(data): cipher = AES_build_cipher(key, iv, ENC) v = cipher.update(data) v = v + cipher.final() del cipher v = b64encode(v) return v print "AES encryption successful\n" return encrypt(msg) def AES_decryptor(key,msg, iv=None): """""" #Decode the key and iv key = b64decode(key) print key print if iv is None: iv = '\0' * 16 else: iv = b64decode(iv) # Return the decryption function def decrypt(data): data = b64decode(data) cipher = AES_build_cipher(key, iv, DEC) v = cipher.update(data) v = v + cipher.final() del cipher return v print "AES dencryption successful\n" return decrypt(msg) if __name__ == "__main__": result = AES_decryptor(b64encode(SECRET_KEY), msg=encrypted_message) What does "ascii encoded" mean? As you know, my code expected base64 input and produced base64 output. Removing the calls to b64decode and b64encode in the encrypt and decrypt functions will let you pass in raw data, then it'll be up to you to decode the input from Java into raw bytes. You are right, I have deleted every b64encode/decode call, but I have made some other changes to match Java JCE encryption results in ECB mode (not in CBC as the code uses). I also have replaced key value for key.decode("hex") in both methods and v = b64encode(v) for v = v.encode("hex") in the encryption method.
36,481
https://zh.wikipedia.org/wiki/%E4%BC%8D%E9%8C%A6%E9%9C%96
Wikipedia
Open Web
CC-By-SA
2,023
伍錦霖
https://zh.wikipedia.org/w/index.php?title=伍錦霖&action=history
Chinese
Spoken
55
3,416
伍錦霖(,),中華民國政治人物,中國國民黨籍,生於臺灣屏東萬丹,曾任考試院院長、總統府秘書長、考試院副院長、立法委員等職。伍氏乃文官出身,曾歷任多個公職職位,在1990年代在臺灣省政府服務,其後自2000年代起開始活躍於政治活動上,曾任屏東縣立法委員。由於伍氏處事圓滑公職生涯中屢獲晉升,最終晉身五院院長行列。在2016年總統蔡英文就任後,伍錦霖成為蔡英文政府內位階最高的國民黨官員(當時五院唯一國民黨籍院長)。 生平 早年生涯 伍錦霖生於臺灣屏東萬丹,乃農村家庭出身,老家位於萬丹社皮。伍錦霖在臺灣省立屏東中學初中部畢業後,原本因為教師在畢業後有穩定工作和在學期間花費不大,而報考師範專科學校,亦在認真準備第一屆師專考試後獲得錄取。但其就讀大學的親戚則勸誡他應該就讀一般高中,或許以後發展的路會更寬廣。於是伍錦霖聽從其建議,輾轉北上轉到臺灣省立臺北成功中學就讀高中。 高中畢業後,伍錦霖於國立政治大學公共行政學系畢業,並於大學三年級時,於1970年在公務人員高等考試及格而成為公務人員。伍氏其後利用公餘時間進修,於研究所取得碩士學位畢業。1981年,伍錦霖以最優等成績通過甲等特考,晉身高級文官的行列。其後,他歷任臺北市政府及臺灣省政府科員、專員、組長、科長、主任秘書、參議、臺灣土地銀行副總經理、臺灣省農工企業股份有限公司總經理等職務。 伍錦霖在李登輝任臺北市市長時,未隨林洋港赴省府高升,而是追隨李氏調升市府工務局。伍錦霖深獲李登輝信任,在李氏擔任省主席期間(1981年至1984年),連私人行程也由伍錦霖陪同。結果,在李登輝出任省主席後,伍錦霖獲提攜任交際科長,並於1990年1月受省議長簡明景提拔就任臺灣省議會秘書長一職。伍氏任省議會秘書長期間,歷經邱創煥、連戰和宋楚瑜三個省主席,被視為處理府會關係得宜,伍錦霖更深獲連戰信任。 參與政治 1994年12月,伍錦霖改任考試院秘書長,任期於1997年3月屆滿。2004年立法委員選舉中,伍氏經黨內協商後,代表國民黨在家鄉屏東出選,在該屆選舉屏東縣選舉區被裁撤一席至六席的情況下,伍錦霖成功與廖婉汝為國民黨在屏東維持兩席立委的成績。 雖然伍氏在2005年中國國民黨主席選舉中支持王金平,但在2005年8月,新任國民黨主席馬英九仍邀請伍錦霖擔任國民黨副秘書長一職,被認為是要借助在伍氏在南台灣的影響力,開拓國民黨在南部的支持度。2008年總統選舉中,伍錦霖負責主理中南部的選舉組織工作。 馬英九政府時期 由於伍錦霖辦事能力高,加上其深諳台語俚語,令他能應對基層事務自如,因此深獲馬英九欣賞和重用。伍錦霖於2008年6月卸任黨職後,隨即獲時任總統馬英九提名為考試院副院長。伍氏在立法院審查考試院副院長人事提名案時,認為民主進步黨部分立委的質疑不公道,指出雖然在其兄長伍澤元畏罪潛逃後仍有聯絡,但兩人的個性、行事風格和價值觀都不同,並批評該等立委將其兄長跑路的事扯到他身上並不恰當,痛罵:「你們有人性嗎?」翌月,原定的考試院院長候選人張俊彥因審查風波決定退出提名,令院長職位懸空。結果,立法院在7月11日行使同意權中,只有考試院副院長的提名案上呈。而伍氏亦以86票贊成、22票反對及4票無效獲通過成為考試院副院長。 2008年9月,伍錦霖就任考試院副院長一職,同時因院長懸空而成為代理院長。2011年2月,原國民黨秘書長金溥聰卸任,準備為馬英九在2012年總統選舉中輔選,而時任總統府秘書長廖了以則接任金氏的原職。因此,伍錦霖改任總統府秘書長一職,接替離職的廖了以。伍錦霖接任總統府秘書長被視為為馬英九「救火」,再度投身輔選組織動員工作。 2012年2月,伍錦霖離任總統府秘書長,遺缺由曾永權接任。同年4月,馬英九提名伍錦霖回歸考試院,回任考試院副院長職務。由於考試院副院長一職在伍錦霖任總統府秘書長期間一直懸空,外界視為「虛位以待」,幾乎就是等待伍錦霖回任。伍氏在立法院行使同意權後,以66票贊成通過。伍氏在任副院長期間,曾主理年金改革事務。 執掌考試院 第11屆考試委員任期於2014年任滿,伍錦霖獲扶正為考試院院長。伍錦霖在2014年6月立法院行駛同意權時,以68票贊成通過人事案,成為第12任考試院院長。伍錦霖任考試院院長時,年金改革和修改《考試院組織法》成為任期內兩大事件。 自2016年末起,蔡英文政府開始推動年金改革進程,當中考試院曾被批評為拖延阻撓年金改革。考試院在2017年3月通過考試院版本《公務人員退休撫卹法》草案,送交立法院審議。考試院版本的草案由於減少退職俸祿力度較小,因此被外界稱為「放水版」。民進黨立法院黨團表態支持年改會(行政院)版本,並不支持考試院版本。而副總統陳建仁亦認為考試院版本不但毫無科學實證基礎,也與追求退撫基金永續的目標背道而馳。銓敘部在翌月的報告指出,年改會版本可節省7346億元,而考試院版本僅能省下4203億元。此外,年改會版本的退撫基金將在2050年破產,比考試院版2044年破產晚6年。 2019年中,立法院開始醞釀修改《考試院組織法》明訂的考試院職權,伍錦霖在同年5月罕有地親自舉行記者會,更在當時以辭職作施壓。伍錦霖指出,他尊重立法院修改《組織法》的職權,但指出修法不容傷及憲政體制,剝奪考試院的決策權。最終,《組織法》於2019年12月獲通過,伍氏關注牽涉考試院督導所屬部會的權利之條文,並沒有如最初部分立委建議般改為「研究及建議權」,而是維持原狀。伍錦霖認為修法未觸及憲政層次的第7條及第8條條文,立法院算是從善如流,但對於立法院刪減考試委員人數及任期的做法感到遺憾。 伍錦霖執掌考試院期間,考試院修訂《典試法》、《公務人員退休資遣撫卹法》及《公務人員保障法》等法案,以及調整司法官及律師考試的模式。此外,考試院亦按照公務職能區分,對職組及職系進行整併,加強有效運用公務人力的資源。而考試院亦有對退撫基金作出調整以提升基金的績效。2020年9月,伍錦霖結束六年的任期,院長一職由黃榮村接任。 荣誉 中华民国勋章奖章 一等景星勋章(2012年2月24日于台北总统府颁授) 一等卿云勋章(2016年4月18日于台北总统府颁授) 家族 兄長伍澤元,曾任屏東縣縣長、立法委員。 堂兄長伍金井,曾任屏東縣議員、萬丹鄉長。 妹夫徐安旋,曾任臺灣菸酒公司董事長。 妻子柯淑美,嘉義人,1948年出生,曾為私人企業公司會計。 長子伍帥龍、次女伍帥儒、三男伍威達皆無從政。 參考資料 外部連結 首長及考試委員簡介-院長 伍錦霖 先生 |- |colspan="3" style="text-align:center;"|考試院 |- |- |colspan="3" style="text-align:center;"|中華民國總統府 |- 一等景星勋章获得者 一等卿云勋章获得者 中華民國總統府秘書長 考試院院長 考試院副院長 考試院秘書長 第六屆立法院立法委員 中國國民黨黨員 耶魯大學校友 國立政治大學社會科學學院校友 萬丹人 Jin錦 臺灣反同性婚姻人士 公務人員退休撫卹基金監理委員會主任委員
12,691
https://fa.wikipedia.org/wiki/%D8%A8%D8%A8%DB%8C%20%D8%A8%DB%8C%D9%86%DB%8C%D9%86
Wikipedia
Open Web
CC-By-SA
2,023
ببی بینین
https://fa.wikipedia.org/w/index.php?title=ببی بینین&action=history
Persian
Spoken
54
177
ببی بینین (؛ زادهٔ ) بازیکن فوتبال اهل کامرون است. وی همچنین در تیم ملی فوتبال زنان کامرون بازی کرده‌است. منابع افراد زنده بازیکنان فوتبال اهل کامرون بازیکنان فوتبال بازی‌های المپیک کامرون بازیکنان فوتبال در المپیک تابستانی ۲۰۱۲ بازیکنان فوتبال زن اهل کامرون زادگان ۱۹۹۲ (میلادی) فاقد محل تولد (افراد زنده) هافبک‌های زن فوتبال
43,729
https://fa.wikipedia.org/wiki/%D8%A2%D9%85%D9%88%D8%B1%DB%8C%20%D9%84%D9%88%D9%88%DB%8C%D9%86%D8%B2
Wikipedia
Open Web
CC-By-SA
2,023
آموری لووینز
https://fa.wikipedia.org/w/index.php?title=آموری لووینز&action=history
Persian
Spoken
252
796
آموری لووینز (؛ زاده ) یک فیزیک‌دان و دانشمند علم محیط زیست اهل ایالات متحده آمریکا است.Amory Lovins یک فیزیکدان آزمایشگاهی مشاور آمریکایی است و بیش از ۴۰ سال در بیش از ۵۰ کشور جهان در زمینه انرژی، منابع، اقتصاد، محیط زیست، توسعه و امنیت فعالیت داشته‌است. وی توجه خود را به صرفه جویی در انرژی و نحوه استفاده از انرژی به شیوه‌های کارآمدتر و پایدار می‌کند. او خانه ای با مفاهیم زیادی در زمینه صرفه جویی در انرژی ایجاد کرد. او یک شخصیت غیرمعمول با طیف گسترده‌ای از دانش و نبوغ است، اما او یک دانشمند نیست. او یک شرکت مشاوره دارد و در کوهستان زندگی می‌کند. به مدت ۳۰ سال، او روش‌های زیادی را برای صرفه جویی در مصرف انرژی و حل مشکلات با فناوری‌هایی که قبلاً وجود داشته و آنها را نشان داده‌است، حل کرد. برخی فکر می‌کنند او خیلی دیوانه است. یک نویسنده زن دربارهٔ او کتابی نوشت که به آن آقای سبز گفته می‌شود. منابع پیوند به بیرون اعضای انجمن پیشبرد علوم آمریکا اعضای کالج مگدالن، آکسفورد افراد زنده افراد مرتبط با انرژی افراد مرتبط با نیروی هسته‌ای اهالی امهرست، ماساچوست برندگان بورس مک‌آرتور تجارتی کردن انرژی‌های تجدیدپذیر دانش‌آموختگان دانشگاه هاروارد دانش‌آموختگان کالج مگدالن، آکسفورد زادگان ۱۹۴۷ (میلادی) طرفداران پایداری دانش‌آموختگان کالج هاروارد فعالان ضد نیروی هسته‌ای اهل ایالات متحده آمریکا فعالان محیط زیست اهل ایالات متحده آمریکا فیزیک‌دانان اهل ایالات متحده آمریکا فیزیک‌دانان سده ۲۱ (میلادی) اهل ایالات متحده آمریکا نویسندگان کسب و کار اهل ایالات متحده آمریکا صلیب افسری نشان افتخار شایستگی جمهوری فدرال آلمان
30,199
https://zh.wikipedia.org/wiki/%E8%81%B7%E6%AC%8A
Wikipedia
Open Web
CC-By-SA
2,023
職權
https://zh.wikipedia.org/w/index.php?title=職權&action=history
Chinese
Spoken
16
565
職權(英語:authority),是管理職位所擁有的發佈命令,以及期望命令被執行的一種權力。大型企業會制訂職位說明的正式文件,上面列舉各種職位所擁有的權利與應負的責任,以及該職位在組織中與其他職位的關係,例如向誰報告、與誰接觸及對誰負責等。 職權的來源 關於職權的來源,有如下幾種理論: 職權的形式理論:主張職權源自組織頂層,為企業所有者的私有財產權,層層下授經股東、股東大會、董事會、總經理、各級主管,以至於一般員工。 職權的接受理論:主張職權是由下而上,唯有部屬接受命令,其主管才實質獲得職權。 情勢職權論:當有危機發生時,在場的某些人物掌握情勢而採取行動,不論是否獲得正式授權,均已實質行使職權。 知識職權論:對某一狀況認識最多者,便能負責相關作業。 職權的種類 職權分為直線職權、參謀職權和職能職權三種形式: 直線職權:主管指揮部屬的權力,也就是「指揮權」。 參謀職權:管理者僅擁有建議權或審核權,而沒有直接指揮的權力。 職能職權:參謀人員或某些主管所擁有的原屬直線主管的一部分權力。 參考資料 企業管理 人力資源管理 權力
2,151
https://en.wikipedia.org/wiki/All-Japan%20Rugby%20Football%20Championship
Wikipedia
Open Web
CC-By-SA
2,023
All-Japan Rugby Football Championship
https://en.wikipedia.org/w/index.php?title=All-Japan Rugby Football Championship&action=history
English
Spoken
184
294
The All-Japan Rugby Football Championship (日本ラグビーフットボール選手権大会 Nihon Ragubi- Futtobo-ru Senshuken Taikai) is played at the end of the season and is doubling as the title playoff in the Top League. The first championship was played in 1963 and won by Doshisha University RFC which beat Kintetsu (now Kintetsu Liners) 18–3. Before that the NHK invitation cup was played three times, 1960-2. Qualifying 2009–2017 The All-Japan Rugby Football Championship was expanded from 8 to 10 teams for 2009 with the addition of two more Top League sides. For 2010, the top four Top League sides automatically qualify for the Championship, while the six sides that finish fifth to tenth play off to determine the last two Top League sides. 2017–present With the new Top League system, the teams in the title playoff will have this playoff double as this competition. No university teams will compete. NHK Cup Finals All Japan Rugby Football Championship finals See also Rugby union in Japan References Rugby union competitions in Japan Recurring sporting events established in 1963 1963 establishments in Japan Annual sporting events in Japan National championships in Japan
12,612
https://stackoverflow.com/questions/60584888
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
Jeff Huang, Sunny55, https://stackoverflow.com/users/13003509, https://stackoverflow.com/users/13026403
English
Spoken
540
861
How to ask for input again after taking input and receiving output in python x = int(input()) for i in range(2,x): if(x % i ==0): print("not Prime") break else : print("Prime") In this example, I am asking the user to input a value for x. So let's say the user inputs 6 since it is not a prime number, it will say "not Prime." However, I want to ask the user to input another value to check. x = int(input()) for i in range(2,x): if(x % i ==0): print("not Prime") break else : print("Prime") x = int(input()) Doing this does not work. so what can I do to ask the user to input another value? without having to run it again? In your second code snippet you are not doing anything after the second input. Perhaps you are forgetting to call the forloop again? This works for me to do what you described. Does the following work for you? Of course using a function is more elegant for this. x = int(input()) for i in range(2,x): if(x % i ==0): print("not Prime") break else : print("Prime") x = int(input()) for i in range(2,x): if(x % i ==0): print("not Prime") break else : print("Prime") Here is how it runs in my pycharm the second snippet is simply just a failed attempt. I was saying tht it does not work. First attempt works, but the problem is if i want to user to input again he has to run the program again. I would like him to input right after the ouput without having to run the program again hang on ill put a screenshot of pycharm, that might explain my problem to you Someone helped me solve it actually. I needed to put it in a function. to be able to ask for input a second time. Thank you so much for trying to help me. Sorry I was bad at explaining it. I'm still learning python, so i am really bad at explaining it properly. Sorry! No worries! Best of luck in your future coding endeavors! Ah I see what you did there. You made another for loop. That's pretty clever Hey! I have a quick question. In your code you gave the range (0,5). That iterates it 5 times but if i want it iterate infinite amount of times what should I do? Use a "while True:" instead of the for loop @Sunny55 simply replace "for i in range(0, 5):" with "while True:" So I changed it to while True: but it says true is not defined Nvm, I didnt use UpperCase T in True. I typed true. That fixed it. Thank you so much This is exactly what functions are for. Wrap your logic in a function and call it wherever you need: def check_prime(x): for i in range(2,x): if(x % i ==0): print("not Prime") break else : print("Prime") x = int(input()) check_prime(x) # first number x = int(input()) check_prime(x) # another number Note if you want some n numbers to be entered, using an infinite loop to read input() can avoid repetition. Oh my god! that is exactly what I needed. Thank you so much. I haven't learned about functions yet so I was struggling. Thank you.
7,191
https://stackoverflow.com/questions/38461296
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
Fractale, for_stack, https://stackoverflow.com/users/4573388, https://stackoverflow.com/users/5384363
English
Spoken
365
824
TBB parallel_for compile error I want to use TBB parallel_for I had this to my code for testing #include <tbb/parallel_for.h> #include <tbb/blocked_range.h> #include <tbb/tbb.h> std::vector<std::tuple<std::string, unsigned int, std::string>> commands; auto n = commands.size(); tbb::parallel_for(0, n, [&](int i) { const auto &tuple = commands[i]; } ); my compile line is: g++ -std=c++11 -Wall -Wextra -g -Og TextMiningApp.cpp -ltbb -o TextMiningApp And my compiler error is: TextMiningApp.cpp: In function ‘int main(int, char**)’: TextMiningApp.cpp:184:7: error: no matching function for call to ‘parallel_for(int, long unsigned int&, main(int, char**)::<lambda(int)>)’ } ); ^ In file included from TextMiningApp.cpp:15:0: /usr/include/tbb/parallel_for.h:185:6: note: candidate: template<class Range, class Body> void tbb::parallel_for(const Range&, const Body&) void parallel_for( const Range& ^ Do you have an idea to solve this? The problem of your code is that 0 is of type int, while n is of type std::size_t. There's a mismatch, and you need a conversion. The solution is as follows: tbb::parallel_for(static_cast<std::size_t>(0), n, [&](std::size_t i)) { // other code } Another solution is to use tbb::blocked_range<T> to specify the range, i.e. another overload for tbb::parallel_for. tbb::parallel_for(tbb::blocked_range<std::size_t>(0, n), [&](const tbb::blocked_range<std::size_t> &range) { for (auto i = range.begin(); i != range.end(); ++i) const auto &tuple = commands[i]; } ); Obviously, the first solution is more concise. However, the second one is more flexible. Because for the first one, you can only specify the loop body, while for the second one, you can do more outside the loop body. thanks commands is not empty i just remove the code. in the lamda there is still a for? so parallel for just give you a smaller range? for my code i go to https://www.threadingbuildingblocks.org/tutorial-intel-tbb-generic-parallel-algorithms, this tutorial have invalid code? The tutorial is valid. I usually use the tbb::blocked_range interface, and ignored the other one. I've updated the answer. Sorry for the inconvenience. thank you again @for_stack, What is the better (or more performant) solution? The 'index' overload eventually calls the 'blocked_range' overload to do the real work. They should have the same performance. Obviously, the 'index' overload is more concise. However, the 'blocked_range' overload is more flexible. The lambda for the 'index' overload is just the loop body, while the lambda for the 'overload' version can do more outside the loop body.
12,140
https://arz.wikipedia.org/wiki/SDSS%20J141901.05%2B020125.6%20%28%D9%85%D8%AC%D8%B1%D9%87%29
Wikipedia
Open Web
CC-By-SA
2,023
SDSS J141901.05+020125.6 (مجره)
https://arz.wikipedia.org/w/index.php?title=SDSS J141901.05+020125.6 (مجره)&action=history
Egyptian Arabic
Spoken
161
467
SDSS J141901.05+020125.6 هى مجره بتتبع كوكبة العدرا. معلومات المجره الانزياح الأحمر: 0.05356. السرعه الشعاعيه: 15627. المطلع المستقيم: 214.7543814404493. الميل: 2.0237954882506. مصطلحات تعريفيه الكوكبه هيا مجموعه من النجوم اللى بتكون شكل أو صوره و هيا مجال الكره السماويه اللى المجره جزء منها. الانزياح الاحمر هو زيادة طول الموجه الكهرومغناطيسيه اللى جايه لينا من المجره بسبب سرعه ابتعادها عننا. ده بيستخدم فى حسابات الفلك. السرعه الشعاعيه هيا سرعه الجرم الفضائى فى اتجاه الراصد و بتنقاس بالانزياح الاحمر. المطلع المستقيم هوا الزاويه المحصوره بين الدايره الساعيه لجرم سماوى و الدايره الساعيه لنقطة الاعتدال الربيعى. المطلع المستقيم ممكن يتقاس بقوس دايره الاستواء السماويه من نقطه الاعتدال الربيعى لحد نقطه تقاطع الدايره الساعيه لجرم سماوى مع دايره الاستواء السماويه. الميل هوا المكافئ الفلكى لخط العرض و بيتقس بقيمة الزاويه بين أى جسم سماوى و خط الاستوا السماوى. لو كان النجم شمال خط الاستوا السماوى تكون قيمة بعده بالموجب (+) و لو النجم جنوب خط الاستوا السماوى تكون قيمة بعده بالسالب (-). مصادر مجرات فضاء عدرا (كوكبه)
2,514
https://de.wikipedia.org/wiki/Post%20Bay%2061
Wikipedia
Open Web
CC-By-SA
2,023
Post Bay 61
https://de.wikipedia.org/w/index.php?title=Post Bay 61&action=history
German
Spoken
620
1,237
Die bayerischen Post Bay 61 (nach DRG-Gattungskonventionen) waren zweiachsige Postwagen, welche nach Blatt-Nr. 117 des Wagenverzeichnisses von 1897 (Blatt-Nr. 186 des Verzeichnisses von 1913) als erste Generation von Postwagen der K.B.St.B gebaut wurden. Geschichte Der Transport von Postsachen war auch in Bayern ein Staatsmonopol, welches mit Pferdekutschen bewältigt wurde. Mit dem Aufkommen der Eisenbahn erwuchs dem Staat eine Konkurrenz. Mit dem Datum vom 30. April 1849 verpflichtete das Ministerium für Handel und öffentliche Arbeiten als oberste Aufsichtsbehörde über Post und Eisenbahnen die Generalverwaltung der Königlichen Posten und Eisenbahnen mit der Einführung von "bureux ambulants" für den Postdienst. Mit entsprechenden Verträgen wurden daher alle Gesellschaften – auch staatliche – dazu verpflichtet, den Postdienst mitzutragen. Dies bedeutete, dass die Bahngesellschaft das geeignete Rollmaterial auf ihre Kosten beschaffen und zur Verfügung stellen musste, während das Personal von der Postverwaltung gestellt wurde. Bis zur Eingliederung der Bayerischen Postverwaltung in die Reichspost am 1. April 1920 waren daher alle Wagen im Eigentum der Bayerischen Staatsbahn. Beschaffung Die Wagen der ersten Generation werden in den Jahren zwischen 1861 und 1874 durch insgesamt 116 neue Wagen mit Wagenkästen zwischen 7.000 und 7.200 mm, eisernen Längsträgern sowie Heberlein-Schnellbremsen ersetzt. Diese Zweiachser besitzen alle ein hochgesetztes Bremserhaus aber kein Oberlicht. Die Wagen hatten im Wagenstandsverzeichnis von 1879 die Skizze Nr. 53 (im WV von 1897 die Skizze 117, im WV von 1913 die Skizze 186). Konstruktive Merkmale Untergestell Der Rahmen der Wagen hatte noch eine Mischbauform aus Holz und Eisen. Die äußeren Längsträger waren aus Eisen und hatten eine Doppel-T-Form. Die übrigen Querträger und auch die Pufferbohlen waren aus Holz. Als Zugeinrichtung hatten die Wagen Schraubenkupplungen mit Sicherheitshaken nach VDEV, die Zugstange war durchgehend und mittig gefedert. Als Stoßeinrichtung besaßen die Wagen Stangenpuffer, die Pufferteller hatten einen Durchmesser von 370 mm. Auf der Bremserhausseite war die Einbaulänge der Puffer vergrößert. Laufwerk Die Wagen hatten genietete Fachwerkachshalter aus Flacheisen der kurzen, geraden Bauform. Gelagert waren die Achsen in geteilten Gleitachslagern. Die Räder hatten Speichenradkörper und einen Raddurchmesser von 1.014 mm. Die Federung bestand aus einer 9-lagigen Feder von 1.750 mm, die mit einfachen Laschen in den Federböcken befestigt waren. Neben der Spindelhandbremsen im hochgesetzten Bremserhaus besaßen alle Wagen in der Grundausstattung Heberlein-Schnellbremsen (siehe WV von 1879). Schon im WV von 1897 wurden für alle Wagen Westinghousebremsen nachgewiesen. Die Bremsen wirkten auf alle Räder beidseitig. Dabei hatten die Wagen die alte Bauform der bayerischen Bremsgestänge mit mittigem Umlenkhebel. Wagenkasten Das Wagenkastengerippe bestand aus einem hölzernen Ständerwerk. Es war außen mit Blech und innen mit Holz verkleidet. Sowohl die Seiten- als auch die Stirnwände waren an den Unterseiten leicht eingezogen. Die Wagen besaßen ein flach gewölbtes Dach. Die Wagen hatten alle ein hochgesetztes, geschlossenes Bremserhaus, welches nur einseitig und nur von außen zugänglich war. Die Wagen hatten alle durchgehende, seitliche Laufbretter und Anhaltestangen. Ausstattung Der Innenraum war ohne eine Zwischenwand in zwei etwa gleich große Hälften unterteilt. Auf der Seite des Bremserhauses befand sich der Packraum, auf der gegenüberliegenden Seite der Briefsortierraum. In der Wagenmitte befand sich der Ofen. Es gab zwei gepolsterte Sitze. Zur Beheizung verfügten die Wagen über eine Ofenheizung. Die Wagen waren alle mit einer Leitung für eine Dampfheizung ausgestattet, so dass sie in Personenzügen eingereiht werden konnten. Die Beleuchtung erfolgte durch Öl-Lampen, bei einem Teil der Wagen durch Gas. Der Vorratsbehälter für das Leuchtgas hing in Wagenlängsrichtung am Rahmen. Bemerkung Schon im Verzeichnis von 1913 waren nicht mehr alle Wagen aufgeführt. Von den ursprünglich 116 Stück waren nur noch 33 Wagen im Bestand. Skizzen, Musterblätter, Fotos Wagennummern Die Daten sind im Wesentlichen den Wagenpark-Verzeichnissen der Kgl.Bayer.Staatseisenbahnen, aufgestellt nach dem Stande vom 1. Juli 1879, dem 31. März 1897, dem 31. März 1913 sowie dem Artikel von A. Mühl im Lok Magazin 102 entnommen. Einzelnachweise Literatur Reisezugwagen (Bayerische Staatseisenbahnen)
42,600
https://stackoverflow.com/questions/35172244
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
English
Spoken
143
204
Splashscreen orientation wrong since iOS 9.x As described in 34942234 and 34919547 I am fighting with a wrong splashscreen orientation since longer. I am pretty sure I have nailed down the root cause, which has to do with iOS 9.x (I am using iOS 9.2). When running the identical code in XCode/iOS simulator with iOS 8.4 the splashscreen is shown in Landscape orientation as expected. Testing the entire project as .ipa-file on my iPhone 5 with iOS 9.2 provides the same problem (unfortunately I have no device with ioS 8.x installed). My questions are: What to do next? In case of opening a support ticket with Apple - will it be free of charge in case it turns out to be a bug (which is my educated guess)? I have opened a bug report with Apple now; will see what their answer is...
50,235
https://civicrm.stackexchange.com/questions/20608
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
Gilbert, KarinG - Semper IT, https://civicrm.stackexchange.com/users/231, https://civicrm.stackexchange.com/users/2586, https://civicrm.stackexchange.com/users/2714, spontarelliam
English
Spoken
222
316
How do I add a video file to an event? We are running CiviCRM version 4.7.24 on a Drupal 7 site. My client would like to add an MP4 video to an event page. I tried a simple upload of the video using the image button and I get the warning "Unknown image format/encoding" and the file is not uploaded. Is it possible to use video in CiviCRM event pages? If so, how do I do it? Native CiviCRM -> try uploading your video to a third party service (like Vimeo or YouTube) and then embed the reference to it in an iFrame [where you describe/details of the Event]. I was able to embed a YouTube video by copying and pasting the embed code in the source code for the page. Thanks. Exactly - great you got this working! It seems like CiviCRM is blocking this embed code somehow. If I try this in a Drupal page, it works fine, but in the CiviEvent, the code never makes it to the actual event page even though the video preview is shown when editing the event. Well - 5y ago it worked! I have not tested this but it may be as simple as adding mp4 as a safe file ending here: /civicrm/admin/options/safe_file_extension?reset=1 That did not work. Still get the same error message.
44,273
https://stackoverflow.com/questions/53992638
StackExchange
Open Web
CC-By-SA
2,019
Stack Exchange
Cryptex Technologies, https://stackoverflow.com/users/10522579, https://stackoverflow.com/users/5239030, https://stackoverflow.com/users/614621, https://stackoverflow.com/users/9989384, iGian, phauwn, ray
English
Spoken
267
587
Sum in each loop when object might be nil I'm trying to loop though a set of objects (people) and sum the values of a bunch of objects that belongs_to :person, for example to get the cumulative years of different types of experience of a group of people @people.each do |person| finance_experience_sum += person.finance_experience.value management_experience_sum += person.manangement_experience.value clerical_experience_sum += person.clerical_experience.value end However, sometimes I get this error when a person doesn't have a certain type of experience. What's the easiest way to fix this in my each loop? undefined method `value' for nil:NilClass I understand why I'm getting the error, but not sure what is the easiest way to get past it in this scenario @phauwni have replied to your question please check. Can you share your models and relations? I'm missing something. You can do simply like these without using the each loop finance_experience_sum = People.includes(:finance_experience).sum(:value) management_experience_sum = People.includes(:manangement_experience).sum(:value) clerical_experience_sum = People.includes(:clerical_experience).sum(:value) Always used ruby on rails best practices and predefined methods of ruby. upvoted for reliable answer but need @people in place of People need change in your profile link(experience section) for https://ajaydhande.github.io/ for carrier (need to be career) @ray i will do that Perfect, thank you. This is the best practice lesson I needed. You should follow best practices like include nested records using includes that will avoid N+1 query problem. If you want to do it anyway then try following: finance_experience_sum += person.try(:finance_experience).try(:value).to_i #or to_f if float value management_experience_sum += person.try(:manangement_experience).try(:value).to_i clerical_experience_sum += person.try(:clerical_experience).try(:value).to_i If you are using ruby 2.4 or later then use: finance_experience_sum += person&.finance_experience&.value&.to_i management_experience_sum += person&.manangement_experience&.value&.to_i clerical_experience_sum += person&.clerical_experience&.value&.to_i
44,614
C5h6MWVhw_w_1
Youtube-Commons
Open Web
CC-By
null
Navy History
None
English
Spoken
157
208
Welcome to All Hands Update, this is your week in Navy history. On July 12, 1990, Commander Rosemary B. Mariner became the first woman to command an Operational Aviation Squadron. She was one of the first women to qualify as a naval aviator. July 13, 1943, Allied forces intercepted Japanese reinforcements attempting to land in the Solomon Islands, resulting in the Battle of Columbia, N. Gara. The Navy lost USS Gwynn in the battle. Gwynn received five battle stars for service in World War II. On July 16, 1915, the battleships USS Ohio, USS Missouri, and USS Wisconsin became the first U.S. Navy combatant ships to transit the Panama Canal, stemming from the Atlantic to the Pacific. The Panama Canal was relied upon heavily during World War I as it allowed the United States to cut travel distance by nearly 8,000 miles. To learn more about the Navy's history, visit the Naval History and Heritage Command website..
595
https://mr.wikipedia.org/wiki/%E0%A4%A8%E0%A4%9C%E0%A4%AE%E0%A4%BE%20%E0%A4%B9%E0%A5%87%E0%A4%AA%E0%A4%A4%E0%A5%81%E0%A4%B2%E0%A5%8D%E0%A4%B2%E0%A4%BE
Wikipedia
Open Web
CC-By-SA
2,023
नजमा हेपतुल्ला
https://mr.wikipedia.org/w/index.php?title=नजमा हेपतुल्ला&action=history
Marathi
Spoken
67
436
डॉ. नजमा अकबरअली हेपतुल्ला ( १३ एप्रिल १९४०) ह्या एक भारतीय राजकारणी, राज्यसभा सदस्य व भारताच्या केंद्रीय मंत्रिमंडळातील विद्यमान कॅबिनेट मंत्री आहेत. काँग्रेस पक्षातून आपल्या कारकिर्दीची सुरुवात करणाऱ्या हेपतुल्लांनी २००४ मध्ये भाजपमध्ये प्रवेश केला. नरेंद्र मोदी सरकारमध्ये त्यांना अल्पसंख्यांक कार्याचे मंत्रीपद (Ministry of Minority Affairs) मिळाले आहे. बाह्य दुवे Detailed Profile अल्पसंख्यांक कार्य मंत्रालयावरील माहिती राज्यसभा सदस्य भारतीय जनता पक्षातील राजकारणी मणिपूरचे राज्यपाल स्त्री चरित्रलेख राज्यसभेचे उपसभापती
34,887
https://ml.wikipedia.org/wiki/%E0%B4%9F%E0%B5%86%E0%B4%AF%E0%B4%BF%E0%B5%BD%E0%B4%B8%E0%B5%8D%20%28%E0%B4%93%E0%B4%AA%E0%B5%8D%E0%B4%AA%E0%B4%B1%E0%B5%87%E0%B4%B1%E0%B5%8D%E0%B4%B1%E0%B4%BF%E0%B4%82%E0%B4%97%E0%B5%8D%20%E0%B4%B8%E0%B4%BF%E0%B4%B8%E0%B5%8D%E0%B4%B1%E0%B5%8D%E0%B4%B1%E0%B4%82%29
Wikipedia
Open Web
CC-By-SA
2,023
ടെയിൽസ് (ഓപ്പറേറ്റിംഗ് സിസ്റ്റം)
https://ml.wikipedia.org/w/index.php?title=ടെയിൽസ് (ഓപ്പറേറ്റിംഗ് സിസ്റ്റം)&action=history
Malayalam
Spoken
176
1,619
ഡെബിയൻ അടിസ്ഥാനപ്പെടുത്തിയ ഒരു ലിനക്സ് ഡിസ്ട്രിബ്യൂഷനാണ് ടെയിൽസ് അഥവാ ആംനസ്റ്റിക് ഇൻകോഗ്നീഷ്യോ ലൈവ് സിസ്റ്റം. ഓൺലൈൻ സ്വകാര്യതയ്ക്ക് അത്യാവശ്യം വേണ്ട എല്ലാ പ്രോഗ്രാമുകളും ഉൾക്കൊള്ളിച്ച ഒരു ഓപ്പറേറ്റിംഗ് സിസ്റ്റം ആണിത്. ടോർ വെബ്‌ ബ്രൌസർ, ജീപീജീ ഇമെയിൽ, ഒ.ടി.ആർ ചാറ്റ്, എൻക്രിപ്റ്റഡ് സ്റ്റോറേജ് തുടങ്ങി എല്ലാ പ്രോഗ്രാമുകളും ഇതിലുണ്ട്. സുരക്ഷിതമായ ഒരു ഓൾ-ഇൻ-വൺ ഡിജിറ്റൽ കമ്മ്യൂണിക്കേഷൻ സിസ്റ്റം കൂടിയാണിത്. ഡെസ്ക്ടോപ്പ് കംപ്യൂട്ടറുകളിലും ലാപ്ടോപ്പുകളിലും മാത്രം ഉപയോഗിക്കാൻ കഴിയുന്ന ടെയിൽസിന് മൊബൈലിൽ ഉപയോഗിക്കാൻ കഴിയുന്ന വെർഷൻ കൂടി വൈകാതെ പുറത്തു വരും. സ്വകാര്യത ടെയിൽസിന്റെ പ്രത്യേകതകളിൽ ഒന്ന് അത് ഉപയോക്താവിന്റെ ഹാർഡ് ഡിസ്കിനെ സ്പർശിക്കുന്നില്ല എന്നതാണ്. ഒരു യു.എസ്.ബി. സ്റ്റിക്കിലൊ ഒരു ഡി.വി.ഡി യിലോ ടെയിൽസ് സൂക്ഷിക്കാം, അതിൽ നിന്നു തന്നെ ലോഡ് ചെയ്യാം. സിസ്റ്റം ഷട്ട് ഡൌൺ ചെയ്തു കഴിയുമ്പോൾ യാതൊരുവിധ ലോഗുകളും അതിൽ ഉണ്ടാവുകയില്ല. ചരിത്രം ടെയിൽസ് പ്രൊജക്റ്റ്‌, ആരംഭത്തിൽ അമ്നീഷ്യ എന്നായിരുന്നു പ്രൊജക്റ്റിനു നൽകിയ പേര്. നേരത്തേ ഉണ്ടായിരുന്ന ഇൻകോഗ്നിറ്റോ എന്ന മറ്റൊരു പ്രോജക്റ്റിനെ അടിസ്ഥാനപ്പെടുത്തിയാണ് അമ്നീഷ്യ ഡെവലപ്പ് ചെയ്യാൻ തുടങ്ങിയത്. ഒടുവിൽ അമ്നീഷ്യയും ഇൻകോഗ്നിറ്റോയും മെർജ് ചെയ്താണ് ആംനസ്റ്റിക് ഇൻകോഗ്നീഷ്യോ ലൈവ് സിസ്റ്റം എന്ന് നാമകരണം ചെയ്തത്. ഇതിന്റെ ചുരുക്കരൂപമാണ് ടെയിൽസ്. സൗകര്യങ്ങൾ ടെയിൽസിലെ ഡീഫോൾട്ട് ഇന്റർനെറ്റ്‌ ബ്രൌസർ “ടോർ ബ്രൌസർ” ആണ്. ടോർ ബ്രൌസറിലൂടെ ഇന്റർനെറ്റ്‌ ഉപയോഗിക്കുമ്പോൾ നിങ്ങളുടെ ഐപി അഡ്രസ്‌ ഒരു സ്പൈയിംഗ് ഏജൻസിയ്ക്ക് നേരിട്ട് ലഭിക്കില്ല. രേഖകൾ എഡിറ്റ്‌ ചെയ്യാൻ ഓപ്പൺ ഓഫീസ്, സ്ക്രൈബസ് എന്നീ എഡിറ്ററുകൾ ഉണ്ട്. ഇമേജുകൾ എഡിറ്റ്‌ ചെയ്യാൻ ഗിമ്പും, വെക്ടർ ഗ്രാഫിക്സിന് ഇങ്ക്സ്കേപ്പും ഉൾക്കൊള്ളിച്ചിട്ടുണ്ട്. റിലീസിംഗ് ചരിത്രം അവലംബം പുറം കണ്ണികൾ Tails at Tor project website Tails - Known issues ഡെബിയൻ
49,200
https://nl.wikipedia.org/wiki/Echinopora%20tiranensis
Wikipedia
Open Web
CC-By-SA
2,023
Echinopora tiranensis
https://nl.wikipedia.org/w/index.php?title=Echinopora tiranensis&action=history
Dutch
Spoken
31
57
Echinopora tiranensis is een rifkoralensoort uit de familie van de Merulinidae. De wetenschappelijke naam van de soort is voor het eerst geldig gepubliceerd in 2000 door Veron, Turak & DeVantier. Rifkoralen
372
https://stackoverflow.com/questions/74355566
StackExchange
Open Web
CC-By-SA
2,022
Stack Exchange
Anis, C.Tale, ffs_Kenny, https://stackoverflow.com/users/13312817, https://stackoverflow.com/users/6316804, https://stackoverflow.com/users/8622733
English
Spoken
401
905
How do I add onClick() on a Select Dropdown via React I'm trying to apply reactI18next on a project, normally you to toggle the language change you would create a button that would call the "changelanguage" function like this: const changeLanguage = (lng) => { i18n.changeLanguage(lng); } <button onClick={() => changeLanguage('en')}>en</button> However, I was wondering if it's possible to make something similar but In a dropdown fashion. Is there a way to trigger an onClick via select or other means? Thanks and I hope to hear you guys soon! Yes this is possible, you can add onChange event handler on Select tag such as import { useState } from "react"; export default function App() { const [lang , setLang] = useState('en') function changeLanguage(event){ // i18n.changeLanguage(event.target.value) setLang(event.target.value) } return ( <div className="App"> <h1>Hello CodeSandbox</h1> <p>{lang}</p> <select value={lang} onChange={changeLanguage}> <option value="en">English</option> <option value="fr">French</option> </select> </div> ); } you can test on working sandbox here hello, i would need to declare the 2 languages, how would you go about that you can change values of languages in option tag You can just use the onChange prop on the <select> element. import { useState } from "react"; const languages = { en: "English", ta: "Tagalog", es: "Español" }; export default function App() { const [selectedValue, setSelectedValue] = useState("en"); function onChange(e) { il18n.changeLanguage(e.target.value); // Use your library here setSelectedValue(e.target.value); } return ( <div className="App"> <label for="lang">Choose a language: </label> <select name="lang" id="lang" onChange={onChange}> {Object.keys(languages).map((languageKey) => ( <option key={languageKey} value={languageKey}> {languages[languageKey]} </option> ))} </select> <br /> <br /> <p>Currently selected:</p> <p>Key: {selectedValue}</p> <p>Value: {languages[selectedValue]}</p> </div> ); } Is it possible to use this on a sperate component that would be imported? Yeah. The cool thing with React is that you can modularize components as much as you like. Ah well i was wondering how you would go about it as it seems that i'm having trouble getting it done, it's asking to declare the language tags e.g "en" I mean isn't it as simple as doing this inside the onChange function: i18n.changeLanguage(e.target.value); You already have the language tags like "en" and "es" inside the const languages. So you can just use those language tags in the il18n package. I'm also assuming that you're the one who declares these language tags, correct? yeah pretty much Please try this one const [value, setValue] = React.useState(''); const changeLanguage = (event) => { i18n.changeLanguage(event.target.value); } <select value={value} onChange={changeLanguage}> <option value="en">English</option> </select>
45,934
https://stackoverflow.com/questions/3322019
StackExchange
Open Web
CC-By-SA
2,010
Stack Exchange
Arun Prajapati, Dany Y, Devesh Vyas, Lothar Eichelberger, Maurilia Flores, https://stackoverflow.com/users/667726, https://stackoverflow.com/users/6903137, https://stackoverflow.com/users/6903138, https://stackoverflow.com/users/6903139, https://stackoverflow.com/users/6903347
English
Spoken
134
221
Precedence of parameters with nested layouts Consider a VideoView added to a Linear Layout with parameters FILL_PARENT, FILL_PARENT. The Linear Layout gets added to the root layout which is a Relative Layout, with parameters WRAP_CONTENT, WRAP_CONTENT. Which parameters take precedence here? I may be wrong, but this would result in your LinearLayout (and thus VideoView) having dimensions of [0,0]. VideoView gets added to LinearLayout but has to wait to set its size because it doesn't know how big its parent, LinearLayout, is. Thus its initial size would be [0,0]. Then your LinearLayout gets added to RelativeLayout, but since the parameter is WRAP_CONTENT and the content's size is [0,0], LinearLayout's size is also set to [0,0]. This in turn sets VideoView's size to [0,0]. then how should we add a videoview to a layout ??
9,250
https://ro.wikipedia.org/wiki/Chrysothamnus
Wikipedia
Open Web
CC-By-SA
2,023
Chrysothamnus
https://ro.wikipedia.org/w/index.php?title=Chrysothamnus&action=history
Romanian
Spoken
25
84
Chrysothamnus este un gen de plante din familia Asteraceae, ordinul Asterales. Răspândire Caractere morfologice Tulpina Frunza Florile Semințele Specii Imagini Note Bibliografie Legături externe Asteraceae
5,626
https://ca.wikipedia.org/wiki/Comano
Wikipedia
Open Web
CC-By-SA
2,023
Comano
https://ca.wikipedia.org/w/index.php?title=Comano&action=history
Catalan
Spoken
59
116
Comano és un comune (municipi) de la província de Massa i Carrara, a la regió italiana de la Toscana, a la Lunigiana. A 1 de gener de 2019 la seva població era de 699 habitants. Comano limita amb els següents municipis: Licciana Nardi, Monchio delle Corti, Collagna, Fivizzano i Ramiseto. Referències Municipis de la província de Massa i Carrara
25,244
https://it.wikipedia.org/wiki/Hush-a-Bye%20Baby
Wikipedia
Open Web
CC-By-SA
2,023
Hush-a-Bye Baby
https://it.wikipedia.org/w/index.php?title=Hush-a-Bye Baby&action=history
Italian
Spoken
36
71
Hush-a-Bye Baby è un film del 1990 diretto da Margo Harkin. Ha vinto il Pardo per la miglior interpretazione femminile e il Premio della giuria ecumenica al Festival di Locarno 1990. Trama Collegamenti esterni Film drammatici
39,914
https://es.stackoverflow.com/questions/272241
StackExchange
Open Web
CC-By-SA
2,019
Stack Exchange
Simón Pereira Vigouroux, https://es.stackoverflow.com/users/78815
Spanish
Spoken
199
558
Problema con reporte jasper al descargar pdf en jsp Tengo un problema con mi proyecto java web donde tengo unos reportes creados en Jasper Report , el problema es que después de visualizar un reporte, si descargo el pdf, el sistema me muestra que solo lo puedo exportar en formato jsp, por lo tanto al querer abrir despues el pdf, este no se habre por no tener la extensión pdf. En el código java se muestra correctamente el formato "Application/pdf", pero no se descarga como pdf. Acá dejo el código <% try{ Connection conn=ConexionMysqlCargomove_db.getInstance().getConnection(); File reportFile=new File(application.getRealPath("reportes/reporteVuelosMasUsados2/reporteVuelosMasUsados2.jasper")); Map parametros=new HashMap(); String fechaDesde=request.getParameter("txt_fecha_desde"); String fechaHasta=request.getParameter("txt_fecha_hasta"); parametros.put("fechadesde", new String(fechaDesde)); parametros.put("fechahasta", new String(fechaHasta)); byte [] bytes= JasperRunManager.runReportToPdf(reportFile.getPath(), parametros,conn); response.setContentType("application/pdf"); response.setContentLength(bytes.length); ServletOutputStream output=response.getOutputStream(); response.getOutputStream(); output.write(bytes,0,bytes.length); output.flush(); output.close(); } catch(java.io.FileNotFoundException ex) { ex.getMessage(); } %> Acá dejo imagen del problema. Donde más habría que modificar? Que se podría hacer para que descargue en formato pdf? Me podrían ayudar con este tema por favor. Me podrían ayudar por favor ya que según mi código el documento debería guardarse en pdf según la linea de código : response.setContentType("application/pdf"); Hola buenas tardes, aun no he podido hacer que se descargue en pdf,alguien me podría ayudar por favor.
12,490
fQFzT3Nn91I_1
Youtube-Commons
Open Web
CC-By
null
Is Twitter Redeemable?
None
English
Spoken
395
479
Good morning, John. So I know that you aren't super active on Twitter, though also you are a little more active on Twitter than you used to be, so welcome back. I do appreciate seeing you every once in a while, John Green actor. This is a button by the way where you can follow a topic. So you are a topic on Twitter, John. You're just an inaccurate one. And no, I do not follow the John Green topic. It's just a little too much to follow my brother as a topic. But Twitter, Twitter, Twitter, Twitter, Twitter, Twitter. People, I was so like, there is an active discussion going on about whether or not the right thing to do is to abandon the platform, which I understand. It does not bring a ton of joy into my life. It's a stressful place. And I think that it heightens my emotions and it does that to everyone else. And at the moment, I don't know that heightened emotions seem to be helping. Maybe they are. It's not clear. I get told sometimes by people like, we aren't going to fix Twitter without leaving Twitter. I hear your argument. I don't think that it works because I think that Twitter remains a tremendously important cultural force with or without me. And it is possible, though unfortunate for a place to be both apocalyptically bad and vital and necessary and unavoidable because I think that I can be on Twitter. And I know that you may disagree with me on this, John. I think I can be on Twitter and be bringing some perspective to the platform about how to use it better. The norms of Twitter have changed. And I think that they continue to change. And maybe they will change in ways that will make us better at this. I haven't seen any real evidence of this for clarity. We're still bad at it. Every day there are a bunch of trending topics and they seem to be the most hot thing possible portrayed in the hottest possible light. And if there isn't something to get hot about, someone will manufacture it. They'll find it. They'll find something from four years ago. Or this was one last week. Spare thought for the billions of people who will never exist as world population growth slows.
27,738
https://stackoverflow.com/questions/40918483
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
John Clements, https://stackoverflow.com/users/90559
English
Spoken
338
632
Scheme/Drracket, avoid using let, still not evaluating same function twice I have a coding class assignment i am not able to solve :( (define f (lambda (x) (i (g x) (h (g x))))) i, g and h are just arbitrary function names. This is the code and i am required to rewrite it such that (g x) is evaluated only once but without using let (or any variant of it) using only define and lambda as predefined functions. I am also not allowed to take calculations out of f, that is, alls calculations must happen inside that function. The easy way is (define f (lambda (x) (define intermediary (g x)) (i intermediary (h intermediary)))) and the more complicated would be (define f (lambda (x) ((lambda (intermediary) ; anonymous procedure (i intermediary (h intermediary))) (g x)))) or, avoiding the anonymous procedure and giving it the name sub: (define f (lambda (x) (define sub (lambda (intermediary) (i intermediary (h intermediary)))) (sub (g x)))) Be sure to give uselpa credit for your answer, in class! Funny how you are not allowed to use any variants of let while define and lambda is allowed, which I would certainly say are true variants of let (or vice versa). (let ((v1 expr1) ...) body ...) is the same as ((lambda (v1 ...) body ...) expr1 ...) So let is a variant of lambda.. Thus: (define f (lambda (x) (let ((gx (g x))) (i gx (h gx))))) Can of course be rewritten to: (define f (lambda (x) ((lambda (gx) (i gx (h gx))) (g x)))) Now Imagine that before (define f ..) we define the other freee variables. That can be rewritten to: ((lambda (i) ((lambda (h) ((lambda (g) ((lambda (f) rest-of-program ...) (lambda (x) ((lambda (gx) (i gx (h gx))) (g x))))) (lambda (v) g-expression))) (lambda (v) h-expression))) (lambda (v1 v2) i-expression)) The real expansion might be slightly more complex if one of the bound variables actually needed to have a binding that were further in in it's closure, but for primitives this works.
42,233
https://zh.wikipedia.org/wiki/4%E6%9C%886%E6%97%A5%E9%9D%92%E5%B9%B4%E8%BF%90%E5%8A%A8
Wikipedia
Open Web
CC-By-SA
2,023
4月6日青年运动
https://zh.wikipedia.org/w/index.php?title=4月6日青年运动&action=history
Chinese
Spoken
7
157
4月6日青年运动 (,)是埃及网民2008年在Facebook成立的群组,目的是要支援大迈哈莱的工人在4月6日罢工。该组织也领导了2011年埃及反政府示威。其創始人在2011年革命爆發之前在非暴力行動與戰略應用中心學習相關抗爭技巧。 參考資料 外部链接 Facebook群组 Facebook社團 2011年埃及革命
44,613
https://tt.wikipedia.org/wiki/%D0%A2%D0%B0%D0%BD%D0%BF%D1%8B%D0%BD%D0%B0%D1%80%20%28%D0%9A%D0%BE%D2%97%D0%B0%D1%81%D0%B8%D0%BD%D0%B0%D0%BD%29
Wikipedia
Open Web
CC-By-SA
2,023
Танпынар (Коҗасинан)
https://tt.wikipedia.org/w/index.php?title=Танпынар (Коҗасинан)&action=history
Tatar
Spoken
63
252
Танпынар () — Төркия Җөмһүриятенең Эчке Анатолия бүлгесе Кайсери иле Коҗасинан илчесенә караган бер мәхәллә (). Географиясе Халык саны Искәрмәләр Сылтамалар Турция // Большая российская энциклопедия : [в 35 т. / гл. ред. Ю. С. Осипов. — М. : Большая российская энциклопедия, 2004—2017.] Mahalle Nedir? Kısaltmalar Dizini Коҗасинан илчесе мәхәлләләре Әлифба буенча торак пунктлар Төркия торак пунктлары Төркия мәхәлләләре vi:Tanpınar, Kocasinan tr:Tanpınar, Kocasinan
30,602
https://ru.wikipedia.org/wiki/%D0%91%D0%B5%D1%80%D0%B7%D0%B8%D0%BD%2C%20%D0%9F%D0%B0%D0%B2%D0%B5%D0%BB%20%D0%90%D0%BB%D0%B5%D0%BA%D1%81%D0%B0%D0%BD%D0%B4%D1%80%D0%BE%D0%B2%D0%B8%D1%87
Wikipedia
Open Web
CC-By-SA
2,023
Берзин, Павел Александрович
https://ru.wikipedia.org/w/index.php?title=Берзин, Павел Александрович&action=history
Russian
Spoken
704
1,882
Павел Александрович Берзин (род. 30 марта 1961 года, Москва, СССР) — советский и российский регбист, игравший на позициях винга и фулбэка, а также российский регбийный судья. Мастер спорта СССР международного класса. Биография Игровая карьера С детства Павел занимался футболом и хоккеем, выступая неплохо на юношеском уровне, однако из-за слабого зрения («-4») не мог играть на профессиональном уровне ни в футбол, ни в хоккей. После окончания школы ушёл работать на часовой завод «Слава», где работала вся его семья: по предложению брата Александра перешёл в регби и проделал путь от новичка до юниорской сборной СССР за 7 месяцев, пройдя школу «Славы». Дебютировал за «Славу» в 1979 году; в 1980—1981 годах проходил воинскую службу и играл за команду ВВА имени Гагарина. В дальнейшем выступал до 1992 года за команду «Слава». За свою карьеру становился чемпионом СССР в составе ВВА в 1981 году и в составе «Славы» в 1982 году; в составе «Славы» завоёвывал в 1985 и 1986 годах серебряные медали чемпионата СССР, в 1983 году — бронзовые медали. В 1982 году стал лучшим бомбардиром чемпионата СССР с 202 очками; в 1985 и 1989 годах выигрывал Кубок СССР. В 1982 году дебютировал за сборную СССР. 24 октября того же года в игре против сборной ФРГ (победа 31:9) набрал 15 очков благодаря двум попыткам, двум реализациям и штрафному. Всего сыграл 36 матчей за советскую сборную. С октября 1992 по апрель 1993 года играл за английские клубы «Торки Атлетик» (региональная команда) и «Бедфорд Блюз» (20-й клуб английской лиги). В Англию он попал вместе с Сергеем Молчановым и Валерием Нефёдовым в разгар кризиса и безработицы. В 1993 году в составе американской команды «Атлантис», которая участвовала в турне по Северной Ирландии с целью пропагандирования регби-7 в США, провёл несколько игр: в матче против команды Белфаста (поражение 17:21) он занёс попытку, а его игру оценил тренер американской команды . По возвращении в Россию с июня 1993 по 1994 годы Берзин играл за «Славу». В 1994—1995 и 1998—1999 годах выступал за команду «Фили». В 2000—2002 годах играл в дубле «Славы», а также был помощником главного тренера. Последнюю игру провёл в 2002 годоу на Кубке Балтики в возрасте 42 года. Судейская карьера Окончил Московский областной государственный институт физической культуры (МОГИФК), квалификация «тренер-преподаватель». Судейскую карьеру начал на уровне детских игр: серьёзным поворотом стал форум в Киеве на тему судейства (занятия проводил Мишель Ла Мули). С октября 2003 года начал работать на матчах чемпионата России в качестве главного арбитра, дебютировал в четвертьфинале Кубка России между ВВА и «Славой». В 2005 году впервые судил матчи сборных (матч между Латвией и Швейцарией на чемпионате Европы). 21 октября 2005 года судил матч сборной России против австралийского клуба «Уаратаз» из Супер 12 (18:47). В 2004, 2007 и 2009 годах признан лучшим арбитром России. По собственным словам, в мае 2008 года был назначен Профессиональной регбийной лигой на две игры, проходившие с разницей в один день в Красноярске («Сибирь» против «Новокузнецка», «Енисей-СТМ» против «Красного Яра»): поскольку его багаж не долетел из Москвы до Красноярска, матч «Сибири» и «Новокузнецка» он судил, взяв на время у знакомых судейский инвентарь и форму. По состоянию на 2010 год был главным судьёй матчей чемпионата России по регби-7. 22 октября 2017 года был назначен судьёй-хронометристом на матче «Енисея-СТМ» против валлийского «Дрэгонс» в Европейском кубке вызова. Стиль игры Берзин начинал карьеру на позиции винга, но позже перешёл на позицию фулбэка. Отличался скоростью и хорошим финтом, из принципа не играл ногой и всегда выносил мяч в одиночку: когда ловил мяч в районе зачётного поля, то не выбивал мяч в район центра поля. По собственным словам, в этом случае он показывал, что намерен бить, заставляя противников выстраиваться в коридор, а в это время его одноклубники «бежали в другую сторону и устраивали им “весёлую жизнь”». Свою последнюю игру провёл на позиции флай-хава. Вне регби Старший брат — Александр, также известный регбист, выступавший за «Славу». Павел женат, воспитывает двоих сыновей и работает специалистом центра сборных команд Москомспорта. После завершения регбийной карьеры некоторое время работал в компании DHL в отделе логистики. В 1984 году Павел Берзин сыграл эпизодическую роль игрока регбийной команды в фильме «Счастливая, Женька!». Примечания Литература Регбисты СССР Регбисты России Регбийные тренеры России Регбийные судьи России Игроки РК «Слава» Игроки РК «ВВА-Подмосковье» Игроки РК «Торки Атлетик» Игроки РК «Бедфорд Блюз» Игроки РК «Фили» Выпускники Московской академии физической культуры Игроки сборной СССР по регби
22,149
https://en.wikipedia.org/wiki/K.%20K.%20Seet
Wikipedia
Open Web
CC-By-SA
2,023
K. K. Seet
https://en.wikipedia.org/w/index.php?title=K. K. Seet&action=history
English
Spoken
605
944
Seet Khiam Keong (), better known as "K.K. Seet", is an academic, writer and theatre director from Singapore. He is a prominent figure in the arts scene in Singapore, where he is particularly known for being a judge at several high-profile competitions and serving on a number of arts-related committees. Academic career Seet holds a PhD from the University of Exeter, and Master's degrees from the University of Edinburgh and the University of Toronto. He has been the recipient of a Fulbright Fellowship (as Visiting Fellow at the City University of New York) and two British Council Fellowships. Seet was responsible for establishing the Theatre Studies programme at the National University of Singapore (NUS) in 1992. He was a tenured academic in the NUS Department of English Language and Literature for 22 years before choosing to take early retirement in June 2012. Seet has written fifteen books. The Istana was presented to Blair House, the official guest house of the US President. Another book, In Unison, was presented to the Vice Premier of China. A third, Singapore Celebrates, is buried in a time capsule. His book Death Rites was twice dramatised for TV by Arts Central. Seet has also published in journals such as Camera Obscura: Feminism, Culture, and Media Studies, TDR: The Drama Review, Theatre Journal, Theatre Research International, and World Literature Today. Artistic career Seet has chaired the Grants Committee and Selection Panel for the Singapore Cultural Medallion and the Young Artist of the Year Awards in Theatre. He advises on multidisciplinary arts at the National Arts Council Singapore, and has been a member of both the Drama Advisory Committee and the Films Appeal Committee for Singapore's Ministry of Information, Communication and the Arts (MICA). Seet has judged numerous arts-related competitions, including the Singapore Literature Prize, the Singapore Writers Festival, The Straits Times Life! Theatre Awards, and the televised shows the Fame Awards and The Arena. Seet has hosted the TV shows Film Art and Art Nation on Arts Central of MediaCorp TV12 in Singapore. and he was the face of the Speak Mandarin Campaign/ Huayu Cool in 2007. Seet was conferred the Special Recognition Award by Singapore's Ministry of Information, Communication and the Arts (MICA) in 2005 for his contribution to culture and the arts. In July 2012, he was presented the Singapore Theatre Vanguard Award by the arts community of Singapore. Select bibliography Non-fiction A place for the people (Times Books International, 1983) Singapore celebrates (Times Editions, 1990) The Istana (Times Editions, 2000) Knowledge, imagination, possibility: Singapore's transformative library (National Library Board of Singapore and SNP Editions, 2005) Prime: pride of passage (Keppel Land Limited and Straits Times Press, 2011) Edited Volumes Old truths, new revelations: prizewinning ASEAN stories (Times Books International, 2001) 5 under 25: prize-winning plays from the Writers' Lab (TheatreWorks, 2003) Journal Articles "Mothers and Daughters: Abjection and the Monstrous-Feminine in Japan's Dark Water and South Korea's A Tale of Two Sisters." Camera Obscura: Feminism, Culture, and Media Studies 24.2 (71) (2009): 139–159. "Theater and the politics of culture in contemporary Singapore." TDR: The Drama Review 47.2 (2003): 173–175. "Interpellation, ideology and identity: the case of Talaq." Theatre Research International 27.2 (2002): 153–163. "Discourse from the margin: A triptych of negotiations in contemporary Singapore English-language theatre." World Literature Today 74.2 (2000): 305–312. Children's Death rites: tales from a wake (Times Books International, 1990) A single tear: a fairytale for all ages (2010) References External links www.kkseet.com Singaporean writers Singaporean theatre directors Academic staff of the National University of Singapore Singaporean people of Chinese descent Living people Alumni of the University of Edinburgh Year of birth missing (living people)
29,159
https://stackoverflow.com/questions/19996819
StackExchange
Open Web
CC-By-SA
2,013
Stack Exchange
Anand Suthar, Rinju Jain, derpoliuk, https://stackoverflow.com/users/1122480, https://stackoverflow.com/users/1223137, https://stackoverflow.com/users/1226304, https://stackoverflow.com/users/2949441, iSmita
English
Spoken
256
988
Marquee Animation UIimageView blur In my app images are in Marquee effect (HTML) . so i set the x point of image by using NSTimer but it implemented successfully but the image show some blur. how i remove this blur effect ? int x=0; ImgArray=[[NSMutableArray alloc] initWithObjects:[UIImage imageNamed:@"keyframe1.png"],[UIImage imageNamed:@"keyframe2.png"],[UIImage imageNamed:@"keyframe3.png"],[UIImage imageNamed:@"keyframe4.png"], [UIImage imageNamed:@"keyframe5.png"],nil]; imgView=[[UIImageView alloc]initWithFrame:CGRectMake(x, 0, 1024, 768)];` imgView.image=[ImgArray objectAtIndex:0]; [self.view addSubview:imgView]; [NSTimer scheduledTimerWithTimeInterval:.08 target:self selector:@selector(showMarquee) userInfo:nil repeats:YES]; in showMarquee method change the value of x Use UIView Animation instead of NStimer. Check the resolution of image. Not sure about others but I don't know what "Marquee effect" is. Can you post some code? Use the below code for marquee effect. declare CAShapeLayer object CAShapeLayer *_marque; Use the below methods: -(void)setMarquee { if (!_marque) { _marque = [CAShapeLayer layer] ; _marque.fillColor = [[UIColor clearColor] CGColor]; _marque.strokeColor = [[UIColor grayColor] CGColor]; _marque.lineWidth = 1.0f; _marque.lineJoin = kCALineJoinRound; _marque.lineDashPattern = [NSArray arrayWithObjects:[NSNumber numberWithInt:10],[NSNumber numberWithInt:5], nil]; _marque.bounds = CGRectMake(self.imgView.frame.origin.x, self.imgView.frame.origin.y, 0, 0); _marque.position = CGPointMake(self.imgView.frame.origin.x + self.imgView.frame.origin.x, self.imgView.frame.origin.y + self.imgView.frame.origin.y); } [self.view.layer addSublayer:_marque]; } -(void)showOverlayWithFrame:(CGRect)frame { if (![_marque actionForKey:@"linePhase"]) { CABasicAnimation *dashAnimation; dashAnimation = [CABasicAnimation animationWithKeyPath:@"lineDashPhase"]; [dashAnimation setFromValue:[NSNumber numberWithFloat:0.0f]]; [dashAnimation setToValue:[NSNumber numberWithFloat:15.0f]]; [dashAnimation setDuration:0.5f]; [dashAnimation setRepeatCount:HUGE_VALF]; [_marque addAnimation:dashAnimation forKey:@"linePhase"]; } _marque.bounds = CGRectMake(frame.origin.x, frame.origin.y, 0, 0); _marque.position = CGPointMake(frame.origin.x + self.imgView.frame.origin.x, frame.origin.y + self.imgView.frame.origin.y); CGMutablePathRef path = CGPathCreateMutable(); CGPathAddRect(path, NULL, frame); [_marque setPath:path]; CGPathRelease(path); _marque.hidden = NO; } Now call the methods [self setMarquee]; [self showOverlayWithFrame:self.imgView.frame]; Just refer this project https://www.cocoacontrols.com/controls/kaslideshow Thanks ..manujmv. its show line in marquee animation but i needs images in left to right marquee animation
38,238
https://war.wikipedia.org/wiki/Labus%20bekilyensis
Wikipedia
Open Web
CC-By-SA
2,023
Labus bekilyensis
https://war.wikipedia.org/w/index.php?title=Labus bekilyensis&action=history
Waray
Spoken
34
58
An Labus bekilyensis in uska species han Hymenoptera nga ginhulagway ni Giordani Soika. An Labus bekilyensis in nahilalakip ha genus nga Labus, ngan familia nga Eumenidae. Waray hini subspecies nga nakalista. Mga kasarigan Labus
33,664
https://ast.wikipedia.org/wiki/Xeograf%C3%ADa%20de%20los%20Estaos%20Federaos%20de%20Micronesia
Wikipedia
Open Web
CC-By-SA
2,023
Xeografía de los Estaos Federaos de Micronesia
https://ast.wikipedia.org/w/index.php?title=Xeografía de los Estaos Federaos de Micronesia&action=history
Asturian
Spoken
187
439
Los Estaos Federaos de Micronesia consten de 607 islles que s'estienden a lo llargo del archipiélagu de les islles Carolines, al este de les Filipines. Los cuatro grupos d'islles que los constitúin son Yap, Chuuk (llamáu Truk hasta xineru de 1990), Pohnpei (llamáu Ponape hasta payares de 1984), y Kosrae. La capital federal ye Palikir, en Pohnpei. Datos xenerales Situación: N'Oceanía, representa un grupu d'islles al norte del Océanu Pacíficu, a unos dos tercios de la distancia ente Ḥawai ya Indonesia. Coordenaes xeográfiques: 6º55' latitud norte, 158º15' llargor esti. Superficie (Pohnpei (Ponape), Islles Chuuk (Truk), Islles Yap y Kosrae): Total: 702 km² Suelu: 702 km² Agua: 0 km² Estensión de mariña: 6.112 km Clima: tropical. Fuertes agües mientres tol añu, especialmente nes islles orientales. Asitiaes a la llende de la zona de los tifones, siendo afeutaes dacuando con gravedá. Terrén: diversidá xeolóxica ente altes montascoses, a baxos atolones de coral; volcanismo en Pohnpei, Kosrae y Chuuk. Puntu más eleváu. Totolom 791 m Recursos naturales: montes, productos marítimos, minerales de los fondos marinos. Riesgos naturales: Tifones (xunu a avientu). Ver tamién Estaos Federaos de Micronesia Referencies Enllaces esternos
24,666
https://vi.wikipedia.org/wiki/Stenopogon%20costatus
Wikipedia
Open Web
CC-By-SA
2,023
Stenopogon costatus
https://vi.wikipedia.org/w/index.php?title=Stenopogon costatus&action=history
Vietnamese
Spoken
31
69
Stenopogon costatus là một loài ruồi trong họ Asilidae. Stenopogon costatus được Loew miêu tả năm 1871. Loài này phân bố ở vùng Cổ Bắc giới. Chú thích Tham khảo Stenopogon
49,487
https://vi.wikipedia.org/wiki/Antidesma%20cruciforme
Wikipedia
Open Web
CC-By-SA
2,023
Antidesma cruciforme
https://vi.wikipedia.org/w/index.php?title=Antidesma cruciforme&action=history
Vietnamese
Spoken
43
95
Antidesma cruciforme là một loàithực vật thuộc họ Euphorbiaceae. Đây là loài đặc hữu của Malaysia. Chú thích Tham khảo Kochummen, K.M. 1998. Antidesma cruciforme. 2006 IUCN Red List of Threatened Species. Truy cập 20 tháng 8 năm 2007. Thực vật Malaysia C
46,885
https://zh.wikipedia.org/wiki/%E7%83%AD%E5%B0%BC%E6%8B%89%E5%85%8B
Wikipedia
Open Web
CC-By-SA
2,023
热尼拉克
https://zh.wikipedia.org/w/index.php?title=热尼拉克&action=history
Chinese
Spoken
15
299
热尼拉克(,)是法国卢瓦尔省的一个市镇,位于该省东南部,属于圣艾蒂安区。 地理 ()面积,位于法国奥弗涅-罗讷-阿尔卑斯大区卢瓦尔省,该省份为法国中南部省份,北起顺时针与索恩-卢瓦尔省、罗讷省、伊泽尔省、阿尔代什省、上盧瓦爾省、多姆山省和阿列省接壤。 与接壤的市镇(或旧市镇、城区)包括:。 的时区为UTC+01:00、UTC+02:00(夏令时)。 行政 的邮政编码为,INSEE市镇编码为。 政治 所属的省级选区为。 人口 于时的人口数量为人。 参见 卢瓦尔省市镇列表 参考文献 G
31,397
https://stackoverflow.com/questions/28492832
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
https://stackoverflow.com/users/3143218, user3143218
English
Spoken
282
468
How can I create a callable prototype method within another prototype I'm working on trying to build a small library of functions within an object prototype. I'd perviously just been throwing my helper functions as global functions, however i'm trying to migrate to something more self contained. Anyway my proto wrapper looks like this; Q.fn = jHelper.prototype = { // helper functions addClass: function() {}, //... removeClass: function() {}, //... // etc.. // I want to add a child prototype method here that can be called Parent: function() { child: function(args) { console.log(args); } } } Q.Parent.child("test"); The problem is that I can't call functions inside "Parent". How do set this up so I can add child functions as a prototype of "Parent"? Your Parent is pointing to a function, with has a label pointing to a function. It would need to look like this... Parent: { child: function(args) { console.log(args); } } This also assumes that Q.fn points to Q.prototype. I want "child" to be a prototype method of "Parent" You would need to set it up like a normal prototype. You could (if your targets supported __proto__) set it up directly like so... Parent.__proto__ = { child: function() { } }; jsFiddle. This means that Parent's prototype chain (note: don't give it a capital letter as that's a convention for constructor functions) will look like this: Parent -> Object with child -> Object.prototype. Object.prototype is the end of the line, you can see this by evaluating ({}).__proto__ === Object.prototype. I want "child" to be a prototype method of "Parent"; This is what the full wrapper looks like, not sure if this is right way of going about it though; http://jsfiddle.net/b86roet2/
8,307
https://mathoverflow.net/questions/226525
StackExchange
Open Web
CC-By-SA
2,015
Stack Exchange
Daniel Litt, Fan Zheng, Joe Silverman, Kestutis Cesnavicius, https://mathoverflow.net/users/11926, https://mathoverflow.net/users/37103, https://mathoverflow.net/users/5498, https://mathoverflow.net/users/6950, https://mathoverflow.net/users/81332, nfdc23
English
Spoken
679
1,344
Is $Pic^0(X)$ of a curve of genus $\geq 1$ over a non-algebraically closed field still non-finitely generated? Qing Liu's "Algebraic Geometry and Arithmetic Curves" page 299 COrollary 7.4.41 gives the following result. Let $X$ be a smooth, connected, projective curve over an algebraically closed field $k$, of genus $g$. Let $Pic^0(X)$ denote the subgroup of $Pic(X)$ consisting of divisors of degree $0$. Let $n\in \mathbb{Z}$ be non-zero and $Pic^0(X)[n]$ denote the kernel of the multiplication by $n$ map. If $(n,\text{char} (k))=1$, then $Pic^0(X)[n]\cong (\mathbb{Z}/n\mathbb{Z})^{2g}$; If $p=\text{char} (k)>0$, then there exists an $0\leq h\leq g$ such that for any $n=p^m$, we have $Pic^0(X)[n]=(\mathbb{Z}/n\mathbb{Z})^h$. From this it is easy to deduce that if $X$ is a smooth, connected, projective curve over an algebraically closed field $k$, of genus $g\geq 1$, then $Pic^0(X)$ is not a finitely generated abelian group. (This is Exercise 4.9 (d) in page 301 of Qing Liu's book.) $\textbf{My question}$ is: if the base field $k$ is not algebraically closed, is the above statement still true? I.e. if $X$ is a smooth, geometrically connected, projective curve over a field $k$, of genus $g\geq 1$, then is $Pic^0(X)$ finitely generated? One thing for sure is that the answer to the last question in the text is the opposite of the answer to the question in the title. As Will Sawin says, the key phrase here is Mordell-Weil theorem. Also, this isn't really a theorem about Picard groups of curves, it's a theorem about abelian varieties. Here is a fairly general statement: Theorem (Mordell-Weil-Lang-Neron) Let $K$ be a field that is of finite type over its prime field (where the prime field is either $\mathbb Q$ or $\mathbb F_p$), and let $A/K$ be an abelian variety. Then $A(K)$ is finitely generated. More generally, let $k$ be any field and let $K/k$ with $K$ of finite type over $k$. Then for any abelian variety $A/K$ there is an abelian variety $B/k$ (possibly trivial) called the $K/k$-trace of $A$ and an inclusion $i:B\times_kK\hookrightarrow A$. Roughly speaking, $B$ is the largest piece of $A$ that comes from an abelian variety defined over $k$. Then $A(K)/i(B(k))$ is finitely generated. I believe that this is all proven in Lang's Fundamentals of Diophantine Geometry. Conversely, if $K$ is not finitely generated over its prime field, then I suspect that there always exists an abelian variety such that $A(K)$ is not finitely generated. (But you probably won't be able to prove it using torsion points.) The kernel of the canonical map $\tau:{\rm{Tr}}_{K/k}(A)K \rightarrow A$ is $K$-finite with infinitesimal dual, but it can be etale and nontrivial. (Much deeper is that it is infinitesimal when $K/k$ is "regular": separable with $k$ algebraically closed in $K$.) The existence of ${\rm{Tr}}{K/k}(A)$ and structure of $\ker(\tau)$ are discussed in Lang's book on abelian varieties, but not in his book on Diophantine geometry (which incorrectly says "$\tau$ is injective", but gives no reference for that assertion). @nfdc23 Thanks for the clarification. I should have given a reference for an example in which $\ker \tau$ is nontrivial and etale; see Example 6.3 in the 2006 paper "Chow's K/k-trace and K/k-image and the Lang-Neron theorem" in L'enseignement Math. 52(1). The answer is 'no'. If $k = \mathbb{R}$, then $Pic^0(X)(\mathbb{R})$ is a commutative real Lie group of dimension $g$, isomorphic to $(\mathbb{R}/\mathbb{Z})^g \times (\mathbb{Z}/2\mathbb{Z})^c$ for some $0 \le c \le g$, so is not finitely generated as an abelian group. There can be more than one component of the real group, right? So you're really describing the identity component of the real points of Pic^0... E.g. Take $y^2=f(x)$ where $f$ is a separable cubic with 3 real roots... @DanielLitt: Thanks, you're right. I was for some reason thinking that $Pic^0$ already takes care of that, but I overlooked that connectedness may nevertheless be lost on real points. Yes for number fields by the Mordell-Weil theorem. For arbitrary fields it may depend on the curve. For instance for a function field of an algebraically closed field, elliptic curves defined over the base field have infinitely generated Picard groups but other elliptic curves have finitely generated ones.
8,044
https://sr.wikipedia.org/wiki/%D0%9C%D0%BE%D1%98%D0%BE%D0%B0%D0%BF%D0%B0%D0%BD%20%28%D0%90%D1%81%D1%82%D0%B0%D1%81%D0%B8%D0%BD%D0%B3%D0%B0%29
Wikipedia
Open Web
CC-By-SA
2,023
Мојоапан (Астасинга)
https://sr.wikipedia.org/w/index.php?title=Мојоапан (Астасинга)&action=history
Serbian
Spoken
55
183
Мојоапан () насеље је у Мексику у савезној држави Веракруз у општини Астасинга. Насеље се налази на надморској висини од 2061 м. Становништво Према подацима из 2010. године у насељу је живело 266 становника. Хронологија Попис Види још Савезне државе Мексика Референце Спољашње везе Мексичка насеља Насеља у општини Астасинга (Веракруз) Википројект географија/Насеља у Мексику
45,887
https://es.wikipedia.org/wiki/Austin%20Lawton
Wikipedia
Open Web
CC-By-SA
2,023
Austin Lawton
https://es.wikipedia.org/w/index.php?title=Austin Lawton&action=history
Spanish
Spoken
167
302
Austin Lawton (n. Eutawville, Carolina del Sur); 26 de julio de 1996) es un jugador de baloncesto con nacionalidad estadounidense. Con 2,03 metros de altura juega en la posición de alero. Actualmente forma parte de la plantilla del Ionikos Nikaias BC de la A1 Ethniki. Trayectoria Es un jugador natural de Eutawville, Carolina del Sur, formado en la Lake Marion High School de Santee (Carolina del Sur), antes de ingresar en 2015 en la Universidad de Claflin, situada en Orangeburg (Carolina del Sur), donde jugaría durante cuatro temporadas con los Claflin Panthers desde 2015 a 2019. Tras no ser drafteado en 2019, el 31 de julio de 2019 firma por el Feyenoord Basketbal de la Dutch Basketball League. En 2022, forma parte de la plantilla de los Carolina Thunder de la East Coast Basketball League. En la temporada 2022-23, firma con Ionikos Nikaias BC de la A1 Ethniki. Referencias Enlaces externos Perfil en realgm Bio en claflin Baloncestistas de Carolina del Sur Baloncestistas del Ionikos Nikaias B.C.
32,588
https://security.stackexchange.com/questions/123401
StackExchange
Open Web
CC-By-SA
2,016
Stack Exchange
Aron, End Anti-Semitic Hate, Fiasco Labs, James Hyde, Josef, Kevin, Lukas, Mark, Michael Kohne, Mindwin Remember Monica, Paul Becotte, Raedwald, Roger Lipscombe, abligh, atk, coteyr, https://security.stackexchange.com/users/102283, https://security.stackexchange.com/users/11471, https://security.stackexchange.com/users/27877, https://security.stackexchange.com/users/37496, https://security.stackexchange.com/users/37864, https://security.stackexchange.com/users/40066, https://security.stackexchange.com/users/40524, https://security.stackexchange.com/users/44336, https://security.stackexchange.com/users/46454, https://security.stackexchange.com/users/52102, https://security.stackexchange.com/users/59811, https://security.stackexchange.com/users/6217, https://security.stackexchange.com/users/6585, https://security.stackexchange.com/users/66358, https://security.stackexchange.com/users/71333, https://security.stackexchange.com/users/72852, https://security.stackexchange.com/users/76715, https://security.stackexchange.com/users/91596, https://security.stackexchange.com/users/93457, https://security.stackexchange.com/users/97054, tonytan, user19474, user2813274, vakus
English
Spoken
2,990
3,777
Are staggered roll outs of security patches bad? Many Android devices, including the Google Nexus line, are now receiving monthly security patches via OTA updates, accompanied by the Android Security Bulletins. However, these updates are often released in what is known as "staggered roll outs," where the update is available for more devices (of the same model) over time, instead of becoming available to all users instantaneously. I understand that for feature updates, gradual roll outs allow errors or bugs to be fixed before all users receive the new software. However, for security patches, wouldn't a staggered release make it much easier for blackhat hackers to utilize the now-public vulnerabilities against users whose devices have not yet received the OTA, even though a patch for their device model is already available? For example, I have a Google Nexus phone that is supposed to be among the first to receive all Android updates. The latest Android security update was publicly released on May 4, 2016, along with its source code; it is already May 16, 2016, and my Nexus device is still telling me that my "system is up to date," even when I click the "check for update" button. Of course, I can manually download the latest firmware images and flash it manually; but shouldn't security updates be made available to all devices of the same model as quickly as possible once it becomes public? Edit: Thank you for the very thoughtful responses. While this question is intended to be widely applicable to different devices, my specific concern is the intentional "staggered roll out" to identical devices of the same model, once a patch has already been developed for that specific model. For example, the May 2016 security update has been released for the Google Nexus 6P at the beginning of the month, but as of May 16 not all Nexus 6P devices have received the OTA update. Google releases security patches for Nexus devices every month, and each month some devices receive them a few weeks later than other devices of the same model. Update: Today is May 19, 2016, and my Google Nexus 6P has finally received the May security patches. Wow, that only took 15 days. (-‸ლ) Similarly, if you have 2+ data centres (to provide disaster tolerance), is it sensible to stagger security updates at the data centres? Excellent question. Yes, your understanding is correct, as well as your rationale behind it. Staggering roll outs for new features often makes good sense. Staggering roll outs for security patches rarely is a good idea. As you pointed out, this gives even more opportunity for the vulnerabilities to be exploited. Perhaps even more importantly, the patches can be quickly reverse engineered to develop exploits in a rapid fashion. Microsoft often publicly releases their patches on the second Tuesday of the month (and also sometimes on the fourth Tuesday). This has commonly been referred to as "Patch Tuesday". There's a reason we call the next day "Exploit Wednesday". It's unfortunate that a significant chunk of the Android ecosystem has not learned from this phenomenon. Updates: Several knowledgeable people have pointed out potential impact on internet infrastructure, including fears of overloading the entire internet. The volume of internet traffic is monumental; security patches, even extremely large ones, are tiny drops in the bucket. Microsoft releases large patches to hundreds of millions of users on the same day each month, and they have yet to "crash the internet". Netflix, YouTube, and Twitch stream videos to millions of people every day, and even with their combined traffic, they have yet to "crash the internet". On the other hand, Android patches are predominately (but not exclusively) delivered to wireless users. There are solutions to any potential issues: Provide users with a choice of when to download the patches. This provides numerous benefits: Does not disrupt the user's workflow Creates traffic staggering due to human interaction and decision variability Allows the user to wait until they are connected to a higher bandwidth system (perhaps at work, their university, at home WiFi) Allows the user, at their own risk, to wait and see if others report problems with the patches When distributing patches to specific regions known to have limited infrastructure that could be impacted, stagger the patches over the minimal number of days to avoid overloading infrastructure. In regards to specifically the Google Nexus 6P security updates not being released to all users promptly, that's simply a poor choice by Google that is not in the best interest of their customers. Compared to the massive volume of internet traffic, those patches are minuscule. On top of that, that device is relatively rare in the Android ecosystem. This further supports the statement that releasing the patches to all customers at once would not harm any internet providers. Even the entire Google Nexus product line comprises only a tiny part of the Android world. As a product line, however, there could be a little impact on infrastructure in select regions. As such, the following methodology, while combined with the recommendations outlined above, will minimize infrastructure impact while maximizing patch distribution: Release zero-day exploit patches immediately Release scheduled updates on different days each month, a different day for each product If a product has significant market share that could reasonably impact infrastructure in a region, stagger the roll out over the minimal number of days required to avoid infrastructure overload in that region only Finally, according to your statements, it has been over two weeks since Google initially released those patches for the Google Nexus 6P. That's more than enough time to know if their patches are causing havoc. I have found no documentation from Google recognizing or apologizing for a bad bunch of patches, nor anecdotal evidence of any serious problems. One could make the argument that staggering patches out over a few days could possibly be reasonable in order to detect flawed patches and to reduce traffic load. But leaving customers unpatched for weeks is unreasonable, unnecessary, and not an effective policy from an information security standpoint. In conclusion, based on the statements above, and your statement that Google has not rolled out the security patches to your device, my conclusion is that Google, by not delivering security patches to all affected Google Nexus 6P customers, is making a poor decision and is doing a disservice to their customers. When in doubt, manually force it with the biggest sledge hammer you can find. I've had auto-update staggered rollouts where there's a week difference between first and last application. On a zero day, that's inexcusable and tells you a lot about how much the offender values you. Part of the difficulty is load balancing. If everyone's phone tries to download the OTA at exactly midnight of the same day... the servers are going to melt and it will take even longer for the update to get out. @Kevin When we're talking about Google, Microsoft and Apple, I see this as an excuse. For companies this size, it would definitly not be a problem to deliver 100mio patches a day (at least from the network perspective) It would certainly be trivial for Google to make an update available to every device at the same time, especially if they'd already rolled it out to local servers around the world. This is not the issue. There's a tension between potentially bricking millions of devices because of a bad patch and widening the vulnerability window. The former is much worse for PR. @RogerLipscombe I believe that premise may not be accurate. A patch, once reviewed and tested, would likely not brick millions of devices. A poorly coded patch may not work, or could cause some compatibility issues, but if it's gone through even a little testing, it would be very unlikely that it would brick millions of devices. @RockPaperLizard - The real world NEVER matches the QA lab, no matter how good your QA lab. The fear that a new release is going to break stuff is VERY WELL founded in a history (from even the largest companies) of perfectly tested patches breaking everything in site. @MichaelKohne Even Microsoft, who has a questionable record of releasing quality patches, rarely bricks devices, even though they release security patches simultaneously to hundreds of millions of systems. @JamesHyde android OS is heavily modified by manufacturers and carriers and sometimes are incompatible with one another. So an update cannot be rolled into all devices because it needs to be modified to work with the modded OS'es. @Mindwin I was referring to the Nexus line of devices which receive monthly updates directly from Google. @JamesHyde acknowledge, that was not clear in the previous comment. Well done. There have been a lot of comments about capacity to deliver patches, but these comments focus on servers and the wired network. Remember that the "last mile" for many of these devices is a wireless network. And the carriers have their concerns, too. They don't want these updates to turn into a DOS on their system. I thought we were getting past the era of "I have no experience with the development/deployment side of the house, but my opinion must be totally correct.". Whether or not to stagger is dependent upon multiple factors, many listed in these comments. The strain on the Internet itself even matters for certain extremely large patches, What is right for a particular company depends upon that company's risk tolerances - all the risks, not just security. @atk Your assumptions are erroneous. If you disagree with this answer, you are encouraged to write your own. In your answer, we look forward to you explaining how a security patch could be so massive as to place a "strain on the Internet". We look forward to learning from your extensive experience and knowledge. @Lukas I see this actually as being good corporate citizens. Microsoft and Google can certainly handle the load that a synchronized patch generates. But not every infrastructure owner between MSFT/GOOG and you will be able to handle that load. It is the small ISPs and SOHO admins which will suffer when their systems overload... If there really were a valid concern about bandwidth / server load (I doubt there is) it would be possible to devise a system where the patches were delivered encrypted, and the decryption key only supplied later (and simultaneously to all devices). I would thus strongly suspect there are other reasons for the staggering. However, for security patches, wouldn't a staggered release make it much easier for blackhat hackers to utilize the now-public vulnerabilities against users whose devices have not yet received the OTA, even though a patch for their device model is already available? Easier than what?, is the important question. Yes it will be easier for the hacker for a few days while the update is being pushed out. But it will be much harder for the hacker then if then if the update was not sent at all. A staggered release keeps the network moving, the servers running, and the 1s and 0s flowing while everyone gets their update. If every Android device out there tried to update all at once, you would end up with a massive amount of traffic hitting a tiny resource. The other option is only doing an update when people "scan" for it. That's horrible too. So while the staggered approach is not the absolute best, it is the best available in regard to resources. Keep in mind that in order to take advantage of this window you would need to find a device between the time the patch was released, and when it (the device) got it's update. Also remember that Android is Open Source. It's far more profitable to write exploits that are still viable, than ones that you know will be in the next release (cause you can see the code). So, in summery: The fixes are not a secret before the security push starts anyway. It's better than no updates at all It's better than crashing the mobile network or update server. The window of opportunity is such that very few people should be effected, that are not already an active target. I find it highly unlikely that an android update is going to crash the download of a static file like an OS patch. I'm not sure how to respond to that. Of course it can. They range in size from 10 Megs to 1.1 Gigs. Mobile internet still sucks throughout most of the world. A 100 Meg update that takes a long time to download will fill a decent server pretty fast if 4.6 Million people do it all at once (Sales guess from the Nexus 7) @coteyr I don't think those large updates are security updates, or at best they are mostly other updates bundled with some security changes - do you have any examples? (preferably with a changelog?) Google has what is probably the world's largest collection of servers. A little thing like a worldwide upgrade of Android won't cause it the slightest problem. I would not say that I am an expert in this so my point may not be valid. I quickly readed on Wikipedia On modern mobile devices such as smartphones, an over-the-air update may refer simply to a software update that is distributed over Wi-Fi or mobile broadband using a function built into the operating system From this quote we may note that the update is distributed over WiFi or mobile broadband, which not always may be available at the same time, eg. If I live in place where there is no WiFi modules, or have low signal strength, then there is possibility that I will miss the moment in which the updates are sent, and then it will be downloaded after a while. Updates carried out by built-in manager Some built in updating program may have settings, which allow you to customize when you want to check and download for OTA updates. Your settings may be set to check updates when device is turned on, twice per day, daily, weekly, monthly or even manually. If some devices have different settings then they may receive the updates at different time. Updates carried out by producer In this case the updates are carried by producer of firmware, in this case google. As already mentioned you may not be able to receive information that new update is available, because for e.g. dead battery, no signal, etc. The updates are tend to be made when the user wont use his phone, so it do not stop user from doing whatever he/she is doing at the moment, so the update may be done at night. Hardware difference between two the same phone models (NOTE: this point may not be valid for some devices, including yours, as some devices may be exactly the same in first and its final release) Sometimes even the same model of device may be a little bit different. For example at beginning xbox 360 did not had HDMI output, but after a while it was added and this probably required some other software to be made as well. Even that both types of xbox are different the model name is still the same. This make some devices with the same model name not be actually be the same inside. There is one major difference between eg. windows 10 64 bit, and android. The difference is that the 64 bit version of windows will run on CPU which support long mode (64 bit mode) and instruction set in it will be the same in AMD and Intel. The problem with android is that different devices may have different processors with different instruction set, and this causes that phones may even require totally different code. This is causing that the updates for different devices may come in different times. For example of this could be if you would have few WiFi cards. Lets say that you installed driver for one of them. There is very likely possibility that other cards wont run with this driver, so you would need to install different driver, which will definitely have different code. Now if the producer of this WiFi cards will find bug in all of those drivers, it is only possible to fix it one by one, or have lots of people working at the same time on different versions. However even if multiple people are working on multiple files at the same time, one may finish fix earlier than the other. In this case the update will be released quicker than for the other one. Note that the producer could also wait for every version of code to be fixed then make update on all devices at the same time, but updating bugs even on one device decreases amount of people who would be vulnerable for this bug. Also note that the drivers in windows are installed by you, most likely using .exe installers. In android all of those drivers are built-in, and as I mentioned before if you need different version of driver for different phones then you will spend some time on fixing all those drivers. I guess that the way google works with the update is that they are updating phones as fast as possible after they got fix for it. Also you mentioned that even if you click manually 'check for update' button, your device says that 'system is up to date'. This may be caused because of unavailability of updating service, which is really similar to updates carried out by producer. The question is about staggered roll outs for the same device. There is 100% the same hardware in all this devices, still Google decides to not update them all at once. @Josef I have updated my answer to fit the topic. Thank you for informing me that I misread the question, as I did not noticed it
21,992
https://vi.stackexchange.com/questions/17755
StackExchange
Open Web
CC-By-SA
2,018
Stack Exchange
3N4N, A S, D. Ben Knoble, Hotschke, https://vi.stackexchange.com/users/10604, https://vi.stackexchange.com/users/1065, https://vi.stackexchange.com/users/1292, https://vi.stackexchange.com/users/16280, https://vi.stackexchange.com/users/5232, leeand00
English
Spoken
422
767
Equivalent to tmux CTRL+B z in vim? In tmux if you have alot of panes open, you can press CTRL+B, z to zoom into that terminal pane. Is there a way to do the same thing in vim, to zoom into / out of the selected pane? AFAIK, there are some plugins that simulate this, but nothing native to vim that i can think of. You could try tabedit % as an approximation. One of the plugins is zoomwin which remaps ctrl-w o which IMHO is a good choice. However, I would recommend to use the suggestion of @D.BenKnoble (one less plugin and works everywhere). I agree that :tabe % is not as short as ctrl-w o. At least you can close(minimize) with ctrl-w c since it is the only window in this tab. Just for completeness: since tabs in vim are different to tabs in gui apps, I'd recommend for those who are not familar with this to read https://stackoverflow.com/a/103590/1057593. I use nnoremap <C-w>t :tabsplit for zooming in and <c-w>q for zooming out, or zooming in/out experience I should say. https://redd.it/979lv2 @AS If you want to post that as the answer I think it's great! @leeand00, Done. And agreed, it's very handy, indeed. I use ctrl-w | if my screen is split vertically or ctrl-w _ if split horizontally to zoom in. To get back, I use ctrl-w =. A nice way to do this is with :tab split This will open the current buffer in a new tab where it is "zoomed". When you are done use :q to close the tab and you are back to the previous window layout. All the credits go to reddit user tLaw101: function! WinZoomToggle() abort if ! exists('w:WinZoomIsZoomed') let w:WinZoomIsZoomed = 0 endif if w:WinZoomIsZoomed == 0 let w:WinZoomOldWidth = winwidth(0) let w:WinZoomOldHeight = winheight(0) wincmd _ wincmd | let w:WinZoomIsZoomed = 1 elseif w:WinZoomIsZoomed == 1 execute "resize " . w:WinZoomOldHeight execute "vertical resize " . w:WinZoomOldWidth let w:WinZoomIsZoomed = 0 endif endfunction nnoremap <leader>wz :call WinZoomToggle()<CR> that's isn't what I was talking about...I was talking about the :tabedit % and :tabclose answer is much better than that one, as there isn't ready anything to setup apart from maybe a keymap, it's on that page if you keep reading a bit further. It may be much better but it's not similar in any way to tmux's <C-b>z :). While the function from the original post indeed replicates it. Oh I understand, sorry AS I asked this question such a long time ago...
1,708
https://stackoverflow.com/questions/44158279
StackExchange
Open Web
CC-By-SA
2,017
Stack Exchange
English
Spoken
94
158
price area, on product page, is not updating after options were updated I have added a seperate price block to the product page <block type="catalog/product_price" name="catalog_product_price" template='catalog/product/price.phtml' /> For some reason, when I updated the product options, from drop down, the price is not being adjusted, but price does change in the original price area. Below is a screenshot of the area on the page http://prntscr.com/fbj6fe The problem was due to the page having another price box above the price box that I have added. After removing very first price box everything worked fine.
42,865
https://stackoverflow.com/questions/22591231
StackExchange
Open Web
CC-By-SA
2,014
Stack Exchange
Kirti Thorat, Richard Peck, https://stackoverflow.com/users/1012097, https://stackoverflow.com/users/1143732, https://stackoverflow.com/users/2557352, user2557352
English
Spoken
373
732
Getting NoMethodError in Statuses#show i'm building a social media website with Ruby on Rails and i'm following instructions from teamtreehouse.com . Every time i make a new status or go to the index page i get this message undefined method `full_name' for nil:NilClass <p> <strong>Name:</strong> <%= @status.user.full_name %> </p> I coded my pages to show the full name with this <%= @status.user.full_name %> and <%= status.user.full_name %> for the index page. I have included all of these snippets of code into my project as well status.rb class Status < ActiveRecord::Base attr_accessible :content, :user_id belongs_to :user end user.rb class User < ActiveRecord::Base # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable # Setup accessible (or protected) attributes for your model attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name, :profile_name # attr_accessible :title, :body def full_name first_name + " " + last_name end end I've tried using rake db:reset and rake db:migrate but nothing seems to solve the error problem. Thank you for your help! Make sure that the status object you are looking at has an associated user. Looks like it doesn't. Check in rails console, if the particular status record has user_id= nil As per the error, undefined method `full_name' for nil:NilClass which means that @status.user = nil i.e., the particular status instance that you are looking at(@status) doesn't have an associated user record. You can verify it by going to rails console Status.find(pass_the_id) ## pass the id of @status instance You will notice that user_id is nil for that record. Set the value to an existing user_id and try again. Note: you might need to take a deeper look at how you are storing a status in your application. I suppose you are missing to store user_id attribute there Looks like you'd need to include has_many :statuses in the User model You may also wish to use the .delegate() method: class Status < ActiveRecord::Base attr_accessible :content, :user_id belongs_to :user delegate :full_name, to :user, prefix: :author end This should allow you to call @status.author_full_name Just added that in but still getting the same error message Show us your schema. Does it raise the error if you call an actual attribute (first_name) etc?
7,951
https://war.wikipedia.org/wiki/Odynerus%20simillimus
Wikipedia
Open Web
CC-By-SA
2,023
Odynerus simillimus
https://war.wikipedia.org/w/index.php?title=Odynerus simillimus&action=history
Waray
Spoken
35
67
An Odynerus simillimus in uska species han Hymenoptera nga ginhulagway ni Morawitz hadton 1867. An Odynerus simillimus in nahilalakip ha genus nga Odynerus, ngan familia nga Eumenidae. Waray hini subspecies nga nakalista. Mga kasarigan Odynerus
45,695
https://en.wikipedia.org/wiki/Taghbalte
Wikipedia
Open Web
CC-By-SA
2,023
Taghbalte
https://en.wikipedia.org/w/index.php?title=Taghbalte&action=history
English
Spoken
90
199
Taghbalte (Arabic: تغبالت, Taḡbālt; Tamazight: ⵜⴰⵖⴱⴰⵍⵜ) is a rural commune in the province of Zagora, in the region of Drâa-Tafilalet, in Morocco. It is located at around . The total population of Taghbalte according to the 2004 census was about 8,867 people. Local institutions The weekly outdoor market (Souk) is held every Monday in the center of the town. Neighboring municipalities 1. Tazzarine 2. Ait Boudaoud 3. N'kob 4. Ait Ouallal ( Ait Ouzzine) See also List of municipalities, communes, and arrondissements of Morocco References Populated places in Zagora Province
17,075
https://id.wikipedia.org/wiki/Kereta%20Beijing-Tongliao
Wikipedia
Open Web
CC-By-SA
2,023
Kereta Beijing-Tongliao
https://id.wikipedia.org/w/index.php?title=Kereta Beijing-Tongliao&action=history
Indonesian
Spoken
79
177
Kereta Beijing-Tongliao atau Jalur kereta Jingtong (), sering disebut juga Shahe–Tongliao atau Kereta Shatong, adalah kereta api di Tiongkok Utara antara Beijing dan Tongliao di Daerah Otonom Mongolia Dalam. Rel kereta api sepanjang 804 km ini membentang dari barat laut Beijing melalui Provinsi Hebei menuju tenggara Mongolia Dalam. Jalur ini dibangun antara 1972 hingga 1977 dan mulai beroperasi pada 1980. Kota-kota besar dan county yang dilintasi rute ini antara lain Beijing, Luanping, Longhua, Chifeng dan Tongliao. Referensi Kereta api
42,957
https://ru.wikipedia.org/wiki/Cassida%20parvula
Wikipedia
Open Web
CC-By-SA
2,023
Cassida parvula
https://ru.wikipedia.org/w/index.php?title=Cassida parvula&action=history
Russian
Spoken
58
206
Cassida parvula — жук подсемейства щитовок из семейства листоедов. Распространение Встречается в Армении, Болгарии, Румынии, степи России, Средней Азии, Монголии и на северо-западе Китая. Экология и местообитания Кормовые растения — маревые (Chenopodiaceae): лебеда стреловидная (Atriplex nitens), лебеда прибрежная (Atriplex littoralis), кокпек (Atriplex cana) и Suaeda confusa. Ссылки Wydział Nauk Biologicznych Примечания Щитоноски (род) Животные, описанные в 1854 году
40,352
https://kk.wikipedia.org/wiki/%D3%98%D0%B6%D0%B5%D1%82%D0%BA%D0%B5%20%D0%B6%D0%B0%D1%80%D0%B0%D1%83
Wikipedia
Open Web
CC-By-SA
2,023
Әжетке жарау
https://kk.wikipedia.org/w/index.php?title=Әжетке жарау&action=history
Kazakh
Spoken
150
671
Әжетке жарау - баланың қолқабыс етуге, кішігірім шаруаға жұмсауға жарап қалған шағы. Әдетте қазақ отбасында баланы 6 жасынан бастап қолға су құю, қозы-лақ қайыру, бесік тербету сияқты ұсақ-түйек жұмысқа баули бастайды. Баланың көмек беріп, қолғабыс тигізуі әжетке жарап қалғандығы болып саналады. Сондай-ақ, бала ғана емес, ересектер арасындағы қарым-қатынаста да бір-біріне септігі, жәрдемі тиген жағдайда бір әжетке жарадың де¬ген этикет арқылы ризашылығын білдіреді. Қазақы ортада категориялық сипаты бар бұл ұғым көбіне ұл балаларға қатысты айтыла отырып, дәстүрлі сенім-нанымға бай¬ланысты туындайтын ғұрыптарда көрініс береді. Атап айтсақ, көшпелі тірліктің қым-қуат қарекетімен кошіп-қону, жаугершілікте босу кезінде үйде, ауылда ересек ер адамдар болмаса ұл баланы еркек кіндікті ретінде «мал бауыздатқан»: ұл баланың қолына пышақ ұстатып әйел адам оның ту сыртынан қабаттай ұстап, бауыздау қанын шығарған. Ұл баланың әжетке жарап, елін қорғауы қауымның мүддесін қорғайтындығын ескере отырып жаугершілікте, ашаршылық кезендерінде ұл балаларды сақтап қалғандығы ауыз әдебиеті мен аңыздарда молынан ұшырасады . Дереккөздер Мәдениет Терминология Лексика Этнография
45,851
https://en.wikipedia.org/wiki/Orville%20Jenkins
Wikipedia
Open Web
CC-By-SA
2,023
Orville Jenkins
https://en.wikipedia.org/w/index.php?title=Orville Jenkins&action=history
English
Spoken
392
553
Orville Wesley Jenkins (April 29, 1913 – February 5, 2007) was an American minister and emeritus general superintendent in the Church of the Nazarene. Jenkins was born in Bosque County, Texas in 1913. He was the first child born to Daniel Wesley Jenkins and Eva (Caldwell) Jenkins. He came to know Jesus as his savior in a small Nazarene church in Corcoran, California in 1935. He soon became a part of a Church of the Nazarene in Porterville, California and two years later was sanctified in that same church and called to preach. It was also in this same church he met and later married Louise Cantrell. Jenkins studied at Texas Tech University in Lubbock and graduated from Pasadena College (now Point Loma Nazarene University). He pursued graduate studies at Nazarene Theological Seminary in Kansas City and in 1957 received an honorary doctoral degree while a trustee of Bethany Nazarene College (now Southern Nazarene University). Jenkins pastored several churches in his life of ministry, including Kansas City First Church of the Nazarene. He later served as superintendent of the West Texas and Kansas City districts before becoming executive secretary of the Department of Home Missions for the denomination. Jenkins was elected general superintendent in 1968 and served as a member of the Board of General Superintendents until 1985. In a letter written upon his retirement from the Board of General Superintendents, Jenkins expressed love for the church he served and his hope for its future: "I love our church and am jealous for its preservation and its future. I believe that together, under God's anointing and great presence among us, we can have great revivals everywhere and in every land, and I believe we can be true to our God-given assignment of preaching, living, and leading millions of others into the Spirit-filled, wholly sanctified life." Jenkins is preceded in death by his wife, M. Louise Jenkins, who died in May 2004. Jenkins leaves behind a legacy in the Church of the Nazarene. His son, Orville W. Jenkins, Jr., serves as the superintendent of the North Florida District and son-in-law John Calhoun is superintendent of the Northern California District. Also, son-in-law David Hubbs is pastor of worship and music at College Church of the Nazarene in Olathe, Kansas. References 1913 births 2007 deaths American Nazarene ministers Nazarene General Superintendents People from Porterville, California
16,060
https://ru.stackoverflow.com/questions/1113014
StackExchange
Open Web
CC-By-SA
2,020
Stack Exchange
MaxU - stand with Ukraine, https://ru.stackoverflow.com/users/1365, https://ru.stackoverflow.com/users/211923, insolor
Russian
Spoken
112
286
Почему код возвращает None? Мне нужно чтобы код возвращал значение переменной value, но в итоге возвращает None. Почему? def count(arr, value=0): if len(arr) == 0: return value value += 1 del arr[0] count(arr, value) a = [1, 2, 3, 4, 5] print(count(a)) Потому что функция ничего не возвращает, если условие в первом if не выполняется (нет return для этого случая) для данной функции достаточно одного параметра - arr: def count(arr): if len(arr) == 0: return 0; return 1 + count(arr[1:]) надо протащить последний ретурн до первого вызова def count(arr, value=0): if len(arr) == 0: return value value += 1 del arr[0] return count(arr, value) a = [1, 2, 3, 4, 5] print(count(a))
30,284
https://ceb.wikipedia.org/wiki/%E1%B8%A8aqq%C4%AByeh
Wikipedia
Open Web
CC-By-SA
2,023
Ḩaqqīyeh
https://ceb.wikipedia.org/w/index.php?title=Ḩaqqīyeh&action=history
Cebuano
Spoken
158
340
Lungsod ang Ḩaqqīyeh (Pinulongang Persiyano: حقیه) sa Iran. Nahimutang ni sa lalawigan sa Ostān-e Khorāsān-e Raẕavī, sa amihanan-sidlakang bahin sa nasod, km sa sidlakan sa Tehrān ang ulohan sa nasod. metros ibabaw sa dagat kahaboga ang nahimutangan sa Ḩaqqīyeh, ug adunay ka molupyo. Ang yuta palibot sa Ḩaqqīyeh patag. Kinahabogang dapit sa palibot ang Kūh-e Būzhān, ka metros ni kahaboga ibabaw sa dagat, km sa amihanan-sidlakan sa Ḩaqqīyeh. Dunay mga ka tawo kada kilometro kwadrado sa palibot sa Ḩaqqīyeh medyo hilabihan populasyon. Ang kinadul-ang mas dakong lungsod mao ang Nīshābūr, km sa amihanan sa Ḩaqqīyeh. Hapit nalukop sa [[kalibonan ang palibot sa Ḩaqqīyeh. Ang klima bugnaw nga ugahon. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Hulyo, sa  °C, ug ang kinabugnawan Enero, sa  °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Marso, sa milimetro nga ulan, ug ang kinaugahan Septiyembre, sa milimetro. Saysay Ang mga gi basihan niini Mga lungsod sa Ostān-e Khorāsān-e Raẕavī
18,863
https://superuser.com/questions/1439986
StackExchange
Open Web
CC-By-SA
2,019
Stack Exchange
https://superuser.com/users/754049, jimmy5
English
Spoken
307
409
PC won't turn on and the NIC LED flickers for 50 seconds? So i have had this issue for a while now(mostly after the last cleanup perhaps), but previously it did turn on after just sitting behind the power cord for 5 minutes or so, but now it won't even turn on after 20+ minutes etc... And when it has sat without any power for a while, the NIC LED starts to flicker(after given the first power again) with identical noise coming out from the Power-supply - and when the PSU noise stops, the LED will also turn itself fully on and stops flickering... So what could be the issue here? I don't see any damaged capacitors on the motherboard because they are all just smooth and flat from the top, not unlike some old ones that had those 4 triangles on top... I might also try to listen for the noise from the open side of the PC, but i am pretty sure that it only comes out from the behind, from the PSU... (i also tried to bypass the power switch by connecting the 2 pins together and also replaced the cr2032 battery(old one was like 1.35-1.7V?), but it still won't turn itself on...) well, the same exact flickering and noise is happening with a replacement motherboard, so maybe it's the Psu's fault after all? or the CPU? Well, it seems like when any Leds are flickering on the motherboard and the PSU makes the same exact noise(in sync), then it's probably the PSU's fault, because a replacement motherboard did the same exact thing until i plugged in a new Power-supply... And the weirdest thing is that somekind of square/digital PSU tester showed that all voltages are fine on every output and it even turned on an old HDD with the green+black wire jumper trick...
29,757