w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
get the information on the last closed iOS App
It is not possible to get the last closed iOS app, but if you have two apps and you want to be able to move between the apps you may be able to use URL schemes. URL Schemes Documentation Here: http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedAppTricks/AdvancedAppTricks.html#//apple_ref/doc/uid/TP40007072-CH7-SW18

Categories : IOS

Icecast streamming not playing
If you're having problems with a web-based player you need to be a lot more specific about what you're trying to do and provide some code for us to look at. You should also confirm the stream is playing correctly in a compatible desktop app first. Go to http://example.com:8000/admin and verify the mount point you're sending to is listed (which indicates it has a connected source) - if it is there will be an M3U (for streaming MP3) and XSPF (for Ogg) link on the right which you can use to test. Playback of Icecast streams on Android requires installation of the Just Playlists app or an equivalent.

Categories : Android

Stream Live mp3 from Icecast to iPhone app
AVPlayer *player = [[AVPlayer alloc]initWithURL:[NSURL URLWithString:urlString]]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playerItemDidReachEnd:) name:AVPlayerItemDidPlayToEndTimeNotification object:[songPlayer currentItem]]; [player addObserver:self forKeyPath:@"status" options:0 context:nil]; [player play]; } - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { if (object == player && [keyPath isEqualToString:@"status"]) { if (songPlayer.status == AVPlayerStatusFailed) { NSLog(@"AVPlayer Failed"); } else if (songPlayer.status =

Categories : Iphone

IceCast 2.3.2+ chunk encoding MP3 streams
Icecast up to and including version 2.4.1 does not support HTTP chunked encoding at all. Version 2.5.0 will support chunked encoding for HTTP PUT requests (source client side), but there is currently no point in supporting it for GET requests. You might have confused this with the metadata hack introduced by Shoutcast for MP3 streams. There the actual encoded audio data stream is interrupted at a fixed, so called, metadata-interval and metadata is injected. A player that is capable of handling such a stream has to signal this to the server through a HTTP header and if supported the streaming server will inform the client in the response HTTP headers about the metadata-interval and other parameters. The player then must remove this injected data from the stream upon reception and before h

Categories : Android

Icecast dont see mount point
Hey it looks like you made an error configuring Nicecast. You might want to read the following guide. Please note that Nicecast has an built-in Icecast server, make sure you are not using this one. As well not that Nicecast for some reason will kill any running Icecast server on the same machine where Nicecast is started. So you have to first start Nicecast and only afterwards start your Icecast Server. (This should not happen anymore after you have disable the built-in server though) Another issue I experience with some versions of Nicecast is that the Settings or at least some (like the Mountpoint Name) only take effect after restarting Nicecast. Additionally make sure your Mountpoint name is not /, as this is an impossible mountpoint name (it conflicts with the web interface).

Categories : Misc

Is it possible to send an mp3 file to IceCast via a script from a webpage?
The way to do this project would be to do your Icecast source connections server-side. Write an application that accepts control commands from the browser client (AJAX, WebSockets, anything) and then encodes all of the audio for the correct codec and bitrate server-side, sending this final stream to Icecast. This server is also responsible for generating silence while nothing is playing. I've actually built something similar to this awhile back. I used Node.js and Socket.IO for the browser part, and a loopback audio driver for the rest. If I were to do it again, I would probably utilize FFMPEG or VLC for the playback/encoding server-side.

Categories : PHP

Icecast and Darkice combination for live streaming
This is not poor performance... it is deliberate so that clients don't experience re-buffering once playback has begun. Internet radio servers are not built for low-latency. There are many sources of the delay: Capture buffer (<500ms) Encoding buffer (~250ms-1s depending on codec) Encoder-to-Server Network Transfer and Buffer (<10ms) Server buffer (the one you disabled, often set at 1MB which can be a long time depending on bitrate) Server-to-Client Network Transfer and Buffer (<10ms-1s typically, longer times for mobile) Client buffer (widely variable, but 2s is typical) Client playback buffer (<500ms) The biggest of these as you can see is the server buffer. You have eliminated that, and that is all you can do. If you want something with lower latency, you need a diff

Categories : Misc

IceCast 2.3.2-kh29 server streaming 404 Error
The issue is your chunked encoding. You're proxying your stream through Nginx, and Nginx is "fixing" the output to be compatible with HTTP/1.0. Don't do that. You can try turning off chunked encoding in your Nginx config: chunked_transfer_encoding off

Categories : Http

Apple removed the possibility to stream shoutcast & icecast on ios 6 only in web-applications?
You need to declare the mime type of the content, like type="audio/aac" ... See more at http://www.w3schools.com/html/html5_audio.asp Good luck!

Categories : Javascript

detect availability of node-set() function in xslt implementation of icecast server
Short answer libxslt in icecast supports the xt:node-set() function. Underneath it is implemented in by the xsltFunctionNodeSet() function. Generic answer I created a solution, based on the CSTUG bibliography XSLT using the function system-property. Please comment if this is indeed the correct way to do this. The CSTUG code handles these node-set() functions: exslt:node-set() msxml:node-set() xalanc:nodeset() I added support for these as well: xt:node-set() saxon6:node-set() Output from icecast: Version: 1.0 Vendor: libxslt Vendor URL: http://xmlsoft.org/XSLT/ node-set(): xt:node-set() XSLT used: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exslt="http://exslt.org/common" xmlns:msxml="urn:schemas-microsoft-

Categories : Xslt

How to create an audio file metadata header if I am streaming data to icecast?
The metadata is not required for a stream to function. If your data is corrupt, you are either encoding it wrong or are sending the wrong Content-Type header. That being said, once you get your stream working, if you would like to send metadata, this is done out-of-band of the actual audio stream. Metadata is updated with a simple HTTP request to the Icecast server. http://icecast.example.com/admin/metadata?pass=hackme&mode=updinfo&mount=/mountpoint&song=Your%20Metadata You can find more info in my answer here: http://stackoverflow.com/a/9985297/362536

Categories : IOS

Finalizing a Cursor that has not been deactivated or closed or database not closed error
When you are done with the cursor, you need to call Cursor.close(). Leaving it not closed leads to memory leaks. E.g.: Cursor cursor = null; try { cursor = getContentResolver().query(myUri, MY_PROJECTION, null, null, null); if (cursor != null && cursor.moveToFirst()) { // moar code } } finally { if (cursor != null) { cursor.close(); } }

Categories : Android

Application gets closed when terminal is closed, how to stop this?
Use nohup to prevent child processes from being killed when the terminal closes. spawn nohup /usr/bin/firefox https://www.google.com/ I assume there's more to the script, since there's no need to use Expect just to start firefox.

Categories : Python

How to draw closed spline 3D (closed curve 3d) through unordered list of points3D. How to arrange points3D?
It sounds like you're looking for the Concave Hull of the data set. Unfortunately, I don't know of any pre-canned algorithms, but the link references a paper that another developer was starting from, as well as some sample code, so maybe that'll help you in the right direction.

Categories : C#

The underlying connection was closed: The connection was closed unexpectedly wcf service
The first thing i will do is, instead of returning the full list of candidates i will return an empty list. If that works fine, then it is very clear that the size of the data is a problem. To modify the size play with your binding parameters.

Categories : Wcf

VBA to Copy Information From a Folder of Files and Compile Information to a Single Workbook
This is not the full code, but it should help you. When you work with multiple workbooks keep track of them. For example start with: Dim CurrWB As Workbook Set CurrWB = ActiveWorkbook Then in the cycle: Dim WB As Workbook For Each StrFile In var Set WB = Workbooks.Open(loc & StrFile) ... WB.Close Next StrFile Inside the cycle you can find the area to copy doing something like: R1 = 1 Do While WB.Sheets("Sheet name").Cells(R, 2) <> "Starting text" R1 = R1 + 1 Loop R2 = R1 + 1 Do While WB.Sheets("Sheet name").Cells(R2, 2) <> "Ending text" R = R + 1 Loop For R = R1 to R2 CurrWB.Sheets("Report").Cells(RReport, 3) = WB.Sheets("Report").Cells(R, 3) RReport = RReport + 1 Next R

Categories : Excel

Reply mail structure information: how to retrieve sent and received information
There's no standard for the structure of a reply email. It's not usually done using multipart email, it just uses human-readable text, often with > prefixes to denote quoted text. This allows replies to be interspersed inline with the quoted material. The only standard features of replies are a couple of headers: In-Reply-To: <ID> and References: <ID1>, <ID2>, <ID3>, ... In-Reply-To contains the message ID of the message that was replied to. References is a growing list of message IDs -- when you reply, you take the original message's reference list and append the ID of the message being replied to at the end. See RFC 5322 for more details about these headers.

Categories : PHP

"The underlying connection was closed: The connection was closed unexpectedly"
The first request does not utilize a header that indicates the length of the result. It closes the connection when it finishes. The second request utilizes the length header, reads the designated number of bytes, then closes the connection gracefully. (under the client side control instead of server driven disconnection) -or- The url you sent caused an error on the server. Is there an error in the server log or event viewer?

Categories : C#

how to get the information of about database events and actor information
Look at the MODULE, ACTION and CLIENT_INFO columns of V$SESSION. Then, in the package(s) and/or trigger(s) you suspect are performing the update, call DBMS_APPLICATION_INFO.SET_MODULE and DBMS_APPLICATION_INFO.SET_ACTION: BEGIN DBMS_APPLICATION_INFO.SET_MODULE(trigger_name, 'trigger start'); -- some code... DBMS_APPLICATION_INFO.SET_ACTION('updating employee'); -- code which updates the employee table DBMS_APPLICATION_INFO.SET_ACTION('doing something else'); -- more code... DBMS_APPLICATION_INFO.SET_MODULE(NULL, NULL); END; See also the example provided in the usage notes.

Categories : Oracle

Tag 'h1' not closed
Try adding space: <h1> @employee.Name </h1> Take a look at this question

Categories : Asp Net Mvc

Detecting whether .exe was closed
Use the Exited event (note: you need to set EnableRaisingEvents to true) e.g. : private void button1_Click(object sender, EventArgs e) { string openexe= @"C:UsersmarekDocumentsVisual Studio 2012Projects ours oursinDebug etpokl.exe"; var proc = new Process(); proc.StartInfo = new ProcessStartInfo(openexe); proc.EnableRaisingEvents = true; proc.Exited += new EventHandler(proc_Exited); proc.Start(); } private void proc_Exited(object sender, EventArgs e) { // the process has exited... } This is the asynchronous way, for a synchronous approach you can use the WaitForExit method : private void button1_Click(object sender, EventArgs e) { string openexe= @"C:UsersmarekDocumentsVisual Studio 2012Projects ours oursinDebug etpokl.exe"; var proc = new Proces

Categories : C#

When is FileDescriptor closed?
I belive you are right. A small test shows that the FileDescriptor becomes invalid after its FileInputStream is closed. Note that, in case of more than one FileInputStream for the same FileDescriptor, the FileDescriptor becomes invalid as soon as its first FileInputStream is closed, i.e. it does not matter if you close first fis1 and then fis2 or the other way around: FileInputStream fis1 = new FileInputStream("/tmp/adb.log"); FileDescriptor fd = fis1.getFD(); FileInputStream fis2 = new FileInputStream(fd); System.out.println(fd.valid()); fis1.close(); System.out.println(fd.valid()); fis2.close(); System.out.println(fd.valid()); Output is: true false false Do not forget to close the stream in a finally block, to make sure you close it also in case of an I/O (read/write) error.

Categories : Java

Is this inputstream being closed?
You re doing some wierd stuff it seems? For each archieve entry while your reading your archieve you re recursively calling your read archieve method which results in opening the next archieve while your parent code is still handling your previous archieve. You should loop entirely through your archieve entry before handling any new archieve entry in your compressed file. Something like ArArchiveEntry entry = (ArArchiveEntry) arInput.getNextEntry(); byte[] content = new byte[entry.getSize()]; LOOP UNTIL entry.getSize() HAS BEEN READ { arInput.read(content, offset, content.length - offset); } as stated in the examples on the apache site

Categories : Java

How do I tell if an HttpResponse is already closed?
Stab in the dark here, but would connectionInfo being null mean that the HttpResponse has finished? Otherwise, I guess you could set a "closed" bool variable from the Future returned by done, and test whether it's set before processing the response? HttpResponse response = ...; bool closed = false; response.done.then((_) => closed = true); if (!closed) { ... } But I'm not sure whether you could ever do this early enough, would depend on the scenario.

Categories : Dart

Is socket closed from my end or the other end
It looks like your application is shutting down the HttpClient connection pool too soon. It is not happening in the code you showed in your Question. That code looks like "an innocent victim". Is this an issue with the HttpClient version I am using? Probably not. Or is something in my environment changing the behaviour? Erm ... could be. Especially if "my environment" is an obscure way of saying some other part of your program.

Categories : Java

Flashlight app getting closed in background
Got solution. What you should do is, write all the code like following in onBackPressed. I merge two methods code in one method. @Override public void onBackPressed() { // TODO Auto-generated method stub super.onBackPressed(); myparas = mycamera.getParameters(); myparas.setFlashMode(Parameters.FLASH_MODE_OFF); mycamera.setParameters(myparas); mycamera.stopPreview(); flashon = false; if (mycamera != null) { mycamera.release(); mycamera = null; } Log.d("Camera","Back Pressed"); } And remove all the code from onStop() and onPause() method. Because when you press Home key, it calls first onPause() and then onStop(). I implement your code and worked fine for me.

Categories : Android

Does IndexedDB need to be closed other than on upgrade?
Take a look to the documentation from W3: When a connection is initially created it is in opened state. The connection can be closed through several means. If the connection is GCed or execution context where the connection is created is destroyed (for example due to the user navigating away from that page), the connection is closed. The connection can also be closed explicitly using the steps for closing a database connection. When the connection is closed the closePending flag is always set to true if it hasn't already been. There is no need to close explicitly the connection, the browser should handle that.

Categories : Javascript

iOS - CoreLocation and geofencing while app is closed
If you use region monitoring capabilities your can resume your app somehow even if is closed, usually by creating a local notification, in this way user can renter in the application and do specific task, by watching the options dictionary in -applicationDidFinishLaunchingWithOptions:

Categories : IOS

HTML5 App on Windows 8 which cannot be closed
This isn't possible on Windows 8; the soon to be released Windows 8.1 has a "Kiosk Mode", which seems to be what you are looking for. From Windows 8.1 kiosk mode locks systems to a single app: Generally speaking, kiosk mode is something that’s intended for use in corporate and shared computing settings — like public information terminals. It would, for example, make an excellent way to lock a point-of-sale terminal in to the “cash register” app and prevent would-be procrastinators from tabbing out and surfing the web.

Categories : HTML

PSQLException: this ResultSet is closed
when you close the connection object in your getProduttori method, your result set will be automatically closed. when you try to re use it , it will be null. ResultSet rs = ProduttoreDCS.getProduttori(); = null, as you have closed the connection in getProduttori method, which will automatically close the resultset thus, it returns null. From Connection#close Releases this Connection object's database and JDBC resources immediately instead of waiting for them to be automatically released. applies same when closing the Statement as well.For your code to work don't close Statement and Connection untill you get the rows. @Baadshah has already shown you the standard way. If you are using java 7+ you can make use of try-with-resource block,

Categories : Java

OpenCV 'Almost' Closed contours
You can utilize color information and kmeans clustering as explained in the link. As long as target object color differs from the background, the pixels of the square object can be detected accurately.

Categories : C++

Detect closed contours
If your example image is a bitmap, even a single pixel has an area already, so it also has a contour. The closed circle even has two contours, one on the inside, one on the outside. The half circle has just one, spanning inside and outside and making a U-turn at the ends. I guess you want to treat these two circles as curves that indeed have no area and just one "contour". The circle would then be a closed curve, the half circle would be open. If that is the case, your new problem is turning a bitmap into curves. This isn't trivial, even though we humans easily perceive the curve there, because it requires defining an algorithm and parameters that turn an area into a curve. One approach I know is deriving a skeleton from the bitmap, which basically peels off layers of pixels on the outsi

Categories : Python

There is Already an open DataReader that must be closed first
You make another request in your select for each of your products. But your products are enumerated so the first datareader is not closed. It is why you have multiple datareaders opened. public ActionResult Index() { var products = _db.Products.ToArray() // force loading the results from database // and close the datareader var viewModel = products.Select(product => GetMedicalProductViewModel(product)); return View(viewModel); } Additional: I think you shoul optimize your model creation: you are making the same request (selecting brands) for each products in your database. To avoid non necessary multiple database roundtrips, you should : Load your products Load your brands Build your models using one product and the brands

Categories : C#

Reopening closed file: Lua
So, now the problem is that the "LoadScript" function isn't doing what you expect: Because I'm psychic, i have divined that you're writing a Crysis plugin, and are attempting to use it's LoadScript API call. (Please don't assume everyone here would guess this, or be bothered to look for it. It's vital information that must form part of your questions) The script you're writing attempts to set Backup - but your script, as written - does not separate lines with newline characters. As the first line is a comment, the entire script will be ignored. Basicallty the script you've written looks like this, which is all treated as a comment. --[[ comment ]]--Backup="Hello!" You need to write a " " after the comment (and, I'd recommend in other places too) to make it like this. In fact, you d

Categories : Windows

MediaPlayer keeps playing although i closed the app
Here is the state diagram of the MediaPlayer that will help you to understand at what point in the Activity's life cycle should you call the various methods on your MediaPlayer object. Just like Jesse J said, try calling stop() in onPause()

Categories : Android

End Program After MessageBox is Closed
Add a boolean to the top to determine if the operation completed. bool readerCompleted = false; try { reader = new Reader("COM6"); readerCompleted = true; } catch { MessageBox.Show("No Device Detected", MessageBoxButtons.OK, MessageBoxIcon.Error) } if(readerCompleted) { Application.EnableVisualStyles(); Application.SetCompatibleRenderingDefault(false); Application.Run(new Form1()); } Because there is no code after the if statement, the program will just close when the boolean is false. You can apply this sort of logic to any other section of your code, not just the Main() function.

Categories : C#

Opening new datepicker when old one is closed
the datepicker provides an close event, maybe you can use this? Take a look at the API here http://amsul.ca/pickadate.js/api.htm#method-on some lines further down, you find $('.datepicker').pickadate({ onOpen: function() { console.log('Opened up!') }, onClose: function() { console.log('Closed now') }, onRender: function() { console.log('Just rendered anew') }, onStart: function() { console.log('Hello there :)') }, onStop: function() { console.log('See ya') }, onSet: function(event) { console.log('Set stuff:', event) } }) when entering the close event, open a new datepicker and set default value of the currently closed.

Categories : Javascript

Determining when cd drawer has been closed
You can parse /var/log/messages for ascpi events. Also check out dbus-monitor which works in UBUNTU

Categories : Bash

Nodejs: This socket is closed
Try this code Option1 function broadcast(message, sender) { try { clients.forEach(function (client) { if(client._handle){ // ensure there is still underlying handle client.write(message); // ERROR IS HERE } }); } catch (ee) { } } Option2 Attach error event listener on socket. Socket.on('error',function(){ console.log("%j", arguments); });

Categories : Node Js

Event when all mdi forms are closed
MDI child forms (in fact any form), while being destroyed, will notify the main form. You can use this notification mechanism. Example: type TForm1 = class(TForm) .. protected procedure Notification(AComponent: TComponent; Operation: TOperation); override; .. procedure TForm1.Notification(AComponent: TComponent; Operation: TOperation); begin inherited; if (Operation = opRemove) and (AComponent is TForm) and (TForm(AComponent).FormStyle = fsMDIChild) and (MDIChildCount = 0) then begin // do work end; end;

Categories : Forms



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.