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://zh.wikipedia.org/wiki/%E5%85%8B%E6%8B%89%E6%96%AF%E5%B0%BC%E4%BA%9E%E7%88%BE%20%28%E6%B2%83%E7%88%BE%E6%98%8C%E6%96%AF%E5%85%8B%E5%8D%80%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
克拉斯尼亞爾 (沃爾昌斯克區)
|
https://zh.wikipedia.org/w/index.php?title=克拉斯尼亞爾 (沃爾昌斯克區)&action=history
|
Chinese
|
Spoken
| 11
| 130
|
克拉斯尼-亞爾()是位於烏克蘭東部的村莊,由哈爾科夫州丘胡伊夫区的負責管轄。該村始建於1795年,面積0.178平方公里,海拔高度196米,2001年人口25。
參考資料
Красний Яр
Погода в селі Красний Яр
哈爾科夫州村落
丘胡伊夫區村落
| 42,235
|
https://stackoverflow.com/questions/811294
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,009
|
Stack Exchange
|
Chris Johnston, Greg Bond, Mykroft, Tobias Reich, https://stackoverflow.com/users/1565634, https://stackoverflow.com/users/1565635, https://stackoverflow.com/users/1565669, https://stackoverflow.com/users/1565687, https://stackoverflow.com/users/2191, https://stackoverflow.com/users/99322, saurabh kulkarni, user99322
|
Norwegian Nynorsk
|
Spoken
| 341
| 725
|
How do I get the user defined object type given the class name?
If I have the class name of the user defined object as a string how do I use it in a generic function as Type of the object ?
SomeGenericFunction(objectID);
We're going to need some more information I think. Could you write some sample code of what you're trying to do even if it doesn't work?
If you have a string, then the first thing to do is to use Type.GetType(string), or (preferably) Assembly.GetType(string) to get the Type instance. From there, you need to use reflection:
Type type = someAssembly.GetType(typeName);
typeof(TypeWithTheMethod).GetMethod("SomeGenericFunction")
.MakeGenericMethod(type).Invoke({target}, new object[] {objectID});
where {target} is the instance for instance methods, and null for static methods.
For example:
using System;
namespace SomeNamespace {
class Foo { }
}
static class Program {
static void Main() {
string typeName = "SomeNamespace.Foo";
int id = 123;
Type type = typeof(Program).Assembly.GetType(typeName);
object obj = typeof(Program).GetMethod("SomeGenericFunction")
.MakeGenericMethod(type).Invoke(
null, new object[] { id });
Console.WriteLine(obj);
}
public static T SomeGenericFunction<T>(int id) where T : new() {
Console.WriteLine("Find {0} id = {1}", typeof(T).Name, id);
return new T();
}
}
Look at the System.Type.GetType() methods - provide the fully qualified type name and you get the corresponding Type object back. You can then do something like this:
namespace GenericBind {
class Program {
static void Main(string[] args) {
Type t = Type.GetType("GenericBind.B");
MethodInfo genericMethod = typeof(Program).GetMethod("Method");
MethodInfo constructedMethod = genericMethod.MakeGenericMethod(t);
Console.WriteLine((string)constructedMethod.Invoke(null, new object[] {new B() }));
Console.ReadKey();
}
public static string Method<T>(T obj) {
return obj.ToString();
}
}
public class B {
public override string ToString() {
return "Generic method called on " + GetType().ToString();
}
}
}
private class TestClass : BaseClass {
public TestClass( long id ) : base( id )
{
}
}
namespace main
{
public MyClass{
private string className;
private long classID;
//constructor
MyClass(BaseClass obj1)
{
className = obj1.GetType().FullName;
classID = obj1.ID;
}
public void FindObject()
{
//find from database calling function
// need to pass in T in the following function given classname.
FindByID(classID)
}
}
}
| 42,353
|
https://sv.wikipedia.org/wiki/Astronaut%20%28musikalbum%20av%20Salem%20Al%20Fakir%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Astronaut (musikalbum av Salem Al Fakir)
|
https://sv.wikipedia.org/w/index.php?title=Astronaut (musikalbum av Salem Al Fakir)&action=history
|
Swedish
|
Spoken
| 118
| 279
|
Astronaut är Salem Al Fakirs andra album, utgivet den 18 mars 2009 på EMI. På albumet återfinns singlarna Astronaut och den lite rockigare låten Roxy. Albumet fick överlag positiv kritik i Sverige med ett medelbetyg på 3,4/5 av webbplatsen Kritiker.se.
Låtlista
Alla låtar skrivna av Salem Al Fakir.
"Cold Shower" - 3:37
"Astronaut" - 3:09
"Now's The Time" - 3:28
"It's Only You (Part II)" - 3:30
"Roxy" - 4:04
"Bluest Eyes" - 3:42
"Twelve Fingers" - 3:37
"Purple Lady" - 3:14
"Mirror" - 3:32
"One of the Others" 3:57
"Black Sun Black Moon (Demo)" - 3:04
Referenser
Externa länkar
Svenska tidningars recensioner av albumet
Musikalbum 2009
Album utgivna på EMI Music Sweden
Album av Salem Al Fakir
| 11,211
|
Ci5F4gIso30_1
|
Youtube-Commons
|
Open Web
|
CC-By
| null |
Earn A Living Day Trading Webinar
|
None
|
English
|
Spoken
| 10,058
| 11,370
|
Let me know if you can hear me and see the slide. We're going to get going here. Excellent Welcome everyone. Nice to see everyone here today Thank you for coming Can you see the arrow? Great Well, welcome today today. We're going to talk about how you can earn a living day trading some of you Might be day trading right now. Some of you might be considering Getting into day trading really when you're day trading. This is an investing Excuse me. It's about I call it chunking it out. You chunk it chunk it chunk it, okay? So you're going into the market and you're taking money in quick moves couple of minutes you could say an hour Some trades you can hold longer But usually we're looking to get in and out very quick between 930 and 10 a.m. Eastern time, okay? And Kathy's writing in the room if anyone has any questions you can just write in the room And I want to answer the question as we go along today. I Will say the question out now, okay? Anyways, you can watch me on Fox Business Fox news I also appear in CBS and some other channels too. I talk about the market And if you have any questions after we're done today, you can always reach out email me at Melissa at the stockswish.com Excuse me or call me at 9 to 9 30 200 gap You can follow me on Twitter Facebook YouTube or Skype. So again, how many people here are trading? Are you actively trading and if you are do you know how to trade? I'm never amazed how many people actually trade the market or risk money and don't know what to do One of the things that's very very important is you must have a strategy if you want to make money in the market now You say well, what do you mean a strategy? I mean Something that you consistently do that you replicate which is the reason that you take the trade over and over and over again And it has to be the same thing meaning you have to be consistent. Okay, so you say well Some days I'm buying support some days I'm shorting resistance. Well, that really is not a strategy That's number one and number two. That's not doing the same thing consistently. Okay Consistency means boom boom boom boom boom Monday Tuesday Wednesday Thursday Friday, and I even mean consistently in the time of the day time of the day time of the day Strategy the amount of risk you're taking dollars and cents. Okay All of that is very important to be successful So what do I focus on I focus on gaps gaps happen every day in the market Now what is a gap and this is a very brief explanation for those of you don't know it and have never heard of a gap And this is review if you have a gap is a difference between the close and the open So the close of this day Whatever this is at four o'clock eastern time that market closes every day Then it opens the next morning at 9 30 a.m. So what happened here? We closed at one place and open at a different price. We closed here open down so based on that. Okay Closing here opening down here There's a gap down Okay, so there's a gap down in the market This was the spy that happened from Friday to Monday. There are gap ups. There are gap downs. Okay So what I look to do is I look every morning in the pre market And I'm trying to find the gap the gap the one gap that I want to play now there might be two Okay, sometimes we do three trades or three ticker symbols, but that's a lot I'm usually focused on one or two and I'm usually focused on that period of time between 9 30 and 10 I Get this question a lot before we get into some more charts here Can I do this if I am new if I've never traded before I get that question all the time the answer is yes You do not have to be proficient in day trading or have experience in order to be successful doing this In fact, I think it's more beneficial Maybe to some people if you've never traded before because if you come and learn what I know right out of the game You're gonna focus on the information that I'm telling you instead of actually focusing on things that don't work a lot of traders have bad Habits they have learned things that don't work and will never work and they've lost money And they have a hard time letting go of those behaviors those patterns and not only that those belief systems Okay, so don't be afraid if you're new if you're new that's actually really a good thing. Okay, so Don't worry about that But getting back to what I was saying a strategy is very important very very very very very important It's important for you to make money. Okay, you have to be consistent. This isn't gambling You want to gamble you go to Atlantic City? Okay trading is something you have to take seriously And I'm not saying I'm not saying this is where you're gonna sit at your computer from 9 30 to 4 again We're looking at just trading the first half an hour first hour But serious means in the time that you're doing it you're serious Whether it's for five minutes or five hours you gotta take it seriously. Okay, and again the consistency So we're gonna go over some trades or some recent trades But 2019 has been a very very good year for my live trading room I mean, I'm just calling great trade after great trade after great trade And so I tend to look at many many things in the morning And then I will pick out the good things to call it in the live trading room in the room I also have an options letter which I will go over one of those trades in here now as well But if you want to join the live trading room, you must take my class Okay, learn the system learn the strategy and then you take the live trades that I call So again, how do you make money in the market? What do you need? Why do you need to be successful? You need a strategy that has a high-win ratio. You need a mentor someone like me that calls the trades line Excuse me and live time so you can take them. Okay, and number three you also need motivation Motivation to do what to be successful that you want to learn it that you want to do it that you want to take it Successfully that you want the money. Well, everyone says well, I want the money. I want the money of course I want the money. Yeah, but what are you willing to do to get that money? Are you willing to spend a whole weekend studying and in a class like mine? Are you willing to spend, you know, a Friday night going over in your charts? Are you willing to go through the emotional process of of of just learning something new? You know a lot of the people that I teach, you know are over the age of 40 Okay, sometimes people say well, I don't learn something new, you know I don't feel like I should have to it is like going back to school When you are learning something that you don't understand and you never did before Okay, and even if you train in the past gaps or the way that I look at gaps is new to many many many people Okay, because no one looks at gaps the way that I do a lot of people talk about gap fills that stuff doesn't work Okay, so you have to open up your mind and be motivated enough to do it to really learn. Okay Any questions here so far? State training is a great job. It's a great job because you can be anywhere in the world and do it Okay, all you need is a computer and to do it from home and you will be set. All right Open up a trading account get your live charts going and again Learn a system like mine and you can be anywhere in the world. You don't have to live in New York You don't have to go down to Wall Street to trade. Okay, so times are very different right now We live in a world of electronic trading So if you can take the time to black out in your schedule between 9 30 and 10 a.m To trade okay, that is the time that you'd want to be able to do this system my system The trades go very quickly. They set up fast Which the benefit is also you can get out quickly too and the nice thing about day trading is you can work from home As I already said now some people want to do this on the side for extra money Some people want to do it for a career either way. I do think it's important to know your goal I do think it's important to know what your Reason is for doing this. How much money do you want to make a day? How much money do you want to make a week? How much money do you want to make a year if you really want to do this for a career? And you need you know what that amount of money is that you need to support yourself if that is your job Then you have to start from where at now and how are you going to get to that place? Okay? You set your goals. So it's all really about focus keeping the focus in sight of what you want to achieve So for me, I'm very focused each morning on reading the gaps and what am I looking for? I'm looking for institutional money and price patterns in gaps And if you look at that and you focus on that you really don't need to do anything else Okay, it is really literally about looking for institutional buying and selling So when I'm looking for the selling we're shorting. Okay when we're looking for the buying we're going long Now I do tend to for those of you that aren't familiar with me I do tend to go to the short side first because I think that it's fun to short Stocks tend to drop much much quicker and faster than they do rally. So I prefer to short Okay, but that's a personal preference. You can make money going long and there are times we go long in the room. All right But anyways, I read price Don't trade based on news. I read price action and I read price action in gaps So I see movements ahead of time in charts that gap and it's called price forecasting now What is price forecasting? It's a use of historic data to determine the direction of future trends So I'm usually not trading for the most part new issues something like Uber that just came out I'm really not trading something like that doesn't have enough data for me. Okay. I want to see a history in something I want to see what institutions are buying with it I want to see a history in a chart when I'm doing it So again, you have to be able to set up day charts and that's where I'm looking at the gaps I'm seeing where the institutions are buying or selling when I say institutions. I mean big banks. I mean hedge funds I mean, you know big big traders Okay, that's what I mean people that could actually move a stock or move the market like when they get in you can see it Like like you can't see individual trains the same way and many stocks that we trade that a millions and millions of shares Okay, if you took a trade in Apple, you're not gonna move it, but a bank might okay So you see here, that's the difference and that's what I'm looking at and I'm looking at it in the gap okay So this is what I teach people and it's very very important I believe this is my belief system and it was ever since I started trading I took one class when I started out trading Before I decided to develop my own system education is important now I didn't learn how to make money in that class, but I did learn a basic foundation for technical analysis And that helped me to develop the gap system that I have right now So that was important because if I hadn't had that initial foundation, I would have been lost in my trading When you when you see news events and things that happen sometimes they support the price action But for the most part usually what happens are the reaction It's happening in the stock of the market is happening before you hear what the news is Okay, so that's one of the reasons I think that price and technical analysis is so much more important than fun eventals or news Or any of these other things okay, and again education is an important if you want to make money and succeed Not if you want to just do this for gambling because the money will go away from you very quickly if you just start to take potshots and trades So you have to use your head Focus on why you're doing this and decide what you want and like I said, I'm totally serious about this where I wouldn't say okay It's May 15 Four and a half months into the year How much money do you want to make in the market in 2019? Now let's just say you haven't started trading yet so four and a half months left in the year got plenty of time and What if you are trading already this year and you've been losing money in the first four and a half months of the year well You got to let that go you have to stop thinking well. I got to make it up. I got to make it back I got to make it back. I got to make it back No, you start from the moment if you come to me and you learn from me You take my class that is day one for you and you move forward with whatever your goal is you say I want to make a hundred grand this year. It's May 15th between now and December 31st. That's what I want to make Melissa I said, okay fine. Let's break it down. Let's break down the number of months. Let's break it down by week Let's break it down by day. Let's break it down to the number of trades You see how you do it and that is how you tackle a goal And I think so many people get caught up where they lose sight of what the real goal is Or they don't even think about what that is or even imagine or even know what it is And a lot of people are chasing their tail in the market people are chasing their tail Not just back if you've been losing since January doing some system where strategy doesn't work people Well think about losses that they had in 2018 2017 2016 I have talked to people that have been trading in the market for longer than I'm alive to talk about loss And they talk about all the losses have ever had of the market since day one That is insane and if you're trying to make it back You're gonna be trying to make it back forever. Okay You have to say today is the first day of the rest of my trading life and that attitude and getting back to one two three Three one is the strategy to as a mentor, which is me and three is motivation That's three That's where the hard work comes because a lot of people have a hard time letting go Letting go of the past the past is over and there's nothing you could do about it And you're never gonna be able to go back to tomorrow or any stupid trades that you did before Just move forward with new goals and new aspirations be motivated to do it And be motivated to achieve and those results that you really want But part of that is not thinking about the past. Okay any questions? Very good. So I have a system. It's a golden gap 26 point rating system The system tells you what stock to look for each day and again, how long does it take to learn it? I teach my class at a weekend the classroom May is this weekend Saturday and Sunday You can learn the class in two days You learn the system in two days and you can start trading it doesn't have to take that long You just got to know what to look for and again, we're focused on the morning trading It's rare that I will ever keep the room the trading room open till noon sometimes But I don't ever have the room open till four o'clock We're usually in and out in the first half an hour an hour And so I'm looking for a setup to happen by 10 a.m. So like if I don't get one then we won't do anything You got to have the good ones. I'm looking for a good risk to reward. We don't do penny stocks We don't do those stocks and aren't worth anything. We don't do stocks. I don't have any volume I'm looking for something that can have a big move on the day high Probability of the directional bias for the entire trading day, okay? And stocks that you know of companies that you know of things that you would recognize. Okay, that's important too Now I always get this question about the share size. It's really a function of how much you risk We're typically trying to get a buck move in something So for example, if you have 2,000 shares of something and you short it at $10 and it drops down to nine What would you make if it moved a dollar and in 2,000 shares you make two grand? But every time we take a trade the difference between the entry and the stop may vary So your your share quantity will vary depending on the entry and the stop And you don't know that until you get the gap rate the gap and the stock sets up So this is all happening in live time, which is one of the reasons why it is beneficial to be in the trading room Okay, so the consistency comes not in your share size per se, but in their dollars and cents risk But obviously the more you risk the more you can make okay And that's common sense, but you can't risk a lot of money unless guess what? You know what you're doing and that's common sense, too But there's always people out there that risk money and they don't know what they're doing now That's something that I never did. I honestly never risked a lot of money at the beginning I was you know started out very early on risking 150 dollars of trade And this was at the beginning and I was trying to create my own system and doing it doing it because I found that 150 bucks If I lost wasn't horrible, and if I had a decent trade I can make 300 400 bucks and when you think about it 400 dollars a day adds up, okay? So you do not have to risk an advance what I call an advanced trader risk Which is really ending over a thousand dollars if you can afford to and you feel confident in that You can Any questions here? Anyways, it's a process. It's a process you get up in the morning and then I go through my checklist So I see the gaps in the pre-market and I go through boom boom boom and I raid it using my system to determine if that's the stock I want to watch today today. We did Tiva and I'll go over that trade in a minute now This was again the spy. This was another trade back from again Monday. This is the bar from Monday This is a daily chart. I don't want to show you here an example before again into the day trades an option trade Now you can day trade options the difference is it's just a different way to do the trade This is a short essentially you're buying a putt and I called the putts now This was last week. I called this trade, but it was through through last Friday 285 expiring 510 so this was a good trade. I'm gonna go back and show you it was Tuesday the 7th Here I called the train and again You could have taken it and got immediately out or you could have taken it and stayed into the last day here or the Thursday or the Friday which was the tent it went poop and it dropped dropped like that so 285 I'm gonna show you that number was here, but you can make money even if it doesn't go through the strike How if it's going in your direction so if you took the train here in the Tuesday It was falling falling falling you would have made money even if you get out the first day Follow me, but if you held it you got paid a little bit more now This is an option trade But I'm showing you this because you can day trade options and the reason people sometimes do options as day trades is because you Don't have to worry about about having the margin so you could take a train in Monday get out in the Tuesday and so you don't have to worry about having the cost of the stock for the $285 and The other nice thing is to you can take bigger positions because of the cost So the cost in this 80 cents 80 contracts with the risk of this is an advanced risk $6,400 shown 330 beautiful profit now you had to risk $6,400 to make 20 grand in this but the return in investment was 313% this was holding it down through the drop not getting out the first day But even if you get out the first day, this was one turn around so usually what I'm doing a trade say for example If I'm risking a thousand. I'm looking to make a thousand. I'm risking two thousand. I'm looking to make two thousand So I'm usually looking to turn it over once okay But some of these trains some of the day trades some of the options trades some of the day trades We do even in the morning the first hour will turn over more than that Because some we've had a lot of volatility this market if we go back here This is the chart through Monday the market has been had an incredible amount of volatility And you've really had to know how to play it right to profit with this. Okay Anyways, I want to show you the beginner risk 640 bucks if you had bought a contracts risk $640 you could have made two grand That is fantastic people again one trade You could have done this one trade and made two thousand dollars last week and you didn't have to do anything else Many people are losing that are trading to make $2,000 in a week to them is a dream. Okay $2,000 times four two grand a week means you're making eight grand a month. This is one trade one Okay People think it is about Multiple multiple multiple multiple. I mean while I'm looking for a new trade each morning daily. I Don't go ballistic Doing it, you know 10 15 25 trades a day Many day traders are in and out in and out in and out in and out of stuff all the time you can make your whole week with one or two great trades and One trade a day is certainly enough sometimes we do too over busy. It's earnings season right now It's a busy period, but it's not necessary. It is about the strategy It is about the consistency is about hitting it and getting a good one right at the right price right at the right time Watching it taking it following it rating the gap Looking at the chart reading the price action seeing that this is going to drop and it did drop is a great read of the market Any questions here from anyone so far? Again, I see some new faces here. I mean, I don't know what people know what they don't Those of you that have never been to my webinar before don't be afraid to ask questions I don't know everyone's experience level You gotta ask me So I gave these two examples here so you could see the difference between advanced and Beginner now this here again is the market the daily chart here was the short that we did back on the 13th Which was Monday? This was an equity trade a day trade So there was the put from last week then this was the day trade here from the Monday Market fell Boom short it get the drop you could have shorted it here and held it even more You could have shorted it here and got the drop here these red bars are signifying the sell-off the weakness So again, how do you make money in the market? You take it at the right place into momentum Into the momentum the momentum here is down. You wouldn't want to go long this you would want to be shorting this You see how some people were buying this those people lost the market fell off a planet on Monday So this was the day trade Entry was 280 to 90 shares 2000 risk 1800 Then there was two exits first strap We had lowered the stop second drop and then it actually was a very good move Put the follow through then with this to but you could have split it up Or you could have just held the whole thing down and actually if you held the whole thing You could have got almost three bucks out of it, but decided to piecemeal in here Very very very nice move. This is an advanced risk So forty four hundred dollars on one trade risk was 1800 and this was very conservative to piecemeal out Now if you had a beginner risk risk is 180 Again 200 shares. That's it. You risk 180 bucks. You could have made four hundred forty dollars Again, four hundred dollars a day times five is two grand a week Four hundred dollars a day Monday Tuesday Wednesday Thursday Friday, okay? So you see how you can put together You know, you know a profitable week and then it becomes a profitable month. Okay, any questions? Everyone's so quiet here tonight. Anyways, this was another trade. This was Monday, too Which is funny because we did TV today as well Tiva drop we shorted it boom could have got out rally back could have taken more could have held it Boom, here's the move. So this was a beautiful move in Tiva and actually here You see the time of the day show between 9 30 and 10 take it get out now If you held this Tiva this actually continued further this ended up going all day broke 12 I think the low of the day was 1190 actually here. It is so in this case here We got out early, but if you held it you really got paid and again, that was Monday marker was falling, too So this again advanced risk 2019 hundred either way advanced risk one thousand nine hundred sixty You see here you short it. This isn't like some monster move now again This ended up going to 1190 which is crazy, but this one another 70 cents But anyways one quick boom out profit 1820 so you risk this and you're trying to make it and again if you want to get out quick You're in you're out. You're in you're out. See what it did. I'm gonna go back to this one minute chart You're in you're out. You're in you're out. You're in you're out That's what day trading is you chunk a chunk of chunk of chunk it and again once my goal is made I don't do anything else now There are people I know in the room that like to take lots and lots of trades even after I close out the room But I don't I don't think people should do that Now this here was a smaller risk Beginner $196 hundred 82 bucks even two hundred dollars a day is a thousand dollars a week and that's four grand a month And that's 48,000 dollars a year and most people are not making that day trading most people are losing It is about focus you take it get out take it get out What stop are you watching rate the gap look at it watch the entry see what it's doing read the price action Back to this here. Gary is saying this is great. That's why I have the beginner risk here So let's answer Gary's question. How many how much buying power Gary would you have needed Galahad can answer this He is a beginner risk. How much buying power would it been required to take 700 shares of Tiva? Galahad Gary you can answer that too, and this is for anybody that's new. It doesn't know you take the amount of share quantity times The stock price which in this case here for the point was 1282 Equals This back here was this was an advanced I'm giving you two choices. Some people do have the money to risk this Gary again I've been doing this for 11 years, but if you're brand brand brand new, you know, you may not But you will get to that point as you build your account up with the profits But anyways getting back to this Galahad. Did you want to answer the question? Are you there Galahad? So 700 times the cost of the stock. That's how you figure it out Am I talking to myself or is anyone there and there's something cloud margin? So this is a good This is actually a good question here because I'm gonna give you a margin lesson because since somebody brought it up and I get this question all the time because sometimes people think you need to have hundreds of thousands of dollars to trade you don't Galahad how much buying power do you need to short Tiva? 700 shares at a stock price with a short price of 1282 Galahad's gonna answer it because he's a beginner Galahad says eighty nine seventy four. Let's see if he's right. I'm gonna take my calculator out 12 82 times 700 is eighty nine seventy four. So Galahad's right now. Guess what? That is them. That is the buying power So that's the buying power. That's not the cash. So guess what if you have And at a brokerage account you use something called margin now you say, well, what do you mean? There's two types of trading accounts retail And prop Retail requires you to have twenty five thousand to trade at all and your margin will be four to one Prop okay is different most prop places give ten to one So and that with an opening balance of twenty five hundred So you would have ten to one times twenty five hundred twenty five thousand and buying power with a twenty five hundred account at a prop place So in that case you would have been able to take the straight So with twenty five hundred dollars in a prop account you would have used up almost nine thousand of the 25,000 and buying power and you would have been able to take this trade and you would have had two thousand five hundred dollars in real cash You would have risked a hundred ninety six stars in real cash You would have risked Approximately eighty nine hundred in the buying power margin And you would have exited the trade on the day in a few minutes before ten o'clock with a hundred ninety two dollars profit And then you would have closed out your account and minus commissions You would have had you know a little bit under twenty seven hundred when you woke up in the morning You see and that's how it works So you when you are trading when you're day trading you don't need the exact cost of the stock You don't need Hundreds of thousands of dollars every trader big trade or small traders use margin now that the place that you're trading is what I'm saying It could be a retail broker It could be a prop broker and that margin will be dependent on the cash that you had and their own requirements You can trade wherever you want you can go to any broker that you please Okay, that's totally totally up to you. So that's good questions Now I'm showing you this here. I'm just showing you the chart of this here this today We sorted the market and it stopped. So we're gonna talk about we're gonna talk about stops So when I take a trade I say boom here's the entry. Here's a stop now Why don't I put the stop in well the stop protects me? It's like the insurance say I risk 1800 dollars in a trade. I don't want to lose 5,000 if I risk 1800 then that's all I want to lose and that's it. So that's like the insurance Okay, so I use hard stops and that's what I teach people to do as well So anyways, this didn't work. So this was a loser today. Okay, so what happened this dropped fell rally back dropped failed stopped out Now I want to show you this here. There was news that came out the market rally flipped around So you see here if we hadn't gotten stopped It this 1800 our loss would have been way bigger So when you trade it is about risk to reward and that's why shops are important because one loss on the day Like say you had taken a beginner risk of 180 bucks Well, you can come back and make money on the day from 180 bucks But if you hadn't put in a stop in you would have had a very bad day. Okay, so I always use stops Once the trade stops out, then that's it and we look at something else I know a lot of traders are anti stop Well, I'm gonna give a little bit of room a little bit learn But part of risk to reward is also condensing your losses because not every trade works Not every trade works at all the idea of making money in the market It's not that a hundred percent of the trades that I call are gonna work No, some lose the idea making money in the market is having more trades win than lose And that is how you make money in the market, but that's why I condense my risk by using stops What's criteria? I rate the gap. That's what I do. That's the strategy. That's the system That's the two-day class and the weekend every time I get up in the morning I'm looking for the gap and I rate the gap the market gap down this morning Stock closed here the night before four o'clock boom gap down here and open here at 9 30 in the morning This was four o'clock yesterday. This is 9 30 the market gap down this morning Gapped down and rallied and flipped but we shorted it here and got stopped the criteria was my rating system That's what you learned from me in this case here It flipped and that's what we got stopped in the trade I didn't go back after it after we saw this movement here And then we ended up doing a second train in Tiva So actually Tiva was to plays this week Monday and Wednesday was Tiva, which is unusual But Tiva gap down again today to and I squished this here She could see how this followed through later in the day if you went to hold it But here's 9 30. Here's the open we shorted Tiva and then we got the drop So this was between 9 30 could have got out of 10 You could have held it into 10 30 into the first hour But I showed this here this trying to go lower and actually this was very weak But the market being very very strong Tiva didn't follow all the way through This was a beautiful move though. Why the stop was here. It was a very tiny tiny stop This is a 25 cent stop in Tiva. So we did the Tiva got stopped in the spy Tiva was a nice winner even though it was only 24 cents. It was a really nice move And there was two different ads in this if you wanted to do them again Gary's gonna say 16,000 shares, but you don't have to take 16,000 shares You don't have to take that at all. You take what you can afford. This is an advanced trade But either way 24 cents with a 25 cent risk You would have come back on the day and made money from the loss in the spy And that's what we did so I'm showing you a two examples here because it's important because you need to know that Stop is vital to your success and again if you're following me in the room I'm going to tell you where to put the stop and you got to kill it You have to have the stop there or you have to kill it at that number Because you will have days like today where the first trade is loses and the second trade is a winner And you want to make sure that you end the day positive So how do you do that? Condense your losses if something is not gonna follow through and fail you want to be out of it You kill it and put the stop in and you're out and then some days we look for other trades in this case here Tiva, I did have this in my watch list earlier. I saw this this morning. This was gapping down too Here's the clothes from last night. Here's the clothes and Tiva. Why did we watch it? It gap down rated? Well, here's the open boom sell-off So this was a short so to today two shorts Why not buy based on technicals? Why not buy the market? The market was not a buy today. I know it rally, but the market gap down today I short gap downs if they rape her my system and I go long gap ups if they rape her my system I would never go long a gap down under any circumstances. That's a no-no The fact of the market rally today means absolutely nothing at all So again stripped with the system There's nothing technically in the chart that would have told you to go long the market today Now you might be thinking news, but that's not technicals. The news was came out Whatever auto tariffs or whatever the things were I don't trade news. Okay market is still in enough trend That's true if you're in the market long term for your retirement accounts the market still holding the uptrend But we're day trading we have to look for a set criteria every day to make money and a move and I'm looking for it To be quick and I'm not trading news and I'm not trading fundamentals Okay, you couldn't be successful trading news. Anyways, Trump tweets something good the market rallies Trump tweets something bad the market falls who can predict that would be insane and by the way That's what many people have been contending with in the last two weeks You know the last two weeks if you haven't gotten these these gaps right of the market You've been getting killed Well, we did take a loss in this year But literally almost every trade that I've called in the last two weeks has worked day trades options everything I think two trades have failed and I've called. I don't know I've called a lot of options trades and a lot of day trades in two weeks since May 1st since all this tire Stuff has come out. I think there's been two losing trades And lot every other one is a winner and some were big winners like the market So you can't trade the news you wouldn't be able to predict what Trump's gonna tweet anyways So tomorrow morning we'll rate the gap. We'll see where we are see if the market follows through maybe the market gaps up But you can't tell that right now. You can't tell anything to the pre-market. Yeah, that's fine These are good questions We can look at the market tonight once I'm through this webinar here when I'm a couple more slides Well, I'll pull the market up. I highly doubt the market's gonna do anything. Oh, you know what Cisco now Let's look at it cuz I forgot about Cisco. I Am inch curious here. Hold on Cisco and earnings tonight. Let's let's bring it up. It's up. Well, now you're gonna see this live There it is. So this is a stock that this is a stock now I'm not gonna rate this now because it's 510. It's too early. This could be different tomorrow morning But Cisco is up There's a chart of Cisco So this is a gap up. I don't know what this is gonna do, but this is readable so I'll read it I'll rate it in the morning. I don't know where it's gonna be It could be higher could be lower show It's way too really to tell market trades at night and market trades in the morning So the market's probably up a little bit with Cisco Let's just see but then again tomorrow is Walmart. So that could that could affect the market too I have to look at what time Walmart is out Let's see where the market is here 183.09 That's actually it's not up that much looks like we closed at 180 303 and we're at 180 309 So that's not really that big of a deal. We're up six cents. Of course. This says 183 27 So it looks like looks like we're up a couple of little bit a few pennies here in the market With Cisco being up tonight, but tomorrow is Walmart So Walmart will gap tomorrow. I don't know where but it has earnings in the pre market So this will be a watch now. Will this affect the market? Maybe. Let's just take a look at where Walmart closed today here So Walmart is definitely a strong strong stock. I have no idea again what this does tomorrow Walmart has been trying to get up and above and beyond and through that area and have been struggling for almost a year I mean literally seriously huge gap up here and Walmart back Last summer and it just could never get any momentum going didn't really fall didn't really rally Look at this poor Walmart. Walmart needs to do something big tomorrow. What are it's up or down? Walmart needs to get off its butt and start trading. This has been trading in a range almost a year Look at that. I haven't looked at this chart in a while. So I'll be watching this tomorrow Getting back to what I was saying. Okay, so that's not so I get up in the morning I look for the gaps and I read them and then I'm focused on making money What's the stock set up and we look for the setups? I'm never getting anything in the pre market I don't read at night. I don't trade the push market. I do not trade the pre market. I'm getting ready I go through everything how it's showing a risk. What's the gap reading? What am I looking for? What's the numbers? What's the market doing? And that's what I'm looking at and I usually like to look at a couple of things two or three in case one doesn't set up Or in case we take one and it stops like today So usually if you look at I have all the year-to-date numbers on the in the video that was Kathy set out It's on the YouTube. I Will usually stop if I take one trade and I'm up like I'm not like trade trade trade trade like I'll take one trade And if I make my go for the day, I'm done But like if I take a trade and it doesn't work like the spy and we are down and I'm down one are and I said Well, there's something else good. I'll look for it and there was today There was a diva because you can very easily make money taking two things, but I prefer I prefer to do one thing And for the most part we do Anyways, why do people find day trading so hard? They're just not focused. They're just not Like I think the market actually that's a good example today So my bias in the morning today was the market would fall now it didn't but once I got stopped in the short I didn't flip around to go long it that would be a lack of clarity that would be a lack of focus You can't have a hundred percent conviction something is higher and lower. That's false You need a hundred percent conviction of a hundred percent conviction either works or it doesn't we do take stops But many of the trades that that we take work, but that is because I have the conviction I hold the conviction that helps me trade it helps me take risk If you want to get to the point where you're taking seven thousand shares You better darn well have conviction and you better know what you're doing Even if you have the money that doesn't guarantee a thing at all people say well if I had more money I could make a lot of money not necessarily You still have to know what to do You can you can have a hundred grand a trading account and lose it all so that that means nothing Someone could have two grand a trading account and turn it into a hundred All right So it has to do with the knowledge the knowledge is key. The system is key the knowledge and the conviction. Okay Anyways, I look to go in and just take money out It's not investing and you need to know that a lot of people that have some have problems I think with mentally when they're looking at charts I mean this isn't long-term investing or in and out in and out. I like that. It's fun I'm the faster the money comes the better to me Okay, but fast is fast sometimes. It's really really quick But if you're looking to do this again for a living or career set your goal If you need to make 250,000 dollars a year to support yourself and your family It's roughly 21,000 a month a little bit less. So how are you gonna? You can't oh major like oh my god That's how am I gonna get that? Well? Chunk it out when you break it down. Okay, you're like, all right fifty two hundred a week Then yeah, then you see it and this is also why you have to take more good trades than bad trades Because you can have a lost trade like today in the spine and still make money in the week You could have today in the few if you didn't do the second trade, but obviously I called it a word It was a good trade in Tiva So that's an average of a thousand bucks a day. That's totally doable Okay, and to hit those kind of numbers you're gonna be able to risk you need to be able to risk a thousand dollars Per train that's where you want to be because we're turning it over the one amount of we're risking Now if you are not familiar with margin accounts I suggest you call a broker discuss it meet down sit with them in person read about it online But all these trains are that except for that one put in the spy are done with margin So again, you don't need to have 500 grand in account or even 50 grand account to take these trades with the size It's margin 2500 to open an account with a prop place and for an options account You need a minimum of two thousand dollars and that's not a margin account But you needed a minimum of two thousand and you could have done that put you could have done that that that trade That I called in the spy last week again You could have risked six hundred forty dollars and you could have made two grand and you could have just done that with a simple options account With two thousand minimum, okay So it is really about Finding the quality gap for me. I'm looking for a quality gap So it's share size share size to make a living you're looking in it and you're saying are right Well, if I take a thousand shares that can make a buck. That's a thousand dollars 2050 cent move. Okay a thousand four thousand twenty five cents I mean 25 cents was fine today in TV because that was a snail was a cheap stock But most of the stocks that we're trading we're making fifty seventy five cents a dollar Some were making three buck moves again. They may be they may be a little bit more expensive than TV But it goes it's proportionate to the stock price and how it normally moves in the day Obviously Apple is more expensive than TV up. It has way bigger moves way bigger moves in something than TV ever would Okay But how do you achieve your goals you chunk it out chunk it chunk it chunk it I cannot tell you how important that is Alright, so I I've been mentoring people in the options newsletter. There's no prerequisites for that You can sign up for that That's fine granny or you get all the options trades if you want to join the day trading room You must do the class and as I said the class is this weekend But I've had people have great success with the options letter make money And then they end up doing the class after they're on the letter making money with the letter But you're better off understanding it first Which is why the active day trades that are fast we're in and out in an hour You must do the class to take them because they're so quick Where's the options you're taking them and you have time to think and hold them for a couple hours or overnight for a couple of Days, but I usually call them out within a two week period some a week some a couple days last week That was a quick one. I knew the market was going to make them move between Tuesday and Friday and it did okay So does anyone have any questions about anything anything at all It's really a fun career if you want to do it You have to take it seriously though, and I'm amazed at how many people don't It is definitely possible to do this. It is possible to make money I have had people do so well this year now. I have been on my game I've been focused personally and I've been doing this a long time now I mean, I'm calling good trade after good trade after good trade Obviously not every trade that I call works, but I have been on fire this year with my calls I mean some people have just been making so much money taking my calls But you do have to listen to me you do have to you know do what I'm saying what I'm saying put the stop in like with The spy you got to put the stop in what I'm saying, you know, this is the target boom boom boom It's really not about being a pig or you will get big trains like that's fine train last week But some days you'll make 600 bucks 500 bucks 700 bucks. What's wrong with that? There's nothing wrong with that Okay, again each day is like its own thing for you and if you're focused enough to look at today People get so overwhelmed. They say, oh my god. I how am I ever gonna make six figures a year? This is like how am I gonna do it? I need all this money. I need a hundred grand It's people become so overwhelmed start with a $2,500 account and you'll be amazed if you focus each day Within your own universe from 930 to 10 how and stop thinking about oh my god It's a hovel year. I have to if you just live within today 200 300 400 500 250 if you just focus on right now You'll be amazed at how much progress you'll make and that $2,500 account will be 10 grand before you know it But people are so gets overwhelmed and Then also I was talking about this earlier people try to make it back make it back make it back Stupid stuff that they did in the past classes where they didn't learn anything Trains where they took trains and loss and the best advice I can tell you ever that is let it go So there are challenges and with the most of them are emotional challenges for people with trading Okay, they're the benefits so far exceed any challenges. I know that people are capable of doing it I'm teaching people to do it and people are having great success with me this year So I'm proud of myself for teaching people. I'm proud of myself for the great trades. I've been calling It's really ultimately about financial freedom if you want to do this for a career Again, if you like your job and you want to do in the side is still extra money I don't know anyone that wouldn't want an extra thousand dollars a week Even if you like what you do you don't have to spend a lot of time doing this That's one of the reasons why people like my system. It's in and out in and out quickly and you can do it from home or your office So in the class I teach a 26-point professional bearish gap system The purpose of this system is to help you evaluate which gap to trade each morning using a checklist The checklist tells you what to trade when and in what direction it's a 26-point checklist and someone asked earlier That's how I know that's how I know Tiva was good. That's how I know what tomorrow morning, whatever I'm gonna choose. I don't know what maybe it'll be Walmart. Okay, maybe it'll be Cisco But that would be along. All right, so either way I rate the stock and then I choose a directional bias based on the rating and go for it Okay, so it's all about the rating system for me and again, I teach it in the class So the class is called the golden gap course Class dates are May 10th and 19th this weekend 9 to 5 class tuition is 59 99 US dollars Class is online. You can be anywhere in the world and take it. I would definitely sign up But I know later than Friday I'd say noon if you want to get in if you would like a trial to the trading room You can email me if you want to be in the room today is Wednesday. Don't need two more days Thursday Friday Deadline again for the class is Friday and I have the combo class of the trends course Which is next Monday the 20th, so that class is normally a thousand dollars class tuition if you pay for both classes You save 500 bucks So that's long-term trends and then the gap class you learn the system for the gap strategy on the weekend And then I'm offering the options letter free For anybody that signs up for this class by Friday, which through the end of the year Which is huge So you do all the options you get all the options trades at the end of the year Learn the system Saturday and Sunday and then if you want to actively day trade enjoy in the room You'll be eligible to do that after the class and if you just want to do the letter You know you can email me. That's that's five grand a year But honestly, I cannot stress the importance of education. I paid for class when I Started out too. In fact, I paid more for the class 11 years ago that I'm charging right now Which is hilarious because it was 11 years ago and I didn't learn how to make money But you know, I didn't know anything at the time and I did learn technical analysis, you know The foundation that foundation for me was was very very important to know that that price action Matters and and and and it does and in this type of environment social media Twitter news all the way the world's interconnected I just can't tell you how important it is It's it's so much less stressful when you're trading when you have someone that you know knows what they're doing It makes it less stressful for you when you follow someone Okay, it is the bigger picture Even if you can only start out with a small amount of risk $200 a trade or 180 bucks That is okay.
| 41,684
|
https://stackoverflow.com/questions/51805990
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,018
|
Stack Exchange
|
Aaqib Ali Bhutta, Chetan, Farzad Karimi, https://stackoverflow.com/users/10214246, https://stackoverflow.com/users/884101, https://stackoverflow.com/users/956198
|
English
|
Spoken
| 602
| 939
|
Connection of local database error in Visual Studio 2013
I have an error in Visual Studio 2013. I use SQL Server 2017 and Visual Studio. I want to create a local database in my asp.net project. The problem is that when I connect to the local database with application in web config file, connection is created but when I try to open database I get an error
The attempt to attach to the database failed with the following information: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. The specified LocalDB instance does not exist. )
This is my connection string
<connectionStrings>
<add name="Db"
connectionString="Server=(localdb)\MSSQLLocalDb;Integrated Security=true;AttachDbFileName=|DataDirectory|\cmsShoppingCart.mdf;"
providerName="System.Data.SqlClient" />
</connectionStrings>
I also read many articles and using techniques like enable SQL Server etc but nothing would be happen.
Thanks in advance if you help me out.
The attempt to attach to the database failed with the following information:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. The specified LocalDB instance does not exist.
)
This is my connection string
Are you able to connect to (localdb)\MSSQLLocalDb from sql management studio ?
i already install sql management studio 2017
no when i open sql management studio it will not local db in database folder
I am thinking of three scenarios that you might be in :
You are trying to connect to the Wrong Instance of SQL Server(check here for more)
You don't have the SQL Database engine installed (Instead you
may have only installed SQL Server Management Studio, so download the version you want accordingly from Microsoft site)
The SQL Server services are not running (more about it)
You could also use the SQL server express localDB, but first you need to find out the version of it in order to use its exact instance.
Say, if the version is 11.0 then your instance would be (localDB)\v11.0
To find the version of installed localDB Go to this directory -
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\SqlLocalDB.exe (110\120\130.. are the versions)
Run this command to create and start an instance of localDB(if localDB !Exists)
"C:\Program Files\Microsoft SQL Server\130\Tools\Binn\SqlLocalDB.exe" create "v13.0" 13.0 -s
Now go to SSMS or VS Server explorer connect to localDB and use an instance which for the above example would look like : localDB\v13.0 and use windows authentication to access it
something is not correct in your connectionstring.
First Try to create your connection using Visual Studio Tool :
* Tools -> Connect To DataBase *
In DataSource Selection, Select "MS SQL Server" And Click Continue,
FilL The Next Page With Your Database Information And After That, Test Your Information Using "Test Connection" Button. If It Says "Test Connection Succeeded", Click On "Advanced" Button And You Will See Correct "Connection String" For Yourself at the End Of The Page now Opened.
thanks for your reply....when i click on mssql server and fill database information , and try to chose database , the database is not found
how to connect my local db in this situation ??
you must fill "Server name" Correctly, Are You Selecting It From the Combobox Or Typing The Name? Have Look At Here : https://www.c-sharpcorner.com/article/connect-to-a-database-from-visual-studio/
| 33,960
|
https://stackoverflow.com/questions/68512524
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,021
|
Stack Exchange
|
RobrechtVM, https://stackoverflow.com/users/1734342
|
Slovenian
|
Spoken
| 642
| 1,862
|
Split array of multiple data types into different arrays
I have data available in postgres database on which I need to run a BI tool to have some aggregational information. Unfortunately the data is structured in the weirdest way.
I have the example json column to work with:
{"products": ["345661C1-2665-4870-9649-803B20A4B579", 1, "FE719978-253F-4763-B1B7-648B9988C5BF", 2, "F66FE491-AC06-49DD-987B-0B88CB49CEB7", 2, "5628A5A4-6030-459D-96F3-32D3C04B7F80", 3, "2B8DAE11-5D60-4DB7-901B-0CCBA7D9418C", 1]}
I do realize the products array itself is not in the correct postgres syntax neither are the string literals.
Ideally I have a query resulting in this:
Product
Amount
345661C1-2665-4870-9649-803B20A4B579
1
FE719978-253F-4763-B1B7-648B9988C5BF
2
F66FE491-AC06-49DD-987B-0B88CB49CEB7
2
5628A5A4-6030-459D-96F3-32D3C04B7F80
3
2B8DAE11-5D60-4DB7-901B-0CCBA7D9418C
1
Is this possible with postgres? I was looking for
a function to split arrays based on data type
a function to remove elements based on odd/even index
I would always look for a solution with code but the BI tool is the only one whitelisted for this database
this will let you to unnest data from one record, or a few/all records at once
-- sample schema
create table datatable (
id int primary key,
data jsonb
);
-- some data
insert into datatable values
(1, '{"products": ["FE719978-253F-4763-B1B7-648B9988C5BF", 2, "F66FE491-AC06-49DD-987B-0B88CB49CEB7", 2]}'),
(2, '{"products": ["345661C1-2665-4870-9649-803B20A4B579", 1]}'),
(3, '{"products": ["5628A5A4-6030-459D-96F3-32D3C04B7F80", 3, "2B8DAE11-5D60-4DB7-901B-0CCBA7D9418C", 1]}');
-- select
WITH pre AS (
SELECT *, RANK()over(ORDER BY id) AS rk FROM datatable
JOIN jsonb_array_elements_text(data->'products') WITH ORDINALITY AS v(v) ON TRUE
WHERE id = 3 -- for specific record id
-- remove/modify the WHERE clause for all / some records at once
)
SELECT pre1.v AS product, pre2.v::INT AS amount
FROM pre AS pre1
JOIN pre AS pre2
ON pre1.ordinality % 2 = 1
AND pre2.ordinality = 1 + pre1.ordinality
AND pre1.rk = pre2.rk;
This just works out of the box, and the split by id is exactly what I needed afterwards!
You can use jsonb_array_elements_text() WITH ORDINALITY to get the elements of the JSON array as a table along with their ordinality. Then aggregate by grouping every two ordinalities. Use a FILTER clause to separate the odd from the even ordinalities to get the right values in the right column.
CREATE TABLE elbat
AS
SELECT '{"products": ["345661C1-2665-4870-9649-803B20A4B579", 1, "FE719978-253F-4763-B1B7-648B9988C5BF", 2, "F66FE491-AC06-49DD-987B-0B88CB49CEB7", 2, "5628A5A4-6030-459D-96F3-32D3C04B7F80", 3, "2B8DAE11-5D60-4DB7-901B-0CCBA7D9418C", 1]}'::jsonb AS nmuloc;
SELECT max(jae.e) FILTER (WHERE jae.o % 2 = 1) AS product,
max(jae.e) FILTER (WHERE jae.o % 2 = 0)::integer AS amount
FROM elbat t
CROSS JOIN LATERAL jsonb_array_elements_text(t.nmuloc->'products') WITH ORDINALITY jae
(e,
o)
GROUP BY (jae.o + 1) / 2
ORDER BY min(jae.o);
But you're lucky Postgres is so mighty and sophisticated that such a thing is even possible. What you really should do is stopping to abuse JSON and go the relational way. Have a table for the products like the one you want to produce from the beginning and don't store that as JSON (and even there it's the worst possible way you do that -- why an array where even elements have other meanings that odd ones, at least use an array of objects with ID an amount).
Thank you for showing me the WITH ORDINALITY functionality! I do realise the data is not as it should be but I don't have access to the application code, I only have the database available for reporting
This feels a bit hackish (and will fail if your arrays aren't in a "key/value" list format), but you could use WITH ORDINALITY to keep track of the index of each element and group by ordinality / 2 (to regroup consecutive elements together):
Schema (PostgreSQL v13)
Query #1
WITH data(arr) AS (
VALUES (ARRAY['345661C1-2665-4870-9649-803B20A4B579', '1', 'FE719978-253F-4763-B1B7-648B9988C5BF', '2', 'F66FE491-AC06-49DD-987B-0B88CB49CEB7', '2', '5628A5A4-6030-459D-96F3-32D3C04B7F80', '3', '2B8DAE11-5D60-4DB7-901B-0CCBA7D9418C', '1'])
)
SELECT (ARRAY_AGG(unnest ORDER BY ordinality))[1] AS product, (ARRAY_AGG(unnest ORDER BY ordinality))[2] AS amount
FROM data
CROSS JOIN LATERAL UNNEST(arr) WITH ORDINALITY
GROUP BY (ordinality-1) / 2; /* ordinality is 1-based, hence the -1 */
product
amount
345661C1-2665-4870-9649-803B20A4B579
1
FE719978-253F-4763-B1B7-648B9988C5BF
2
F66FE491-AC06-49DD-987B-0B88CB49CEB7
2
5628A5A4-6030-459D-96F3-32D3C04B7F80
3
2B8DAE11-5D60-4DB7-901B-0CCBA7D9418C
1
View on DB Fiddle
| 48,649
|
https://ceb.wikipedia.org/wiki/Mount%20Nadgee%20%28bukid%20sa%20Ostralya%2C%20lat%20-37%2C40%2C%20long%20149%2C87%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Mount Nadgee (bukid sa Ostralya, lat -37,40, long 149,87)
|
https://ceb.wikipedia.org/w/index.php?title=Mount Nadgee (bukid sa Ostralya, lat -37,40, long 149,87)&action=history
|
Cebuano
|
Spoken
| 229
| 364
|
Alang sa ubang mga dapit sa mao gihapon nga ngalan, tan-awa ang Mount Nadgee.
Bukid ang Mount Nadgee sa Ostralya. Nahimutang ni sa rehiyon sa Bega Valley ug estado sa State of New South Wales, sa habagatan-sidlakang bahin sa nasod, km sa habagatan sa Canberra ang ulohan sa nasod. metros ibabaw sa dagat kahaboga ang nahimutangan sa Mount Nadgee, o ka metros sa ibabaw sa naglibot nga tereyn. Mga ka kilometro ang gilapdon sa tiilan niini. Mount Nadgee mao ang bahin sa Table Hills.
Ang yuta palibot sa Mount Nadgee kasagaran kabungtoran, apan sa kasadpan nga kini mao ang patag. Ang kinahabogang dapit sa palibot dunay gihabogon nga ka metro ug km sa habagatan-kasadpan sa Mount Nadgee. Dunay mga ka tawo kada kilometro kwadrado sa palibot sa Mount Nadgee may kaayo gamay nga populasyon.. Walay lungsod sa palibot.
Hapit nalukop sa lasang ang palibot sa Mount Nadgee. Ang klima baybayon. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Enero, sa °C, ug ang kinabugnawan Agosto, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Hunyo, sa milimetro nga ulan, ug ang kinaugahan Hulyo, sa milimetro.
Saysay
Ang mga gi basihan niini
Table Hills (mga bungtod sa Ostralya)
Kabukiran sa State of New South Wales
Mga artikulo sa posisyon itarong ni bot
Kabukiran sa Ostralya nga mas taas kay sa 500 metros ibabaw sa dagat nga lebel
| 39,023
|
https://en.wikipedia.org/wiki/Queensland%20C16%20class%20locomotive
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Queensland C16 class locomotive
|
https://en.wikipedia.org/w/index.php?title=Queensland C16 class locomotive&action=history
|
English
|
Spoken
| 521
| 693
|
The Queensland Railways C16 class locomotive is a class of 4-8-0 steam locomotives that was operated by the Queensland Railways.
Construction
Per Queensland Railway's classification system the class was designated the C16 class, C representing they had four driving axles, and the 16 the cylinder diameter in inches. The prototype, N°395, was the first engine to be built by the then new North Ipswich Railway Workshops. It was the only Queensland Railway engine with the exception of the Garratt classes to be fitted with a screw reverser. After successful trials, an order for a further 20 was placed in March 1906 and construction began in earnest. The first engines had an unusual combined number and builder’s plate mounted on the sides of the cab. In early years, the class was often referred to as the Ipswich C16 class to distinguish them from the C16 Baldwin class of the previous century.
Most were painted black to haul livestock trains. Three were painted were specially turned out to haul the heavy Sydney Mail to Wallangarra with 427 painted brown, 428 blue and 429 green until larger locomotives took over this duty. Engines constructed from around 1910 were given indiscriminate numbers by being allocated numbers of scrapped locomotives with the brass number plate recycled.
Superheating trial
In 1920s, superheating was trialled on ten engines. Operation of these superheated engines proved costly despite tests proving savings in coal and water consumption. The principal problem was lubrication of slide valves with the higher temperatures. This caused wear and cutting of the valve and port faces with resultant steam leaks. The original cast iron valves were replaced with bronze ones but produced little improvement. In 1929, it was decided to not to superheat any more slide valve engines and those so fitted reverted to saturated steam as boiler renewals became necessary. Eleven engines were loaned to the Commonwealth Railways in 1942 for use on the Central Australia Railway as NMB55-NMB65, returning in 1944.
As saturated engines they were soon replaced on more important duties by their successor, the C17 Class. The engines that survived until the last decade of steam were mainly used for heavy shunting in yards such as Rockhampton where the loads were beyond the capacity of the PB15 class.
Modifications
The class received a number of modifications during their lives. The early engines had sandboxes on the running boards rather than mounted on the boiler. All, except the class leader, had these replaced by a “standard” Baldwin style sandbox on their boilers. Association of American Railroads Master Mechanics smokeboxes commenced being fitted to members of the class in 1945. This greatly improved their performance. All engines remaining in service, except N°106, were similarly altered. These modified engines could be distinguished by their tapered stove pipe chimney.
Preservation
One has been preserved. Initially preserved at Redbank Locomotive Museum, 106 moved to the DownsSteam Tourist Railway & Museum in October 2001 where restoration was completed in 2021.
On August 18, 2023, C16 106 performed its first mainline test under its own steam.
References
External links
Railway locomotives introduced in 1903
C16
Walkers Limited locomotives
4-8-0 locomotives
| 45,381
|
https://id.wikipedia.org/wiki/Why%20%28album%20mini%20Taeyeon%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Why (album mini Taeyeon)
|
https://id.wikipedia.org/w/index.php?title=Why (album mini Taeyeon)&action=history
|
Indonesian
|
Spoken
| 27
| 60
|
Why adalah album mini kedua dari penyanyi asal Korea Selatan Taeyeon, dirilis oleh S.M. Entertainment pada tanggal 28 Juni 2016.
Daftar lagu
Pranala luar
Album tahun 2016
| 16,320
|
https://pl.wikipedia.org/wiki/Orla%20%28wojew%C3%B3dztwo%20podlaskie%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Orla (województwo podlaskie)
|
https://pl.wikipedia.org/w/index.php?title=Orla (województwo podlaskie)&action=history
|
Polish
|
Spoken
| 1,271
| 3,590
|
Orla (dodatkowa nazwa w języku białoruskim Орля) – wieś w Polsce położona w województwie podlaskim, w powiecie bielskim, w gminie Orla. Leży nad Orlanką, dopływem Narwi.
Orla uzyskała lokację miejską przed 1507 rokiem, zdegradowana w 1897 roku. Miasto prywatne posiadało prawo magdeburskie w 1618 roku i 1634 roku, położone było w ziemi bielskiej województwa podlaskiego. W latach 1975–1998 miejscowość położona była w województwie białostockim.
Miejscowość jest siedzibą gminy Orla.
Orla stanowiła ośrodek dóbr Radziwiłłów.
Według Powszechnego Spisu Ludności z 1921 roku wieś zamieszkiwało 1.518 osób, wśród których 31 było wyznania rzymskokatolickiego, 320 prawosławnego a 1.167 mojżeszowego. Jednocześnie 400 mieszkańców zadeklarowało polską przynależność narodową, 145 białoruską, a 973 żydowską. Były tu 253 budynki mieszkalne.
Do roku 1941 około 75% mieszkańców stanowiła ludność żydowska, wymordowana następnie przez Niemców podczas Holocaustu. Obecnie większość mieszkańców jest wyznania prawosławnego.
Historia
1510 – książę Iwan Iwanowicz oddaje dobra przy rzece Orlej dla Michajła Bohusza Bohawitynowicza w zamian za dwór w Trokach.
1512 – wzmianka o cerkwiach prawosławnych w Orli – św. Jana Złotoustego i św. Symeona Stylity oraz o duchownym o imieniu Karp i psalmiście (diak) – Zachariasz.
1529 – wzmianka o dworze rodu Bohawitynowiczów w Orli.
1538 – Hanna Bohawitynowiczówna wyszła za mąż za starostę bełskiego Stanisława Tęczyńskiego, wnosząc mu dobra orlańskie w posagu.
1585 – Katarzyna Olekowicz wychodzi za mąż za arianina Krzysztofa „Pioruna” Radziwiłła, wnosząc Orlę i okolicę na trzysta lat w domenę Radziwiłłów z linii birżańskiej.
XVII wiek
1616 – w Orli są 93 domy
1618 – Krzysztof Piorun Radziwiłł nadał przywilej, w którym zezwolił ludziom wszelkiego stanu tak chrześcijanom wszelkiego nabożęstwa iako i Żydom kupcom, rzemieślnikom, kramarzom, szynkarzom i jakąkolwiek potsciwego Powołania y Kondycyi osobom fundować się i budować. Powołał radę miejską, złożoną z wójta, sześciu ławników i pisarza. Nakazał zbudować na rynku ratusz.
1621–1634 – starostą orlańskim był arianin Stanisław Kurosz
1622 – książę Krzysztof II Radziwiłł kazał wznieść zbór kalwiński przy zamku w Orli.
1626 – Janusz Radziwiłł przebywa w swojej rezydencji w Orli
1643 – książę Janusz Radziwiłł odnowił przywilej na prawa miejskie Orli. Zmienił przy tym czas odbywania targów tygodniowych ze środy na niedzielę, zaznaczając, żeby nie targowano aż się odprawi nabożeństwo w zborze kalwińskim. Powołał również do życia straż miejską, uzbrojoną w halabardy albo dary oraz zalecił ogrodzenie całego miasta obronnym parkanem.
1656 – podczas potopu szwedzkiego pułkownik wojsk litewskich Samuel Oskierka w drodze z Tykocina pustoszy należące do Radziwiłłów posiadłości wokół miasta
1657 – przez miasto w drodze do Brześcia przechodzą wojska Jerzego Rakoczego. Ucieczka ludności.
1660 – odnowiono ogrodzenie wokół dworu oraz bramę wjazdową i wyszlamowano sadzawki w ogrodzie włoskim. Zbudowano śluzę. W latach następnych prowadzono prace remontowe przy dworskiej kamienicy, domu ogrodnika oraz domu urzędniczym.
1663 – Żydzi stanowią połowę 800-osobowej ludności miasta
1694 – księżna Ludwika Karolina Radziwiłł przekazała dobra orlańskie w zastaw podskarbiemu i pisarzowi ziemskiemu Wielkiego Księstwa Litewskiego Benedyktowi Pawłowi Sapieże z pałacem murowanym, z budynkami dwornemi i folwarcznemi i gumiennemi (...) z miasteczkiem Orlem, z Mieszczanami, Żydami i Obywatelami wieyskimi, ze wsiami Boiary i poddanymi w nich mieszkającymi
1699 – prawa do dóbr zostały przekazane na rzecz Jakuba Henryka Fleminga
XVIII wiek
1701 – Fleming przekazał Orlę w zastaw Stefanowi Branickiemu, stolnikowi koronnemu. Ten z kolei, wydając swą córkę Krystynę za mąż za Józefa Sapiehę, podkomorzego Wielkiego Księstwa Litewskiego, oddał mu w nadzór całą włość orlańską
1702 – spustoszenie Podlasia w czasie III wojny północnej
1705–1708 – kilkakrotne niszczycielskie zajazdy podkanclerzego litewskiego Stanisława A. Szczuki
ok. 1754 – powstaje żydowska synagoga w Orli w stylu barokowym
1775 – w mieście było jedynie 90 domów opłacających podymne
1789 – wojewoda wileński Michał Hieronim Radziwiłł wniósł pozew do Sądu Ziemskiego w Bielsku, który potwierdził prawa Radziwiłłów do Orli i zażądał od Izabelli Branickiej zwrotu miasta i okolic
1794 – król Stanisław August Poniatowski ponownie zobowiązał Izabelę Branicką (własną siostrę) do ustąpienia z Orli
1794 – spaliła się unicka cerkiew św. Symeona.
1796 – w miejscu spalonej cerkwi zbudowano nową cerkiew unicką pw. św. Michała.
1796 – rozbiory Polski i zajęcie Podlasia przez wojska i administrację pruską
1799 – w mieście są w 242 domy
XIX wiek
1808 – po traktacie w Tylży Podlasie zajmują w miejsce pruskich wojska rosyjskie
1808 – książę Michał Radziwiłł ostatecznie wykupuje miasto z zastawu od Branickich
1831 – zarząd dóbr Radziwiłłowskich odwołuje za nadużycia administratora Michała Grabowskiego, który pełnił ten urząd od czasów Branickich.
1832 – Orla przechodzi we władanie Wittgensteinów
1834–1839 – likwidacja unii i przejście miejscowej parafii (pierwotnie prawosławnej) pod obediencję Rosyjskiego Kościoła Prawosławnego. Wg zalecenia arcybiskupa Józefa (Siemaszki) do cerkwi wstawiono ikonostas, a łacińską monstrancję zastąpiono darochranitielnicą. Gdy w 1839 roku na Synodzie połockim ogłoszono akt zjednoczenia z Cerkwią Prawosławną, ówczesny proboszcz o. Aleksy Makowiecki wraz z wiernymi przyjęli to do wiadomości. W związku z tym parafię orlańską ominęły niepokoje, inspirowane przez duchownych, jakie miały miejsce w sąsiednich parafiach w Starym Korninie, Nowym Berezowie, Czyżach.
1867 – miasto liczyło 1375 mieszkańców, z czego 91% stanowili Żydzi.
1870 – ukończenie budowy prawosławnej cerkwi cmentarnej pw. Świętych Cyryla i Metodego
XX wiek
1900 – Orla liczy już 4286 mieszkańców. Żydów było 3678, czyli ponad 85%.
1915 – w południowej części terenu dawnej cerkwi zamkowej św. Jana pochowano poległych w okolicach miasta żołnierzy rosyjskich i niemieckich. Zmuszanie przez Kozaków części ludności do wyjazdu do Rosji.
1920 – wojna polsko-bolszewicka
1921 – powrót części ludności po traktacie ryskim
1921 – ludność miasta wynosi 1518 osób, z czego 1167 stanowią Żydzi
1938 – pożar zniszczył 550 budynków miasta w rejonie ulic Narewskiej, Bielskiej i 3 Maja. Uszkodzona została synagoga. Spaliło się kilka żydowskich domów modlitwy, w tym dwa przy głównej synagodze.
1939–1941 – okupacja radziecka – wywózki na Syberię, rekwizycja gruntów cerkiewnych
1941–1944 – okupacja niemiecka. Utworzenie w lipcu 1941 getta dla ludności żydowskiej w rejonie ulic: Kleszczelowskiej, 1 Maja, Koszelowskiej i Parkowej. Mieszkało w nim ok. 2000 osób, które pracowały przy budowie i naprawie dróg oraz w warsztatach rzemieślniczych. Getto zostało zlikwidowane jesienią 1942. Jego mieszkańców wywieziono do getta w Bielsku Podlaskim, skąd trafili do obozu zagłady w Treblince.
lipiec 1944 – wyzwolenie miejscowości przez oddziały 48 Armii generała majora P. Romanienki wchodzącej w skład 1 Frontu Białoruskiego; ginie 16 żołnierzy radzieckich.
1979 – rozebranie zniszczonej cerkwi św. Michała i jej ponowna rekonstrukcja w 1981
1996 – ukończenie budowy wodociągu w gminie
Zabytki i atrakcje turystyczne
synagoga w Orli – murowana z 2 poł. XVIII w. w stylu barokowym. Na ścianie wschodniej zachowana wnęka po Aron ha-Kodesz
kirkut żydowski z XVIII w.
kirkut żydowski w XIX w.
drewniana parafialna cerkiew prawosławna pw. św. Michała Archanioła z 1797 (wybudowana jako unicka) z drewnianą dzwonnicą z 1874 (cerkiew w latach 1979–1981 przeszła generalny remont na podstawie tzw. anastylozy)
cmentarz prawosławny (wcześniej unicki) z początku XIX wieku z cerkwią cmentarną pw. Świętych Cyryla i Metodego z 1870
Kościoły
Na terenie Orli działalność duszpasterską prowadzą następujące kościoły:
Polski Autokefaliczny Kościół Prawosławny
Parafia św. Michała Archanioła
Kościół rzymskokatolicki
kaplica dojazdowa pod wezwaniem Matki Bożej Częstochowskiej należąca do Parafii Najświętszej Opatrzności Bożej w Bielsku Podlaskim
Kościół Chrześcijan Baptystów
Zbór
W latach 1611-1770 istniał w Orli zbór kalwiński.
Urodzeni w Orli
Eugeniusz Czykwin – polski polityk, dziennikarz, działacz społeczności prawosławnej i mniejszości białoruskiej, poseł na Sejm PRL i RP IX, X, I, IV, V, VI, VII i IX kadencji.
Przypisy
Bibliografia
M. Sierba, Powinności mieszkańców radziwiłłowskiej Orli w latach 1614–1695,
W. Konończuk, Dobra Orla w latach 1771–1914: od Izabeli Branickiej do Aleksandra Patona, "Bielski Almanach Historyczny" 2018.
Linki zewnętrzne
Historia Orli
Kirkut w Orli
G. Sosna, D. Fionik: Orla na Podlasiu: dzieje Cerkwi, miasta i okolic
Dawne miasta w województwie podlaskim
Prywatne miasta Radziwiłłów herbu Trąby
Prywatne miasta szlacheckie I Rzeczypospolitej (województwo podlaskie)
Miasta w Polsce lokowane w XVI wieku
Ośrodki kalwinizmu w I Rzeczypospolitej
| 43,197
|
https://math.stackexchange.com/questions/3447220
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,019
|
Stack Exchange
|
Ayesxh, Rushabh Mehta, https://math.stackexchange.com/users/537349, https://math.stackexchange.com/users/728108
|
English
|
Spoken
| 115
| 417
|
Show that $[(\frac{p-1}{2})!]^2+1\equiv0 \pmod p$
Let p be a prime such that $p\equiv1\mod 4$. Show that $[(\frac{p-1}{2})!]^2+1\equiv0 \pmod p$
I know I have to use Wilson's Theorem, but not sure how.
Well, compare $(p-1)!$ and $\big(\frac{p-1}2\big)!^2$. Note that for every $0<k<p$, $p-k\equiv-k\pmod p$. So, $|(p-1)!|\equiv\big|\frac{p-1}2\big|!^2\pmod p$. So when is the number of negatives the same?
I don't get it, why is $[(\frac{p-1}{2})!]^2\equiv(p-1)! \pmod p$?
Absolute values. And if you read the comment again, it'll make sense.
Modulo $p$, we have that $$-1\equiv (p-1)! \equiv \left(\frac{p-1}{2}\right)! \times \frac{p+1}{2} \times \frac{p+3}{2} \times \cdots p-1 \equiv \left(\frac{p-1}{2}\right)! \times -\frac{p-1}{2} \times -\frac{p-3}{2} \times \cdots (-1) \equiv (-1)^{(p-1)/2} \left(\left(\frac{p-1}{2}\right)!\right)^2$$
The result follows since $p \equiv 1 \ \text{mod} \ 4$.
| 39,612
|
https://stackoverflow.com/questions/3576228
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,010
|
Stack Exchange
|
I'MNOUA, Michael Matthews, Theer, Tracy Gardner, https://stackoverflow.com/users/7466290, https://stackoverflow.com/users/7466291, https://stackoverflow.com/users/7466292, https://stackoverflow.com/users/7466715, https://stackoverflow.com/users/7481363, upandouttherabbith0le
|
English
|
Spoken
| 137
| 195
|
SCGI scripting engine servers? (C#, Java, PHP)
I am looking for scripting engines that provide an SCGI server:
a server like Apache receives HTTP requests and sends them to the backend scripting engine,
the scripting engine parses and process the SCGI request and sends the reply to Apache,
Apache sends the reply to the client.
I've an interest in using C#, Java and PHP (any of those three) and would like to find relevant resources (not only links to code but also how-to's in order to make this all work toguether).
Thanks!
The current state of these interfaces is very limited today.
It seems that the mainstream players do not like SCGI.
That may be because SCGI is so much faster than fastCGI...
I am affraid that developers will have to do it -for their
own good.
| 25,573
|
https://stackoverflow.com/questions/48477927
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,018
|
Stack Exchange
|
Haj Ali, Pavneet_Singh, https://stackoverflow.com/users/4936904, https://stackoverflow.com/users/9120950
|
English
|
Spoken
| 468
| 1,504
|
create Spinner with a JSON Array
I want to display a JSON Array that I've downloaded from the internet, in a spinner, as items. So I created an Activity (SearchActivity) for it. First of all, my JSON is like the following:
[ { "Category": "B, A" }, { "Category": "C, B" }, { "Category": "A" }, { "Category": "A, B" }, { "Category": "B" }, { "Category": "C" }, { "Category": "A,C" } ]
This is Result of this PHP code:
<?php
require_once 'include\config.php';
// connect to database
$con = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE);
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$content = mysqli_query($con,"SELECT DISTINCT `Category` FROM `civilarticle` ");
$output = array();
while($row = mysqli_fetch_array($content)){
$record = array();
$record['Category'] = $row['Category'];
$output[] = $record;
}
echo json_encode($output);
//closing connection
mysqli_close($con);
?>
and this is my Activity:
public class SearchActivity extends Activity {
Spinner spinner;
ArrayList<String> Category;
String url="http://192.168.1.103/android_login_api/search.php";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_search);
Category=new ArrayList<String>();
spinner=(Spinner)findViewById(R.id.spinner);
loadSpinnerData(url);
spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {
String category= spinner.getItemAtPosition(spinner.getSelectedItemPosition()).toString();
Toast.makeText(getApplicationContext(),category,Toast.LENGTH_LONG).show();
}
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
// DO Nothing here
}
});
}
private void loadSpinnerData(String url) {
RequestQueue requestQueue= Volley.newRequestQueue(getApplicationContext());
StringRequest stringRequest=new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
try {
JSONArray jsonarray = new JSONArray(response);
for (int i = 0; i < jsonarray.length(); i++) {
JSONObject jsonobject = jsonarray.getJSONObject(i);
String Category = jsonobject.getString("Category");
}
spinner.setAdapter(new ArrayAdapter<String>(SearchActivity.this, android.R.layout.simple_spinner_dropdown_item, Category));
//Toast.makeText(SearchActivity.this,response,Toast.LENGTH_SHORT).show();
}
catch (JSONException e){e.printStackTrace();}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
error.printStackTrace();
}
});
int socketTimeout = 30000;
RetryPolicy policy = new DefaultRetryPolicy(socketTimeout, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);
stringRequest.setRetryPolicy(policy);
requestQueue.add(stringRequest);
}
}
And this is my XML file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="15dp"
android:orientation="vertical"
tools:context="info.androidhive.customlistviewvolley.SearchActivity">
<Spinner
android:id="@+id/spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
But when I run the program. There is nothing as an item on Spinner. Why?
ArrayAdapter by default accepts an Array or List .
ArrayAdapter(Context context, int resource, List objects)
ArrayAdapter(Context context, int resource, T[] objects)
So you need to parse your JSON data in an list and then pass it to adapter.
try {
ArrayList<String> catList=new ArrayList<>();
JSONArray jsonarray = new JSONArray(response);
for (int i = 0; i < jsonarray.length(); i++) {
JSONObject jsonobject = jsonarray.getJSONObject(i);
catList.add(jsonobject.getString("Category"));
}
spinner.setAdapter(new ArrayAdapter<String>(SearchActivity.this,
android.R.layout.simple_spinner_dropdown_item, catList));
}catch (Exception e){
e.printStackTrace();
}
Thank you so much,
Thanks a little work against your help
OP already has it ArrayList<String> Category so no need to create a new local list
You need to add received items from response to list as
for (int i = 0; i < jsonarray.length(); i++) {
JSONObject jsonobject = jsonarray.getJSONObject(i);
Category.add(jsonobject.getString("Category"));
}
currently, you are just fetching values in a local variable, which is not being used anywhere
| 27,247
|
https://stackoverflow.com/questions/2663297
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,010
|
Stack Exchange
|
Faiz Bepari, Ramya, Yamamoto, https://stackoverflow.com/users/5459841, https://stackoverflow.com/users/5459842, https://stackoverflow.com/users/5459843, https://stackoverflow.com/users/5460313, https://stackoverflow.com/users/5462499, sky htet, егор постовалов
|
English
|
Spoken
| 207
| 281
|
Zend Studio Intellisense + zend Framework
I've got a very annoying problem with my Zend studio.
I have a zend framework project I am working on. The actual zend framework code is inside my project (in library folder) and then ZS seems to reference to its own version of zend framework. As the result, I get 2 versions of the same function/class in my intellisense which is annoying to say the least.
Today I had the last drop of patience with zend studio when I showed 4 copies of the same class (imagine what's its like looking at a large namespace times 4!).
So, how do I remove all references inside ZS to its own version of ZF?
Thanks!
I would look at the "location" field in each case and find out where they all are.
I believe that Project->Properties->PHP Include Path will allow you to remove references to the other ZFs.
In PHP Explorer, r-click on the project name. Select Include Path > Configure Include Path. There are four buttons at the top of that property page - Source, Projects, Libraries, Order. Check the Source and Libraries property sheets to ensure that the ZF library in your project is the only one present.
Hope that helps.
| 43,411
|
https://sv.wikipedia.org/wiki/Lansn%C3%A4va
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Lansnäva
|
https://sv.wikipedia.org/w/index.php?title=Lansnäva&action=history
|
Swedish
|
Spoken
| 66
| 142
|
Lansnäva (Erodium botrys) är en näveväxtart som först beskrevs av Antonio José Cavanilles, och fick sitt nu gällande namn av Antonio Bertoloni. Enligt Catalogue of Life ingår Lansnäva i släktet skatnävor och familjen näveväxter, men enligt Dyntaxa är tillhörigheten istället släktet skatnävor och familjen näveväxter. Arten förekommer tillfälligt i Sverige, men reproducerar sig inte. Inga underarter finns listade i Catalogue of Life.
Källor
Externa länkar
Skatnävor
| 10,902
|
https://en.wikipedia.org/wiki/ShredIt
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
ShredIt
|
https://en.wikipedia.org/w/index.php?title=ShredIt&action=history
|
English
|
Spoken
| 112
| 184
|
ShredIt is designed to securely erase files in a variety of ways, using various overwriting patterns. Originally released in 1998, Shredit is capable of erasing files on Mac OS 7 through Mac OS 10.8 and later, as well as Microsoft Windows 95 through Windows 7 and later and iOS(sublicensed by Burningthumb Software). Versions of ShredIt are available for 10.6 and later through the macOS App Store, earlier and alternate versions are available through the Mireth website.
Features
Safeplace
Shredding by file, by folder or optical media
Overwriting Standards
DoD 5220 Clear & DoD 5220 Sanitize
DoE Secure Deletion
Gutmann 35 Way Overwrite
CD-RW Erasure
References
External links
Data erasure software
1998 software
| 44,729
|
https://stackoverflow.com/questions/55934778
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,019
|
Stack Exchange
|
Luca Guidi, Pierre-Adrien, https://stackoverflow.com/users/498386, https://stackoverflow.com/users/85076
|
English
|
Spoken
| 406
| 715
|
Hanami : access current page URL from views or templates
I'm discovering Hanami those days (Hanami 1.3), I'm polishing the test project I've worked on, and I can't find a way to access the current page url/path from a view or a template (the idea is handling the navigation links visual state, as you may have guessed).
I've tried to guess helper names (routes.current_page, routes.current_url, routes.current...) but I've not been lucky. I've checked the routing helpers documentation, got through the hanami/hanami and hanami/router repositories but didn't find what I was looking for.
Did I miss something or is this simply not built-in?
Here's what I ended up doing, for the moment. I followed hanami documentation defined a custom helper and made it available to all of my views, like this:
1. Create a Web::Helpers::PathHelper module
There I can access the params and request path:
# apps/web/helpers/path_helper.rb
module Web
module Helpers
module PathHelper
private
def current_path
params.env['REQUEST_PATH']
end
def current_page?(path)
current_path == path
end
end
end
end
2. Make sure the helpers directory is loaded by the app
Added the helpers path to the application load_paths variable, so that my helpers get loaded when the app loads the code.
# apps/web/application.rb
# Relative load paths where this application will recursively load the
# code.
#
# When you add new directories, remember to add them here.
#
load_paths << [
'helpers',
'controllers',
'views'
]
3. Make sure my new helper is available for each view
..by using the view.prepare block in application.rb:
# apps/web/application.rb
# Configure the code that will yield each time Web::View is included
# This is useful for sharing common functionality
#
# See: http://www.rubydoc.info/gems/hanami-view#Configuration
view.prepare do
include Hanami::Helpers
include Web::Assets::Helpers
include Web::Helpers::PathHelper
end
4. And now I can use my helpers in every view!
And now, from my template or my view objects, I can access my own current_path and current_page?(path) helpers, and do what I need to do with them. I don't know if that's the most straightforward way but at least it's working.
You did a great job! Yours is a perfect example of asking the community, read the docs, gets the hands dirty, implement a great solution, and share back with the community.
Thanks @LucaGuidi. Hope it can help the community. Maybe it could even be an opportunity for a PR or an hanami extension. I'm not familiar enough with the framework, the codebase and all but that's an idea.
| 38,481
|
https://stackoverflow.com/questions/46836232
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,017
|
Stack Exchange
|
Inian, RavinderSingh13, https://stackoverflow.com/users/3496003, https://stackoverflow.com/users/5291015, https://stackoverflow.com/users/5866580, jshakil
|
English
|
Spoken
| 268
| 684
|
How to skip a field in column using awk
I have this data here:
Name,Team,First Test, Second Test, Third Test
Tom,Red,5,17,22
Joe,Green,3,14,22
Maria,Blue,6,18,21
Fred,Blue,2,15,23
Carlos,Red,-1,15,24
Phuong,Green,7,19,21
Enrique,Green,3,16,20
Nancy,Red,9,12,24
I would like to skip field 3 ($3) in row 6 when I'm finding the average of the First Test since it's a negative.
How would I skip over that particular value and have all the fields still add up in the First column?
I know that the next command skips over the whole row, is there a command that will skip a particular field?
Thank you.
EDIT
Sorry. Here is how the output should look like, I already have the Averages of test two and three, just need help with the average for test one.
Average for Test 1: 5
Average for Test 2: 15.75
Average for Test 3: 22.125
---------------------------------
Please always add expected output to your post with code tags.
I apologize for that, thank you for telling me.
@jshakil: For 3rd column alone, awk -v FS="," '($3+0)>0{sum+=$3; count++}END{print (count!=0)?(sum/count):0}' file
awk to the rescue!
$ awk -F, 'NR>1 {for(i=3;i<=NF;i++) if($i>=0) {s[i]+=$i; c[i]++}}
END {for(i=3;i<=NF;i++) print "Average for Test " (i-2) ": " s[i]/c[i]}' file
Average for Test 1: 5
Average for Test 2: 15.75
Average for Test 3: 22.125
assumes there isat least one record with non-negative value, if not guard the prints with c[i]>0
EDIT: As OP told he needs to negate negative values in fields so providing that solution now.
awk -F, 'FNR==1{print;next} {for(i=1;i<=NF;i++){printf("%s%s",$i<0?"":$i,i==NF?RS:",")}}' Input_file
Output will be as follows.
Name,Team,First Test, Second Test, Third Test
Tom,Red,5,17,22
Joe,Green,3,14,22
Maria,Blue,6,18,21
Fred,Blue,2,15,23
Carlos,Red,,15,24
Phuong,Green,7,19,21
Enrique,Green,3,16,20
Nancy,Red,9,12,24
| 17,051
|
https://stackoverflow.com/questions/46829089
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,017
|
Stack Exchange
|
Gurmanjot Singh, Sebastian Simon, T.J. Crowder, Wiktor Stribiżew, https://stackoverflow.com/users/157247, https://stackoverflow.com/users/3832970, https://stackoverflow.com/users/4642212, https://stackoverflow.com/users/5331061, https://stackoverflow.com/users/98493, searlea
|
English
|
Spoken
| 468
| 867
|
Regex for SpecialCharacters in bewteen in Javascript
I am trying to create regex which check if string has any special characters only in between. So I am checking for following cases:
"BX_@PO" -- Invalid
"40-66-7" -- Invalid
"_BXTP" -- Valid
"abc123?" -- Valid
"BXTP@" -- Valid
"PO@GO_" -- Invalid
I am trying below code but it which check special characters in anywhere in string and not only in between.
const hasSpecialCharacters = (str) => {
return !/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g.test(str);
}
What are non-special characters? All alpha-numeric ASCII characters, i.e. a-z, A-Z and 0-9?
@Xufox - they all should be allowed in the string.
Could you please translate into real English trying to create regex which check if string has any special characters only in between? It is too obscure and allows various interpretations.
Something tells me you need /^[^\W_]*[\W_][^\W_]*$/. It is still guessing. It will match a string with only one special char or _.
So, does this regex work correctly?
Hi @WiktorStribiżew that worked for me! Many thanks :)
But you marked Gurman's answer as correct - and our patterns are not the same. See that answer and my regex differene. It is not clear what you need.
Well, your solution only covered what I mentioned in my question examples (with _ at the starting and end) and my question was any special characters in between ONLY in the input string. Your sol. was not wrong and to the point of my examples, but if I used any sp. char. at the end (apart from _) then your regex will reject that string. Hence, choose Gurman's answer as correct..
Try this regex:
^[\s\S][a-zA-Z0-9]*[\s\S]$
Click for Demo
Explanation:
^ - asserts the start of the string
[\s\S] - matches any character
[a-zA-Z0-9]* - matching 0+ occurrences of only letters and digits in the middle. Thus, not allowing special characters in the middle
[\s\S] - matches any character
$ - asserts the end of the string
Hi Gurman, thanks for your answer, If I have to add any whitelisting for valid special characters then how I can do it with your suggested approach. Like If I have to whitelist below characters: "/ - ? : ( ) . , ' + SPACE"
@user7890278 you mean to say that you want to allow these characters in the middle?
In that case, use ^[\s\S][a-zA-Z0-9 \/\-?:().,'+]*[\s\S]$. But, note that, in this case, 40-66-7 also becomes a valid scenario as you are allowing - in the middle.
Just like T.J's answer, but going for the readable way around:
const hasSpecialCharacters = (str) => {
return !/[a-zA-Z0-9][^a-zA-Z0-9]+[a-zA-Z0-9]/g.test(str)
}
Well, I assumed the OP's regex was specific for a reason. But I don't think it matches the examples of valid/invalid, so I moved on.
I think OP missed @ in their character class, so it wasn't matching.
| 34,546
|
https://fr.wikipedia.org/wiki/Ruben%20Gallego
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Ruben Gallego
|
https://fr.wikipedia.org/w/index.php?title=Ruben Gallego&action=history
|
French
|
Spoken
| 450
| 744
|
Ruben Marinelarena Gallego, né le à Chicago, est un homme politique américain, représentant démocrate de l'Arizona à la Chambre des représentants des États-Unis depuis 2015.
Biographie
Jeunesse et débuts en politique
Ruben Marinelarena est né à Chicago d'un père colombien et d'une mère mexicaine. Abandonné par son père lorsqu'il est jeune, il adopte le nom de sa mère, Elisa Gallego, en 2008 et devient Ruben Marinelarena Gallego.
Gallego s'engage chez les Marines en 2002, alors qu'il étudie à l'université Harvard. Membre de la compagnie de Lima du du de Marines, il est mobilisé en Irak en 2005. La compagnie perd 22 soldats entre février et , dont le meilleur ami de Gallego.
Il est élu à la Chambre des représentants de l'Arizona en 2010. À partir de 2012, il y est l'assistant du chef de la minorité démocrate.
Représentant des États-Unis
Lors des élections de 2014, il se présente à la succession du représentant démocrate Ed Pastor dans le de l'Arizona. Le district, majoritairement hispanique, comprend le centre et le sud de Phoenix et a voté à plus de 70 % en faveur de Barack Obama en 2012. Lors de la primaire démocrate, il affronte l'ancienne conseillère du comté de Maricopa, Mary Rose Wilcox, soutenue par Pastor. Gallego est soutenu par le représentant Raúl Grijalva, le maire de Phoenix Greg Stanton et de nombreux syndicats. Après avoir remporté la primaire, il est élu à Chambre des représentants des États-Unis avec 74,9 % des voix, sans candidat républicain face à lui.
Il est facilement réélu en 2016, 2018, 2020 et 2022, avec à chaque fois plus de 70 % des voix.
En , Gallego annonce sa candidature à l'investiture démocrate pour le poste de sénateur lors de l'élection de 2024 en . Le poste de sénateur en jeu lors de l'élection de 2024 (class 1) est occupé par Kyrsten Sinema, une démocrate centriste devenue indépendante en 2022.
Vie privée
En 2010, il épouse Kate Gallego, qu’il a rencontré à Harvard et qui entame sa propre carrière politique en étant élue en 2013. Le couple divorce en 2017 avant la naissance de leur fils.
Positions politiques
Ruben Gallego est un démocrate libéral (au sens américain du terme) ou progressiste. Il est en faveur d'une réforme de l'immigration, de la légalisation du cannabis et des droits des personnes LGBT. Lors des primaires présidentielles de 2016, il soutient Hillary Clinton.
Notes et références
Voir aussi
Article connexe
Liste des représentants des États-Unis pour l'Arizona
Liens externes
Naissance en novembre 1979
Représentant des États-Unis pour l'Arizona
Personnalité du Parti démocrate en Arizona
Naissance à Chicago
Personnalité américaine née d'un parent mexicain
Personnalité américaine née d'un parent colombien
Étudiant de l'université Harvard
Conjoint de personnalité politique
| 31,719
|
https://uk.wikipedia.org/wiki/%D0%9C%D1%96%D0%BD%D1%81%D1%8C%D0%BA%D0%B8%D0%B9%20%D1%80%D0%B0%D0%B4%D1%96%D0%BE%D1%82%D0%B5%D1%85%D0%BD%D1%96%D1%87%D0%BD%D0%B8%D0%B9%20%D0%BA%D0%BE%D0%BB%D0%B5%D0%B4%D0%B6
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Мінський радіотехнічний коледж
|
https://uk.wikipedia.org/w/index.php?title=Мінський радіотехнічний коледж&action=history
|
Ukrainian
|
Spoken
| 233
| 715
|
Мінський Радіотехнічний Коледж (МРК), раніше Мінський Державний Вищий Радіотехнічний Коледж (МДВРК) ().
МГВРК є установою освіти Республіки Білорусь. Підготовка фахівців в МДВРК здійснюється на підставі базової та загальної середньої освіти за рівнями: I рівень — підготовка фахівців з середньою спеціальною освітою підвищеного рівня, яке включає базові предмети вишу і дає можливість отримати вищу освіту в інших вишах у скорочені терміни.
II рівень — підготовка фахівців з вищою освітою.
Відбір на рівень вищої освіти за спеціальністю «Професійне навчання» на денну форму навчання здійснюється з числа випускників коледжу. На заочну форму навчання прийом проводиться на базі середньої спеціальної освіти.
В даний час контингент учнів денної форми навчання становить 1345 осіб, студентів — 653 чоловіки. Загальна кількість тих, які навчаються за денною формою — 1998 чоловік. За всі роки навчання випущено понад 21 тисяча фахівців. У коледжі працює 376 співробітників, з них викладачів — 256 (у тому числі 1 доктор наук, 1 професор, 27 кандидатів наук, 25 доцентів).
Директори радіотехнічного технікуму
Решетов В. І. — З 1960 по 1971 рр..,
Капишев В. І. — З 1971 по 1974 рр..,
Макаревич О. М. — З 1974 по 1980 рр..,
Малишевський В. Ф. — З 1981 по 1985 рр..
Цирельчук Н. А. — З 1985 по 2010.
Анкуда С. М. з 2010 р.
Відділення
Мінський радіотехнічний коледж має три відділення:
Відділення радіоелектроніки
Відділення комп'ютерних технологій
Заочне відділення
Див. також
Освіта в Білорусі
Buratinka.com МГВРК Новини
Освіта в Мінську
| 740
|
https://stackoverflow.com/questions/61673118
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,020
|
Stack Exchange
|
Andrew Cheong, ayada30, https://stackoverflow.com/users/13438340, https://stackoverflow.com/users/925913
|
English
|
Spoken
| 136
| 231
|
Rules in mathematica
How to combine the following three rules in one.
Rule1 = Cos[m_ t]^3 Cos[n_ t] -> 0
Rule2 = Cos[1. t]^3 Cos[3. t] -> Pi/4
Rule3 = Cos[2. t]^3 Cos[6. t] -> Pi/4
In my present calculation, the value of m and n changes from 1 to 7 so Rule1 is not correct when (m=1,n=3) and (m=2,n=6). Is it possible to combine all these three rules in one?
Can't you just Join them?
If I put Rule2, Rule3 followed by Rule1, I get the desired output. However, I am looking for an even better way of writing this in Mathematica. @AndrewCheong
Can you post your calculation code as well? I believe Mathematica sorts rules by generality so there shouldn't be a difference due to ordering, unless you're invoking your computation a certain way.
| 16,546
|
https://en.wikipedia.org/wiki/Grinder
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Grinder
|
https://en.wikipedia.org/w/index.php?title=Grinder&action=history
|
English
|
Spoken
| 317
| 568
|
Grinder may refer to:
Machinery
Various types of grinding machine, used in a machining operation to refine the surface of materials
Food grinders
Blade grinder, includes food processors, blenders, electric coffee and spice grinders, etc.
Coffee grinder, a machine used for grinding coffee
Herb grinder, a grinder used for herbs including marijuana
Meat grinder, a machine used for grinding food
Wet grinder, a grinder that uses water either to soften the product ground or to keep the grinding elements cool
Grinder winch, a device for tensioning a rope to control a sail on a boat
People
Grinder (surname)
Bob Baker (boxer) (1926–2002), American heavyweight boxer nicknamed "The Grinder"
Michael Mizrachi (born 1981), American professional poker player nicknamed "The Grinder"
Cliff Thorburn (born 1948), Canadian retired professional snooker player, nicknamed "The Grinder"
Places
Grinder, Norway, a village in Grue Municipality in Innlandet county, Norway
Grinder Island, Marshall Archipelago, Antarctica
Grinder Rock, Palmer Archipelago, Antarctica
Grinder's Stand, Tennessee, the tavern whose cabin inn Meriweather Lewis died in, in October 1809
Brands or products
Grinder sandwich, a regional name for a submarine sandwich
Grinders (footwear), a footwear brand
Arts and entertainment
Games
The Grinder (video game), an unreleased video game
Młynek (Nine Men's Morris), a board game also known as Grinder
Music
Grinder (band), a German speed/thrash band from the late 80s and early 90s
Organ grinder, the operator of a street organ
"Grinder", song by Judas Priest from the album British Steel, 1980
Television
The Grinder (TV series), a 2015 American sitcom
Grinder (biohacking community), also known as a biohacker, designer and installer of DIY body enhancements
Sports
Grinder (hockey), an ice hockey player whose primary function is checking opponents
Grinder (sailing position), a specific role in yachting, whose primary role is to use winches to control the sails
Ships
, several ships of the Royal Navy
See also
Grider (disambiguation)
Grinde (disambiguation)
Grindr, a gay dating app
Nicknames
| 10,969
|
https://ru.wikipedia.org/wiki/%D0%9F%D0%B8%D0%BA%D0%BE%D0%BA%2C%20%D0%94%D0%B6%D0%BE%D0%BD%20%D0%AD%D0%BD%D0%B4%D1%80%D1%8E
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Пикок, Джон Эндрю
|
https://ru.wikipedia.org/w/index.php?title=Пикок, Джон Эндрю&action=history
|
Russian
|
Spoken
| 219
| 681
|
Джон Эндрю Пикок (John Andrew Peacock, род. 27 марта 1956, Шафтесбери, Великобритания) — британский космолог. Профессор Эдинбургского университета, член Эдинбургского (2006) и Лондонского (2007) королевских обществ. Лауреат премии Шао (2014).
Биография
Окончил с отличием со степенью бакалавра естественных наук кембриджский Колледж Иисуса, где учился в 1974—1977 годах. В 1977—1980 годах работал над докторской в Кавендишской лаборатории Кембриджа (одним из двух его научных руководителей был ). В 1981 году поступил фелло-исследователем в Эдинбургскую королевскую обсерваторию, с 1983 года — на постоянном контракте. Почётный фелло Эдинбургского университета (1988), его почётный профессор (1994), а с 1998 года профессор космологии, с 2000 года работает в университетском Институте астрономии и возглавлял последний в 2007—2013 годах. Подготовил 20 аспирантов (PhD). В 2002 году был назван ISI в числе 25, а в 2014 году — Thomson Reuters в числе 12 наиболее цитируемых астрономов Великобритании. Отмечен Group Achievement Award Королевского астрономического общества (2008). В 2015 году получил Advanced Grant Европейского исследовательского совета. В 2023 награждён золотой медалью Королевского астрономического общества.
Автор более 200 научных работ в реферируемых журналах, H-индекс = 95. Автор учебника ‘Cosmological Physics’ (Cambridge University Press, 1999).
Женат с 1982 года, трое детей.
Ссылки
CV
https://www.ph.ed.ac.uk/people/john-peacock
Космологи
Члены Эдинбургского королевского общества
Члены Лондонского королевского общества
Профессора Эдинбургского университета
Авторы учебников
Лауреаты премии Шао
Выпускники Кембриджского университета
Выпускники Джизус-колледжа (Кембридж)
Награждённые золотой медалью Королевского астрономического общества
| 43,591
|
https://en.wikipedia.org/wiki/Myken%20Lighthouse
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Myken Lighthouse
|
https://en.wikipedia.org/w/index.php?title=Myken Lighthouse&action=history
|
English
|
Spoken
| 146
| 233
|
Myken Lighthouse () is a coastal lighthouse in Rødøy Municipality in Nordland county, Norway. It is located on the small island of Jutøya in the Myken island group, about southwest of the town of Bodø.
It was established in 1918 and was automated in 1975. The 30,200-candela light sits on top of a tall white tower. The occulting light is white, red, or green light depending on direction, occulting once every six seconds. The light can be seen for up to . The light sits at an elevation of above sea level. The light burns continuously from 1 August until 5 May each year. The light is not on during May through July due to the midnight sun.
See also
Lighthouses in Norway
List of lighthouses in Norway
References
External links
Norsk Fyrhistorisk Forening
Lighthouses completed in 1918
Rødøy
Lighthouses in Nordland
Listed lighthouses in Norway
| 13,509
|
https://ml.wikipedia.org/wiki/%E0%B4%85%E0%B4%A8%E0%B5%BC%E0%B4%98%E0%B4%A8%E0%B4%BF%E0%B4%AE%E0%B4%BF%E0%B4%B7%E0%B4%82
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
അനർഘനിമിഷം
|
https://ml.wikipedia.org/w/index.php?title=അനർഘനിമിഷം&action=history
|
Malayalam
|
Spoken
| 55
| 568
|
വൈക്കം മുഹമ്മദ് ബഷീർ എഴുതിയ ചെറുകഥകളിലൊന്നാണ് അനർഘനിമിഷം. സൂഫിമാർഗ്ഗത്തിന്റെ പലതരത്തിലുള്ള കൈവഴികൾ അവിടെ കാണാൻ സാധിക്കുന്നു. താൻ എന്താണെന്ന് സ്വയം അറിയുന്ന നിമിഷത്തിലൂടെ കടന്നുപോകുന്ന എഴുത്തുകാരന്റെ മാനസിക പിരിമുറുക്കം ഒരുതരത്തിൽ ഒരുനിമിഷത്തിൽ കാണുന്നു. ആ നിമിഷത്തെ അനർഘമായി കാണുകയും ആ ചിന്തയെ എങ്ങോട്ടെന്നില്ലാത്ത യാത്രയെയും ചിത്രീകരിക്കുന്നു. ദൈവസ്മരണകളിൽ നിന്നുണ്ടാവുന്ന പ്രണയത്തിന്റെ അനശ്വര നിമിഷം. ഒരുതരത്തിൽ സൂഫിസ്റ്റിക് കാഴ്ചപ്പാടുകളുടെ അന്തർധാരയാണ് ഈ കഥ അനർഘനിമിഷം. ഇത് വായനക്കാരുടെ മനസ്സിലേക്ക് ആഴ്ന്നിറങ്ങുന്നു
അവലംബങ്ങൾ
വൈക്കം മുഹമ്മദ് ബഷീർ എഴുതിയ ചെറുകഥകൾ
| 22,636
|
https://ru.wikipedia.org/wiki/%D0%91%D0%B5%D0%B9%D1%81%D0%B1%D0%BE%D0%BB%D1%8C%D0%BD%D0%BE%D0%B5%20%D0%BF%D0%BE%D0%BB%D0%B5
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Бейсбольное поле
|
https://ru.wikipedia.org/w/index.php?title=Бейсбольное поле&action=history
|
Russian
|
Spoken
| 444
| 1,221
|
Бейсбольное поле — спортивная (игровая) площадка для игры в бейсбол.
Поле занимает площадь около 1 га (площадка для юниоров на одну треть меньше).
Разметка
Разметка поля основана на базах, которые очерчивают квадрат, или «инфилд» (внутреннее поле), с основанием в домашней базе (возле которой стоит бьющий для отражения бросков питчера).
А — домашняя база
Б — первая база
В — вторая база
Г — третья база
Д — питчерская горка
Е — зона для кетчера
Ж — линии фола
З — ограждение поля
И — зоны для бьющего
К — зона для тренера первой базы
Л — зона для тренера третьей базы
М — зоны для разминки следующего бьющего
Квадрат имеет травяное покрытие, за исключением коридоров между базами, специального возвышения для питчера (питчерской горки) и небольшой зоны за домашней базой для «кетчера» (игрока защиты, принимающего подачи питчера).
Питчерская горка расположена в центре квадрата и приподнята на (для юниорских соревнований на ) над общим уровнем поля. На вершине горки закрепляется пластина из отбеленной твёрдой резины, которой питчер должен касаться ногой при исполнении броска в дом бьющему.
Домашняя база или «дом» — это пятиугольник из отбеленной резины, только две его стороны образуют клин. Дом располагается таким образом, чтобы клин показывал на кетчера. Большая сторона прямоугольника обращена к питчеру. Первая, вторая и третья базы представляют собой белые квадраты из мягкого материала, обшитые холстом и прикреплённые к земле металлическими колышками.
Границами игрового поля являются белые линии из молотого мела, идущие от вершины клина дома до первой и третьей баз и дальше до ограждения поля. Эти линии называются линиями фола (штрафными линиями), поскольку территория вне этих линий также называется «фол». Игровая же территория называется «фэйр». На концах фол-линий находятся фол-мачты, относительно которых определяют, находится ли мяч на территории «фол» или «фэйр».
На стадионах, предназначенных для соревнований среди взрослых команд, длина фол-линий должна быть не меньше , но может превышать и (на площадке для юниоров — не менее ). Расстояние до ограждения поля по центру поля должно быть больше, чем по фол-линиям.
Часть поля между квадратом и ограждением называется «аутфилдом» (дальнее поле), но квадрат и аутфилд не отделены специальной разметкой, и передвижение между ними не ограничено для игроков защиты. Аутфилд имеет травяное покрытие.
По обе стороны от дома расположены прямоугольные зоны для бьющих (для левшей и правшей).
За линиями фола в пяти метрах от первой и третьей баз находятся прямоугольные зоны для тренеров нападающей команды, в задачу которых входит руководство продвижением игроков атаки по базам. На расстоянии 12 м от дома около скамеек обеих команд расположены круглые зоны для разминки следующего бьющего.
См. также
Футбольное поле
Ссылки
Baseball field Almanac
PONY Baseball
Baseball Field Dimensions
Differences among MLB fields // snippets.com
Примечания
Бейсбольные стадионы
Бейсбольные правила
Правила спортивных игр
Спортивные сооружения
| 42,939
|
https://literature.stackexchange.com/questions/19881
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,021
|
Stack Exchange
|
English
|
Spoken
| 349
| 487
|
Who is Mrs Icarus in Carol Ann Duffy's poem?
This is Carol Ann Duffy's poem, "Mrs Icarus".
I'm not the first or the last
to stand on a hillock,
watching the man she married
prove to the world
he's a total, utter, absolute, Grade A pillock.
Clearly, Duffy makes reference to Greek mythology and the story of Icarus and Daedalus' wings. However, the speaker in the poem refers to "the man she married" - is the speaker perhaps a friend of Mrs Icarus? Also, the original story states that Icarus is a boy, so it seems counterintuitive for him to have a wife, could "the man" be referring to Daedalus instead? On the other hand the last line seems to describe Icarus' overconfidence in flying too close to the Sun, so the poem appears very ambiguous about who is who. Is there an authoritative interpretation on the identities of the characters in the poem, or has the poet deliberately left it ambiguous?
I think you’re taking it too literally. The speaker is an imaginative invention by the poet, and is not intended to represent any specific character within the classical Icarus myth. She is a woman – any modern wife – who is embarrassed by her husband doing something idiotic in public. She is imagining herself as ‘Mrs Icarus’ and comparing Icarus’s very public demonstration of his foolishness with that of her own husband.
The poet is not being ambiguous at all. Bear in mind that the poem comes from a collection called The World's Wife which, according to Wikipedia, "focuses on the unheard perspective of female counterparts of famously known male figures; it gives a voice to the wives of famous and infamous 'great men' of world literature and civilization". Her speaker, as in all these poems, is an 'everywoman' character whose words shed light on female experience generally.
As no account claims that Icarus was married, it's a metaphor. Her husband has proven his folly as thoroughly as Icarus had when he crashed owing to his own folly, ignoring what Daedalus had warned him of in advance.
| 17,368
|
|
https://stackoverflow.com/questions/4478779
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,010
|
Stack Exchange
|
CobbWebWiki, Daniel James Bryars, Geraldene, João Antonio Bulgareli, MRiney, https://stackoverflow.com/users/19413539, https://stackoverflow.com/users/418246, https://stackoverflow.com/users/9453171, https://stackoverflow.com/users/9453172, https://stackoverflow.com/users/9453173, https://stackoverflow.com/users/9488744, rmisra
|
English
|
Spoken
| 453
| 715
|
How can I persuade System.Xaml.XamlXmlWriter.WriteValue to fire if the Value is NULL
I'm using the XamlServices.Transform to take an object model and serialize it to Xaml.
I've implemented a class which inherits from XamlXmlWriter which overrides WriteValue. I'm using this to reinstantiate a custom MarkupExtension back into the rendered Xaml. My code works fine except when the value of the property is null, in which case the WriteValue doesn't fire and I don't get chance to "swap out" the value in the overriden class.
A related issue is where a property has the same value as that specified by the System.ComponentModel.DefaultValue() attribute. For example say i've got a property in my object model decorated like this:
[DefaultValue(true)]
public Boolean IsVisible {get; set;}
Then the WriteValue method only fires if the IsVisible property is false (which kind of makes sense).
The Remarks section in the documentation (http://msdn.microsoft.com/en-us/library/system.xaml.xamlxmlwriter.writevalue.aspx) mentions something about null values, but I don't understand it:
The input value may be null, which
supports explicitly writing out null
as a serialized value. This behavior
uses the XamlLanguage.Null definition
as WriteStartObject input and then
immediately calls WriteEndObject.
How to I a) make the "WriteValue" fire when the property is null, and b) make the "WriteValue" fire when the property is the same as the DefaultValue Attribute?
I'm not sure if they are related, a solution for either of them would be very welcome.
Thanks,
Daniel
To answer ‘b’ first: The XamlObjectReader’s intended behavior is to skip properties whose value is the declared “default value” and we have no configuration feature to override that. Note that “default value” here is the one declared with the [DefaultValue()] attribute, not the C# language default(T), so things may not be as bad as you fear. I mean not every “0” in an “Int” property is skipped because it is the “default value”.
‘a’: The XamlXmlWriter’s output Node stream for a null value is not “WriteValue(null)”, but instead is “WriteStartObject(nullExtensions); WriteEndObject()”. This is the behavior the documentation you quoted was describing. So you should be fine. Look for StartObject “nullExtension” instead of value “null”.
Thank you. With reference to a) I've played with it a little more and the help does make sense now I've revisited it. With reference to b) that makes total sense; In my particular situation I want the advantage to having "optional" attributes that don't clutter the xaml (some of it is editied by hand) and I want to be able to write out MarkUpExtensions, so in the case where my MarkupExtension has been applied and it produces a "DefaultValue" I preprocess the object model before rendering it to xaml by "changing" the actual value of the property to something which isn't the default value.
| 9,264
|
https://stackoverflow.com/questions/70255303
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,021
|
Stack Exchange
|
Alon Eitan, CBroe, Dev 21, https://stackoverflow.com/users/1427878, https://stackoverflow.com/users/17538257, https://stackoverflow.com/users/754119
|
English
|
Spoken
| 449
| 842
|
json array containing multiple objects
I want fetch multiple objects in each array but my code is showing single object what to do.
Here is my PHP Code how i add another loop to get multiple objects
foreach($row as $row){
$keys = $row['Cat_name'];
$output[$keys] = []; //Creating key
array_push($output[$keys],$row);
}
echo json_encode($output);
and here is result it is showing single object
{
"Dogs": [
{
"id": "127",
"thumb_path": "/VideoWallpaper/other/other17.jpg",
"likes": "59",
"Downloads": "88",
"Cat_name": "Dogs"
}
],
"Others": [
{
"id": "127",
"thumb_path": "/VideoWallpaper/other/other17.jpg",
"likes": "59",
"Downloads": "88",
"Cat_name": "Others"
}
]
}
Read [ask] and create a [mcve]
$output[$keys] = []; //Creating key
You are assigning a new empty array to $output[$keys] every time, meaning what you have pushed into that array in the current loop iteration, will get thrown away in the next iteration where $keys has the same value again.
You don't need to explicitly initialize further array "dimensions" to store data into them. Just initialize $output = []; as an empty array before the loop; then you can add anything below at any level via simple assignment, regardless of whether that level / path / whatever you want to call it, already exists or not - PHP will create it, if necessary.
Replace these two lines
$output[$keys] = []; //Creating key
array_push($output[$keys],$row);
with just
$output[$keys][] = $row;
(Why is $keys named in plural to begin with? This is a single vaue, not multiple ones. And that "helper variable" isn't really necessary to begin with - you can replace the whole loop body you had, with just $output[$row['Cat_name']][] = $row; - if you want to; if the other version with the helper variable is more readable to you, that's fine as well.)
One more thing,
foreach($row as $row){
You should avoid using the same variable name for two different things like that. It does not directly affect what happens inside the foreach loop here - but it will change what row contains after your loop, so in case you still need access to that original array of data afterwards, you should not overwrite it here.
I am assigning keys to remember...
i need format like
{
"response": [
{
"category_id": "1",
"name": "Cat",
"wallpapers": [
{
"start": "2021-12-01 00:35:00",
"episode_num": ""
},
{
"start": "2021-12-01 00:40:00",
"episode_num": ""
},
]
}
}
]
}
You have not even shown us proper input data yet, that could lead to any such result. Those start values for example, where are those coming from? You had already been asked in comments, to please provide a proper [mre] of your issue.
Here is the Code
foreach($row as $row){ $key = $row['cat_id']; $keys = $row['Cat_name']; $output['response'][$keys][ ]= $row; $res= array($output); }
| 25,693
|
https://stackoverflow.com/questions/60797487
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,020
|
Stack Exchange
|
Andrew Thompson, Bwizz, George Z., RRIL97, https://stackoverflow.com/users/13033901, https://stackoverflow.com/users/13072965, https://stackoverflow.com/users/418556, https://stackoverflow.com/users/6579265
|
English
|
Spoken
| 306
| 524
|
Java. Swing. Make setDefaultCloseOperation close the current frame but also open another frame when the X button is clicked in the top right
import javax.swing.*;
public class B extends JFrame {
B(){
this.setSize(1000,1000);
this.setVisible(true);
A a = new A();
this.setDefaultCloseOperation(a.setVisible(true));
}
}
Okay, I have two frames: Frame A and Frame B. When the program executes Frame A opens. When a button is pressed in Frame A, Frame A is hidden and Frame B opens. I need to dispose Frame B, and make Frame A visible again when the default X button is pressed in Frame B. I'm using Swing and I can't figure it out. If there's already a solution on stack, I couldn't find it, but would appreciate a link. Thank you.
Also I would prefer not creating a brand new instance of a frame that is already open. How could I make Frame A visible again. I know it would be easy to make a button for this but I need it for the default X button.
See The Use of Multiple JFrames, Good/Bad Practice? 2) Consider using a CardLayout as shown in this answer. 3) "I know it would be easy to make a button for this but I need it for the default X button." ... Why? 4) See also What is the XY problem?
.. 5) this.setDefaultCloseOperation(a.setVisible(true)); Does that actually compile? setVisible returns nothing (void), while the other method requires an int based argument.
No it was just to demonstrate what I was aiming for. I see how that could be misleading
"just to demonstrate what I was aiming for" Posting uncompilable code is not a good demonstration for anything.
Have you thought about adding a listener?
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
this.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
a.setVisible(true)
}
});
setVisible(false); dispose(); Not needed. Just use setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
Done, my friend.
| 12,400
|
https://cooking.stackexchange.com/questions/93513
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,018
|
Stack Exchange
|
English
|
Spoken
| 63
| 80
|
How do I know eggs are fresh?
I buy eggs from market last week and when I used their colours are little bit changed.I am confused that eggs are fresh or not.
the color does not signify freshness. rather it changes based on the diet of the chickens.
you can see freshness based on the firmness of that little sack around the yolk
| 46,718
|
|
https://stackoverflow.com/questions/26361297
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,014
|
Stack Exchange
|
NikhilWanpal, Oliver Drotbohm, arun, https://stackoverflow.com/users/1333610, https://stackoverflow.com/users/18122, https://stackoverflow.com/users/576741
|
Norwegian Nynorsk
|
Spoken
| 591
| 2,051
|
Why is Spring Data MongoDB unable to instantiate this nested type structure?
My document structure is like:
{
_id: "A",
groups:[{
groupId: "someId",
groupName: "someName",
params: {
type1: ["a", "b"],
type2: ["c", d]
}
}],
config: {
person: {}
dataDetails: {
dataTypeDetails: {},
dataList: ["dt1", "dt2"]
}
}
}
My Spring Data MongoDB model types look like this:
// Imports etc.
@Document
public class Entity {
@Id
private String _id;
private List<Group> groups;
private Config config;
// setters and getters
public class Group {
private String groupId;
private String groupName;
private ParamData params;
// setter and getters
}
public class ParamData {
private List<String> type1;
private List<String> type2;
}
public class Config {
private Map person;
private DataConfig dataDetails;
}
public class DataConfig {
private Map dataTypeDetails;
private List<String> dataList;
}
}
Stacktrace:
org.springframework.data.mapping.model.MappingInstantiationException: Failed to instantiate com.****.common.models.Entity$ParamData using constructor public com.****.common.models.Entity$ParamData(com.****.common.models.Entity) with arguments com.****.common.models.Entity$Group@2eb61a7b
at org.springframework.data.convert.ReflectionEntityInstantiator.createInstance(ReflectionEntityInstantiator.java:78)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:257)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:237)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.readValue(MappingMongoConverter.java:1136)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.access$100(MappingMongoConverter.java:78)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter$MongoDbPropertyValueProvider.getPropertyValue(MappingMongoConverter.java:1085)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.getValueInternal(MappingMongoConverter.java:816)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter$1.doWithPersistentProperty(MappingMongoConverter.java:270)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter$1.doWithPersistentProperty(MappingMongoConverter.java:263)
at org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:261)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:263)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:237)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.readCollectionOrArray(MappingMongoConverter.java:861)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.readValue(MappingMongoConverter.java:1134)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.access$100(MappingMongoConverter.java:78)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter$MongoDbPropertyValueProvider.getPropertyValue(MappingMongoConverter.java:1085)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.getValueInternal(MappingMongoConverter.java:816)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter$1.doWithPersistentProperty(MappingMongoConverter.java:270)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter$1.doWithPersistentProperty(MappingMongoConverter.java:263)
at org.springframework.data.mapping.model.BasicPersistentEntity.doWithProperties(BasicPersistentEntity.java:261)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:263)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:237)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:201)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:197)
at org.springframework.data.mongodb.core.convert.MappingMongoConverter.read(MappingMongoConverter.java:78)
at org.springframework.data.mongodb.core.MongoTemplate$ReadDbObjectCallback.doWith(MongoTemplate.java:2016)
at org.springframework.data.mongodb.core.MongoTemplate.executeFindMultiInternal(MongoTemplate.java:1700)
at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1523)
at org.springframework.data.mongodb.core.MongoTemplate.doFind(MongoTemplate.java:1507)
at org.springframework.data.mongodb.core.MongoTemplate.find(MongoTemplate.java:532)
at org.springframework.data.mongodb.core.MongoTemplate.findOne(MongoTemplate.java:497)
at org.springframework.data.mongodb.core.MongoTemplate.findOne(MongoTemplate.java:489)
My in DAO I am trying to fetch the document by identifier, but it is failing only for the values at dataDetails and params. If I comment out the ParamData param, I get error for DataConfig. The data was added using command line/node scripts and was not added using this code. But it is getting retrieved properly by node/mongoose as well as from command line.
This seems to be an issue with doubly nested inner classes and the synthetically generated constructors created by the compiler. I could reproduce that issue locally and see if we can provide a fix. In the meantime you have two options:
Turn the inner class into static ones as this will remove the synthetic constructors and instantiation will work correctly.
Nest the type declarations in the same way you nest the properties. I.e. move the ParamData class into the Group class, DataConfig into Config as that will cause the synthetic constructors created in a way they match instantiation order Spring Data currently relies on.
I'd suggest the former approach as it doesn't artificially bind the classes to instances of the outer class.
Thank you by moving ParamData inside Group and DataConfig in Config class, it is working now. But have stumbled upon another problem, its not letting me declare the List<Group>, it needs ArrayList<Group> or Group[], but works fine for List<String>! But for now, its working at least.
Failed to instantiate ... using constructor public ... ReflectionEntityInstantiator
says it cannot create the objects using reflection.
Do you have getters and setters for all the fields in all your classes? Your code above does not have them for ParamData, Config and DataConfig.
Also, if you happen to have non-default constructors in any of your classes make sure you have an empty argument constructor, else reflection will fail.
Sorry, it seems I didn't add the comments, but yes all classes have getters and setters and none has a nondefault constructors.
I am not sure if for the sake of saving space here you kept all your classes in Entity class itself, or if they are in their own class files. You need to have each class in a separate file annotated with @Document. For example, see here: http://stackoverflow.com/questions/11255100/mongodb-embedded-objects-have-no-id-null-value
@arun - That's not required. If done correctly, inner classes work.
| 7,660
|
https://stackoverflow.com/questions/30520848
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,015
|
Stack Exchange
|
Var, https://stackoverflow.com/users/4159888
|
English
|
Spoken
| 377
| 675
|
Python try except error, program crashes
def install_build(install_info,source_url=None):
if source_url is None:
try:
version_no = install_info["version_number"]
build_no = install_info["build_number"]
if version_no is None or build_no is None:
raise ValueError("Please specifiy the value(s) for either the source_url or version number and the build number")
except KeyError:
print("You are missing either or both of these keys: version number or build number")
# If the necessary parameters are present, call the method to install the build
install_build_on_server(version_no,build_no,source_url)
if __name__ == "__main__":
install_build(
{
"product_type":"abc",
"username":"def",
"version_number":None,
"build_number":"123",
"password":"xyz"
}
)
The above method tries to install a build either from a source url [of the installer] or by collectively taking the build and version number and queries the build repository, gets the repository and installs the build. Thus, either the source url can be None or the version_number and build_number can be None not both. I have written the error handling for the same. But my application fails to handle the error for the above scenario. Could any one let me know what i am missing?
Here is the output of the program:
Traceback (most recent call last):
File "test.py", line 18, in <module>
"password":"xyz"
File "test.py", line 7, in install_build
raise ValueError("Please specifiy the value(s) for either the source_url or version number and the build number")
ValueError: Please specifiy the value(s) for either the source_url or version number and the build number
if version_no is None or build_no is None:
should be
if version_no is None and build_no is None:
If i use the and condition, instead of or, it does not print the error message, i mean the exception is not raised.
My case is, both should have string values. so if version_no is None and build_no has value, "AND" condition fails
Check both with and :
if version_no is None and build_no is None:
Since version_no you are passing is None which raises a Value error in (OR) part.Either change the condition or pass a value other than None in both version_no and build_no.
If i use the and condition, instead of or, it does not print the error message, i mean the exception is not raised. My case is, both should have string values. so if version_no is None and build_no has value, "AND" condition fails
| 20,378
|
https://hy.wikipedia.org/wiki/%D5%8D%D5%A1%D5%BE%D5%A5%D6%80%D5%A4%D5%AB
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Սավերդի
|
https://hy.wikipedia.org/w/index.php?title=Սավերդի&action=history
|
Armenian
|
Spoken
| 62
| 349
|
Սավերդի, գյուղակ Արևմտյան Հայաստանում, Էրզրումի վիլայեթի Երզնկայի գավառում։ Գտնվում էր Եփրատի ձախ կողմի Մերջան վտակի աջ ափին, Երզնկա քաղաքից 35 կմ հարավ-արևմուտք, լեռնալանջի վրա։
Բնակչություն
XX դարի սկզբին ուներ 8 տուն բնակիչ։
Աղբյուրներ
«Հայաստանի և հարակից շրջանների տեղանունների բառարան» (5 հատորով), 1986-2001 թթ., Երևանի Համալսարանի հրատարակչություն
Արեւմտահայաստանի եւ Արեւմտահայութեան Հարցերու Ուսումնասիրութեան Կեդրոն
Տես նաև
Էրզրումի նահանգի հայաբնակ բնակավայրեր
Ծանոթագրություններ
Արևմտյան Հայաստանի գյուղեր
| 44,113
|
https://stackoverflow.com/questions/45223464
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,017
|
Stack Exchange
|
Arpit Shah, Joe K, cchantep, https://stackoverflow.com/users/3347384, https://stackoverflow.com/users/4642950, https://stackoverflow.com/users/84538, https://stackoverflow.com/users/854793, jon hanson
|
Venetian
|
Spoken
| 295
| 637
|
Scala Array of Case Class
I have one case class.
case class Tax(state: String, code: String, pr: String, lic: String)
I am querying data from H2 database using playframework. The query returns multiple columns. Following is table structure.
Create table t(key bigint primary key, state1 varchar(10), code1 varchar(15), pr1 varchar(1), lic1 varchar(10), state2 varchar(10), code2 varchar(15), pr2 varchar(1), lic2 varchar(10), state3 varchar(10), code3 varchar(15), pr3 varchar(1), lic3 varchar(10), state4 varchar(10), code4 varchar(15), pr4 varchar(1), lic4 varchar(10));
I want to create array/list of case class and have 4 kind of rows in it.
val taxes= List[Tax]
if (rs.next()) {
var a=1
while (!Option(rs.getString("state"+a)).getOrElse("").isEmpty){
val tax = Taxonomy(rs.getString("state"+a),rs.getString("code"+a),rs.getString("pr"+a),rs.getString("lic"+a))
//taxonomies = taxonomy Here I want to create array/list of taxonomy
a = a + 1
return taxonomy
}
}
} finally {
conn.close()
}
First have a look at the DB libraries which are available for
Have you looked at Doobie (https://github.com/tpolecat/doobie)?
The comments about a DB access library are good; that would be better long-term. But might be overkill depending on your use case. Here's how I would write this directly:
val taxes = if(rs.next()) {
(1 to 4).map { a =>
for {
state <- Option(rs.getString("state"+a))
code <- Option(rs.getString("code"+a))
pr <- Option(rs.getString("pr"+a))
lic <- Option(rs.getString("lic"+a))
} yield Tax(state, code, pr, lic)
}.toList.flatten
} else {
List.empty[Tax]
}
When one of the element (state/code/pr/lic) is null/None, Tax in itself is coming as empty. In my scenario one column is mostly blank and because of that complete resultset is coming as null/empty
If you want to allow one of the fields to be empty, change it to an Option[String] in the case class, and replace field <- Option(...) with val field = Option(...)
Good scala style is pretty adamant about not allowing nulls anywhere and using Options instead.
| 44,927
|
https://gl.wikipedia.org/wiki/Gladys%20Cooper
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Gladys Cooper
|
https://gl.wikipedia.org/w/index.php?title=Gladys Cooper&action=history
|
Galician
|
Spoken
| 449
| 820
|
Dame Gladys Constance Cooper, DBE, nada en Londres (Inglaterra) o 18 de decembro de 1888 e finada en Henley-on-Thames o 17 de novembro de 1971 foi unha actriz británica.
Traxectoria
Cooper naceu no distrito de Lewisham. O seu pai foi Charles William Frederick Cooper e a súa nai Mabel Barnett. Tivo dúas irmás. Debutou no teatro en 1905 con Bluebell in Fairyland, mais non foi ata 1922 cando tivo o seu primeiro éxito con The Second Mrs. Tanqueray, de Arthur Wing Pinero. Interveu en Home and Beauty, de William Somerset Maugham, en Londres en 1919, e en The Letter, obra do mesmo autor, en 1927. O seu último grande éxito no teatro foi no papel de Mrs. St. Maugham en The Chalk Garden, de Enid Bagnold, un papel que representou en Londres e en Broadway. En 1967 traballou novamente en Londres nunha obra de Maugham, The Sacred Flame, e en 1971 volveu representar The Chalk Garden no Teatro Haymarket.
Ao principio da súa carreira teatral, foi criticada por ser estirada. Aldous Huxley rexeitou a súa actuación en Home and Beauty: «é demasiado impasible, demasiado ríxida, actuando todo o tempo como se fose Galatea, aínda desafeita aos modos dun mundo vivo». Porén, Maugham eloxiouna por «cambiar de ser unha actriz indiferente a unha extremadamente competente» mediante o seu sentido común e traballo.
Tamén tivo éxito en Hollywood nunha variedade de papeis de carácter e foi escollida con frecuencia para interpretar mulleres da aristocracia de xesto desaprobador. Interveu en Rebecca e foi candidata tres veces ao premio Oscar: pola patoloxicamente represiva madre de Bette Davis en A estraña pasaxeira, como unha monxa escéptica en The Song of Bernadette, e como Mrs. Higgins en My Fair Lady.
Entre os seus moitos traballos na televisión, protagonizou a serie The Rogues, xunto a David Niven, Gig Young, Robert Coote, John Williams e Larry Hagman. Por esta actuación gañou o Globo de Ouro en 1965. Tamén participou en tres episodios de The Twilight Zone.
Nos seus últimos anos volveu ao Reino Unido. Traballou xunto a Wendy Hiller e Leo Genn en The Sacred Flame, en Londres, en 1967, ano en que foi nomeada Dama Comandante (DBE) da Orde do Imperio Británico. Faleceu por unha pneumonía aos 82 anos en Henley-on-Thames, Inglaterra.
Filmografía
Véxase tamén
Bibliografía
Without Veils, por Sewell Stokes, introdución de Somerset Maugham, Peter Davis, Londres (1953).
Gladys Cooper, por Sheridan Morley (1979)
Ligazóns externas
Gladys Cooper with children John and Joan en National Portrait Gallery
Postais de Gladys Cooper en www.gladyscooper.com
Interpretacións no arquivo Theatre Collection, Universidade de Bristol
Actores de cine de Inglaterra
Actores de teatro de Inglaterra
Actores de televisión de Inglaterra
Nados en Lewisham
Nados en 1888
Finados en 1971
| 13,817
|
https://ja.wikipedia.org/wiki/%E5%BE%8C%E6%A5%BD
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
後楽
|
https://ja.wikipedia.org/w/index.php?title=後楽&action=history
|
Japanese
|
Spoken
| 88
| 1,654
|
後楽(こうらく)は、東京都文京区の町名。現行行政地名は後楽一丁目および後楽二丁目。郵便番号は112-0004。
地理
東京都文京区南部に位置する。北では春日、東では本郷、南では千代田区神田三崎町・千代田区飯田橋、西では新宿区下宮比町・新宿区新小川町、西北では水道と接する。町域の大半を小石川後楽園と東京ドームシティが占めている。飯田橋駅、後楽園駅、水道橋駅から至近で、外堀通り等の幹線道路が東西南北に走るという交通アクセスの良さから、トヨタ自動車等の有力企業が本社(東京本社も含む)を置いている。
中央部に小石川後楽園、東部に東京ドームシティが所在する。西と南の境界を神田川が流れ、神田川に沿って南北に目白通りと首都高速5号池袋線、東西に外堀通りが走っており、東の境界を白山通りが走っている。東京メトロ南北線、都営地下鉄大江戸線、同・三田線が地下を通っており、東京メトロ丸ノ内線、同・有楽町線、同・東西線、JR中央・総武線が近接している。
また、付近には中央大学大学院理工学研究科・理工学部の後楽園キャンパス(所在地は文京区春日)がある。
歴史
1964年(昭和39年)、住居表示の実施により、小石川町一丁目、春日町一丁目、市兵衛河岸、諏訪町、新諏訪町を合わせて「後楽一丁目」、「後楽二丁目」とされる。
地名の由来
水戸徳川家の庭園、小石川後楽園に由来する。
世帯数と人口
2019年(令和元年)9月1日現在の世帯数と人口は以下の通りである。
小・中学校の学区
区立小・中学校に通う場合、学区は以下の通りとなる。
交通
鉄道
東京都交通局:都営地下鉄三田線 - 水道橋駅(JR水道橋駅は当地内にはない)
東京都交通局:都営地下鉄大江戸線 - 飯田橋駅(JR、東京地下鉄の飯田橋駅は当地内にはない)
バス
都営バス
「都営飯田橋駅前」:飯62
「飯田橋」:飯64
「大曲」:上69
「後楽園(水道橋)」:都02乙
文京区コミュニティバス「Bーぐる」
「小石川後楽園入口」:千駄木方面
「後楽一丁目」:千駄木方面
「東京ドームホテル」:千駄木方面
「ミーツポート」:千駄木方面
「小石川税務署」:目白台方面
「後楽二丁目」:目白台方面
道路
首都高速5号池袋線・飯田橋出入口
白山通り(東京都道301号白山祝田田町線)
目白通り(東京都道8号千代田練馬田無線)
外堀通り(東京都道405号外濠環状線)
東京都道434号牛込小石川線
施設・企業等
公共施設・学校・公園
飯田橋合同庁舎(東京労働局、ハローワーク飯田橋、中央労働基準監督署)
東京都立中央・城北職業能力開発センター
警視庁遺失物センター
富坂警察署後楽交番、東京ドーム警備派出所
東京都立文京盲学校
小石川後楽園
後楽公園
文京区小石川運動場
企業・団体
東京ドームシティ
東京ドーム
野球殿堂博物館
東京ドームシティアトラクションズ
シアターGロッソ
東京ドームホテル
後楽園ホール
東京ドーム本社
ミーツポート
ウインズ後楽園
offt後楽園
トヨタ東京ビル
トヨタ自動車東京本社
トヨタアルバルク東京本社
日本サッカー協会本部
日本フットボールリーグ本部
後楽鹿島ビル
鹿島道路本社
(公財)日本バスケットボール協会
(公社)ジャパン・プロフェッショナル・バスケットボールリーグ
住友不動産飯田橋ファーストビル
三井ダイレクト損害保険本社
住宅金融支援機構本店
五洋建設本社
芳文社本社
日の丸自動車グループ本社(日の丸交通、日の丸リムジン)
ペルノ・リカール・ジャパン本社
はせがわ東京本社(お仏壇のはせがわ)
ミスミグループ本社
東京ケーブルネットワーク本社
サカタインクス東京本社
田辺三菱製薬東京支店
日中友好会館
脚注
外部リンク
文京区
文京区の町名
| 45,471
|
https://sh.wikipedia.org/wiki/By%C3%A4lven
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Byälven
|
https://sh.wikipedia.org/w/index.php?title=Byälven&action=history
|
Serbo-Croatian
|
Spoken
| 104
| 249
|
Byälven (švedski: Byälvensån) je rijeka u sredini Švedske duga
40 km (150).
Geografske karakteristike
Byälven po jednom izvire iz Jezera Glafsfjorden sjeverno od Säfflea u Grofoviji Värmland, od tamo teče prema jugu do ušća u Jezero Vänern.
Ako se uzme krajnji izvor rijeke, koji se nalazi kod Kongsvingera u Norveškoj onda je rijeka duga 150 km.
Sliv rijeke velik je 4785 km² i proteže se od norveške granice do Jezera Vänern.
Rijeka je 1837. produbljena za vrijeme gradnje kanala Säffle od Jezera Vänern do Jezera Glafsfjorden pa njome mogu ploviti i veći brodovi.
Izvori
Vanjske veze
Karta rijeke na portalu VISS
Rijeke u Švedskoj
| 2,279
|
https://fr.wikipedia.org/wiki/%C4%8Cestm%C3%ADr%20Je%C5%99%C3%A1bek
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Čestmír Jeřábek
|
https://fr.wikipedia.org/w/index.php?title=Čestmír Jeřábek&action=history
|
French
|
Spoken
| 82
| 171
|
Čestmir Jeřábek (, Litomyšl - , Brno) est un écrivain tchèque influencé par le dadaïsme et l'expressionnisme.
Biographie
Bibliographie
1930 Le monde en Flammes (collection combattants européens Librairie Valois, sous la direction de José Germain, président honoraire de l'association des Écrivains anciens Combattants)
1957 : Někomu Život Někomu smrt
Références
Écrivain tchèque du XXe siècle
Naissance en août 1893
Naissance à Litomyšl
Naissance dans le royaume de Bohême
Décès en octobre 1981
Décès à Brno
Décès à 88 ans
Décès en Tchécoslovaquie
| 43,632
|
https://no.wikipedia.org/wiki/Raja%20Ampat-%C3%B8yene
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Raja Ampat-øyene
|
https://no.wikipedia.org/w/index.php?title=Raja Ampat-øyene&action=history
|
Norwegian
|
Spoken
| 123
| 277
|
Raja Ampat-øyene er ei øygruppe i Indonesia som ligger like nordvest for Fuglehodehalvøya på Ny-Guinea. Øygruppa tilhører provinsen Papua Barat, og utgjør et eget distrikt som i sin tur er delt inn i ti underdistrikter. Den består av over 1 500 øyer, holmer og sandbanker som omgir de fire hovedøyene er Misool, Salawati, Batanta og Waigeo, samt den noe mindre Kofiau. Øyene og det omkringliggende havområdet utgjør et areal på om lag 46 000 km².
Ved folketellinga i 2001 hadde øyene 47 771 innbyggere, og vekstraten var på 0,32 %. Det er 85 landsbyer til sammen på øyene. På øyene snakkes det ulike raja ampat-språk, som er ei undergruppe av den malayopolynesiske språkgruppa.
Bilder
Referanser
Eksterne lenker
Øygrupper i Oseania
Øyer i Stillehavet
| 50,722
|
https://stackoverflow.com/questions/15870533
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,013
|
Stack Exchange
|
Roger Ray, https://stackoverflow.com/users/1516376
|
English
|
Spoken
| 505
| 1,809
|
Liquibase doesn't commit changeSet with Ant
I've already tried liquibase 3.0 beta with Spring( btw It didn't work with 2.0 ). It went well.
Now I'm testing it with Ant with the same database and changelog, after rollbacked all the changes and dropped table DATABASECHANGELOG and DATABASECHANGELOGLOCK.
The problem is liquibase logged all the changesets in table DATABASECHANGELOG , which means there isn't any error in my config , but It didn't commit the changes to the database.
Here is my changelog.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd">
<preConditions>
<dbms type="mysql"/>
</preConditions>
<changeSet id="1" author="bob" runAlways="true">
<createTable tableName="department">
<column name="id" type="int">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="name" type="varchar(50)">
<constraints nullable="false"/>
</column>
<column name="active" type="boolean" defaultValueBoolean="true"/>
</createTable>
</changeSet>
<changeSet id="2" author="roger" runAlways="true">
<comment>test add column</comment>
<addColumn tableName="department">
<column name="header" type="varchar(8)"/>
</addColumn>
</changeSet>
<changeSet id="3" author="gabriel" runAlways="true">
<createTable tableName="records">
<column name="id" type="int" autoIncrement="true">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="title" type="varchar(50)"/>
</createTable>
</changeSet>
<changeSet id="4" author="gabriel" context="test" runAlways="true">
<insert tableName="records">
<column name="title" value="Liquibase 0.8 Released"/>
</insert>
<insert tableName="records">
<column name="title" value="Liquibase 0.9 Released"/>
</insert>
</changeSet>
<changeSet id="6" author="nvoxland" runAlways="true">
<comment>test update eam_company</comment>
<sql>update eam_company set companyName='haha' where companyId=15</sql>
</changeSet>
</databaseChangeLog>
Ant build.xml file:
<?xml version="1.0" encoding="utf-8"?>
<project name="ncpsys_v2" default="all">
<!-- define time stamp -->
<tstamp>
<format property="current.time" pattern="yyyy_MM_dd_HH_mm_ss"/>
</tstamp>
<!-- define varibles and path -->
<property file="liquibaseconf.properties"/>
<path id="ant.classpath">
<fileset dir="${ant.home}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="sync-database">
<fail unless="db.changelog.file">db.changelog.file not set</fail>
<fail unless="database.url">database.url not set</fail>
<fail unless="database.username">database.username not set</fail>
<fail unless="database.password">database.password not set</fail>
<taskdef resource="liquibasetasks.properties">
<classpath refid="ant.classpath"/>
</taskdef>
<changeLogSync changeLogFile="${db.changelog.file}" driver="${database.driver}" url="${database.url}" username="${database.username}" password="${database.password}" promptOnNonLocalDatabase="true" defaultSchemaName="root" classpathref="ant.classpath">
</changeLogSync>
</target>
<target name="all" depends="sync-database"/>
</project>
liquibasetasks.properties file
local.dir=.
#gwt.home=E:/work/libaray/gwt-2.3.0
jdk.home.1.6=C:/Program Files/Java/jdk1.6.0_10
ant_home=D:/software/apache-ant-1.8.3
tomcat.home=C:/Program Files/Apache Software Foundation/apache-tomcat-6.0.36
#liquibase config
database.driver=com.mysql.jdbc.Driver
database.url=jdbc:mysql://localhost:3306/ncpsys_v2?useUnicode=true&characterEncoding=UTF-8
database.username=root
database.password=1234
db.changelog.file=changelog.xml
And I run the Ant task, liquibase created table DATABASECHANGELOG and DATABASECHANGELOGLOCK for me, and inserted logs in DATABASECHANGELOG .
my build log:
sync-database:
[changeLogSync] INFO 13-4-2 下午1:22:liquibase: Successfully acquired change log lock
[changeLogSync] INFO 13-4-2 下午1:22:liquibase: Creating database history table with name: `ncpsys_v2`.`DATABASECHANGELOG`
[changeLogSync] INFO 13-4-2 下午1:22:liquibase: Reading from `ncpsys_v2`.`DATABASECHANGELOG`
[changeLogSync] INFO 13-4-2 下午1:22:liquibase: Reading from `ncpsys_v2`.`DATABASECHANGELOG`
[changeLogSync] INFO 13-4-2 下午1:22:liquibase: Successfully released change log lock
all:
BUILD SUCCESSFUL
Total time: 2 seconds
but the change didn't happened in the database. I didn't see the table RECORDS and DEPARTMENT been created and inserted with data. The update sql didn't apply neither.
Is there anything I did wrong ? Or is there a bug that haven't been fixed under version 3.0beta1 (oh .. I also try beta2, didn't work, and I got a chinese garbled character problem )
I posted this question on liquibase forum and got no answer, so I come to you guys.
Please, help me! I got all confused.
You're running the changeLogSync ANT task. Described as follows:
Marks all change sets as ran against the database. Useful when you have manually updated your database.
This explains why nothing was committed to your database. I think you should have used the updateDatabase task instead
Thanks so much for saving my ass! I've been too careless, didn't went all the manual through.
| 20,357
|
https://stackoverflow.com/questions/37862336
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,016
|
Stack Exchange
|
Jay, Martin Pfeffer, https://stackoverflow.com/users/2533290, https://stackoverflow.com/users/6337156
|
English
|
Spoken
| 169
| 412
|
Android: implement search in appbar
In my application I have an app bar like the one in the image below
(source: jayway.com)
On the left of the appbar I have a TextView and on the right a SearchView and a menu.
How can I implement the search action?
I would like the searchview expanding to the entire width of the app bar and hiding the TextView on the left, when search icon is pressed.
Something like Youtube or Gmail apps.
please help me. Thanks.
The item (add it in res/menu/menu.xml):
<menu>
<!-- ... ->
<item android:id="@+id/action_search"
android:title="@string/search_title"
android:icon="@drawable/ic_search"
android:showAsAction="collapseActionView|ifRoom"
android:actionViewClass="android.widget.SearchView" />
</menu>
don't forget to override
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
MenuItem menuItemSearch = menu.findItem(R.id.action_search);
SearchView searchView = (SearchView)
MenuItemCompat.getActionView(menuItemSearch);
return true;
}
Sorry where I have to add this?
thx, it works. But if I would use android.support.v7.widget.SearchView instead of android.widget.SearchView how can I implement the java onCreateOptionsMenu() ? Because this code not worws for android.support.v7.widget.SearchView ...
Did you link the support v7 in gradle?
| 45,680
|
https://de.wikipedia.org/wiki/DZW%20%E2%80%93%20Die%20ZahnarztWoche
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
DZW – Die ZahnarztWoche
|
https://de.wikipedia.org/w/index.php?title=DZW – Die ZahnarztWoche&action=history
|
German
|
Spoken
| 320
| 657
|
dzw – Die ZahnarztWoche (dzw) ist eine wöchentlich erscheinende Fachzeitung für Zahnärzte, Zahntechniker, ihre Mitarbeiter in Praxis und Labor und den gesamten Dentalmarkt. Sie erscheint als derzeit einziges Medium dieser Art im Zahnärztlichen Fach-Verlag – zfv, Herne.
Geschichte
Die dzw
wurde 1987 von Rolf Hinz, Gründer und Inhaber des Zahnärztlichen Fach-Verlags (zfv), und dem Journalisten und Publizisten Jürgen Pischel, Inhaber des Redaktionsbüros Bonn, gegründet, die bis zum 30. Juni 2009 gemeinsam Herausgeber der Zeitung waren. Seit dem Ausscheiden von Jürgen Pischel zum 1. Juli 2009 ist Rolf Hinz alleiniger Herausgeber der dzw.
Die erste Ausgabe der dzw erschien am 1. April 1987. Chefredakteur war seit der Gründung bis zum 30. Juni 2009 Jürgen Pischel. Ab dem 1. Juli 2009 war Marion Marschall Chefredakteurin des Blattes, die Redaktion ging zu diesem Zeitpunkt an den Verlag über. Nach einem umfassenden Relaunch im September 2015 erscheint die dzw in einem komplett neuen Layout.
Seit 1. September 2017 ist der langjährige Mitarbeiter Marc Oliver Pick Chefredakteur der dzw. Im Dezember 2019 wurde der Redaktionssitz von Bonn an den Verlagsstandort in Herne verlegt.
Themen
Ständige Themen der Berichterstattung sind Gesundheits- und Berufspolitik, Zahnmedizin, Fortbildung, Praxisführung (Praxismanagement, Praxismarketing, Finanzierung, Recht), Abrechnung, neue Produkte und Materialien und Wirtschaftsthemen aus dem Dentalmarkt. Regelmäßige Themenseiten gibt es zu verschiedenen Bereichen der Zahnmedizin. Umfangreiche Berichterstattung gibt es regelmäßig zum Tag der Zahngesundheit, zum Deutschen Zahnärztetag und alle zwei Jahre zur Internationalen Dental-Schau (IDS).
Beilagen
Als eigene Bücher innerhalb der dzw erscheinen seit 2020 die Schwerpunkte dzw ZahnTechnik (4 Ausgaben pro Jahr) zu zahntechnischen Themen und dzw Orale Implantologie (4 Ausgaben pro Jahr) zur Implantologie. Das Fachmagazin „FAN - FachAssistenzNews“ erscheint seit 2020 10 Mal jährlich als Beilage der dzw. Die dzw und ihre Schwerpunktveröffentlichungen sowie das Magazin FAN sind als ePaper verfügbar.
Sonstiges
Seit März 1999 unterhält die dzw einen eigenen Internetauftritt, der im März 2013 einem Relaunch unterzogen wurde.
Einzelnachweise
Zahnmedizinische Zeitschrift
Medizinische Fachzeitschrift (Deutschland)
Ersterscheinung 1987
Deutschsprachige Wochenzeitschrift
| 48,442
|
https://zh.wikipedia.org/wiki/%E6%96%BD%E6%B3%B0%E8%B2%BB%E5%88%A9%E5%BC%97%E7%9B%A7%E5%B1%B1
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
施泰費利弗盧山
|
https://zh.wikipedia.org/w/index.php?title=施泰費利弗盧山&action=history
|
Chinese
|
Spoken
| 8
| 141
|
施泰費利弗盧山(Stäfeliflue),是瑞士的山峰,位於該國中部,處於盧塞恩州和上瓦爾登州接壤的邊界,屬於皮拉圖斯峰的一部分,海拔高度1,922米,每年平均降雨量2,465毫米。
參考資料
Stäfeliflue, 1922 m.ü.M. auf gipfelbuch.ch
瑞士山峰
| 41,728
|
https://stackoverflow.com/questions/1640681
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,009
|
Stack Exchange
|
Dave, John Nicely, Stackuser999, TJH, gapc311, https://stackoverflow.com/users/158054, https://stackoverflow.com/users/189624, https://stackoverflow.com/users/3271960, https://stackoverflow.com/users/3271961, https://stackoverflow.com/users/3271962, https://stackoverflow.com/users/3272014, https://stackoverflow.com/users/3272015, https://stackoverflow.com/users/3272029, https://stackoverflow.com/users/3272064, https://stackoverflow.com/users/3272135, slash-dev, user3271962, user3272014, user3272064, user3272135
|
English
|
Spoken
| 724
| 2,307
|
Showing /hiding elements of a form based on menu selection
I am trying to program (while learning JQuery) the following:
I have a form with various elements in it. Based on a selection made with a select menu item, I want one or more elements to either be hidden or shown. I have this so far as a script:
// JavaScript Document
var joinApp = {
ready : function() {
var selApp = 'institution'
$('select#appType').click(function() {
var selApp = $("#appType :selected").text();
switch ($selApp) {
case 'institution':
{
$('li#attachFile').addClass('turnOn');
break;
}
case 'individual':
{
$('li#attachFile').removeClass('turnOn').addClass('turnOff');
$('li#beac_rep').addClass('turnOff');
$('li#instit_name').addClass('turnOff');
break;
}
case 'associate':
{
$('li#instit_name').removeClass('turnOff').addClass('turnOn');
break;
}
}
});
}
}
This is the form:
<form action="javascript:void(0);" method="post" enctype="multipart/form-data" class="clean" id="joinApp">
<ol>
<li>
<fieldset>
<legend>beac membership</legend>
<ol>
<li>
<label for="date">date: <span class="alert">*</span></label>
<input type="text" id="date" name="date" value="" />
<script language="JavaScript">
new tcal ({
// form name
'formname': 'join',
// input name
'controlname': 'date'
});
</script></li>
<li>
<label for="appType">choose membership type: <span class="alert">*</span></label>
<select name="appType" id="appType">
<option value="institution" id="instit">Institution</option>
<option value="individual" id="individ">Individual</option>
<option value="associate" id="assoc">Associate</option>
</select>
</li>
<li id="instit_name">
<label for="instit_name">name of institution/company: <span class="alert">*</span></label>
<input type="text" id="instit_name" name="instit_name" value="" />
</li>
<li>
<label for="address1">address:</label>
<input type="text" id="address1" name="address1" value="" />
</li>
<li>
<label for="address2">address 2:</label>
<input type="text" id="address2" name="address2" value="" />
</li>
<li>
<label for="city">city:</label>
<input type="text" id="city" name="city" value="" />
</li>
<li>
<label for="pcode">postal code:</label>
<input type="text" id="pcode" name="pcode" value="" />
</li>
<li>
<label for="prov">province or territory:</label>
<select name="prov" id="prov">
<option selected="selected">-- select province or territory --</option>
<option value="Alberta">Alberta</option>
<option value="British Columbia">British Columbia</option>
<option value="Manitoba">Manitoba</option>
<option value="New Brunswick">New Brunswick</option>
<option value="Newfoundland and Labrador">Newfoundland and Labrador</option>
<option value="Northwest Territories">Northwest Territories</option>
<option value="Nova Scotia">Nova Scotia</option>
<option value="Nunavut">Nunavut</option>
<option value="Ontario">Ontario</option>
<option value="Prince Edward Island">Prince Edward Island</option>
<option value="Québec">Québec</option>
<option value="Saskatchewan">Saskatchewan</option>
<option value="Yukon">Yukon</option>
</select>
</li>
<li>
<label for="areacode">areacode:</label>
<input type="text" id="areacode" name="areacode" value="" />
</li>
<li style="">
<label for="phone">phone:</label>
<input type="text" id="phone" name="phone" value="###-###-####" />
</li>
<li>
<label for="phone_ext">phone ext:</label>
<input type="text" id="phone_ext" name="phone_ext" value="" />
</li>
<li>
<label for="fax">fax:</label>
<input type="text" id="fax" name="fax" value="" />
</li>
<li id="beac_rep">
<label for="instit_rep">BEAC rep name:</label>
<input type="text" id="instit_rep" name="instit_rep" value="" />
</li>
<li>
<label for="title">title:</label>
<input type="text" id="title" name="title" value="" />
</li>
<li>
<label for="PHORM_FROM">email: <span class="alert">*</span></label>
<input name="PHORM_FROM" type="text" id="PHORM_FROM" value="" />
</li>
<li>
<label for="instit_web">institutional web site:</label>
<input type="text" id="instit_web" name="instit_web" value="" />
</li>
<li id="attachFile">
<label for="attach">attach document:</label>
<input type="file" name="attach" id="attach" />
</li>
</ol>
</fieldset>
</li>
</ol>
<input type="reset" value="CANCEL" />
<input type="submit" value="OK" />
</form>
and this is my CSS:
li#attachFile { display: block; }
form#joinApp li.turnOff { display: none; }
form#joinApp li.turnOn { display: block; }
So far, this is not functioning. I appreciate any help anyone can give me.
Dave
The jQuery way of writing that would be something like
$(function() {
$('#appType').change(function() {
switch ($(this).val()) {
case 'institution':
$('#attachFile').addClass('turnOn');
break;
case 'individual':
$('#attachFile').removeClass('turnOn').addClass('turnOff');
$('#beac_rep, #instit_name').addClass('turnOff');
break;
case 'associate':
$('#instit_name').removeClass('turnOff').addClass('turnOn');
break;
}
});
});
To remain with the object literal pattern that you have used, it would be something like
var joinApp = {
ready : function() {
$(function() {
$('#appType').change(function() {
switch ($(this).val()) {
case 'institution':
$('#attachFile').addClass('turnOn');
break;
case 'individual':
$('#attachFile').removeClass('turnOn').addClass('turnOff');
$('#beac_rep, #instit_name').addClass('turnOff');
break;
case 'associate':
$('#instit_name').removeClass('turnOff').addClass('turnOn');
break;
}
});
});
}
}
and then you would call joinApp.ready(); in your page
First issue is on the first two lines of the click() event. Select boxes must utilize the change() event. Also, on the next line, you are attempting to get the value of the selected option. This is grabbed using val(), whereas text() retrieves the value between and .
$('#appType').change(function() {
var selApp = $(this).val();
Lastly, I didn't see where you initialized by calling joinApp.ready();. Is this elsewhere in your document?
When you use .click() on the select, it won't get triggered when an item is selected because those items are not within the box of the select. Try using .change() instead of .click (with the same stuff you have in there). Also, instead of using this:
var selApp = $("#appType :selected").text();
Do this:
var selApp = $("#apptype:selected").val();
I will look at the other but I jut had a question about your response: doesn't this just set the value of the var selApp to the index ( 0, 1, 2 etc) rather than the actual value i.e. institution etc?
Only if you haven't defined the "value" attribute of the option that is selected. It will get the value attribute if that is defined.
| 26,453
|
https://es.stackoverflow.com/questions/452901
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,021
|
Stack Exchange
|
Spanish
|
Spoken
| 565
| 1,140
|
Remover estilos globales de Ant Design sin perder la funcionalidad de sus componentes
Estoy tratando de usar un componente Modal de la librería Ant Design.
El problema es que al importar el CSS antd/dist/antd.css se aplican absolutamente todos los estilos de la librería al resto de mi APP, lo que incluye sus estilos a los H1, H2, etc.
Lo que yo necesito es que se apliquen solo los estilos del componente Modal.
Para lograr eso intenté aplicar una de las soluciones que encontré en uno de los issues de la librería: Remove global Styles
Más puntualmente la que sugiere importar solo los estilos específicos de un componente y no todo el archivo antd/dist/antd.css.
Me quedó algo así:
import React from 'react';
import ReactDOM from 'react-dom';
/*import 'antd/dist/antd.css';*/
import Button from 'antd/lib/button';
import 'antd/lib/button/style/index.css'
import Modal from 'antd/lib/modal';
import 'antd/lib/modal/style/index.css'
import Space from 'antd/lib/space';
import 'antd/lib/space/style/index.css'
import { ExclamationCircleOutlined } from '@ant-design/icons';
const { confirm } = Modal;
const deletes = () => {
console.log('OK, desde función deletes');
}
function showDeleteConfirm() {
confirm({
title: '¿Seguro que desea eliminar esta asginación?',
icon: <ExclamationCircleOutlined />,
content: 'Tenga en cuenta que esta acción no se puede deshacer.',
cancelText: 'No',
okText: 'Sí',
okType: 'danger',
onCancel() {
console.log('Cancel');
},
onOk() {
deletes()
},
});
}
ReactDOM.render(
<Space>
<Button onClick={showDeleteConfirm} type="dashed">
Delete
</Button>
</Space>,
document.getElementById('container'),
);
Como se puede ver, ahí importo a "Button", "Modal" y "Space" por separado con sus respectivos estilos.
Haciendo eso puedo evitar los estilos globales, pero pierdo la funcionalidad del componente Modal. Por ejemplo, pierdo su efecto de transición y además tampoco puedo cerrar el Modal.
Entonces, mi pregunta sería: ¿existe alguna forma de importar un componente de Ant Design evitando los estilos globales y sin perder sus funcionalidades?
Ya investigué bastante y me parece que es más un problema de cómo está planteada la librería a que sea algo que se pueda resolver.
Encontré una solución que quizás no sea la definitiva ni sirva para todos, pero al menos en mi caso funcionó.
Como no vi que exista forma de romper la relación que existe entre el componente Modal y los estilos globales antd.css, decidí modificar ese CSS.
Para modificarlo hay que buscar el archivo dentro de la carpeta node_modules (la ruta exacta sería node_modules/antd/dist/antd.css). Una vez dentro de ese CSS, debemos asegurarnos de eliminar todos los selectores globales que afecten al HTML, Body, *, etc.
A mí puntualmente no me agradaban los estilos que les aplicaba a los H1, H2, H3 y demás cabeceras. Así que borré también esos estilos.
Al eliminar todos esos selectores, nos quedarán en antd.css solo las clases de Ant Design que deseamos usar. Por lo tanto no perderemos la funcionalidad de sus componentes, y además no se aplicarán todos sus estilos globales.
Pero esto no termina aquí. Para implementar esta solución de forma completa debemos trasladar el archivo antd.css de lugar.
Esto es necesario porque por ejemplo si queremos subir nuestro proyecto a GitHub, los cambios que hayamos hecho en el archivo antd.css no se guardarán debido a que todo lo que está en node_modules está también dentro del gitignore. Y tampoco tenemos garantía de que funcione bien cuando intentemos pasar ese CSS modificado a nuestra versión de producción.
Así que la forma de solucionar eso es poniendo a antd.css fuera de node_modules y luego importarlo desde su nueva ubicación.
Lo importaríamos de una forma parecida a esta:
import './carpetaDeEstilosFueraDeNodeModules/antd.css';
| 5,933
|
|
https://uk.wikipedia.org/wiki/%D0%9F%D0%BE%D1%82%D0%B0%D0%BC%D0%BE%D0%BB%D0%BE%D0%B3%D1%96%D1%8F
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Потамологія
|
https://uk.wikipedia.org/w/index.php?title=Потамологія&action=history
|
Ukrainian
|
Spoken
| 55
| 217
|
Потамоло́гія (від , що в перекладі означає «річка») — наука про річки. Розділ гідрології, який займається вивченням поверхневих водотоків та їхніх режимів.
Потамологія зосереджується здебільшого на питаннях річкової динаміки та всіх явищах, пов'язаних з ерозією (розмиванням) та відкладенням наносів у річищах річок.
Див. також
Звивистість річок
Коефіцієнт густоти річкової сітки
Література
Посилання
Потамологія
Географічні науки
| 44,706
|
https://it.wikipedia.org/wiki/Salvatore%20Misdea
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Salvatore Misdea
|
https://it.wikipedia.org/w/index.php?title=Salvatore Misdea&action=history
|
Italian
|
Spoken
| 703
| 1,394
|
Il delitto
L'episodio si verificò a Napoli il 13 aprile 1884, ricorrenza della Pasqua, nella caserma "Pizzofalcone", ove Misdea prestava servizio militare in forza al 19º reggimento di fanteria. Qui, secondo il Lombroso, il Misdea si trovava già da diverso tempo e aveva già avuto accessi di violenza per i quali il suo ufficiale, un capitano, lo aveva esonerato dalla mansione di barbiere, che lo teneva a contatto con lame; Misdea aveva dei precedenti, per tentato omicidio, furto, porto abusivo d'armi.
Alcuni soldati originari dell'alta Italia (tali Codara, Storti e Zanoletti) vennero a discussione con certi commilitoni di origine calabrese (tali Colistri e Trovato), cui dissero provocatoriamente che la Calabria era terra arsa; intervenne il caporale Roncoroni che impose il silenzio. Misdea chiese al caporale perché stessero litigando, questi lo invitò a non impicciarsi e il soldato lo prese per la giubba nel tentativo di iniziare una colluttazione, rinunciando però al confronto vista la maschia reazione del graduato.
Tornato in camerata, prese un fucile e ricercò i commilitoni nordici, iniziò a sparare e condusse una sorta di raid che si sarebbe concluso con 7 morti e 13 feriti.
Il processo
Il processo richiamò molta attenzione anche per i contenuti inevitabili di regionalismo insiti nel caso, in un momento appena post-unitario, quando cioè la contrapposizione fra Nord e Sud Italia era virulenta; divenne così un processo-spettacolo con molti spettatori e moltissimi giornalisti che lo seguivano in aula.
Cesare Lombroso partecipò al processo come perito, a tal ruolo chiamato dalla difesa del Misdea; ma finì con il valutare il suo difeso irrimediabilmente pericoloso per la società e si unì a coloro che ne chiedevano la condanna. Sebbene infatti ne riconoscesse la parziale irresponsabilità, rinvenendo tratti di degenerazione, e quantunque avesse asseverato che il giovane era stato influenzato da fattori come la "follia morale, l'epilessia, l'eredità, la barbarie del paese d'origine e della famiglia, i traumi e l'alcool", tuttavia concluse che la società andava emendata da un soggetto palesemente nocivo e inguaribile.
Il processo durò circa due mesi, durante i quali furono avanzate due richieste di grazia non accolte; si concluse con la condanna a morte per fucilazione, eseguita il 21 giugno 1884.
Conseguenze
Il Regio Esercito decretò nel maggio 1885 che nel tempo libero i soldati non disponessero di armi, che avrebbero dovuto essere prelevate dalle armerie solo quando necessario.
Il modello pseudoscientifico sull'epilessia
Il caso suscitò un dibattito scientifico che coinvolse il criminologo Cesare Lombroso (perito nel processo) e intorno al quale si formò un tentativo di tipizzazione dell'occorso chiamato "misdeismo". La figura di Salvatore Misdea è di particolare importanza nel panorama della criminologia clinica perché le tesi peritali improntate sul milite in sede di processo (avanzate ed illustrate da Lombroso e Venturi in particolare), oltre ad essere palesemente antiscientifiche costituiscono l'anticamera della biologia razziale consegnata al Nazismo, da cui deriverà il concetto di soluzione finale per gli ebrei. Tali concettualizzazioni antiscientifiche, improntate su Salvatore Misdea, portano il nome di atavismo, eugenetica e fisiognomica.
Quando, dopo l'arresto, Misdea diede prova di non ricordare il delitto commesso, Lombroso ne concluse che fosse stato attinto da un blocco dei centri psichici, quindi a una sorta di attacco di epilessia; l'anno successivo lo studioso avrebbe infatti redatto un saggio dall'eloquente titolo "Identità dell'epilessia colla pazzia morale e delinquenza congenita" in cui sosteneva, in linea con le teoria da poco sviluppate di Henry Maudsley, che l'epilessia larvata fosse all'origine dell'agire criminale.
L'epilessia, dunque, in quanto sospensione dell'ordinario funzionamento dei centri psichici, era in questa visione all'origine della pazzia morale.
La figura di Salvatore Misdea è stata, altresì, oggetto di strumentale artificio al punto che Lombroso, per far credere vere le predette tesi antiscientifiche e condannate dalla scienza, ha contraffatto il dagherrotipo del milite, consegnando ai posteri un'immagine raffigurativa stravolta e lontana da quella reale.
Note
Bibliografia
Edoardo Scarfoglio, Il romanzo di Misdea - ISBN 978-88-8304-587-5
Cesare Lombroso, L'uomo delinquente - quinta edizione - 1897, ISBN 88-587-6279-7
(anonimo), L'uomo belva, ossia L'eccidio dei soldati nella caserma di Pizzofalcone in Napoli, per opera del soldato Misdea, Editore Tip. Cairo, 1884 - Biblioteca Nazionale Centrale di Firenze
Francesco Antonio Cefalì e Domenico Romeo, Salvatore Misdea. 1884: follia criminale o determinazione di un soldato del Sud Italia? - Gigliotti editore- ISBN 978-88-86273-45-9
| 6,778
|
https://ceb.wikipedia.org/wiki/Madulubowa
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Madulubowa
|
https://ceb.wikipedia.org/w/index.php?title=Madulubowa&action=history
|
Cebuano
|
Spoken
| 85
| 149
|
Administratibo nga balangay ang Madulubowa sa Sri Lanka. Nahimutang ni sa lalawigan sa Province of Sabaragamuwa, sa sentro nga bahin sa nasod, km sa sidlakan sa Colombo ang ulohan sa nasod.
Ang klima tropikal nga kasalupan. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Pebrero, sa °C, ug ang kinabugnawan Hunyo, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Disyembre, sa milimetro nga ulan, ug ang kinaugahan Hulyo, sa milimetro.
Ang mga gi basihan niini
Mga subdibisyon sa Province of Sabaragamuwa
| 1,939
|
https://arz.wikipedia.org/wiki/%D9%8A%D8%A7%D9%88%D8%B4%D9%8A%D9%83%D8%A7%D8%B2%D9%88%20%D9%83%D9%88%D8%B1%D8%A7
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
ياوشيكازو كورا
|
https://arz.wikipedia.org/w/index.php?title=ياوشيكازو كورا&action=history
|
Egyptian Arabic
|
Spoken
| 42
| 134
|
ياوشيكازو كورا (Yoshikazu Kura) لاعب بيسبول من اليابان.
حياته
ياوشيكازو كورا من مواليد يوم 27 يوليه 1975 فى ياماشينا-كو.
حياته الرياضيه
ياوشيكازو كورا لعب مع فريق Hiroshima Toyo Carp فى مركز كاتشار
لينكات برانيه
مصادر
بيسبول
لاعب بيسبول
لاعب بيسبول من اليابان
| 21,991
|
https://en.wikipedia.org/wiki/Lovastatin%20nonaketide%20synthase
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Lovastatin nonaketide synthase
|
https://en.wikipedia.org/w/index.php?title=Lovastatin nonaketide synthase&action=history
|
English
|
Spoken
| 109
| 277
|
In enzymology, lovastatin nonaketide synthase () is an enzyme that catalyzes the chemical reaction
acetyl-CoA + 8 malonyl-CoA + 11 NADPH + 10 H+ + S-adenosyl-L-methionine dihydromonacolin L + 9 CoA + 8 CO2 + 11 NADP+ + S-adenosyl-L-homocysteine + 6 H2O
The 5 substrates of this enzyme are acetyl-CoA, malonyl-CoA, NADPH, H+, and S-adenosyl-L-methionine, whereas its 6 products are dihydromonacolin L, CoA, CO2, NADP+, S-adenosyl-L-homocysteine, and H2O.
This enzyme belongs to the family of transferases, specifically those acyltransferases transferring groups other than aminoacyl groups. The systematic name of this enzyme class is acyl-CoA:malonyl-CoA C-acyltransferase (decarboxylating, oxoacyl- and enoyl-reducing, thioester-hydrolysing).
References
EC 2.3.1
NADPH-dependent enzymes
Enzymes of unknown structure
| 2,423
|
https://stackoverflow.com/questions/57509724
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,019
|
Stack Exchange
|
463035818_is_not_an_ai, ALX23z, Jonaswg, Kevin, Lightness Races in Orbit, NathanOliver, PaulMcKenzie, Some programmer dude, Soonts, https://stackoverflow.com/users/10803671, https://stackoverflow.com/users/126995, https://stackoverflow.com/users/3133316, https://stackoverflow.com/users/4117728, https://stackoverflow.com/users/4342498, https://stackoverflow.com/users/440558, https://stackoverflow.com/users/5522303, https://stackoverflow.com/users/560648, https://stackoverflow.com/users/6213808
|
English
|
Spoken
| 736
| 1,122
|
How to store large amounts of data as a value in std::map?
I need to store a large amounts of trading data in my program and analyse it. I want to store my data in different deques by different keys, so, I have a map like this:
std::map< char, std::deque<UserDefinedType> > my_map;
Another way to store my data is to use shared pointers to deques:
std::map< char, std::shared_ptr< std::deque<UserDefinedType> > > my_map;
Which of these variants is preferred for performance? I have approximately ~200 keys and ~90 millions of elements in each deque for each key.
Code both, measure, pick the better performing one. Optimizing without numbers is like forecasting the weather. We all know how "well" that goes.
Will you ever pass the map around by value? I.e. will the map (and its data) ever be copied? If not, then it doesn't matter (and using pointers to the deque means an extra indirection that needs to be handled).
Also, remember to measure an optimized build, not a "debug" build or an application that was not compiled with optimizations turned on.
A std::deque<T> probably just has a few pointers and integers as data members. There's probably not much benefit of putting it in a shared pointer unless you actually need to share ownership.
Just thinking out loud here, you are gonna store 90 million x 200 keys which is 18 billion entries. Assuming UserDefinedType is a measly 4 bytes size per entry (most likely more) that is 72 billion bytes which equates to 72 gigabytes of memory not including any of the overhead. Are you sure you would not store this on disk?
I see no reason to use std::shared_ptr unless user of the class isn't careful and accidentally copies the result instead of getting a reference to it. In which case you can consider usage of std::unique_ptr to avoid unnecessary copying.
P.S. Do you need it to be a std::deque<T>? Why not std::vector<T>?
smells like premature optimization. Storing smart pointers or instances has different semantics and at this stage you should make a decision based on that instead of speculating on performance
If you only have a single instance of each deque, no need for shared_ptr. If you're building multiple RAM indices over the same data on different keys, shared pointers will help a lot.
Couple more things.
If you have 200 keys and they are single characters, this data structure is much faster, just don't forget to cast from char to uint8_t when you access it, as chars are almost always signed:
std::array<std::deque<UserDefinedType>, 0x100>
Generally, unless you need ordering for keys, prefer std::unordered_map over std::map. All mainstream compilers implement unordered maps as hash maps, std::map as a red-black tree, much slower.
Almost with you, although I'd be wary of making generalisations like "map is much slower" - it depends on too many things. Also although maps are often created as a red-black tree they are not defined by implementation but by contract and it's best to teach C++ in that manner
You're missing the point. "How things actually work" depends on the implementation chosen, yet you did not specify one, so your statement is a false generalisation. That has nothing to do with whether you "care about performance" or not.
@LightnessRacesinOrbit It’s implemented this way in VC++, gcc and clang. Which implementation differs from what I’ve wrote in the answer?
Ah yes, the old "show me one that does it differently" counter-argument. Still missing the point. Oh well, never mind mate. Taking away my upvote for now because of some over-generalisations that have the potential to mislead. Ping me if corrected.
@LightnessRacesinOrbit See also this http://www.cplusplus.com/reference/map/map/ “map containers are generally slower than unordered_map containers to access individual elements by their key”
That statement contains the word "generally", whereas you make a blanket statement without any qualification.
@LightnessRacesinOrbit My answer also contains the world “generally”, what’s the difference?
It says generally prefer unordered_map. Then it makes a blanket statement about how a map is implemented, and a blanket statement saying that map is always "much slower". Sorry, I don't think I can make it any more clear to you. If you don't grok the danger of generalisations, or the concept of abstractions/standards, I cannot explain that to you in this format. Never mind. Ciao!
@LightnessRacesinOrbit When all mainstream compilers are implemented in one particular way, and have been for decades, what’s the “danger” of generalization?
| 28,675
|
https://stackoverflow.com/questions/76329451
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,023
|
Stack Exchange
|
English
|
Spoken
| 53
| 115
|
Why isn't my Vue.js WYSIWYG Editor tagging correctly?
I'm trying to create a simple wysiwyg-Editor with Vue.
https://codesandbox.io/s/loving-tree-b0ullo?file=/src/components/FormatEditor.vue
When I'm trying to tag something, then it's working well for the first time. But if I try it again, then it's not doing it correctly anymore.
Can anyone tell me, what I'm doing wrong?
| 7,645
|
|
https://stackoverflow.com/questions/78198635
|
StackExchange
|
Open Web
|
CC-By-SA
| null |
Stack Exchange
|
Abhishek Singh, Arkish Gupta, Jaromanda X, Reyno, https://stackoverflow.com/users/17533262, https://stackoverflow.com/users/19033532, https://stackoverflow.com/users/3257622, https://stackoverflow.com/users/36866, https://stackoverflow.com/users/5053002, some
|
Wolof
|
Spoken
| 382
| 920
|
making changes to a html file using javascript
Here is the html file:
<!-- sample.html -->
<!DOCTYPE html>
<html>
<head>
<title>DOM Manipulation Sample</title>
<script src="dom.js" defer></script>
</head>
<body>
<h1>This is an H1 heading</h1>
<img src="original-image1.jpg" alt="Image 1">
<img src="original-image2.jpg" alt="Image 2">
<h2>Don't Stop</h2>
<h2>Keep Going</h2>
<p>Saksham</p>
<p>Rathi</p>
<div id="div1">
<p>Hello!</p>
</div>
<div id="div2">
<p>This is a paragraph.</p>
</div>
<button onclick="makeChanges()">Change</button>
</body>
</html>
I have to make a few changes in this HTML file like changing source of images, deleting h1 tags, etc.
Here is the javascript file:
function makeChanges()
{
document.getElementsByTagName("img").src="timepass.png";
document.getElementsByTagName("h1").remove();
document.getElementsByTagName("p").innerHTML="Enough of JavaScript, let’s stop.";
document.getElementsByTagName("h2").style.textTransform="capitalize";
document.getElementById("div1").innerHTML="<h3></h3>";
}
I don't know what is the mistake that I am doing
getElementsByTagName returns a HTMLCollection ... not a single element - the clue is in the plural Elements - and of course the error in your browser developer tools console - did you not notice the error?
In addition to the comment above, remove is a function so you have to call it: .remove().
What should I do so that the code runs
select the first result in each of those .... using [0] (and of course CALL .remove - though, personally, I'd be using some ID's in the HTML, or perhaps use document.querySelector for example
If HTMLCollection was an array (it's not, but disregard that for the moment) how would you access each element in that array?
@JaromandaX did not work
@ArkishGupta - you did it wrong™ - what errors are shown in the console?
getElementByTagName returns Collection of all tag exists in your html page, you should loop through and then apply changes instead of directly specifying value require to change,
here is the change you should make in your makeChanges func.
function makeChanges() {
const images = document.getElementsByTagName("img");
for (let img of images) {
img.src = "timepass.png";
}
const h1Elements = document.getElementsByTagName("h1");
if (h1Elements.length > 0) {
h1Elements[0].remove();
}
const paragraphs = document.getElementsByTagName("p");
for (let paragraph of paragraphs) {
paragraph.innerHTML = "Enough of JavaScript, let’s stop.";
}
const h2Elements = document.getElementsByTagName("h2");
for (let h2 of h2Elements) {
h2.style.textTransform = "capitalize";
}
const div1 = document.getElementById("div1");
div1.innerHTML = "<h3></h3>";
}
It is correct except h2 is not getting uppercase
Because it is already capitalize seems you are expecting all upper case then you should use uppercase use h2.style.textTransform = "uppercase";
| 8,109
|
https://stackoverflow.com/questions/7869026
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,011
|
Stack Exchange
|
Jared Farrish, Mirco, Oliver Seerup, azimjon mahmudov, https://stackoverflow.com/users/17482680, https://stackoverflow.com/users/17482681, https://stackoverflow.com/users/17482682, https://stackoverflow.com/users/17483379, https://stackoverflow.com/users/17485135, https://stackoverflow.com/users/451969, https://stackoverflow.com/users/905418, jondinham, user17482681, user17482682
|
English
|
Spoken
| 380
| 789
|
Best way in MySQL to remove duplicated rows grouped by all except ID?
Doesn't seem to be a duplicate coz this question is different.
My table has 3 columns: id,col2,col3. I'm using this method to remove duplicated rows:
create table temp_table as
select * from my_table where 1 group by col2,col3;
drop table my_table;
rename table temp_table to my_table;
However, my_table actually has a lot of columns, not just 3, painfully to list out in the query. So I want to ask whether there's a way that we can do a query something like this:
create table temp_table as
select * from my_table where 1 group by * except id;
drop table my_table;
rename table temp_table to my_table;
Is there a possible way?
You could build a list of columns with a query and PHP and use a variable to insert it into the SELECT.
Maybe you could do a GROUP_CONCAT() on a sub-SELECT. Not sure about that one, though. That's really a guess.
You could do a sub-query to make sure that what you get is unique. This query will give you the duplicates (preserving the ones with the lower IDs):
SELECT id
FROM duplicates d1
WHERE EXISTS (
SELECT 1
FROM duplicates d2
WHERE d2.col2 = d1.col2
AND d2.col3 = d1.col3
AND d2.id < d1.id
)
throw them into a temporary table (or load them to PHP) and run a second query to DELETE. (You can't modify a table while you're reading from it)
Do a WHERE NOT EXISTS to get the IDs of the elements to preserve (again, the ones with the lowest IDs are kept).
this answers partially my question
I found a method to "remove duplicated rows grouped by all except ID" but it's not purely MySQL, requires additional PHP code and damn long:
$mysqli = mysqli_connect(...);
function remove_duplicated_rows($table_name) {
global $mysqli;
//get column list
$query = "describe $table_name";
$result = mysqli_query($mysqli,$query);
$rows = mysqli_fetch_all($result,MYSQLI_ASSOC);
$columns = array();
foreach ($rows as $row)
if (strtolower($row["Field"])!="id")
array_push($columns,$row["Field"]);
$column_list = implode(",",$columns);
//create temp table
$temp_table = $table_name."_temporary_table";
$query =
"create table $temp_table as ".
"select * from $table_name where 1 group by $column_list";
mysqli_query($mysqli,$query);
//drop old table
$query = "drop table $table_name";
mysqli_query($mysqli,$query);
//rename temp table to old table
$query = "rename table $temp_table to $table_name";
mysqli_query($mysqli,$query);
}
| 2,836
|
https://sr.wikipedia.org/wiki/%D0%91%D0%B8%D0%BD%D1%86
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Бинц
|
https://sr.wikipedia.org/w/index.php?title=Бинц&action=history
|
Serbian
|
Spoken
| 114
| 386
|
Бинц () општина је у њемачкој савезној држави Мекленбург-Западна Померанија. Једно је од 42 општинска средишта округа Риген. Према процјени из 2010. у општини је живјело 5.465 становника. Посједује регионалну шифру (-{AGS}-) 13061005.
Географски и демографски подаци
Бинц се налази у савезној држави Мекленбург-Западна Померанија у округу Риген. Општина се налази на надморској висини од 7 метара. Површина општине износи 25,2 -{km²}-.
Становништво
У самом мјесту је, према процјени из 2010. године, живјело 5.465 становника. Просјечна густина становништва износи 217 становника/-{km²}-.
Референце
Спољашње везе
<small>Званични сајт општине
Њем. Савезни завод за статистику
Стална конференција градова и општина
-{KommOn}- - Информациони систем градова, општина и округа.
План насеља на мапи (-{Mapquest}-)
Википројект географија/Насеља у Немачкој
| 529
|
https://stackoverflow.com/questions/62467862
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,020
|
Stack Exchange
|
Hiws, https://stackoverflow.com/users/4822666, https://stackoverflow.com/users/8397974, meez
|
English
|
Spoken
| 470
| 836
|
Filter Vue list based on select option value
I try to filter my list with 2 select lists based on the selected value. It seems like my computed filter is not working?
You should be able to filter the list on 'Price from' and 'Price to'
List.vue
My computed filter property:
filteredData() {
const LowerCaseSearch = this.search.toLowerCase();
return this.products.filter(
product =>
(product.name.toLowerCase().includes(LowerCaseSearch) ||
product.category.toLowerCase().includes(LowerCaseSearch)) &&
(!this.checked.length || this.checked.includes(product.category)) &&
(!this.selectedFrom.length || this.selectedFrom.includes(product.price)) &&
(!this.selectedTo.length || this.selectedTo.includes(product.price))
);
},
In my registered component I use v-model to bind to the computed property selectedFrom
<Price v-model="selectedFrom" />
How do I bind to the other property selectedTo in one v-model and what's wrong with my filter?
I also use a prefix 'From' and 'To' to put in front of the options.
data: () => {
return {
selectedFrom: '0,00',
priceFrom: [
{ prefix: 'From', text: '0,00', value: '0,00' },
{ prefix: 'From', text: '200,00', value: '200,00' },
{ prefix: 'From', text: '400,00', value: '400,00' }
],
selectedTo: 'No max',
priceTo: [
{ prefix: 'To', text: '400,00', value: '400,00' },
{ prefix: 'To', text: '600,00', value: '600,00' },
{ prefix: 'To', text: '800,00', value: '800,00' },
{ text: 'No max', value: 'No max' }
]
}
},
Is there a more elegant and D.R.Y way to do this?
Here is a sandbox what I have so far.
You should bind an object to your v-model on the <price> component.
This way you can pass multiple values to and from your component, without having to use multiple props.
I would also suggest you convert your value in your selects to numbers, so it's easier to use them to compare to your prices.
You've also defined data properties and computed properties in the sandbox (<price> component) with the same name, this is not possible. So you should remove the data properties and stick to the computed ones to handle your data.
Fork of your sandbox with my suggested changes.
thanks. The created() hook I don't understand. Should that one not be in the parent List component? What is it's purpose exactly?
And can you explain clearly how the get() and set() method works here, so I can learn from it. Many thanks.
By default, computed properties are getters. However, you can expand it to also define a setter with the shown syntax. Having a setter, allows you to assign values to your computed property (this.computedProp = "Some new value"). So when you try to get the value from your property, the getter method is ran and the returned value is displayed. And when you assign a value the setter method is ran and receives the new value. You can then do what you want this value, in case emit it to the parent every time it changes.
Do you maybe have any clue on this question?
| 18,260
|
https://stackoverflow.com/questions/15867225
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,013
|
Stack Exchange
|
Bhargav Sejpal, Chun, Kudos, https://stackoverflow.com/users/2203840, https://stackoverflow.com/users/341994, https://stackoverflow.com/users/8478178, https://stackoverflow.com/users/8829497, matt
|
English
|
Spoken
| 207
| 303
|
iOS EventKit: Display calendar in a different section other than iCloud / On My iPhone
Is there a way to create a new calendar in my app that will show up in a different section of the native iOS Calendar app?
From the pic above, Facebook has its own section for its calendars, so does Hotmail, Gmail, etc.
At the moment, I am able to create calendars with sources EKSourceTypeLocal or EKSourceTypeCalDAV, which will display under the group "On My iPhone" or "iCloud" respectively. Can I create a new section here? It doesn't seem like you're able to create a new source, so I have no idea how to approach this.
Hotmail and Facebook and Gmail have sections because the user is subscribing to calendars from those services. To appear as a section, you'd need to run a CalDAV server that the user can subscribe to (in the Calendar application).
Bummer, I was hoping there was a simpler solution!
is it possible to create custom section with name of my application
What is CalDAV server?
@Kudos What is Wikipedia? https://en.wikipedia.org/wiki/CalDAV
No, you can't create new sections for calanders to display under.
We have tried so many times to create section but we could only use existing sections
| 29,372
|
https://stackoverflow.com/questions/70278732
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,021
|
Stack Exchange
|
Dominio, Essam Tariq, https://stackoverflow.com/users/10527461, https://stackoverflow.com/users/17893306, https://stackoverflow.com/users/8816585, kissu
|
English
|
Spoken
| 654
| 1,470
|
Remove Trailing slash on Nuxt application
I am working with Nuxt Application.
when I make a build running the npm run build command and starting it with npm start command
it doesnt seem to show any trailing slash
so on my build its like this http://localhost:3000/blog
but when I deploy the site at first it runs smooth with no trailing slash but once I refresh the page it loads the page with a trailing slash
example of the result http://example.com/blog/
I tried using all kinds of middleware and even the Nuxt trailingSlash method. but no luck
here is how my nuxt.config file looks like
var dynamicPages = require('./dynamicPages.json')
export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'server',
// buildDir: '_nuxt/dist/',
// build: {
// publicPath: '_nuxt/dist/'
// },
generate: { routes: dynamicPages },
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'level-1',
description: "level-1",
author: "Rick",
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico',
href: "https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;400;500;600;800;900&display=swap",
},
],
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'~/assets/styles/style.scss',
'~/assets/fonts.css'
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
{ src: '~/plugins/analytics.js', mode: 'client' }
],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
'@nuxtjs/google-analytics'
],
apollo: {
clientConfigs: {
default: {
httpEndpoint: "https://rickandmortyapi.com/graphql"
}
}
},
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/bootstrap
'bootstrap-vue/nuxt',
'nuxt-helmet',
'@nuxtjs/apollo',
'nuxt-helmet',
'nuxt-webfontloader',
'@nuxtjs/gtm',
'nuxt-fontawesome',
],
router: {
trailingSlash: false,
},
fontawesome: {
imports: [
{
set: '@fortawesome/free-solid-svg-icons',
icons: ['fas']
},
{
set:'@fortawesome/free-brands-svg-icons',
icons: ['fab']
}
],
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
extractCSS: true
},
}
What happens if you navigate to a page after the refresh? This is probably not a Nuxt thing but more of a server configuration here IMO. It adds the trailing slash after the refresh I guess.
if I refresh the current page for example /blog, it loads the same request url but adds a slash at the end resulting /blog/
Yep, it's what you wrote in your question so far. What about my comment? Try to move from blog to another page via the vue-router.
I did so I moved from /blog/ to about us and it ended with /about. the trailing slash only occurs when refresh the page
Yep, this is not a Nuxt related issue so. But the platform/server configuration, adding it to your URL.
I also manually tried removing the trailing slash form /blog/ to /blog and when i press enter it still ends up with /blog/ do you think that is also not related to nuxt?
Yep, I'm still thinking that this is unrelated to Nuxt. Try to host your app somewhere else or dive deep into the documentation of your server/platform.
It might be Nuxt doing its own internal redirection. Nuxt decides to add a slash when you have the same name folder in the static folder as you page filename.
So if you have /static/blog, try renaming it to something else.
If this is not the case, I would suspect the server is doing the redirection.
Why would somebody have a directory of the same name in /static? Quite strange use-case.
It happend to me few hours ago. Usually images are stored in folder /static (not processed by webpack). And to structuralize your static folder, it makes sense to use the same folder name as the name of the page in which the images are used.
For example, every image on /pages/blog.vue could be saved in folder /static/blog/.
Why would you not optimize your images? Sounds quite not performant to me, it's probably one of the heaviest assets on the Web.
Who said that the images are not optimized beforehand? Also, there might svg files or other downloadable documents (pdf). My point stands.
| 5,579
|
https://stackoverflow.com/questions/32180573
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,015
|
Stack Exchange
|
https://stackoverflow.com/users/5195227, sujith karivelil
|
English
|
Spoken
| 91
| 224
|
ScriptManager.RegisterClientScriptBlock is not working
I am trying to register a script block from code behind using the below code
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "MethodUpdate", "PopulateData();", True)
but its not working. Am getting the error like PopulateData is undefined
You have to define PopulateData() in front end
Try the below code which should work fine
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "SomeUniqueName", ";$(function() { PopulateData(); })", True)
You can also write your code in head section.
<head runat="server">
<script type="text/javascript">
$(function () {
PopulateData(alert('Hi'));
});
</script>
</head>
and you can call from code behind.
Page.ClientScript.RegisterClientScriptBlock(GetType(), "MethodUpdate", "PopulateData();", True)
| 26,764
|
https://hy.wikipedia.org/wiki/%D4%B6%D5%A5%D5%BE%D5%AB%D5%B6%D5%A3
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Զեվինգ
|
https://hy.wikipedia.org/w/index.php?title=Զեվինգ&action=history
|
Armenian
|
Spoken
| 59
| 323
|
Զեվինգ, գյուղ Արևմտյան Հայաստանում, Վանի վիլայեթի Հեքյարիի գավառում։
Բնակչության մասին տվյալներ չեն պահպանվել։ Նրանք բռնությամբ տեղահանվել են 1915 թվականի Մեծ եղեռնի ժամանակ։ Նրանց մեծ մասը զոհվել է աքսորի ճանապարհին։
Աղբյուրներ
«Հայաստանի և հարակից շրջանների տեղանունների բառարան» (5 հատորով), 1986-2001 թթ., Երևանի Համալսարանի հրատարակչություն
Արեւմտահայաստանի եւ Արեւմտահայութեան Հարցերու Ուսումնասիրութեան Կեդրոն
Տես նաև
Վանի նահանգի հայաբնակ բնակավայրեր
Ծանոթագրություններ
Արևմտյան Հայաստանի գյուղեր
| 40,603
|
https://stackoverflow.com/questions/31334291
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,015
|
Stack Exchange
|
Aaron McDaid, Barry, Nick Mertin, https://stackoverflow.com/users/146041, https://stackoverflow.com/users/2069064, https://stackoverflow.com/users/3402566
|
English
|
Spoken
| 925
| 2,067
|
Select an integer type based on template integer parameter
I would like to create a class template which takes an unsigned integer parameter and has a member u_ whose type is the smallest unsigned integer type that will hold the integer parameter.
So:
template <uint64_t k>
class A {
??? u_;
};
For A<0>, u_ should be of type uint8_t. Same for A<255>. For A<256>, u_ should be of type uint16_t, etc.
How would you implement this?
If k is a uint8_t, then what does this mean?: ... = A<256,uint16_t>. 256 is more than uint8_t can hold, so this doesn't make sense to me
Who upvoted this question?? It made zero sense until I spent a while deducing from the answers what the question was actually asking for.
This piece of metaprogramming trickery achieves it:
template<unsigned int Y> struct typed
{
typedef typename typed<(Y & (Y - 1)) == 0 ? Y / 2 : (Y & (Y - 1))>::type type;
};
template<> struct typed<0>
{
typedef std::uint8_t type;
};
template<> struct typed<256>
{
typedef std::uint16_t type;
};
template<> struct typed<65536>
{
typedef std::uint32_t type;
};
/* ToDo - add more specialisations as necessary*/
template<unsigned k> class A
{
public:
unsigned static const k_ = k; /*constexpr if your compiler supports it*/
typename typed<k>::type u_;
};
The usage is exactly in the question.
The unspecialised template version takes the previous type. typed<0> blocks the static recursion. The other specialisations act as anchoring points for the appropriate types.
The compile-time evaluable (Y & (Y - 1)) == 0 ? Y / 2 : (Y & (Y - 1)) reduces the number of instantiations by removing the rightmost bit of Y until a power of 2 is reached, and then divides by 2 subsequently to that. (Acknowledge @Jarod42).
With C++11 you can use std::conditional:
#include <cassert>
#include <cstdint>
#include <limits>
#include <type_traits>
template<std::uint32_t K>
class A
{
public:
decltype(K) k_ = K;
typename std::conditional<K <= UINT8_MAX,
std::uint8_t,
typename std::conditional<K <= UINT16_MAX,
std::uint16_t,
std::uint32_t>::type>::type u_;
};
int main()
{
A<100> small;
A<1000> medium;
A<100000> large;
assert( (std::is_same<std::uint8_t, decltype(small.u_)>::value) );
assert( (std::is_same<std::uint16_t, decltype(medium.u_)>::value) );
assert( (std::is_same<std::uint32_t, decltype(large.u_)>::value) );
}
This assumes that:
uint8_t in template<uint8_t k, typename > is just an oversight or, as pointed out in Aaron McDaid's comment, the example doesn't work. I changed uint8_t to uint32_t (the example can be smoothly extended to uint64_t);
int k_ = k; is a in-class member initialization. For a constant definition you can use enum {k_ = K};
u_ in typename u_; is a data member. If it's a type definition you can easily change the example using a typedef or a type-alias (C++11).
If you cannot use C++11 there's boost::conditional or you can write your own version:
template<bool, class T, class F>
struct conditional { typedef T type; };
template<class T, class F>
struct conditional<false, T, F> { typedef F type; };
If what we want is: given a uint64_t template parameter, give the smallest unsigned type that is capable of representing it, then what we really want is just a simple iteration at compile time.
namespace details {
template <typename T>
struct tag {
using type = T;
};
// base case: just fail
template <uint64_t V, typename... >
struct min_unsigned_type;
// recursive case: check using numeric_limits
template <uint64_t V, typename T, typename... Ts>
struct min_unsigned_type<V, T, Ts...>
: std::conditional_t<(V <= std::numeric_limits<T>::max()),
tag<T>,
min_unsigned_type<V, Ts...>>
{ };
}
Then just an alias to wrap things together:
template <uint64_t V>
using min_unsigned_type =
typename details::min_unsigned_type<V,
uint8_t, uint16_t, uint32_t, uint64_t>::type;
This has the added advantage of being able to easily specify how far you want to go, or even being able to add larger unsigned types if that's something you find necessary.
And finally your class:
template <uint64_t V>
struct A {
static constexpr uint64_t k_ = V;
min_unsigned_type<V> u_;
};
template<uintmax_t Id>
struct A;
template<>
struct A<0>{
enum {id = 0};
using type = uint8_t;
};
template<>
struct A<255>{
enum {id = 255};
using type = uint8_t;
};
template<>
struct A<256>{
enum {id = 256};
using type = uint16_t;
};
int main(){
typename A<255>::type a0 = 255; // uint8_t
typename A<256>::type a1 = 256; // uint16_t
}
But I think you want to have a class so that every value under 256 will define uint8_t, every value under 65536 will define uint16_t etc. etc.
So just incase, this is how you would do that:
template<uintmax_t Value>
struct A{
enum {value = Value};
using type = std::conditional_t<
(Value <= std::numeric_limits<uint8_t>::max()), uint8_t,
std::conditional_t<
(Value <= std::numeric_limits<uint16_t>::max()), uint16_t,
std::conditional_t<
(Value <= std::numeric_limits<uint32_t>::max()), uint32_t
std::conditional_t<
(Value <= std::numeric_limits<uint64_t>::max()), uint64_t, uintmax_t
>
>
>
>;
};
And here's a live example
You can use using declarations for partially bound templates:
template<uint8_t k>
using A_uint8 = A<k, uint8_t>;
template<uint8_t k>
using A_uint16 = A<k, uint16_t>;
then:
A_uint8<7> hello; // -> A<7, uint8_t>;
A_uint16<256> hello; // -> A<256, uint16_t>;
How can 256 be the argument, when the type of k is uint8_t? The biggest allowable k is 255
As well as the problem pointed out by @AaronMcDaid, this does not fix the original issue of automatically selecting a type, without that being done manually by the code calling the API. The main advantage that I see with automatic selection is that macros and constants can be used for k, and the type will be updated automatically with the macro or constant.
Thanks very much. You guys rock!
By the way, I'm using:
typedef typename std::conditional<k <= UINT8_MAX,
std::uint8_t,
typename std::conditional<k <= UINT16_MAX,
std::uint16_t,
typename std::conditional<k <= UINT32_MAX,
std::uint32_t,
std::uint64_t>::type>::type>::type TypeU;
std::pair<TypeU, std::shared_ptr<ProtoData>> min_;
std::pair<TypeU, std::shared_ptr<ProtoData>> max_;
| 11,530
|
https://az.wikipedia.org/wiki/Anyer-an-Devol%C3%BCi
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Anyer-an-Devolüi
|
https://az.wikipedia.org/w/index.php?title=Anyer-an-Devolüi&action=history
|
Azerbaijani
|
Spoken
| 107
| 394
|
Anyer-an-Devolüi (, ) — Fransada kommuna, Provans-Alp-Kot-d'Azür regionunda yerləşir. Departament — Yuxarı Alplar. Kommunanın dairəsi — Qap. Sent-Etyen-an-Devolüi kantonuna daxildir.
INSEE kodu — 05002.
Əhalisi
2008-ci ildə əhalinin sayı 266 nəfər təşkil edirdi.
İqtisadiyyatı
2007-ci ildə əmək qabiliyyətli 175 nəfərdən (15-64 yaş) 141 nəfəri iqtisadi cəhətdən fəal, 34 nəfər fəaliyyətsizdir (fəaliyyət göstəricisi 80.6%, 1999-cu ildə 81.8%). Fəal olan 141 nəfərdən 134 nəfər (73 kişi və 61 qadın), 7 nəfər işsiz (1 kişi və 6 qadın) idi. 34 hərəkətsiz 12 nəfər arasında şagird və ya tələbə, 12 nəfər təqaüdçü, 10 nəfər digər səbəblərə görə hərəkətsizdir.
Qalereya
Həmçinin bax
Fransa rayonlarının siyahısı
İstinadlar
Xarici keçidlər
Yuxarı Alplar departamentinin kommunaları
| 12,776
|
https://fr.wikipedia.org/wiki/Matthew%20Kadalikattil
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Matthew Kadalikattil
|
https://fr.wikipedia.org/w/index.php?title=Matthew Kadalikattil&action=history
|
French
|
Spoken
| 679
| 1,205
|
Matthew Kadalikattil, né le à Edappady en Inde, mort à le , est un prêtre catholique indien de l'Église catholique syro-malabare, fondateur des sœurs de la congrégation du Sacré-Cœur et reconnu vénérable le par le pape Benoît XVI.
Biographie
Matthew Kadalikattil naît à Edappady près de Palai dans le Kerala, en Inde le . Il est le fils du catholique Thomaschristen Zacharias Kadalikattil et de Rosa Kadalikattil. Très tôt, il se sent appelé à la prêtrise. Il reçoit l'enseignement d'un prêtre dans la langue liturgique, le syriaque. Ne sachant comment poursuivre ses études, il se présente à Mgr Charles Lavigne, vicaire apostolique de Changanacherry. Celui-ci juge sa demande légitime et l'admet au séminaire des Carmélites de Marie Immaculée.
Il est ordonné prêtre catholique le par Mgr Mathew Makil, successeur de Charles Lavigne. Matthew Kadalikattil devient ainsi prêtre diocésain du vicariat et plus tard diocèse de Changanacherry, de l'Église catholique syro-malabare.
Il œuvre pendant deux ans comme aumônier et vicaire dans sa ville natale, Saint-Thomas, à Palai. En 1903, il reçoit la paroisse de Sacré-Cœur à Karoor. Le père Kadalikattil y devient un fervent du Sacré-Cœur. Il fait reconstruire l'église et consacre toutes les familles et maisons de ses fidèles au Sacré-Cœur de Jésus. En 1906, il est transféré à l'église St. Mary, à Palai-Lalam, à côté de l'église St. Thomas, la deuxième église catholique de la ville.
Le P. Kadalikattil est connu à Palai comme un bon prédicateur et confesseur compatissant, ainsi que comme un « père des pauvres », dont il se soucie beaucoup, avec une attention particulière pour les intouchables.
En 1910, il revient comme membre du clergé de la paroisse à l'église St. Thomas de Palai, sa paroisse d'origine, où il avait passé les premières années de son sacerdoce. Il prend toujours souci des pauvres, mais n'est bientôt plus en mesure de faire face seul au service des pauvres et des malades et recherche des aides. Il trouve des femmes désireuses de le faire et fonde avec elles une congrégation religieuse en 1911, qui est spirituellement alignée sur la dévotion au Sacré-Cœur de Jésus. L'ordre qu'il crée prend le nom de « Sœurs du Cœur de Jésus ». Il bénit leur premier établissement le .
À partir de 1914, il travaille dans diverses églises de la ville. De 1922 jusqu'à sa mort, il est vicaire d'une nouvelle paroisse, Palai-Kannadiurumpu, et supérieur de l'ordre de ses sœurs. Il meurt le à Palai. Il est enterré provisoirement le lendemain dans la vieille église Saint-Thomas, à Palai.
Reconnaissance
Le fondateur de la congrégation est connu et vénéré à Palai comme « apôtre du Sacré-Cœur » et « père des pauvres ». Deux ans après sa mort, son corps est transféré dans la nouvelle chapelle de la maison mère de sa congrégation religieuse, juste à l'extérieur de Palai. Sa tombe devient un lieu de pèlerinage.
Les religieuses de son ordre se multiplient et se répandent dans divers pays. L'ordre qu'il a fondé devient un des plus importants de l'Inde. Il est reconnu officiellement par l'Église le .
En 1960, à l'occasion du anniversaire de son décès, une première biographie est publiée sur le P. Kadalikattil, en malayalam.
Palai est un diocèse indépendant depuis 1950. La procédure pour l'éventuelle béatification de Matthew Kadalikattil est ouverte au niveau diocésain le par Mgr Joseph Pallikaparampil, évêque de Palai. Le dossier est ensuite transmis à Rome. L'héroïcité de ses vertus est reconnue le par le pape Benoît XVI. Matthew Kadalikattil est ainsi proclamé « vénérable ».
Notes et références
.
Bibliographie
.
The Catholic directory of India, 1984, Catholic Bishop's Conference of India, .
Kurian Vanchipurackal: Fr. Mathew Kadalikkattil Founder of the Congregation of the Sacred Heart. Palai 1987.
K.C. Chacko: Servant of the Sacred Heart. S.H. Generalat, Palai 1988.
Sr.Pelagia Theckeparambil S.H.: The Shepherd’s Dream. S.H. Generalat, 2005.
Voir aussi
Articles connexes
sœurs de la congrégation du Sacré-Cœur
Liste des vénérables reconnus par Benoît XVI
Liens externes
Prêtre catholique indien
Vénérable catholique
Église catholique syro-malabare
Naissance en avril 1882
Naissance au Kerala
Décès en mai 1935
Décès au Kerala
Décès à 53 ans
| 13,304
|
https://fr.wikipedia.org/wiki/Festival%20de%20Cannes%202013
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Festival de Cannes 2013
|
https://fr.wikipedia.org/w/index.php?title=Festival de Cannes 2013&action=history
|
French
|
Spoken
| 847
| 1,410
|
Le Festival de Cannes 2013, du festival, a lieu du au au palais des festivals. La maîtresse de cérémonie est l’actrice Audrey Tautou et le président du jury est le réalisateur et producteur américain Steven Spielberg.
La Vie d'Adèle d'Abdellatif Kechiche remporte la Palme d’or. Le jury associe exceptionnellement les actrices Adèle Exarchopoulos et Léa Seydoux à cette récompense habituellement décernée au réalisateur.
Déroulement et faits marquants
Dès le mois de janvier 2013, l'organisation du festival indique que l'Inde sera cette année le pays à l'honneur, après le Brésil et l'Égypte, à l'occasion du centenaire de la naissance de son cinéma.
Le , les organisateurs annoncent que Jane Campion — seule femme lauréate de la Palme d'or (pour La Leçon de piano), première réalisatrice détentrice de la Palme d'or du court métrage (pour An Exercise in Discipline - Peel) et par ailleurs unique personnalité du cinéma à avoir reçu ces deux distinctions — présidera le jury des courts métrages et de la Cinéfondation. C'est également la première fois que le nom du président du jury des longs métrages n'est pas annoncé en premier.
Dans la nuit du , la direction du festival annonce, sur son compte Twitter, que le réalisateur et producteur américain Steven Spielberg présidera le jury des longs métrages. Souvent sollicité par le passé pour assurer cette fonction mais jamais disponible, le cinéaste donne un accord de principe dès 2011, se libère spécialement pour l'édition 2013 et déclare dans un communiqué :
En attendant la sélection officielle — pour laquelle de nombreux films sont répétitivement cités — qui doit être en principe annoncée le 18 avril, les responsables du festival présentent le 22 mars l'affiche de la représentant une photo de Paul Newman et Joanne Woodward, tête bêche et s'embrassant, datant des années 1960.
Le , la sélection des courts métrages est annoncée deux jours avant la sélection officielle des films en compétition dévoilée le 18 avril lors d'une conférence de presse tenue à l'UGC Normandie à Paris. Elle regroupe à cette date dix-neuf longs métrages (dont six films français et quatre américains) retenus par les comités de sélection parmi les visionnés depuis juin 2012, les organisateurs ayant déclaré que la liste n'était pas définitivement close et que d'autres films pourraient s'y ajouter, notamment dans la section « Un certain regard ». Le comité d'organisation annonce également à cette occasion qu'un hommage spécial sera rendu par le festival à Jerry Lewis avec la projection de son dernier film, Max Rose de Daniel Noah. Ainsi, le 26 avril le comité annonce la sélection de Only Lovers Left Alive de Jim Jarmusch en compétition pour la Palme d'or.
Le festival accueille cette année plusieurs œuvres télévisuelles, comme en 2010 avec la série Carlos (hors-compétition). En plus du téléfilm Muhammad Ali's Greatest Fight de Stephen Frears et de la mini-série Top of the Lake de Jane Campion (présentée en début d'année lors du festival de Sundance et du festival de Berlin), tous deux diffusés au cours de séances spéciales, le téléfilm de Steven Soderbergh, Ma vie avec Liberace, est pour la première fois présenté en compétition.
Le troisième jour du festival est marqué par deux événements. D'une part, le vol d'une parure d'une valeur estimée de 1,4 million de dollars appartenant au joailler Chopard, fournisseur de la Palme d'or et des bijoux prêtés aux personnalités en sécurité dans la du Martinez, a été commis dans la chambre du Novotel d'une collaboratrice de la maison, version édulcorée de La Main au collet où les voleurs opéraient au Carlton. D'autre part, alors que Le Grand Journal accueille Daniel Auteuil et Christoph Waltz, des détonations retentissent et le plateau est évacué en direct, interrompant l'émission quelques minutes. L'action est due à un homme ayant tiré deux balles à blanc, provoquant ainsi la panique dans la foule environnante.
Gilles Jacob annonce sur Twitter le , que ce sera l'actrice américaine et membre du jury lors du Festival de Cannes 2011, Uma Thurman, qui remettra la Palme d'or. Invitée d'honneur de cette édition, l'actrice américaine Kim Novak vient présenter la copie restaurée du film Sueurs froides (1958) d'Alfred Hitchcock. Elle reçoit une ovation debout lorsqu'elle arrive sur scène pour remettre le Grand prix lors de la cérémonie de clôture.
Jurys
Compétition
Caméra d'or
Un certain regard
Cinéfondation et courts métrages
Sélections
Sélection officielle
Compétition
La sélection officielle en compétition se compose de 20 films :
Un certain regard
La section Un certain regard comprend 18 films :
Hors compétition
Séances de minuit
Séances spéciales
Courts métrages
Cinéfondation
Cannes Classics
Fiction
Documentaires
Cinéma de la Plage
Quinzaine des réalisateurs
Longs métrages
Séances spéciales
Courts métrages
Semaine de la critique
Longs métrages
Courts métrages
Séances spéciales
Longs métrages
Courts et moyens métrages
ACID
Palmarès
Palmarès officiel
Compétition
Caméra d'or
Un certain regard
Cinéfondation
Courts métrages
Quinzaine des réalisateurs
Semaine de la critique
Autres prix
Notes et références
Annexes
Articles connexes
Festival de Cannes
Berlinale 2013
Mostra de Venise 2013
Liens externes
Le Festival de Cannes par année sur l'Internet Movie Database
Le Festival de Cannes par année sur Allociné
2013
Mai 2013 en France
Cannes
| 23,178
|
https://it.wikipedia.org/wiki/Georgij%20Dmitrievi%C4%8D%20%C5%A0erva%C5%A1idze
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Georgij Dmitrievič Šervašidze
|
https://it.wikipedia.org/w/index.php?title=Georgij Dmitrievič Šervašidze&action=history
|
Italian
|
Spoken
| 214
| 497
|
Biografia
Il principe Guiorgui Dimitris Dzé Chervachidzé (o Tchatchba in abcaso) (in georgiano: გიორგი დიმიტრის ძე შერვაშიძე ; in russo: Георгий Дмитриевич Дмитриевич; Georgij Dmitrievič Šervašidze) (1847-1918) fu un principe abcaso che fece parte dell'alta burocrazia dell'Impero russo nel XIX secolo.
L'Abcasia, a parte qualche porto occupato dall'Impero russo, all'epoca della nascita del principe, faceva parte dell'Empire ottoman.
Georgii Shervashidze fu inviato nel 1858 a San Pietroburgo per esservi educato.
Nel 1865, entrò alla facoltà di diritto dell'università di Mosca, dove si laureò nel 1869.
Il principato di Abcasia entrò a far parte dell'Impero russo nel 1866 ed egli fu assunto nel servizio civile Tiflis (l'attuale Tbilisi) come consigliere titolare nell'amministrazione del Caucaso.
Partecipò alla Guerra russo-turca (1877-1878).
Nel 1883, divenne vice-governatore e poi, nel 1889, governatore di Tiflis fino al 1897, quando venne nominato consigliere di stato. Nel 1888, durante una visita dello zar Alessandro III al monastero di Nuovo Athos in Abcasia, l'imperatrice Marie Féodorovna notò il principe Shervashidze, fatto che avrebbe condotto più tardi, quando lei rimase vedova, ad un'amicizia amorosa tra i due.
Il principe venne nominato nel 1899 Oberhofmeister, vale a dire, Gran ciambellano della Casa dall'imperatrice vedova. Dal 1903-1915 fu suo cancelliere.
Era anche molto amico del conte Vitte.
Onorificenze
Onorificenze russe
Onorificenze straniere
Altri progetti
Politici abcasi
| 17,217
|
https://uk.wikipedia.org/wiki/%D0%A1%D0%B0%D1%80%D0%B0%D0%B1%D0%B0%D1%88
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Сарабаш
|
https://uk.wikipedia.org/w/index.php?title=Сарабаш&action=history
|
Ukrainian
|
Spoken
| 148
| 431
|
Сарабаш (до 2016 року — село Комуна́рівка) — село Старобешівської селищної громади Кальміуського району Донецької області, Україна. Населення становить 1008 осіб.
Загальні відомості
Відстань до райцентру становить близько 22 км і проходить автошляхом місцевого значення.
Землі села межують із територією м. Докучаєвськ Донецької області.
Із 2014 р. внесено до переліку населених пунктів на Сході України, на яких тимчасово не діє українська влада.
Населення
За даними перепису 2001 року населення села становило 1008 осіб, із них 15,77 % зазначили рідною мову українську, 83,73 % — російську та 0,1 % — білоруську мову.
Населення
Згідно з переписом УРСР 1989 року чисельність наявного населення села становила 1177 осіб, з яких 551 чоловік та 626 жінок.
За переписом населення України 2001 року в селі мешкало 1008 осіб.
Мова
Розподіл населення за рідною мовою за даними перепису 2001 року:
Примітки
Посилання
Погода в селі Комунарівка
Села Донецької області
Села, перейменовані в рамках декомунізації
| 11,693
|
https://mt.wikipedia.org/wiki/Mu%C4%A7ammed
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Muħammed
|
https://mt.wikipedia.org/w/index.php?title=Muħammed&action=history
|
Maltese
|
Spoken
| 526
| 1,649
|
Muħammed (bl-Għarbi: مُحَمَّد ٱبْن عَبْد ٱللَّٰه, bl-ittri Rumani: Muħammad ibn Għabd Allāh; pronunzjat bl-Għarbi Klassiku: [muˈħammad]; pronunzjat bil-Malti l-iktar bħala [muˈħammed] jew [moˈħammed] jekk mhux verbatim bħall-Għarbi Klassiku; twieled għall-ħabta tal-570 – miet fit-8 ta' Ġunju 632) kien mexxej Għarbi reliġjuż, soċjali u politiku, u fundatur tar-reliġjon dinjija tal-Iżlam. Skont it-tagħlim Iżlamiku, huwa kien profeta, imnebbaħ b'mod divin biex jipprietka u jikkonferma t-tagħlimiet monoteistiċi ta' Adam, Abram, Mosè, Ġesù, u profeti oħra. Huwa l-profeta finali ta' Alla skont il-fergħat prinċipali kollha tal-Iżlam, għalkemm xi denominazzjonijiet moderni ma jaqblux ma' dan it-twemmin. Muħammed għaqqad lill-Arabja f'entità Musulmana waħda, bil-Koran kif ukoll bit-tagħlimiet u prattiki tiegħu bħala l-bażi tat-twemmin reliġjuż Iżlamiku.
Muħammed twieled bejn wieħed u ieħor fil-570 (is-Sena tal-Iljunfant) fil-Mekka. Huwa kien iben Abdullah ibn Abd al-Muttalib u Amina bint Wahb. Missieru kien iben il-mexxej tribali tal-Qurajx Abd al-Muttalib ibn Hashim, u Abdullah miet ftit xhur qabel twieled Muħammed. Ommu Amina mietet meta kellu sitt snin, u ħallietu orfni. Huwa trabba ma' nannuh, Abd al-Muttalib, u ma' zijuh min-naħa ta' missieru, Abu Talib. Iktar 'il quddiem, huwa kien perjodikament joqgħod għalih f'għar fil-muntanji msejjaħ Hira għal diversi ljieli ta' talb. Meta kellu 40 sena, Muħammed sostna li żaru Gabrijel fl-għar u li tah l-ewwel rivelazzjoni minn Alla. Fis-613, Muħammed beda jipprietka dawn ir-rivelazzjonijiet pubblikament, u beda jipproklama li tewħid (Alla hu wieħed), li s-"sottomissjoni" (iżlam) sħiħa lill-Alla kienet l-istil ġust tal-ħajja (dīn), u li hu kien profeta u messaġġier ta' Alla, bħal profeti oħra fl-Iżlam.
Is-segwaċi ta' Muħammed inizjalment kont tgħoddhom fuq ponot subgħajk, u esperjenzaw ostilità mill-politeisti tal-Mekka għal 13-il sena. Sabiex jaħrab il-persegwitazzjoni kontinwa, huwa bagħat lil uħud mis-segwaċi tiegħu lejn l-Abissinja fis-615, qabel ma hu u s-segwaċi tiegħu ma marrux mill-Mekka għal Medina (dak iż-żmien magħrufa bħala Jatrib) iktar 'il quddiem fis-622. Dan l-avveniment, il-Hiġra, jimmarka l-bidu tal-kalendarju Iżlamiku, magħruf ukoll bħala l-kalendarju Hijri. F'Medina, Muħammed għaqqad it-tribujiet taħt il-Kostituzzjoni ta' Medina. F'Diċembru 629, wara tmien snin ta' ġlied intermittenti mat-tribujiet tal-Mekka, Muħammed ġabar armata ta' 10,000 ikkonvertit Musulman u assedja l-belt tal-Mekka. Il-ħakma bilkemm kienet ikkontestata u Muħammed ħataf il-belt bi ftit tixrid tad-demm. Fis-632, ftit xhur wara li rritorna mill-Pellegrinaġġ tat-Tluq, huwa marad u miet. Sal-mument ta' mewtu, il-biċċa l-kbira tal-Peniżola tal-Arabja kienet ikkonvertiet għall-Iżlam.
Ir-rivelazzjonijiet (magħrufa individwalment bħala Ajah – litteralment "Sinjal [ta' Alla]") li Muħammed kien sostna li rċieva sa mewtu jiffurmaw il-versi tal-Koran, meqjus mill-Musulmani bħala verbatim "il-Kelma ta' Alla" li fuqha hija bbażata r-reliġjon. Apparti l-Koran, it-tagħlimiet u l-prattiki ta' Muħammed imsejħa Sunna (bl-Għarbi: سنّة, sunnah), li jinsabu fil-letteratura Ħadit u sira (bijografija tal-Profeta), jitqiesu u jintużaw bħala sorsi tal-liġi Iżlamika.
Ismijiet u appellazzjonijiet mill-Koran
L-isem Muħammed (/mʊˈhæməd, -ˈhɑːməd/) ifisser "dak li jistħoqqlu t-tifħir" u jidher erba' darbiet fil-Koran. Il-Koran jindirizza wkoll lil Muħammed fit-tieni persuna b'diversi appellazzjonijiet; profeta, messaġġier, qaddej jew skjava ta' Alla (għabd, relatata bil-kelma l-Malti għabid), ħabbar it-tajba (baxir) fil-Koran 2:119, xhud (xahid) fil-Koran 33:45, dak li jwassal il-bxara t-tajba (mubaxxir), dak li jwissi (nathir) fil-Koran 11:2, dak li jfakkar (muthakkir) fil-Koran 88:21, dak li jsejjaħ [lill-Alla] (dā'ī) fil-Koran 12:108, id-dawl personifikat (nūr) fil-Koran 5:15, u l-lampa li tagħti d-dawl (siraġ munir) fil-Koran 33:46.
Referenzi
Ħoloq esterni
Iżlam
Reliġjon
Profeti
Twieldu fil-570
Mietu fis-632
| 29,670
|
https://ru.wikipedia.org/wiki/%D0%9B%D1%8D%D0%BD%D0%B3%D1%84%D0%BE%D1%80%D0%B4%2C%20%D0%A1%D0%B0%D1%80%D0%B0-%D0%AD%D0%BB%D0%B8%D0%B7%D0%B0%D0%B1%D0%B5%D1%82
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Лэнгфорд, Сара-Элизабет
|
https://ru.wikipedia.org/w/index.php?title=Лэнгфорд, Сара-Элизабет&action=history
|
Russian
|
Spoken
| 149
| 440
|
Са́ра-Эли́забет Лэ́нгфорд (; 1979) — американская фотомодель и юрист. Участвовала в таких конкурсах красоты, как «Мисс Америка» и «Мисс США». В настоящее время работает юристом.
Биография
Сара-Элизабет Лэнгфорд родилась в 1979 году и выросла в Атланте (штат Джорджия, США), в котором её отец (ум. в 1994) был сенатором и, по словам Сары-Элизабет, имел «долгосрочное воздействие на её жизнь».
В 1996 году Сара-Элизабет окончила «Pace Academy». Лэнгфорд получила степень в области французского языка в Мичиганском университете в 2000 году. Позже она обучалась в юридической школе Говардского университета, которую окончила в 2006 году.
В 2004 году Сара-Элизабет была удостоена стипендии столицы и двухлетнее назначение на работу в округе Колумбия.
Личная жизнь
С 2014 года Сара-Элизабет замужем за 59-м мэром Атланты . У супругов есть дочь — Мария Кристан Рид (род.05.06.2014).
Примечания
Фотомодели США
Юристы США
Выпускники Мичиганского университета
Выпускники Колледжа литературы, науки и искусств Мичиганского университета
Выпускники Школы права Говардского университета
| 11,045
|
https://math.stackexchange.com/questions/4381911
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,022
|
Stack Exchange
|
Adam Rubinson, AmoebaProteus, https://math.stackexchange.com/users/1023356, https://math.stackexchange.com/users/29156
|
English
|
Spoken
| 530
| 1,238
|
If $\{x_n\}$ is a non-decreasing sequence of integers, uniformly "half-distributed" relative to $n$ as $n\to\infty,$ then $\frac{\sum x_n}{n^2}\to 1?$
Let $\{ x_n\}_{n\in\mathbb{N}}$ be a non-decreasing sequence of integers such that
$$ \lim_{n\to\infty} \left( \frac{\text{number of elements in } \{x_i\}_{i\leq n} \text{ that are } \leq n }{n} \right) = \frac{1}{2}. $$
Then does $$ \lim_{n\to\infty} \left( \frac{\sum_{i=1}^n x_i}{n^2} \right) = 1\quad ? $$
The result is true for $\ x_n = 1+2n,$ or $x_n = 2n,$ so I was wondering if the more general result in the question was true, but I'm not sure if the condition is restrictive enough to guarantee the result.
The "non-decreasing" condition is there for otherwise $x_1=1, x_2=1000, x_3=1, x_4=1000000, x_5=1, x_6=1000000000, x_7=1, ...$ would be a counter-example.
What if it were just a sequence of n/2 0s followed by n/2 ns?
@AmoebaProteus It's not clear what you mean. A sequence is an infinite list of numbers. What infinite list of numbers are you describing?
I didn't realise a sequence has to be infinite; I am referring to the limit of finite lists of numbers of the form {0,0,4,4} for n = 4. Sorry if I am just misunderstanding the question.
Not yet. Been away this weekend.
We can show that the given conditions imply
$$ \tag{$*$}
\lim_{n \to \infty} \frac{x_n}{2n} = 1 \, ,
$$
and then
$$
\lim_{n\to\infty} \frac{\sum_{i=1}^n x_i}{n^2}
= \lim_{n\to\infty} \frac{x_n}{n^2-(n-1)^2} = 1
$$
follows using the Stolz–Cesàro theorem.
It remains to prove $(*)$. The idea is that among the first $2n$ numbers, about $n$ are $\le 2n$. Since the sequence is non-decreasing, roughly the first $n$ are $\le 2n$ and the next $n$ are $> 2n$. Which means that $x_n$ is approximately $2n$.
Let's now make this rigorous: Given $\epsilon > 0$ there is an $N$ such that
$$
(1 - \epsilon) \frac{n}{2} < \# \{ 1 \le i \le n \mid x_i \le n \} < (1 + \epsilon) \frac{n}{2}
$$
for all $n \ge N$. For such a $n$ set $k = \lfloor 2n/(1+\epsilon) \rfloor $ and $l = \lceil 2n/(1-\epsilon) \rceil $. Then
$$
\#\{ 1 \le i \le k\mid x_i \le k\} <(1 + \epsilon) \frac{k}{2} \le n
\implies x_n > k \ge \frac{2n}{1 + \epsilon} - 1
$$
and
$$
\#\{ 1 \le i \le l \mid x_i \le l\} >(1 - \epsilon) \frac{l}{2} \ge n
\implies x_n \le l \le \frac{2n}{1 - \epsilon} +1\, .
$$
Here it is used that the sequence is non-decreasing.
So for any $\epsilon > 0$ there is an index $N$ such that
$$
\frac{1}{1+\epsilon} - \frac{1}{2n} \le \frac{x_n}{2n} \le \frac{1}{1-\epsilon} + \frac{1}{2n}
$$
for all $n \ge N$, and that proves $(*)$.
Remark: This argument works for sequences of real numbers, not only for sequences of integers.
Generalization: In the same way one can prove the following: Let $(x_n)$ be a non-decreasing sequence of real numbers. If
$$
\lim_{n \to \infty} \frac{\# \{ 1 \le i \le n \mid x_i \le n \}}{n} = \alpha
$$
then
$$
\lim_{n \to \infty} \frac{x_n}{n} = \begin{cases}
\frac{1}{\alpha} & \text{ if } 0 < \alpha \le 1 \, \\
\infty & \text{ if } \alpha = 0 \, .
\end{cases}
$$
| 24,150
|
https://la.wikipedia.org/wiki/Brie%20%28Carantonus%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Brie (Carantonus)
|
https://la.wikipedia.org/w/index.php?title=Brie (Carantonus)&action=history
|
Latin
|
Spoken
| 29
| 82
|
Brie est commune Francicum 4'126 incolarum (anno 2010) praefecturae Carantoni in regione occidentali Pictaviensis et Carantonis.
Indicem communium praefecturae Carantoni
Nexus externi
Communia praefecturae Carantoni
Loci habitati praefecturae Carantoni
| 44,867
|
https://ru.wikipedia.org/wiki/%D0%9A%D0%B0%D0%BB%D0%B8%D0%BD%D0%BE%D0%B2%D0%BA%D0%B0%20%28%D0%9C%D0%B0%D0%B3%D0%B4%D0%B0%D0%B3%D0%B0%D1%87%D0%B8%D0%BD%D1%81%D0%BA%D0%B8%D0%B9%20%D1%80%D0%B0%D0%B9%D0%BE%D0%BD%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Калиновка (Магдагачинский район)
|
https://ru.wikipedia.org/w/index.php?title=Калиновка (Магдагачинский район)&action=history
|
Russian
|
Spoken
| 85
| 244
|
В Амурской области также есть сёла Калиновка в Ромненском районе и Калиновка в Серышевском районе.
Кали́новка — село в Магдагачинском районе Амурской области России. Входит в сельское поселение Черняевский сельсовет.
География
Расположено на левом берегу реки Амур, в 45 км по автодороге к юго-востоку от центра сельского поселения, села Черняево. Расстояние до ближайшей железнодорожной станции Тыгда (в селе Тыгда на Транссибе и в 15 км от федеральной трассы Чита — Хабаровск) — 90 км.
Население
Примечания
Ссылки
Сайт администрации Магдагачинского района
Населённые пункты Магдагачинского района
| 26,272
|
https://stackoverflow.com/questions/23791266
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,014
|
Stack Exchange
|
Christian Kuetbach, Kerri Shotts, PhoenixRevealed, https://stackoverflow.com/users/233792, https://stackoverflow.com/users/2817236, https://stackoverflow.com/users/741043
|
English
|
Spoken
| 1,517
| 1,961
|
Cordova development on Windows for iOS
I'm a longtime Windows desktop developer (25+ years) who has been doing native Blackberry 10 mobile development for 18 months. For my next app I have to hit as many mobile platforms as possible and have decided on Cordova (NOT PhoneGap) for the job.
I have successfully built and deployed a test app on Blackberry 10 and Android with the Cordova CLI. Now I need to get the workflow for iOS figured out before I start actually coding the real app so I can test on all platforms as I go along. I have OSX Mavericks running in a VMware VM from Windows 8.1 and have Xcode installed on OSX. I'm only slightly knowledgeable in OSX, but I know that I must use it to build for iOS. What I'm trying to figure out is how much duplication of effort I have to expend within OSX to build for iOS. I suspect the challenges would be the same if I was using a physical Mac to package and test for iOS so hopefully there are others out there who have figured out the cleanest way to do this.
Can I use Cordova on Windows to create the iOS project and source or do I have to create a duplicate project platform using Cordova on the Mac and keep duplicate source code there too? If I can do all that from Windows, do I just copy it over to Mavericks after every Cordova build and use Xcode to package and run it in an emulator? If anyone out there is running OSX in a VM for this like I am, is it possible to map a host path into OSX so I don't have to recreate the platform source at all after I build it from Windows? I'm assuming there is not way to automate the whole thing from Windows Cordova like there is for the Android and Blackberry platforms, am I wrong?
My desire is to do ALL coding in Windows and only use Maverick for the final bundling for iOS. After 25 years of pro development I'm not used to being a complete newbie and I'm not crazy about it. LOL
I think you can share the project via networkd share and just rebuild from the commandline (maybe from the windows-pc via SSH)
I think installing OSX within an VM is not allowed (expect the VM host is also OSX). Thats why we bought a mac mini as "buildserver" for iOS
@Christian Kuetbach Windows VMware products normally don't allow you to run OSX clients, but this is easily circumvented with an OSX Unlocker for VMware. As I said in my original post I am running OSX Mavericks perfectly on a Windows VMware host. Google "vmware windows osx unlocker".
I did not mean "is not possible", I meant "It is not allowed by the terms of the licence agreements".
Learn Mac OS X. I know you feel out of sorts in this environment, but honestly -- it's not that difficult. In fact, I made the transition from Windows 7 rather than upgrading to Windows 8, and I was comfortable very quickly. (Far more comfortable than I am with a Windows 8 laptop others in my family use.)
Remember that Mac OS X is a Unix underneath (BSD). This means that if you are in any way familiar with Linux or Unix but are put off by working with the Mac GUI, you can almost always fall back to the terminal. (In my not-so-humble opinion, Mac OS X makes for a very nice *nix machine!)
Your VM should be able to share drives across the network, just like it would if it were a real machine (Apple supports SMB reasonably well). This way both environments could point to the same Cordova project without having to worry about copies. (You can copy the projects around, but it would be easier, in my opinion, just to share across the network. Less risk of accidentally doing something stupid.)
The only things that require a Mac are:
Creation of certificates / provisioning profiles (and there are ways around this on Windows, but it is not supported)
Submission to the app store
Remote debugging using Safari (You can use Weinre to come close, but it doesn't support breakpoints and such)
Local compilation of your code (and there are other toolchains available that do this on other OSes, but again, not supported by Cordova).
Running the app in a simulator
The above means that you can develop your app on Windows and only run to the VM for compilation / submission. With the advent of the Phonegap Developer app (http://app.phonegap.com), you can skip the (re)build step during development and testing as well (as long as you use only core plugins).
Note: I know you indicate you are using Cordova and NOT PhoneGap. What's nice is that, ATM, the Phonegap Developer App works just fine with Cordova projects (whereas PG Build often requires config.xml to be moved and plugins to be handled differently). It does require the PhoneGap CLI to be installed. As long as you are using core plugins, it definitely saves time by eliminating the rebuild steps.
The Cordova project can be created on any platform -- but I know there was a time when adding the iOS platform to your project (cordova platform add ios) would check that all pre-reqs were met, but I'm not sure if that is still the case. It can't hurt to try. But if it is required, use a network share and add the platform on the VM. Keep in mind that the platforms should be thought of as build artifacts -- your app code should live in the root www, which doesn't depend on the added platforms.
Do not rely on the iOS Simulator to tell you anything about how the app works or performs on a real device. The simulator has all the power of your desktop (processor speed, memory, etc.) and lacks many on-device features as well. I suspect the visual performance of the iOS Simulator will be horrid, since it will rely on the GPU as routed through the VM. (Frankly, it's not always great on a real Mac.) You really, really, really must have a real device to test on. (Again, the PhoneGap Developer App can ease the pain of repeat deployments for testing.)
Thanks for the very detailed reply. I am likely going to award you the accept, but first I wanted to respond point by point.
Sorry, not used to replying on StackOverflow, having trouble getting it to look right. Anyway, what I was trying to say is that I wanted to respond to a couple of your points before accepting your reply. #1 I KNEW somebody was going to suggest this, but iOS is just a tiny part of my workflow, and I still do Windows desktop development, so the more I can work in Windows, the better. #2 I do have some experience with Linux, more than OSX for sure, so yes, that does help.
#3 I was hoping that was the case. That's the way I'm going to try to go. #4 This is the crux of what I wanted to know. Thanks so much. #6 I will be testing on iOS hardware later, but for now I am not going to pay Apple the developer fee until I am almost ready to release the app, which could take months. For now the simulator will be fine to check if it looks right. No point in starting the one year registration clock until I have to. As I'm sure you know you can't even test on real iOS hardware until you pay the fee.
Remember that although the simulator often gives the same visual results, it doesn't always. The simulator will also give you no idea as to how animations will react on a real device (think view push/popping animation). So don't wait to test on a real device until you're ready to submit -- you may find out that there's still quite a bit of optimization required to get things to be smooth on a real device. (Or you may find memory pressure is a problem.) As for testing on real iOS hardware, check out http://app.phonegap.com as long as you use core plugins. No fee required.
Thanks again for more great info re app.phonegap.com. I haven't tried it yet but I assume the handset apps are just a packaged WebView that can dynamically load all the HTML, JS, and CSS files from the server at once and run it all locally without the overhead of retrieving everything as it is used from a regular Web server. Since I am going to use Cordova instead of PhoneGap do you think I can still use it?
I've used the app successfully on my Cordova projects -- no changes or additional settings needed. What's nice is that it continuously monitors your code so when you make changes, it automatically refreshes on the device -- which can really help speed up the dev/test cycle.
| 12,818
|
https://stackoverflow.com/questions/4459262
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,010
|
Stack Exchange
|
Bartek Mikołajczuk, Dilan gul, Khalid , TOP 10 YRK, deovrat singh, https://stackoverflow.com/users/125571, https://stackoverflow.com/users/9410057, https://stackoverflow.com/users/9410058, https://stackoverflow.com/users/9410059, https://stackoverflow.com/users/9413449
|
English
|
Spoken
| 185
| 256
|
custom shaped tracking area in cocoa
How to create a custom shaped tracking area in cocoa ?
In cocoa I could only find rectangles as tracking area.
Carbon provided this functionality through HIViewNewTrackingArea , through which
any HIShapeRef could be registered as a tracking area.Do we have something similar to this in cocoa ?
I have a complex shape in which I want to change mouse cursors at different regions.
One approach I tried was making a big tracking rectangle covering the whole area, and then
changing cursor using mouseMoved events.
Could you suggest any other way to do it.
It would have been easier if there was a similar api like HIViewNewTrackingArea in cocoa.
Thanks.
Tracking areas are only rectangular in the Cocoa frameworks. You could cover your entire area, then create an NSBezierPath (which you keep around but do not stroke or fill) and ask it if the point is inside it via -containsPoint:.
The tracking area "activates" mouse tracking while the path provides your custom-shaped hit detection mechanism.
thanks :) , finally solved it using multiple tracking areas to cover the paths.
| 16,920
|
https://fr.wikipedia.org/wiki/Cevic
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Cevic
|
https://fr.wikipedia.org/w/index.php?title=Cevic&action=history
|
French
|
Spoken
| 1,220
| 1,871
|
Le Cevic est un transporteur de bétail de la mis en service en 1894. Construit par les chantiers Harland & Wolff de Belfast, il est alors le plus imposant navire de ce type commandé par la compagnie, et l'un des plus gros cargos au monde : lors d'une de ses premières traversées, il rapporte de New York la plus importante cargaison jamais transportée à l'époque. Le navire arrive également à point nommé pour remplacer le Naronic, disparu l'année précédente. Cependant, le début du voit la disparition progressive du transport de bétail vivant sur l'Atlantique au profit de la viande congelée. Le Cevic, inutile sur l'Atlantique Nord, est transféré sur la ligne de l'Australie.
En 1914, le navire est vendu à l'Amirauté britannique après le début de la Première Guerre mondiale. Il est alors refondu et recouvert de cheminées et canons factices afin d'avoir une apparence similaire au croiseur HMS Queen Mary. Il sert alors dans des missions de diversion. À partir de 1916, renommé Bayol puis Bayleaf l'année suivante, le navire est transformé en pétrolier et transporte du carburant pour les navires de la .
En 1920, le Bayleaf est vendu à l' (Shell) qui le renomme Pyrula et l'utilise comme réserve flottante. Vendu aux ferrailleurs en 1933, il est démoli à Gênes la même année.
Histoire
Transporteur de bétail pour la White Star Line
À la fin des années 1880, la se lance dans le transport de bétail avec deux navires, le Cufic et le Runic. Ce trafic est à l'époque fort rentable (environ bêtes sont ainsi importées des États-Unis en 1889). Les navires transportent des marchandises de Liverpool à New York, et ramènent du bétail dans le sens inverse. Pour s'illustrer dans ce commerce, la tente de proposer des navires offrant un bon confort aux animaux : trop de bêtes meurent alors durant le voyage, réduisant les bénéfices de leurs propriétaires. En assurant une bonne aération, et en demandant aux capitaines de veiller au bon traitement du bétail par ceux qui le gardent, la compagnie assure ainsi que la majorité des animaux survivront au voyage. Face au succès de ses deux premiers navires, la compagnie en commande de nouveaux ; le Nomadic et le Tauric arrivent ainsi en 1891, le Naronic et le Bovic l'année suivante. Le Cevic est le suivant.
Construit par les chantiers Harland & Wolff de Belfast, le Cevic est le plus imposant des transporteurs de bétail alors commandés par la compagnie, avec près de tonneaux de plus que le Bovic et le Naronic, qui étaient pourtant les plus gros cargos de leur époque. Les besoins sont alors énormes : le mois de son lancement (le ), plus de bêtes ont traversé l'Atlantique. Le Cevic arrive également à point nommé pour remplacer le Naronic, disparu en février la même année (il n'est cependant pas certain que la commande du Cevic ait été la conséquence de la disparition du Naronic).
Le , le Cevic effectue son voyage inaugural entre Liverpool et New York. Au retour, il transporte une cargaison record : 896 têtes de bétail, boisseaux de blé, balles de coton, sacs de farine, de métal, de viande fraîche et paquets de primeurs. Il s'agit alors de la plus importante cargaison jamais embarquée sur un navire. Le service de l'Atlantique Nord est cependant affaibli au début du , le transport de viande congelée réduisant fortement le nombre de bêtes transportées. En 1908, la décide de retirer le Cevic de la ligne pour le transférer sur la ligne de l'Australie, en passant par le canal de Suez. Cependant, la profondeur de ses cales lui cause plusieurs soucis sur cet itinéraire. Ainsi, lors d'un voyage de retour en , le navire commence à prendre l'eau en traversant le canal. Un examen à Port-Saïd révèle que les deux cales avaient été inondées lorsque le navire avait heurté le fond du canal. À la suite de cet incident, il est décidé de déplacer le Cevic sur un itinéraire passant par Le Cap. Il lui arrive également occasionnellement de transporter des marchandises sur l'Atlantique.
Du croiseur factice au pétrolier
En 1914, alors qu'éclate la Première Guerre mondiale, la cède le Cevic à l'Amirauté britannique. Il est aussitôt renvoyé chez Harland & Wolff pour y être transformé en un faux croiseur ressemblant au HMS Queen Mary. Il reçoit notamment deux fausses cheminées et des canons en bois. Ses deux premières sorties se terminent par des accidents qui forcent son retour dans les chantiers, l'empêchant de participer à des opérations en Méditerranée. En , il est finalement envoyé sur l'Atlantique. Il semble que son déguisement n'ait pas été percé à jour : lancé à la poursuite du paquebot Kronprinz Wilhelm qui jouait les corsaires pour la marine allemande, il incite le navire à demander l'internement dans le port de New York, alors neutre. Cette décision scelle le sort de ce navire, réquisitionné par les États-Unis lorsqu'ils entrent en guerre.
Au mois de septembre suivant, le Cevic est retiré du service et renvoyé aux chantiers pour retrouver son état initial en vue d'un retour au service commercial. Dès 1916, le navire est cependant récupéré par la : de grandes cuves cylindriques sont installées dans sa coque pour en faire un pétrolier, renommé Bayol. L'année suivante, il est renommé Bayleaf et géré par le , qui confie son exploitation à . Il continue à servir de pétrolier pour la , approvisionnant ses dépôts côtiers.
Après la guerre, le navire est vendu le à l' (future Shell) qui le renomme Pyrula. Sous ce nouveau nom, il est dans un premier temps envoyé dans le port de New York, où il sert durant quatre ans de dépôt de pétrole. À partir de 1925, il occupe les mêmes fonctions dans le port de Curaçao. En , il est finalement vendu à Henrico Haupt, démolisseur italien, et remorqué jusqu'aux chantiers de Gênes pour y être démantelé.
Caractéristiques
Avec ses sur 18,3 et ses tonneaux de jauge brute, le Cevic est en 1894 le plus gros transporteur de bétail construit pour la . Il est cependant dépassé dès l'année suivante par le Georgic, dernier navire de ce type possédé par la compagnie. Comme tous les transporteurs de bétail de la compagnie depuis le Nomadic, le Cevic est propulsé par deux hélices alimentées par des machines à triple expansion, qui lui permettent de naviguer à une vitesse de 13 nœuds.
La silhouette du navire est avant tout fonctionnelle, et il dispose de quatre mâts non pourvus de voiles (ils soutiennent en revanche les grues de chargement) et d'une cheminée ocre à manchette noire, couleurs de la compagnie. Ses cales, profondes, peuvent contenir de nombreuses marchandises, et le navire est équipé pour transporter jusqu'à têtes de bétail. Un espace supplémentaire, sur le pont supérieur, est conçu pour accueillir une vingtaine de chevaux, qui sont parfois transportés en plus de la cargaison classique (par exemple des chevaux de course, ou de cirque).
Références
Annexes
Bibliographie
Articles connexes
HMS Queen Mary
Liens externes
Titanic and Other White Star Ships, site consacré à la White Star Line avec une liste de navires
Titanic-Titanic.com, site de référence sur le Titanic contenant des pages sur la plupart des navires de la compagnie
Bateau lancé en 1893
Bateau de la White Star Line
Nom de bateau
Transatlantique
Pétrolier
Navire construit à Belfast
Navire bétailler
Navire démoli en 1933
| 2,091
|
https://zh.wikipedia.org/wiki/%E5%91%A8%E6%B7%B1%E5%AA%92%E4%BD%93%E4%BD%9C%E5%93%81%E5%88%97%E8%A1%A8
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
周深媒体作品列表
|
https://zh.wikipedia.org/w/index.php?title=周深媒体作品列表&action=history
|
Chinese
|
Spoken
| 23
| 685
|
周深媒体作品列表主要列举中国大陆90后男歌手周深参与的晚会、综艺节目及演唱的歌曲等在公众媒体上播放的作品内容。
从2014年7月参加《中国好声音》开始,周深参与了《蒙面唱将猜猜猜》、《我们的歌》、《歌手》、《天赐的声音》、《时光音乐会》等重要音乐综艺,以及《了不起的长城》、《青春环游记2》、《奔跑吧 (第十、十一季)》、《开始推理吧》等文化真人秀节目,并在《唱给世界听》、《创造营2021》、《舞台2023》等音乐类节目中担任导师。周深参加了《2021年中央广播电视总台春节联欢晚会》等各种晚会,及多个电影节晚会。此外,周深还曾在音乐网剧和舞台剧中客串出演自己,并且参加过多个电台广播节目。
2023年
将播节目及歌曲
已播节目及歌曲
2022年
2021年
2020年
2010年代
节目
演唱歌曲
包括直播和录播节目中现场演唱的歌曲,不包括已经罗列在发行的专辑、录音室单曲、影视歌曲和其他录音室歌曲列表中的歌曲。只记录首次公开正式演唱的时间。
巡回演唱會及海外活動
個巡詳見周深“C-929星球”(2019-2020)和“深空間”(2018-2019)
下面表格只收錄了巡回演唱會(例如好声音巡演、声入人心巡演)、有周深名字的演唱會(例如深龄其境)以及海外活動(例如四海同春)。
影视及舞台剧
电台节目
更多电台及采访节目可参见YouTube上的采访合集
扮演过的主要角色
参考资料
周深
作品列表
| 20,196
|
https://movies.stackexchange.com/questions/94325
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,018
|
Stack Exchange
|
Ankit Sharma, https://movies.stackexchange.com/users/1190
|
English
|
Spoken
| 437
| 591
|
Why is the book An Imperial Affliction so important in Hazel's life?
What does An Imperial Affliction have to do with Hazel's own life The Fault in Our Stars? Why is she so obsessed with it and how has the book changed her?
An Imperial Affliction is Hazel's favorite book, written by Peter Van Houten. She is said to have read it numerous times.
Because that story is similar to her but has no clean end and ends in the middle of a sentence. So Hazel is curious to know what happens, what happened to Anna, did she die, what happens to her mother etc. Which was clear in the movie itself:
HAZEL
What we need is a sequel.
GUS
Yes. We need to know what happens
to Anna's family after she dies.
HAZEL
That's what I kept asking Van
Houten for in my letters.
GUS
But he never wrote back.
IMSDB
It's a dying girl's wish to get a closure on her fav story which is parallel to her but ends abruptly. Getting those answer might help her tackling her situation too.
But remember neither that book nor the writer is real:
An Imperial Affliction is not a real book, and Peter Van Houten is not a real person. However, An Imperial Affliction is in some ways based on two books I love. The first is David Foster Wallace’s Infinite Jest. Most of the references Hazel and Augustus make to AIA are related in some way to something from Infinite Jest, and I wanted readers of IJ to be able to make those comparisons. But Infinite Jest is not about cancer. Peter De Vries’ amazing and beautiful and hilarious novel The Blood of the Lamb IS about cancer, and most of the broad observations that Hazel makes about An Imperial Affliction — how it is a book about cancer without it being a cancer book, how is is funny and respectful and reflects the reality of experience in a way she has rarely encountered—come from my own experience reading The Blood of the Lamb. I can’t make An Imperial Affliction real. It’s not the kind book I could write well, and on some level, the thing that we imagine will always be better than any real approximation of it that might come to exist. But if you wish to read An Imperial Affliction, I’d encourage you to read Infinite Jest and The Blood of the Lamb and then try to blend the feeling of those two books. — Bustle
@InshaDarwaish if it answers the question then you can show support by upvoting and selecting the answer
| 33,899
|
l40GW4jLXVU_2
|
Youtube-Commons
|
Open Web
|
CC-By
| null |
Don't Mute Me, Bro — Mac Geek Gab 968
|
None
|
English
|
Spoken
| 1,835
| 2,245
|
What is launch services? It's the database in your computer that basically maps Um Files to applications and sometimes that database gets messed up so um, I did find uh Probably shouldn't have sent that I found an article over at eclectic light Okay, kind of explaining the nuts and bolts of why this happens and offers some things to do in the terminal But then I noticed that the article was old so I probably shouldn't have sent it And he also in the article just says, you know what? Just use onyx and in onyx onyx maintenance Rebuilding launch services database so onyx specifically can rebuild this database for you and the reports are that This fix the problem. So yeah Yeah, onyx is the way to go and and there's a you know, your your point about the article at eclectic light being dated Is is is a good one a lot of those types of commands do change from macOS to macOS And and it's for that reason that like when ventura comes out You can't run onyx on ventura because there isn't an onyx for ventura right away. It That's been fixed. So now there is an onyx for every released version of macOS But but yeah, you yeah. Yeah. No, that's the way to do it. Yeah, that's that's a weird So I you know these things they get tied in knots. It's how it works Hey, uh, speaking of getting tied in knots tn papa in our discord chat Just informed us that iCloud passwords chrome extension only works in windows. So no, you can't run it on the mac I don't know why why why would they limit us? There's got to be a way. It's gotta be just gotta be somebody'll figure it out uh Gary Another gary. I believe I think I think I think this is the third gary that we have had asks I've got a question about international travel How does apple pay work in europe a friend plans to visit barcelona in the near future I'm trying to get travel advice for her. She has an iphone iphone is all I know Uh, we'd love to pass along any advice. So yeah, yeah, um apple pay works in europe I've used it in europe Mexico i'm trying to think of where else obviously here in the united states canada It just works everywhere. It's sort of the the the same Everywhere, it's You know, it's kind of the way I think about it is that it's an embedded version of tap to pay Which at least in europe is like the pay to weigh the pay to weigh the way to pay with your credit card um While I was just there in italy john I did tap to pay everywhere. There was one restaurant though that Uh asked me like I did the tap to pay and the machine was like No, and and so the guy's like, oh, we gotta we gotta do the chip thing and he's like, uh Okay, yeah enter your pin And I was like, well, wait I'm an american. We don't use our pins crap. Well Past dave took care of present-day dave by putting my credit card pin in one password So I had launched one password looked up my credit card. There was the pin. I typed it in and The day was saved. I was able to actually pay our bill and you know not have to like wash dishes for the for the remainder of the evening But uh, but yeah, so if you're if you're heading to to europe do know your pin Um, but yeah app maybe and I wonder if I had used apple pay instead of just tap to pay I got so used to using tap to pay over there that I would just pull my card out and tap it on the thing that I didn't even think about it because it's so easy But yeah, apple apple pay is uh is tap to pay. So yeah I don't yeah Yeah, I I I found a new tap to pay Yeah, so I I but I went to our um Um The the place where you bring your trash the dump for center, we call it the dump Yeah, um And I saw someone ahead of me And all of a sudden and then I saw the guy in there accepting payment. So you got to pay six bucks for a car full of trash Um, okay. I saw him Take a card from someone and put it next to this handheld terminal And then he gave the card back and when I pulled up, um that time I pulled up I had recycling which is free But um, I'm like, oh you take apple pay and he was like, yeah, I'm sure Amazing, I didn't know that That's great. So the next time I went there. I I just handed him my card which all of my credit cards now Um Are contactless Yeah, I don't have to use apple pay. I can use the card itself Yeah, tap that's tap to pay the contactless. Yep. That's right. Yes. Yep. Yep. Yeah And it worked great and I get points back. So points for trash points for trash. I love it. That's awesome. That's great, man Huh Cool. Yeah, and it was it was tap to pay. So you didn't have to like put the chip in the machine They there was no swiping. It was just yeah that tap to pay thing is is great and you can use that in in Most places here. It's just not common. This is really the thing. So yeah uh Yeah, it's he I find it easier than using apple pay for whatever because it's it's one thing I don't have to like authenticate with my face and do the whole yada yada and I made sure I think I had to request a reprint of one of my cards because it didn't have the little rf symbol on it. Yeah Yeah, it looks like a wi-fi Bars or whatever, right? Like that's the that's the symbol. Yeah. Yeah. Oh cool Cool All right. Well, uh, where are we here? We got time for we can do another question. Maybe how about how about arie's question Uh, let's see arie Um, I've got a puzzler here somehow my phone has decided to remember a misspelling of the word network Um, it shows up intermittently, but I think mostly when dictating voice to text It wouldn't be that big of an issue if I didn't run a network installation company Requiring I use the word constantly You can see in the screenshot when I went back to select the word siri offered to sort of correct it, but still unnecessarily capitalized it Back in the day used to be able to edit or add things to your dictionary, but I always keeps this obscured any suggestions Excuse me. Um, as far as I can tell One can no longer remove individual items from the dictionary. No Oh No, you can't I agree. I agree. I'm agreeing with you. Yes. Okay. Yeah. Yeah. Yeah. Yeah. Yeah. Um I did find some suggestions on how to deal with this okay, um And we got an article here how to remove words from my phone predictive text and basically it's two steps Okay, uh reset the predictive text dictionary Oh, so this is solving the problem by destroying everything. Um, how do we do that? Um I've got it up in front of me. I I'll walk. Okay. Yeah. So they say settings general Then go to transfer or reset phone Hit reset And then choose this is super scary to be doing this live And then choose reset keyboard dictionary It'll it'll come up at the bottom of like a menu where it's, you know, reset all settings delete your e-sims all of that You can uh reset your network settings here too, but there is reset keyboard dictionary in that list I'd never seen that before so that would be one way of doing it. Just wipe it clean and uh Start from scratch then uh, then every time you're ranting at someone via iMessage You're going to be talking about that that ducking thing because uh, it won't know to change And then the other suggestion is force predictive text to use the word you want by adding a shortcut In settings general keyboard text replacement Right. Yeah, that's that's the best advice I could find. Yep. That's how I've always done it like in in ari's case I would go in I would do the second thing that's settings general keyboard text replacement and um uh Just put in like for him I'd put network into both fields the shortcut and the expansion. It's not called expansion But that you you'll you'll see what I mean when you're there Just type the exact same thing into both fields That usually fixes it, but it I have seen it not always work john. So yeah, yeah All right, well you know This has been uh, this has been fun, you know, I have there's one more thing listener bill wrote in With a a sort of a rant but a question. It's it's too bad Pete's not here because he's always our our visual model. He said, um He says your merchandise doesn't even I went to mackeykev.com slash merch. So thank you bill And says you don't even have the show logo available on any medium and this is It's not entirely true But but I I know why bill thought this because the show logo is not on anything It's that where you would see it in the first picture in the merch store because our t-shirts have the logo On the back on the front they say don't get caught and then the logo is on the back But I do like this idea of putting the logo on things Uh, so we're gonna add more stuff to the merch store send in Your ideas and if we wind up using your idea We'll send you a free whatever We make from the store with your idea. How's that sound feedback at mackeykev.com. We'd love to uh, We'd love to have your ideas Feedback at mackeykev.com. It's true feedback at mackeykev.com. Thanks for hanging out with us folks. This has been uh It's been a fun one. It was it was fun doing this just uh, just the two of us Thanks to bill withers and grover washington jr. For the uh for the reference. How about bobbleheads? People have asked for bobbleheads john i'm not gonna lie. I um Let's see how many people ask for bobbleheads It's it's it's a thing.
| 2,622
|
https://arz.wikipedia.org/wiki/%D9%85%D8%A7%D8%B1%D9%8A%D8%A7%20%D9%81%D8%B1%D9%86%D8%A7%D9%86%D8%AF%D8%A7%20%D8%A7%D8%B3%D8%A8%D9%8A%D9%86%D9%88%D8%B2%D8%A7
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
ماريا فرناندا اسبينوزا
|
https://arz.wikipedia.org/w/index.php?title=ماريا فرناندا اسبينوزا&action=history
|
Egyptian Arabic
|
Spoken
| 85
| 239
|
ماريا فرناندا اسبينوزا دبلوماسيه من اكوادور.
حياتها
ماريا فرناندا اسبينوزا من مواليد يوم 7 سبتمبر 1964 فى سالامانكا.
الدراسه
درست فى Latin American School for Social Sciences و Pontificia Universidad Católica del Ecuador.
الحياه العمليه
بتشتغل فى: الامم المتحده.
عضو فى:
World Future Council
المناصب
رئيس الجمعيه العامه للامم المتحده
مندوب دائم لدى الامم المتحده
Minister of Foreign Affairs of Ecuador
Minister of National Defence
جوايز
100 امراه على بى بى سى
وسام الصليب الاعظم البيروفى لرهبانيه الشمس
لينكات برانيه
مصادر
دبلوماسيين
دبلوماسيين من اكوادور
| 10,781
|
https://stackoverflow.com/questions/77036978
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,023
|
Stack Exchange
|
Vijay Kumar, Vishal Aggarwal, ggorlen, https://stackoverflow.com/users/1831456, https://stackoverflow.com/users/22485516, https://stackoverflow.com/users/6243352
|
English
|
Spoken
| 392
| 628
|
Allow dependent Projects to Run even if the First Project Fails in Playwright Nodejs
I have a playwright.config.ts in which I define 3 projects. Below is my project structure.
projects: [{
name: 'Need Authentication For Usage tests',
testDir: './tests/Billing/',
Need Authentication For Usage tests
}, {
name: 'Need Authentication',
testDir: './tests/Authentication/',
dependencies: ['Need Authentication For Usage tests'],
},
{
name: 'Non-Authentication State',
testDir: './tests/Non-Authentication/',
dependencies: ['Need Authentication For Usage tests'],
},
],
I want to run the test scripts in ./tests/Billing/ separately and once it gets executed (be the test status be PASS/FAIL) then I want to run my other projects. Once the project Need Authentication For Usage tests is completed, only then I would want my other projects to be picked up.
I am facing this issue as I am running my tests in parallel. Is there any way through which I can achieve this?
I tried using a project structure as mentioned above, but with above project structure if any test in 'Need Authentication For Usage tests') fails other projects are skipped.
Do the project dependencies docs help?
According to the docs if we use dependencies for a project, it will only run if the first project successfully completes execution. (i.e. only if all tests pass.) else other projects will just get skipped.
Suites vs. Projects
Instead of projects , they seem to fit more in 'test suites' category which are need to be executed in a certain order. I would use Projects more in scenarios where the same set of suites need to run with different configurations on multiple devices & browsers.
Sort test files(Suites) alphabetically
When you disable parallel test execution, Playwright Test runs test files in alphabetical order. You can use some naming convention to control the test order.
Example:
001-Billing.spec.ts,
002-Authentication.spec.ts,
003-Non-Authentication.spec.ts
This way suites (test files) will run in your desired order and later suites will run even though earlier suites fail in sequence.
Reference: https://playwright.dev/docs/test-parallel#sort-test-files-alphabetically
Thanks for the reply. But here my usecase is to have one test suite and run different projects in one test suite. As i dont want to generate different test results per each suite as i am pushing my reports to Report Portal. Any other workaround. (Except Running the test serially.)
No problem, I think the solution I provided would solve your issue if you give it a try.
| 18,042
|
https://superuser.com/questions/821228
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,014
|
Stack Exchange
|
English
|
Spoken
| 580
| 1,060
|
How do I format a Seagate Expansion Desktop drive?
I have a Seagate Expansion Desktop drive model STBV3000200 (which I believe is the same as the STBV3000100, except for the power supply). It is also known by its "Regulatory Model" number SRD00F2. It consists of a Seagate enclosure with a ST3000DM001 hard drive inside.
Immediately after unboxing the drive, I ran the destructive badblocks test in preparation for putting a Linux filesystem on the drive.
I have discovered however, that there are conflicts between the formatting software and tools that actually access the filesystem, in particular, with regard to the logical sector size. So when I attempted to create a 256 GB partition (which appeared successful according to gdisk -l), I ended up with only a 32 GB partition.
Some output:
# gdisk -l /dev/sdx
[...]
Disk /dev/sdd: 732566645 sectors, 2.7 TiB
Logical sector size: 4096 bytes
[...]
# parted -l
[...]
Model: Seagate Expansion Desk (scsi)
Disk /dev/sdx: 3001GB
Sector size (logical/physical): 4096B/4096B
[...]
# lsblk -o SIZE,PHY-SEC,LOG-SEC /dev/sdx
SIZE PHY-SEC LOG-SEC
2.7T 4096 4096
# hdparm -I /dev/sdx
[...]
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 5860533168
Logical Sector size: 512 bytes
Physical Sector size: 4096 bytes
Logical Sector-0 offset: 0 bytes
device size with M = 1024*1024: 2861588 MBytes
device size with M = 1000*1000: 3000592 MBytes (3000 GB)
[...]
# smartctl -a -d sat /dev/sdx
[...]
User Capacity: 3,000,592,982,016 bytes [3.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
[...]
Versions of the various tools:
sys-apps/gptfdisk-0.8.10
sys-apps/hdparm-9.39
sys-apps/smartmontools-6.1
sys-apps/util-linux-2.24.1-r3
sys-block/parted-3.1-r1
sys-kernel/gentoo-sources-3.10.17
It seems this would work if I could just get all of the tools and libraries to see the hard drive in the same way, but I don't have any idea how to do that.
I have the same drive, and similar issues. I even went as far as replacing the drive under warranty, but continued to have the same problem.
I believe that the issue is with the small circuit board that translates USB to SATA in the caddy, the drive itself is fine.
I removed the hard drive from the caddy and the issues disappeared. I tested over various PCs and operating systems. The caddy always introduced a layer of fault, which disappeared when not used. I even tried with another caddy (different brand), the fault did not return.
A paticularly nasty implication, is that if you move either way between the seagate caddy and any other method of connecting the drive, the operating systems no longer see the formatted partition, so you cannot access any data... bad if it is critical and the circuitboard itself has failed... you would need to obtain a new caddy circuit board of the same design to regain your data.
I will not use the caddy, I do not accept the risk. I just use the hard drive out of it now. As an aside, I have always loved Seagate drives.
I do not believe you can get by this issue in the software layer. Using the caddy circuit will always cause an odd translation of the drive architecture. What you do with it now is up to you... but if you can afford to write off your warranty on the caddy... do what I did, take the drive out and see if that sorts out your problem.
I have notified Seagate of my observations.
| 46,785
|
|
https://fa.wikipedia.org/wiki/%D8%B3%D8%AA%D8%A7%D8%B1%D9%88%20%D9%84%D8%A7%D9%86%DB%8C%D8%B4%D8%AA%D9%87
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
ستارو لانیشته
|
https://fa.wikipedia.org/w/index.php?title=ستارو لانیشته&action=history
|
Persian
|
Spoken
| 33
| 117
|
ستارو لانیشته یک روستا در صربستان است که در ناحیه پوموراولیه واقع شدهاست.
ستارو لانیشته ۵۶۰ نفر جمعیت دارد.
جستارهای وابسته
فهرست شهرهای صربستان
منابع
پیوند به بیرون
مناطق مسکونی در ناحیه پوموراولیه
| 12,671
|
https://ru.stackoverflow.com/questions/525213
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,016
|
Stack Exchange
|
Andrew Hobbit, aleksandr barakin, https://ru.stackoverflow.com/users/178576, https://ru.stackoverflow.com/users/201560, https://ru.stackoverflow.com/users/208348, id_kv
|
Croatian
|
Spoken
| 211
| 782
|
invalid number of arguments in "proxy_pass" directive
У меня стоит nginx-proxy, запускаю проверку конфигурационного файла, выдается ошибка:
nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /etc/nginx/sites-enabled/%%%%%%.save:11
nginx: configuration file /etc/nginx/nginx.conf test failed
Почему ругается?
из комментария:
server {
listen 8083;
server_name %%%%;
proxy_ignore_client_abort on;
access_log /var/log/nginx/bb/%%%%.log upstreamlog;
error_log /var/log/nginx/bb/%%%%.log error;
location / {
proxy_pass 127.0.0.1:8091;
}
location /health-check/ {
access_log off;
return 200;
}
}
Конфиг не покажите?
server {
listen 8083;
server_name bank.megafon.ru;
proxy_ignore_client_abort on;
access_log /var/log/nginx/bb/bb_megafon-access-megafon.log upstreamlog;
error_log /var/log/nginx/bb/bb_megafon-error-megafon.log error;
location / {
proxy_pass http://127.0.0.1:8091;
}
location /health-check/ {
access_log off;
return 200;
}
}
@ИльяДьяков, я дополнил ответ по результатам вашего комментария. кстати, код лучше приводить не в комментариях, а сразу в вопросе, нажав [edit] ниже текста вопроса.
GrayHoax а ты где работаешь?
Привет, коллега)
nginx: [emerg] invalid number of arguments in "proxy_pass" directive in /etc/nginx/sites-enabled/bank.megafon.ru.save:11
перевод: неправильное количество аргументов у директивы proxy_pass в 11-й строке файла /etc/nginx/sites-enabled/bank.megafon.ru.save.
у этой директивы должен быть ровно один аргумент.
но суффикс файла (.save) наводит на мысль, что этот файл — всего лишь копия какого-то другого, сохранённая не там, где надо: все файлы в каталоге /etc/nginx/sites-enabled/ прочитываются как части конфигурации.
дополнение после появления в вопросе текста файла:
proxy_pass 127.0.0.1:8091;
здесь забыт протокол в url-е — http://..., https://... или ещё какой-нибудь.
| 22,868
|
https://stackoverflow.com/questions/60780232
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,020
|
Stack Exchange
|
English
|
Spoken
| 577
| 1,185
|
ggplot aes: color vs group with time series data missing
I don't know if this question goes here, but as it's specific and (I think) it has one answer I'm asking it here:
I'm trying to understand certain behavior in ggplot (through plotnine from python, which is practically a copy of ggplot). In specific, I'm trying to understand the behavior of the group and color arguments, between the aes() of ggplot() and geom_line() for example.
We have this data:
data = pd.DataFrame({'Period': {0: '2019/07', 1: '2019/07', 2: '2019/07', 3: '2019/08', 4: '2019/09', 5: '2019/09', 6: '2019/10', 7: '2019/10', 8: '2019/11', 9: '2019/11', 10: '2019/12', 11: '2019/12', 12: '2019/12', 13: '2020/01', 14: '2020/01', 15: '2020/01', 16: '2020/02', 17: '2020/02', 18: '2020/02', 19: '2020/03', 20: '2020/03', 21: '2020/03'},
'Category': {0: 'A', 1: 'B', 2: 'C', 3: 'A', 4: 'A', 5: 'C', 6: 'A', 7: 'C', 8: 'A', 9: 'C', 10: 'A', 11: 'B', 12: 'C', 13: 'A', 14: 'B', 15: 'C', 16: 'A', 17: 'B', 18: 'C', 19: 'A', 20: 'B', 21: 'C'},
'Income': {0: 350.6, 1: 52.4, 2: 33.4, 3: 105.5, 4: 203.4, 5: 114.7, 6: 272.3, 7: 157.4, 8: 288.0, 9: 24.1, 10: 345.5, 11: 27.2, 12: 10.8, 13: 187.8, 14: 111.7, 15: 49.2, 16: 293.1, 17: 77.7, 18: 132.8, 19: 221.8, 20: 27.6, 21: 87.0}})
And when I try to plot it:
(ggplot(data, aes(x="Period", y="Income", color="Category"))
+ geom_line())
It gives this error:
PlotnineWarning: geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?
Where the error seems to be that each group has one observation but actually I can see it's because there is no Income values for some observations given a certain Category and Period. And I know there is only one observation per group, as to construct data I grouped it by Period and Category, but I don't know what kind of grouping the error is referring to.
And I solved adding the argument group="Category":
(ggplot(data, aes(x="Period", y="Income", color="Category", group = "Category"))
+ geom_line())
But if I change color and group arguments to the geom_line(aes()) like this:
(ggplot(data, aes(x="Period", y="Income"))
+ geom_line(aes(color="Category", group = "Category")))
It will give me the exact same plot. Why? what's the difference calling it at the different aes()?.
Also, where should I call group = 1 as in this answer? Because when I try to use it with data I can't understand what ggplot is actually doing:
(ggplot(data, aes(x="Period", y="Income", color="Category", group = 1))
+ geom_line())
The group if not explicitly mapped is computed using a combination of all of the other discrete aesthetics. Of these mappings
aes(x="Period", y="Income", color="Category")
Period and Category are discrete and they combine in such a way that none of the resulting groups have more than one point. You can actually view the computed group with
(ggplot(data, aes(x="Period", y="Income", color="Category"))
+ geom_line()
+ geom_label(aes(label='stat(group)'))
)
You need two or more points (in a group) to get a line. If you want all points to belong to the same group then you set the group to a constant, that is what group=1 achieves.
About aes
There are 3 places where you can put aes mappings.
ggplot(data, aes(..)) + geom_point() # 1
ggplot(data) + aes(...) + geom_point() # 2
ggplot(data) + geom_point(aes(...)) # 3
1 and 2 give you global mappings i.e all the geoms can see them, while 3 is a local mapping -- it applies only to that geom. In case of a conflict local mapping take precedence.
| 1,697
|
|
https://expressionengine.stackexchange.com/questions/31032
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,015
|
Stack Exchange
|
Low, Rien, https://expressionengine.stackexchange.com/users/172, https://expressionengine.stackexchange.com/users/3830
|
English
|
Spoken
| 297
| 621
|
Low Variables parsing grid
I'm using Low Variables. This specific variable is of the type 'Grid'.
What I'm having in my template is this:
<select name="country" id="country" class="form-control">
{exp:low_variables:pair var="var_eleads_country"}
<option value="{var_eleads_country:code}">{var_eleads_country:label}</option>
{/exp:low_variables:pair}
</select>
In my actual template though, it doesn't work. I'm only seeing one option, with {var_eleads_country:code} as value and {var_eleads_country:label} as text.
What should I do?
EDIT: This is happening inside of a Freeform. Also, I'm using Croxton's Stash. This is the stash_template, but the Form itself is wrappen in a {stash:nocache}.
You've got a missing closing } there. Are you sure that's not it?
Must be something that went wrong while copy pasting, but it's there in my actual template.
Edited and added some more info on this
And are you sure "label" is a valid Grid column name?
Yes, I'm pretty sure :)
In the actual case, my fields are code, en, fr and es, but I simplified it here.
The issue is in the looping, there's about 50 countries in this grid, but the parsed html is only like this:
`
{var_eleads_country:en}
`
My god, I'm ashamed to say this, but I made a type indeed. 'var_eleads_country' should have been 'var_eleads_countries'. However, it had some issues still, that I point out in my solution below. Thanks for the help though! :)
Alright, I did a fix.
I renamed my en, fr and es fields with a prefix label_.
In my template I did this:
{/stash:nocache}
{exp:low_variables:parse var="var_eleads_countries"}
<option value="{var_eleads_countries:code}"> {var_eleads_countries:label_{segment_1}}</option>
{/exp:low_variables:parse}
{stash:nocache}
The nocache tag is wrapped around my form, but it's important to close it and reopen it when parsing here, because otherwise, you'll have parsing issues on the {segment_1} tag.
Also, I fixed my typ in the var (insert shame here), which had to be var_eleads_countries rather than var_eleads_country.
| 46,485
|
https://stackoverflow.com/questions/15866904
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,013
|
Stack Exchange
|
David Brown, Joseph Mansfield, Thomas, https://stackoverflow.com/users/150634, https://stackoverflow.com/users/185171, https://stackoverflow.com/users/2149622
|
English
|
Spoken
| 439
| 935
|
Filling 2-D arrays from user input
I have a bit of a problem, I am writing a program to ask the user to enter numbers for a Sudoku grid, and then store them in a 2-d array. I know how to print out the array to show the Sudoku grid, But I am having trouble getting the array elements set to the numbers that the user enters, can anyone help?
This is all that I have, which I know is not much but I have only ever done this with 1-d arrays before.
Code:
#include <iostream>
using namespace std;
void fillGrid1(int grid1, int sizeOfArray) {
for(int x = 0; x < sizeOfArray; x++) {
grid1[x][9] = x;
}
}
int main()
{
int grid1[9][9];
fillGrid1(grid1, 9);
for(int row = 0; row < 9; row++) {
for(int column = 0; column < 9; column++) {
cout << grid1[row][column] << " ";
}
cout << endl;
}
}
What is fillGrid1 supposed to do?
what did you do with 1d arrays that you can't do with 2d ones?
That is the part I am having problems with, That is to fill the array.
@DavidBrown I just used the loop like what is in fillGrid, but that does not work for this
Here you have two functions, one to interactively fill the hole sudoku by getting the user input. The other for printing the sudoku. With the little information you gave it's what I think you seek:
#include <iostream>
#include <stdio.h>
#include<stdlib.h>
using namespace std;
void interactiveSudokuFill(int grid1[9][9]){
for(int y=0;y<9;y++){
for(int x=0;x<9;x++){
string theString;
cout<<"Write the value to prace in Sudoku["<<y<<"]["<<x<<"] :"<<endl;
std::getline(cin,theString);
int nr=atoi(theString.c_str());
grid1[y][x]=nr;
}
}
}
void printSudoku(int grid[9][9]){
for(int y=0;y<9;y++){
for(int x=0;x<9;x++){
cout<<"["<<grid[y][x]<<"]";
}
cout<<endl;
}
}
int main()
{
int grid1[9][9];
interactiveSudokuFill(grid1);
printSudoku(grid1);
}
There are other more safe/elegant ways of doing this(for example user input should have been checked before delievering it to atoi()), but this way is the simpler I can think of.
Thanks, this was helpful, I will add in the validation of input etc myself
Firstly, you're taking in an int where you expect an array:
void fillGrid1(int grid1, int sizeOfArray)
// ^^^^^^^^^
This should be something of the form,
void fillGrid1(int grid1[9][9], int sizeOfArray)
Next is that you should use a nested loop to access the elements of the multidimensional array:
void fillGrid1(int grid1[9][9], int sizeOfArray)
{
for (int i = 0; i < sizeOfArray; ++i)
{
for (int k = 0; k < sizeOfArray; ++k)
{
grid1[i][k] = x; // shouldn't x be the number the user entered?
}
}
}
You should also zero-fill your array:
int grid1[9][9] = {0};
| 47,974
|
https://ceb.wikipedia.org/wiki/Palangature
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Palangature
|
https://ceb.wikipedia.org/w/index.php?title=Palangature&action=history
|
Cebuano
|
Spoken
| 86
| 145
|
Administratibo nga balangay ang Palangature sa Sri Lanka. Nahimutang ni sa lalawigan sa Western Province, sa habagatan-kasadpang bahin sa nasod, km sa amihanan sa Colombo ang ulohan sa nasod.
Ang klima tropikal nga kasalupan. Ang kasarangang giiniton °C. Ang kinainitan nga bulan Marso, sa °C, ug ang kinabugnawan Mayo, sa °C. Ang kasarangang pag-ulan milimetro matag tuig. Ang kinabasaan nga bulan Oktubre, sa milimetro nga ulan, ug ang kinaugahan Hulyo, sa milimetro.
Ang mga gi basihan niini
Mga subdibisyon sa Western Province (lalawigan sa Sri Lanka)
| 42,220
|
https://stackoverflow.com/questions/50973288
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,018
|
Stack Exchange
|
English
|
Spoken
| 141
| 259
|
DB2/400 : ALTER TABLE foreign key
I am having a SQL problem on a DB2/400 database.
I would like to know if there is a particular method for adding a constraint on a foreign key of a table.
Right now, I'm using the statement below to declare a foreign key
in the table "TABELE_A" of the schema "MY_SCHEMA":
alter table MY_SCHEMA.TABELE_A
foreign key (IDAUTO_B) references MY_SCHEMA.TABELE_B (IDAUTO_B).
The "ALTER TABLE" statement runs without problems.
But as soon as I make an "update" in the table "MY_SCHEMA.TABELE_B ", I have a crash.
The SQL code error is SQL7008 and the reason code is 3 : "MY_SCHEMA.TABELE_B" not journaled, no rights on the journal or the state of the log is * STANDBY.
My question is : is it necessary logging tables to set up a referenciel integrity on SQL DB2/400 data-base ?
| 34,871
|
|
https://stackoverflow.com/questions/78144488
|
StackExchange
|
Open Web
|
CC-By-SA
| null |
Stack Exchange
|
Ethan Conrad, https://stackoverflow.com/users/17024481, https://stackoverflow.com/users/7499069, tuhin47
|
English
|
Spoken
| 200
| 357
|
im trying to make a filter for my requests (spring) but is not doing anything
I made some research and by adding the following lines every request that happens should enter here
@Slf4j
@Component
@Order(1)
public class Filtro implements Filter
the problem is not even the log.info is working
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
log.info("ENTRY::-> doFilter");
}
I dont know what to do so the filter works for every request, i have tried different request on different controllers but nothing works, im doing this because im implementing JWT
Do you have a SecurityFilterChain bean configured? If so, can you add it to the description please. If not, you might want to try adding one first
you have to register this filter inside filter chaing
The way you built this filter will run on all requests.
If you want it to execute under some criteria you need to register the filter.
@Bean
public FilterREgistrationBean<Filtro> exampleRegistrationFilterBean() {
FilterRegistrationBean<Filtro> exampleRegistrationFilterBean = new FilterRegistrationBean();
exampleRegistrationFilterBean.setFilter(new Filtro());
exampleRegistrationFilterBean.addUrlPatterns("examples/**");
exampleRegistrationFilterBean.setOrder(1);
return exampleRegistrationFilterBean;
}
In the example above, the filter will only run for URLs in "examples/**"
you can see more in How to Define a Spring Boot Filter?
| 23,012
|
https://nl.wikipedia.org/wiki/Aras%20%28Navarra%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Aras (Navarra)
|
https://nl.wikipedia.org/w/index.php?title=Aras (Navarra)&action=history
|
Dutch
|
Spoken
| 77
| 151
|
Aras (ook Tres Aras) is een gemeente in de Spaanse provincie en regio Navarra met een oppervlakte van 17,72 km². Aras telt inwoners ().
De gemeente maakt deel uit van de Merindad de Estella. De gemeente ligt in de niet-Baskischsprekende zone, volgens de Ley Foral del Vascuence die de status van de Baskische taal in Navarra reguleert.
Demografische ontwikkeling
Bron: INE, 1857-2011: volkstellingen
Opm.: Aras behoorde voor 1857 tot de gemeente Armeñanzas y Aras
Gemeente in Navarra
| 6,407
|
https://pt.wikipedia.org/wiki/Cicloexanol
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Cicloexanol
|
https://pt.wikipedia.org/w/index.php?title=Cicloexanol&action=history
|
Portuguese
|
Spoken
| 86
| 184
|
Cicloexanol (grafado também como ciclo-hexanol) é um álcool secundário, de fórmula C6H11OH, consistindo de um anel cicloexano com um átomo hidrogênio substituído por um grupo hidroxila .
Pode ser oxidado a cicloexanona por ácido crômico (formado por dissolver dicromato de sódio ou de potássio em água e ácido sulfúrico concentrado). A oxidação ira parar após a formação de cicloexanona, para a qual um agente oxidante mais forte é requerido para quebrar a ligação de carbono.
Índice de refração = 1.465
Ligações externas
Descrição do cicloexanol
Álcoois
| 31,554
|
https://zh.wikipedia.org/wiki/%E6%B0%B4%E6%B2%9F%E9%95%87
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
水沟镇
|
https://zh.wikipedia.org/w/index.php?title=水沟镇&action=history
|
Chinese
|
Spoken
| 1
| 9
|
水沟镇可以指:
| 4,505
|
https://stackoverflow.com/questions/41952195
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,017
|
Stack Exchange
|
Ashkan R. Nejad, Phaze Phusion, abhishekkannojia, er-han, https://stackoverflow.com/users/124222, https://stackoverflow.com/users/2386736, https://stackoverflow.com/users/5611328, https://stackoverflow.com/users/7493616
|
English
|
Spoken
| 248
| 400
|
how should I use a name in a local internet network instead of ip address
I've wrote a node.js server app and ran it on my university local internet. I need others to connect not using my ip address.
my computer system has Ubuntu 16.04 os
I know that address should be
http://mypchostname:port
but this doesn't work either.
I've already tried changing my device host name using
sudo hostname new-hostname
and I've already installed nginx on my system. I changed my /etc/hostname file content to myhostname and /etc/hosts to
127.0.0.1 myhostname
127.0.1.1 myhostname
and I add that to my listen function
listen(PORT,"myhostname",34, function(){
//Callback triggered when server is successfully listening. Hurray!
console.log("Server listening on: http://localhost:%s", PORT);
});
I have no idea why it doesn't work in our university local network
please help me i'm in a big hurry
Are all of the systems on the same subnet ? What is you local IP ? To be able to fix the issue, we need to know more about your network configurations.
This is not a programming question. But I'll give you a hint: changing hostnames on your machine won't change anything on the intranet (LAN). You need a router with DNS capablities where you can add a hostname that points to your computer's IP address. Ask your Network admin to set it up for you.
Did you check your firewall settings? The port you are using may be blocked.
@er-han it works with the http://ipaddress:port but not with http://hostname:sameport
| 28,259
|
https://stackoverflow.com/questions/71980049
|
StackExchange
|
Open Web
|
CC-By-SA
| 2,022
|
Stack Exchange
|
Aziz, https://stackoverflow.com/users/83605
|
English
|
Spoken
| 253
| 527
|
how to iterate dic when i have one value and many values in another key
I need to iterate below dict and add the values in a variable and when i check the dic 1:2:140 i get below error because is not iterable
TypeError: 'int' object is not iterable
what solution do i have here?
dm = {1: {1: {80, 75, 46, 2: 140}, 2: {1: 400}}
def listGastos(dm):
for mes in dm:
totalmes = 0
maxconsumomes = 0
diamax = 0
print("MES: ", mes)
for dia in dm[mes]:
print("DIA:", dia)
for va in dm[mes][dia]:
print("El amount is", va)
totalmes + = va
The definition of the dictionary d is incorrect. Can you please correct it?
Your dictionary definition seems incorrect.
dm = {1: {1: {80, 75, 46, 2: 140}, 2: {1: 400}}
EOF is incorrect ...You need to add another '}' at the end.
Also, you've inserted a key,value pair '2:140' which will generate Syntax error but you can fix it by doing this :
dm = {1: {1: [80, 75, 46, {2: 140}], 2: {1: 400}}}
Now, the solution to your query goes like this :
dm = {1: {1: [80, 75, 46, {2: 140}], 2: {1: 400}}}
tot = 0
for key,val in dm.items() :
if isinstance(val,dict) :
for nex_t in val.values() :
if isinstance(nex_t,list) :
for i in nex_t :
if isinstance(i,dict) :
loc_tot = 0
i = list(i.values())
nex_t.append(*i)
nex_t.pop(-2)
loc_tot = sum(nex_t)
if isinstance(nex_t,dict) :
tot = sum(nex_t.values()) + loc_tot
print(tot)
And the output will be 741.
| 864
|
https://he.wikipedia.org/wiki/%D7%94%D7%97%D7%9C%D7%98%D7%94%205%20%D7%A9%D7%9C%20%D7%9E%D7%95%D7%A2%D7%A6%D7%AA%20%D7%94%D7%91%D7%99%D7%98%D7%97%D7%95%D7%9F%20%D7%A9%D7%9C%20%D7%94%D7%90%D7%95%22%D7%9D
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
החלטה 5 של מועצת הביטחון של האו"ם
|
https://he.wikipedia.org/w/index.php?title=החלטה 5 של מועצת הביטחון של האו"ם&action=history
|
Hebrew
|
Spoken
| 57
| 196
|
החלטה 5 של מועצת הביטחון של האומות המאוחדות, שהתקבלה ב-8 במאי 1946, עסקה במשבר איראן ובנוכחות כוחות סובייטים בצפון-מערב איראן. המועצה דחתה את ההחלטה על מנת לאפשר לממשלה האיראנית לדון עם ברית המועצות ולהגיש דו"ח לאו"ם לגבי כל המידע על החיילים הסובייטים בארצם.
ההחלטה התקבלה ב-10 קולות, בעוד ברית המועצות נעדרה.
1946 בברית המועצות
5
5
5
| 38,845
|
https://ar.wikipedia.org/wiki/%D8%B3%D8%A7%D9%86%20%D8%A3%D9%86%D8%AF%D8%B1%D9%8A%D8%A7%D8%B3%20%28%D8%AC%D8%B1%D8%A7%D9%86%D8%AF%20%D8%AB%D9%81%D8%AA%20%D8%A3%D9%88%D8%AA%D9%88%29
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
سان أندرياس (جراند ثفت أوتو)
|
https://ar.wikipedia.org/w/index.php?title=سان أندرياس (جراند ثفت أوتو)&action=history
|
Arabic
|
Spoken
| 149
| 465
|
ولاية خيالية في لعبة جراند ثيفت أوتو: سان أندرياس تحتوي على ثلاث مدن رئيسية: لوس سانتوس، مستوحاة من مدينة لوس أنجلوس وسان فييرو التي تشبه لحد كبير مدينة سان فرانسيسكو ولاس فينتورس والتي بنيت على مدينة لاس فيغاس وتفصل بين هذه المدن مساحات شاسعة من الريف والبلدات الصغيرة. و تدور احداث اللعبة في البداية من مدينة لوس سانتوس، وبعد إنجاز اللاعب لمجموعة من المهمات في المدنية يستطيع الوصول إلى المدينة الأخرى وهكذا في كل مدينة، كما توجد بعض الأمكان السرية في اللعبة.
إضافة لعدة معالم ومواقع مستوحات من أماكن حقيقية مثل جبل شيلياد الذي يبلغ طوله 800 متر (مستوحى من جبل ديابلو بكاليفورنيا)، وقاعدة عسكرية تسمى 69 (مستوحاة من المنطقة 51)، وسد شيرمان (مستوحى من سد هوفر)، فاينوود (مستوحاة من هوليوود)، ولافتة فاينوود (مستوحاة من لافتة هوليوود).
انظر أيضًا
جراند ثفت أوتو: سان أندرياس
قائمة شخصيات لعبة غراند ثيفت أوتو:سان أندرياس
مراجع
جراند ثفت أوتو: سان أندرياس
أماكن خيالية
| 39,811
|
https://ru.wikipedia.org/wiki/%D0%91%D0%B0%D1%88%D0%BA%D0%B8%D1%80%D1%81%D0%BA%D0%BE%D0%B5%20%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D1%82%D0%B5%D0%BB%D1%8C%D1%81%D1%82%D0%B2%D0%BE
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
Башкирское правительство
|
https://ru.wikipedia.org/w/index.php?title=Башкирское правительство&action=history
|
Russian
|
Spoken
| 782
| 2,349
|
Башкирское правительство (Правительство Башкирии, Правительство Башкурдистана; ) — высший орган исполнительной власти Башкурдистана (Башкирской республики).
История
Башкирское правительство было избрано 20 декабря 1917 года Малым курултаем на III Всебашкирском учредительном съезде. Председателем был избран Юнус Бикбов.
Местными учреждениями Башкирского правительства являлись кантонные (районные) и юртовые (волостные) управы, формирование которых началось осенью 1917 года. По отношению к Советской власти Башкирское правительство первоначально занимало выжидательную позицию. На основании постановления Оренбургского Мусульманского военно-революционного комитета (МВРК), в ночь с 3 по 4 февраля (по новому стилю — с 15 по 16 февраля) 1918 года 7 членов Башкирского правительства и Башкирского центрального шуро (И. М. Мутин, А. Н. Ягафаров, С. Г. Мрясов, А. А. Валидов, Г. Я. Аитбаев, А. К. Адигамов, И. Салихов) были арестованы. Постановление МВРК об аресте было утверждено Оренбургским губернским ревкомом только задним числом, который поверил клевете работников МВРК о совместных якобы действиях против Советской власти членов Башкирского правительства с атаманом Оренбургского Казачьего Круга А. И. Дутовым . После ареста членов Башкирского правительства группа башкирской молодёжи, в том числе некоторые активисты из молодёжной организации «Тулкына», образовали новый руководящий орган — Временный революционный совет (шуро) Башкурдистана (ВРСБ). В марте 1918 года в Баймаке большевиками были расстреляны два члена Правительства Башкурдистана — Габдулла Идельбаев и Гимран Магазов. 4 апреля находящиеся под арестом члены правительства были освобождены во время совместного налёта башкир и казаков.
Условия для восстановления деятельности правительства возникли после выступления Чехословацкого корпуса, когда на значительной территории края была ликвидирована Советская власть. Местом размещения национальных учреждений в июне-июле 1918 года стал занятый чехами Челябинск, куда прибыли члены правительства и Ксе-Курултая.
Согласно фарману Правительства Башкурдистана от 12 июня 1918 года для управления Башкирским войском был образован Башкирский военный совет.
Башкирским правительством были установлены связи с антибольшевистскими центрами на востоке страны — Временным Сибирским правительством, Комучем, Оренбургским Казачьим Кругом и другими.
Правительством официально издавался «Вестник Башкирского правительства». Представители башкир участвовали в Челябинском уездном съезде и формировании ряда уездных структур, в частности земельной управы, в которую вошел представитель башкир Х. И. Ишбулатов.
В начале августа правительство учреждения переехало в Оренбург, занятый отрядами Оренбургского казачьего войска, руководители которого вполне лояльно относились к перспективе автономии и государственной самостоятельности Башкортостана. Делегация правительства во главе с И. М. Султановым, Ю. Ю. Бикбовым, А. А. Валидовым принимала участие в государственном совещании в Уфе, где в октябре 1918 года была предпринята попытка объединения различных политических сил под флагом Директории.
18 ноября 1918 года А. В. Колчак совершил военный переворот и объявил себя Верховным правителем России и Верховным Главнокомандующим вооруженными силами России. Адмирал Колчак не признавал автономию башкир. Всем местным правительствам было предложено объявить о самоликвидации, но Правительство Башкурдистана отказалось подчиниться «Грамоте Временного Всероссийского правительства ко всем областным правительствам, ко всем гражданам Государства Российского» от 4 ноября 1918 года. Это обращение, а также упразднение Башкирского военного совета и штаба Башкирского корпуса вместе с передачей командования башкирскими полками генерал-лейтенанту А. И. Дутову вынудили Башкирское правительство пойти на переговоры с представителями РСФСР. После начала переговоров с советскими властями о переходе Башкирского войска в сторону Красной Армии, в селе Темясово 26 января 1919 года состоялась реорганизация Башкирского правительства. Его новым председателем был избран Мстислав Кулаев, а А. А. Валидов — стал командующим Башкирского Войска. Это правительство и стремилось оформить автономию уже в Советской системе.
Башкирское правительство направило в Москву делегацию из председателя Башкирского правительства М. А. Кулаева, члена Башкирского правительства М. Д. Халикова и командира Башкирского Войска А. И. Бикбавова для переговоров об образовании Башкирской советской автономной республики.
16 февраля 1919 года правительство объявило о вхождении с 18 февраля автономной Башкирской республики в состав РСФСР и о переходе Башкирского войска на сторону Красной Армии. 22 февраля 1919 года Башкирское Правительство передало власть на территории Башкурдистана Временному военному революционному комитету Башкирской республики, на базе которого позднее сформировался Башвоенревком.
20 марта 1919 года в Москве было подписано «Соглашение центральной Советской власти с Башкирским правительством о Советской Автономной Башкирии» и была образована Автономная Советская Башкирская Республика. Подписав данный документ, Советы признали национально-территориальную автономию Башкурдистана, которая существовала с 1917 года. После этого Правительство Башкурдистана завершает свою деятельность.
Среди национальных деятелей, оставшихся на стороне белогвардейцев и заявивших о поддержке А. В. Колчака, на первое место выдвинулись Габдулла Курбангалиев и его сын Мухаммед-Габдулхай Курбангалиев. На 26 июля 1919 года в Челябинске был намечен созыв Всебашкирского съезда (предполагалось сформировать альтернативные Валидову и его сторонникам национального учреждения). Поражение колчаковцев в ходе Челябинского сражения и уход белогвардейцев с территории Урала фактически положили конец попыткам воссоздания Башкирского правительства.
Председатели
Бикбов, Юнус Юлбарисович (декабрь 1917 — январь 1919);
Кулаев, Мстислав Александрович (январь 1919 — март 1919).
Печатные органы
Печатные органы Правительства Башкурдистана — газеты «Башкорт тауышы», «Башкортостан хокумэтенен теле».
Примечания
Литература
Ссылки
К 90-летию со дня провозглашения советской автономии Башкортостана
1917 год в Башкортостане
Государственное устройство Башкортостана
Башкурдистан
Башкирское правительство
Появились в 1917 году в России
Исчезли в 1919 году
| 6,297
|
https://pl.wikipedia.org/wiki/The%20Divinity%20of%20Purpose
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
The Divinity of Purpose
|
https://pl.wikipedia.org/w/index.php?title=The Divinity of Purpose&action=history
|
Polish
|
Spoken
| 50
| 129
|
The Divinity of Purpose - szósty album studyjny amerykańskiej grupy muzycznej Hatebreed
Lista utworów
Twórcy
Jamey Jasta – śpiew
Chris Beattie – gitara basowa
Wayne Lozinak – gitara
Matt Byrne – perkusja
Frank Novinec – gitara
Przypisy
Linki zewnętrzne
Okładka
Albumy muzyczne wydane w roku 2013
Albumy Hatebreed
Albumy metalcore’owe
| 37,058
|
https://ur.wikipedia.org/wiki/%D8%B3%D9%84%DB%8C%D9%85%20%D8%AE%D8%A7%D9%86
|
Wikipedia
|
Open Web
|
CC-By-SA
| 2,023
|
سلیم خان
|
https://ur.wikipedia.org/w/index.php?title=سلیم خان&action=history
|
Urdu
|
Spoken
| 287
| 866
|
سلیم عبد الرشید خان جنہیں فلمی دنیا میں سلیم خان کے طور پر جانا جاتا ہے ایک بھارتی فلمی اداکار، فلم ساز اور منظر نویس ہیں۔
بطور منظر نویس انہوں نے کئی بالی وڈ فلموں کی منظر نویسی کی۔ بالی وڈ میں وہ جاوید اختر کے ساتھ اپنی جوڑی سلیم-جاوید کے طور پر زیادہ مشہور ہیں۔
بطور جوڑی سلیم-جاوید بالی وڈ ستارہ کی حیثیت حاصل کرنے ویکی پہلی منظر نویس جوڑی ہے،
جو بھارتی کل وقتی سب سے کامیاب منظر نویسی بنی۔
ان کی کئی فلمیں سب سے زیادہ کمائی کرنے والی بھارتی فلموں کی فہرست میں شامل ہیں جس میں شعلے سر فہرست ہے۔
شعلے کو کل وقتی بہترین بالی وڈ فلموں میں سے ایک تصور کیا جاتا ہے۔
وہ بالی وڈ اداکار سلمان خان کے والد بھی ہیں جنہیں بالی وڈ کے تین بڑے خانوں میں ایک شمار کیا جاتا ہے۔ ان کے دیگر دو بیٹے سہیل خان اور ارباز خان بھی فلمی صنعت سے وابستہ ہیں۔ ان کی دو بیویاں سوشیلا چراک (سلمی خان) اور ہیلن ہیں۔
سلیم خان بطور سلیم-جاوید جوڑی چھ فلم فیئر اعزازات جیت چکے ہیں 2014ء میں انہیں پدم شری اعزاز سے بھی نوازا گیا۔
مزید دیکھیے
سلمان خان
سلیم خان گمی
حوالہ جات
1935ء کی پیدائشیں
اردو مصنفین
اندور کے مرد اداکار
برطانوی ہند کی شخصیات
بقید حیات شخصیات
بیسویں صدی کے بھارتی مرد اداکار
بیسویں صدی کے بھارتی مرد مصنفین
بھارتی مرد فلمی اداکار
بھارتی مرد منظر نویس
بھارتی مسلم شخصیات
پاکستانی نسب کی بھارتی شخصیات
پشتون نژاد بھارتی شخصیات
سلیم-جاوید کے منظر نامے
سلیم خان خاندان
ممبئی کے مرد اداکار
ہندی سنیما کے مرد اداکار
بھارت کے پاکستانی تارکین وطن
ہندی منظر نویس
مدھیہ پردیش کے منظر نویس
بیسویں صدی کے بھارتی ڈراما نگار اور ڈراما نویس
| 448
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.