Posts

linux - Using Fleck Websocket for 10k simultaneous connections -

I am implementing a websocket-secure (wss: //) service for online games where all users will be connected By the time they are playing the game, it will use multiple connections at once, although traffic will not be a big problem, because the service is used for chat, storage and information ... not data synchronization for real-time . I wanted to use alchemy-websocets, but it does not support TLS (wss: //), so I have to search for other services like Flake (or other). I know there is a need to get some real information about Flake. I know that the flake is non-blocked and uses async calls, but i need some real information, cuse this thread, garbage collector, or any other aspect can be misused Which will not be visible for less connections. I will also use C # for the client, so I do not mean neither hybeeup compatibility nor fallback, I need scalability and TLS support. I finally added mono support check here. The connection to 10 is not a small thing. WebSocket...

foreach - Laravel eager loading not returning data -

परिदृश्य : एक चेतावनी 1 उपयोगकर्ता और 1 स्थान से है, दोनों संदर्भ क्रमशः, सतर्क तालिका में विदेशी कुंजी द्वारा - user_id और location_id User_id प्रत्येक अनुरोध के लिए समान होगा, लेकिन location_id निश्चित रूप से अलग है। मैं उस एक उपयोगकर्ता से संबंधित सभी अलर्ट्स को प्रदर्शित करना चाहता हूं, मैंने सफलतापूर्वक इसे प्राप्त कर लिया है, लेकिन बिना किसी लोडिंग के उपयोग के। (जहां 'आईडी' है) , '=', एथ :: उपयोगकर्ता () - & gt; आईडी) - & gt; पहला (); $ This- & gt; लेआउट- & gt; सामग्री = दृश्य :: बनाने ('agents.index', ऐरे ('चेतावनी' = & gt; $ चेतावनी)); } MYSQL क्वेरी को प्रिंट करना तार्किक रूप से सही लगता है, हालांकि, मैं क्वेरी के 'स्थानों' भाग को दिखाने के लिए संघर्ष कर रहा हूं। मेरा foreach पाश है: @foreach ($ अलर्ट- & gt; स्थानों को $ चेतावनी के रूप में) हालांकि, यह त्रुटि देता है: foreach के लिए अमान्य तर्क प्रदान किया गया () धन्यवाद आपकी मदद के लिए। इस forloop का उपयोग कर डेटा तक पहुंच कर, मैं सम...

regex - Erlang: How to split line with commas but avoiding the ones inside quotes? -

regexp / ("। * *" | [^ ", \ S] +) देता है (? =? \ S *, | \ s * $) / । एर्लांग पुन: विभाजन () में इसका उपयोग कैसे करें? एर्जिंग के साथ regexp काम नहीं करता। 1 & gt; एस = "20140419, \" ब्ला ब्ला, फू फू ", 1,0,0,0,1,2,0,0"। 2 & gt; फिर: विभाजन (एस, "(\ "। *? \" | [^ \ ", \ s] +,) (? = \ s *, | \ s * $)", [{रिटर्न, सूची}])। ["20140421,", "ब्ला ब्ला, फू फू", ", 1,0,0,0,1,2,0,0"] परिणाम मैं सूची के लिए देख रहा हूँ ["20140421", "\" ब्ला ब्ला, फू फू \ "" 1 "," 0 "," 0 "," 0 " , "1", "2", "0", "0"] धन्यवाद। [एम] [एम] & लेफ्टिनेंट; - मैचों] ["20140419", "\" ब्ला ब्ला, फू फू \ " शेल कमांड 2 नोट में "1", "0", "0", "0", "1", "2", "0", "0"] \ s को ठीक से निर्दिष्ट क...

mysql - SQL Query in PHP not returning expected result -

I am trying to query users' level but I can not return int I am here. I do not know why, because when I get results, it means "1" function lvl_chcek ($ username) {$ db = new mysqli ('localhost', 'root', 'Root', 'idoctor_db'); $ lvl = $ db- & gt; Query ('Select level is the login from users' ''. $ Username. '' ''); echo $ lvl-> fetch_object () - & gt; Level; Return $ lvl-> fetch_object () - & gt; Level; } I also tried to do this but I have NULL function lvl_chcek ($ username) {$ db = new mysqli 'localhost', 'root', 'root', 'iddo_db'); $ query = $ db- & gt; Query (user login from 'select level =' '. Username' '' ''); $ Result = mysql_query ($ query); $ Array = mysql_fetch_assoc ($ result); $ Lvl = $ array ['level']; Echo $ lvl; Return $ lvl; } You need to get the results you need. Try it: func...

Jquery Slimscroll not draggable in IE-9 and IE-10 when using jQuery UI -

I have seen similar questions, but the terms of follow up in jQuery's SlimScoll IE-9 and IE-10 Do not drag under. Please use the js-fiddle link and add the URL provided to the external resource area to determine it. // jsfiddle.net/rgmrw/11/ // cdnjs.cloudflare.com/ajax/libs/jquery/ 1.4.2 / jquery.js // Code.jquery.com/ui/1.8.3/jquery-ui.js It's working fine in IE-8 and IE-11I tried to find a solution, but anything Update jquery version will be a solution, but the thing is that if we have to update we will have to make a big difference in our project and we are out of time. So if anyone knows an alternate solution to decide this, please please be sufficient enough to post it. Thank you. Override the CSS class like this: .slimScrollDiv { Overflow: visible! Important; }

convert python string date to mysql datetime -

I have a string field ditch that is a date scrapped from the internet and reads like this: "Lunn Ann 27, 2014 9:52 pm", "March 11, 2014 at 5:38 pm", ... Lun = Day of the week ( lunes / Monday) N = Month (NERO / Jan) I need to enter them into a data time field in a MESPL table. 'YYYY-MM-DD HH: MM: SS' I think this is a very common issue and was wondering if Someone already has a script to do this or can tell where I can see ... Thanks in advance! month_f_th_yyre = ['n', 'fur', 'march' arr ',' DEF Convert_to_IIISQLForm (String): Explosive = String, May ',' Jun ',' Jul ',' Oh ',' Sep ',' Akt ',' Nov ',' Dec '] ) Day_of_the_month = Explosion [2] [: - 1] If int (explosion [2] [: - 1]) & lt; 10: day_of_the_month = "% 02d" (explosion [2] [: - 1]), if the explosion [5] == 'am': time_split = explode [4] .split (':') if tim...

angularjs - Passing value to directive and change css properties -

Hi, I'm trying to get my head about these instructions. Basic problem: In my scope, in my property, called an Arrow, the angle (aro) should be converted to CSS (conversion: rotate). I have made that instruction that it should work: HTML: & lt; div class = "weather-div" & gt; & Lt; img ng-src = "..// img / icons / wetter / wind-arrow / direction.png" arrowdirection = "{{menu.weather.arrow}}" & gt; & Lt; / Div & gt; Director: AppDirectives.directive ("arrowdirection", [function () {Returns {Template: "", restrict: 'A' Scope: {}, link: function (scope, element, etter) {// Get the angle from the original scan version angle = scope. Arrow; // get the image to turn () var element = angular.element (document) ). ('# Theimagetofindfromsameobjectdirectiveisin'); // ON start img element.css ({'-moz-transform': 'rotate (' + angle + 'deg),' -webkit-transform ':...