Posts

live audio streaming server based on gstreamer and a client with vlc playing the incoming stream -

I must set up a live audio streaming server with Gstreamer and send the live audio in the server client and on the client side, VLC The player should be used to run the incoming stream I am using the following code VIDEO_CAPS = "App / X-RTP, media = (string) video, clock-rate = (int) 90000, encoding-name = (string) H264 "Gst-launch -v udpsrc caps = $ VIDEO_CAPS port = 4444 \! Gstrtpbin .recv_rtp_sink_0 \! Rtph264depay! Ffdec_h264! Xvimagesink Then, like the reports of gstreamer: Setting the pipeline in PAUSED ... The pipeline is live and does not require preroll. Setting the pipeline to play "post-text" itemprop = "text"> Try reading the manual on streaming with VLC. Or:: cvlc rtp: // @: 4444 Update: Because of my poor reading skills, Misunderstood Here is how a server is set: GST-Launch-WeelersRack! Audioconver! AudioSession \! Speexenc! Rtpspeexpay \! Use udpsink host = 224.1.1.1 port = 4444 auto-multicast = true...

ruby - Why can't a variable name end with `?` while a method name can? -

एक विधि का नाम प्रश्न चिह्न ? डीईएफ़ की कमी है? वापसी की गणना & gt; 10 अंत लेकिन एक चर नाम नहीं हो सकता। इसका कारण क्या है? क्या इसी तरह के नामों को समाप्त करने वाले चर नामों को भी सुविधाजनक नहीं है? यह देखते हुए कि हम आमतौर पर यह नहीं बता सकते कि foobar एक विधि या एक चर है, बस नाम foobar को देखकर, क्यों के लिए अपवाद? मामला? और मुझे इस के साथ कैसे काम करना चाहिए? शायद कोड में है या है का उपयोग करने के लिए? यदि process_has_completed ... end अगर user_is_using_console ... end आपको मात्ज़ से एक आधिकारिक उत्तर प्राप्त करने के लिए पूछना होगा। हालांकि, रूबी एक untyped प्रोग्रामिंग भाषा है और एक समाप्त जैसा एक चर एक विशिष्ट प्रकार (बूलियन) है जो मुझे कुछ विरोधाभासी दिखाई देता है। कुछ प्रश्नों के लिए एक रिसीवर की आवश्यकता होती है (जो प्रश्न का उत्तर दे सकता है) एक विधि में एक रिसीवर (वस्तु जिस पर कहा जाता है) होना चाहिए, इसलिए एक प्रश्न चिह्न समझ में आता है। दूसरी तरफ एक चर कोई रिसीवर नहीं है, यह एक मात्र कंटेनर है।

Django Celery: Admin interface showing zero tasks/workers -

I have established a cache with Django ORM as back-end I have started with Selerid -i flag python manage.py celeryd -E - trying to monitor. 1 INFO-V 1 -f /path/to/celeryd.log Start SalaryCam with the default snapshot frequency of 1 second was done. Python Mannege Selerik I can be executed (in celery log) and the result is being stored (data model periodically But by those tasks being changed) However, in the Django admin panel, zero items are being displayed in Task / Worker pages. This happens even when celeryev (shows event / work / workers) starts. Want to change any additional configuration settings to achieve monitoring? My Software Stack: Django 1.1, Celery 2.2.4, Python 2.4 Event Snapshot does not currently work with Django ORM transport.

Dynamic email attachments in cakephp -

Is it possible to send an email with a dynamically generated attachment? I tried it this way: $ this-> Email-> Attachment = Arrays ('Reservations .ics' = & gt; array (' Controller '= & gt;' reservation ',' verb '=> Ical', 'ext' => 'ics', $ this -> Data ['reservation'] ['id'])); But that does not work. attachments takes the path only in local files on the server, not the URL. You need to render your attachment in a temporary file, then attach it. In your controller, this may look like this: $ this-> AutoRender = false; $ Content = $ this- & gt; Render (); File_put_contents (TMP. 'Reservations'. $ Id. '.ics', $ content); $ This- & gt; Email-> Attachment = Array ('Reservation .ics' => TMP. 'Reservations'. $ Id '.ics');

PHP getting data from mysql database for the Query string variable -

What I would like to do here; I am passing an encoded data as a query variable for my webpage, then in my php page, I am decoding data and checking my database the same. The code I'm using is shown below: & lt ;? Get ID from Php // URL $ Id = (isset ($ _GET ["id"]) & amp; empty! ($ _GET ["id"])? $ _GET ["id"]: "") ; // If "id" is not empty, go ahead if (! Id ($ id)) {$ id = base64_decode ($ id); Global $ wpdb; $ Res = $ wpdb- & gt; Query ("SELECT * FROM S_redirect WHERE source =". $ Id); $ Tot = count ($ res); Copy $ tot "records."; ($ I = 0; $ i & lt; Count ($ res); $ i ++) {ebay $ res [$ i] - & gt; For ID; } Go out; } Else {resonant "id not"; Go out; }? & Gt; I have a record in my database The above code says "1 record" I'm not sure how to get the value of the field in that row I have 3 columns, They are id, field 1 and field 2. Please BTW, I'm ...

objective c - Passing Progress Bar Information to the View Controller -

I have a class that handles downloads and provides progress information. - (zero) connection: (NSURLConnection *) connection was the receipt data: (NSData *) data {[Data data received: data]; Self.recievedlength = self.recievedlength + [data length]; // calculation of progress self.progress = 0; Self.progress = ((float) received / [filesize floatValue]); // NSLog (@ "% f", auto.progress); [Self display selectorMythrthread: @Selector (Passprogress) with object: not waiting until: no]; I have the following selector, which gives the float's progress information int form in the same class: (float) pass progress {/ NSLog (@ "% F", self.progress); Return self Progress; } My question is, how can I update the UIProgressView (progress bar) in the menu widgetor. The following does not work NSLog (@ "Progress% F", [Class Eases Pass Progress]); Any thoughts please do not want to write the download code in the main code controller. Write ...

mysql - Date difference between two records in same table -

मेरे पास निम्न रिकॉर्ड के साथ तालिका ( job_logs ) है: id , job_id , user_id , स्थिति , बनाया_आप , job_type । हर बार जब कोई नौकरी रिकॉर्ड चलाने शुरू हो जाती है तो job_log तालिका में स्थिति = 'शुरू' में लिखा जाता है। जब एक नौकरी समाप्त हो जाती है, तो दूसरा रिकार्ड तोड़ा जाता है, स्थिति = 'पूर्ण' के साथ तालिका में जोड़ा जाता है। दोनों अभिलेखों में समान है user_id , नौकरी_प्रकार और job_id (जो कार्य चल रहे कार्य द्वारा निर्धारित किया गया है - इन 2 रिकॉर्ड के लिए अद्वितीय)। मुझे एक क्वेरी चाहिए जो इन सभी रिकॉर्ड जोड़े टेबल में (आई डी डी द्वारा क्रमबद्ध) लेकिन मुश्किल भाग यह है कि मैं 'पूर्ण' स्थिति के साथ रिकार्ड में जोड़ना चाहता हूं, जिस समय वह नौकरी को चलाने के लिए ( completed.created_at - start.created_at )। मैं ऐसा कैसे कर सकता हूं? SELECT j1 .job_id as job_id, (j2.created_at - j1.created_at) job_logs से time_run के रूप में j1 इनर जॉब जॉब लॉग्स j2 ON (j1.job_id = j2.job_id) जहां j1.status = 'शुरू' और j2.status = 'do...