w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
RHQ JBoss operations network (JON) and monitoring network
Why would you not use the built in monitoring capability of LoadRunner, which would then allow you to pull all of your business data (response times and data points) together with your monitoring data into the same data set for analysis purposes? By having decoupled data sets you are making your challenge of identifying root cause that much more difficult. If you were planning on exporting data from JON|RHQ to LoadRunner analysis or exporting both to a tool such as SAS, SPSS or R for statistical analysis you would be able to reconcile the decoupled data sets. (see manual for information on importing data into Analysis for the types and formats supported)

Categories : Networking

Network Monitoring
What you are seeing here is a classic case of polling a counter faster than its refresh interval. It is often the case that counters (in this case, interface counters) are updated every few seconds (10-15 seconds is a common value). If the counter updates every 15 seconds, and you ask for data every 5 seconds, then you will receive the same value once or twice in a row (depending on latency, processing time, etc.). If you receive the same value twice, then you will see a zero value for the delta (which is what your image shows). There are two ways to get around this: Ask for data less frequently than the counters are updated (30-second polling usually works fine). Obviously, if you can find out the exact refresh interval, then you can use that. Modify the configuration of your equip

Categories : PHP

PHP network monitoring debian
The info you need is in /proc/net/dev # cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo: 177937 1304 0 0 0 0 0 0 177937 1304 0 0 0 0 0 0 eth0:16268834 14619 0 0 0 10091 0 0 1201136 10555 20 0 0 0 0 0 For the transfer rate you will have to calculate the delta from the previous capture but the value will be approximate.

Categories : PHP

Monitoring Application Network Traffic in Qt
Some example of c# sniffer socket creation. mainSocket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP); // Bind the socket to the selected IP address mainSocket.Bind(newIPEndPoint(IPAddress.Parse(cmbInterfaces.Text),0)); // Set the socket options mainSocket.SetSocketOption(SocketOptionLevel.IP, //Applies only to IP packets SocketOptionName.HeaderIncluded, //Set the include header true); //option to true byte[] byTrue = newbyte[4]{1, 0, 0, 0}; byte[] byOut = newbyte[4]; //Socket.IOControl is analogous to the WSAIoctl method of Winsock 2 mainSocket.IOControl(IOControlCode.ReceiveAll, //SIO_RCVALL of Winsock

Categories : C++

Problems monitoring network bandwidth
The call "WifiInfo wifiInfo = wifiManager.getConnectionInfo()" causes the "unfortunately, xxx has stopped" error, resulting in my emulator crashing. I can't seem to get around what the issue with this is; I don't think I need to throw a try-catch block...? Where's the logcat for this? Possibly: does your app have ACCESS_NETWORK_STATE permission? A similar "unfortunately, xxx has stopped" error occurs when I input a website in urlString. When I leave the field blank, the bandwidth becomes -1, as no website gets specified, and an Exception gets thrown. Don't do network operations on the UI thread. Easy solution is to use an AsyncTask to do them on a background thread. For more info: android.os.NetworkOnMainThreadException

Categories : Java

Network traffic monitoring windows through SNMP
I would suggest you to go with either Perl or Tcl. These two scripting languages are used widely for network related scripting. To start, all you have to do is browse the internet thoroughly. You can find a good number of tutorials online.

Categories : Windows

Monitoring Network traffic in Windows Mobile 6.5 using C#?
Yes netlog is an example provided within Windows CE Platformbuilder. When you look at the source code, you will see that netlog is a 'driver' DLL and netlogctl is used to control the DLL. I fear that architecture is not to be re-build using C#. You cannot write native driver DLLs using C#. BUT, you can also use iphlpapi, see my netstat example: http://www.hjgode.de/wp/2013/09/24/mobile-development-netstat-know-your-devices-open-ports/. You get an overall stat: ======= TCP statistics ======== Retransmission timeout (min/max): Van Jacobson's Algorithm: 300/120000 max connnections: -1 active open: 69 passive open: 196 failed attempts: 0 established resets: 243 current established: 20 segments i

Categories : C#

Using PhantomJS and GhostDriver for network monitoring from WebDriver or RemoteWebDriver
The WebDriver API doesn't expose HTTP request and response headers or status codes. PhantomJS may allow you to get them, but the WebDriver API doesn't expose them. It's a point of some contention among some users of the project, but it's not going to change, and that decision has good and sufficient reasons for being so. You might be able to manipulate PhantomJS's ability to retrieve that information (if it allows it) through clever use of WebDriver's executeScript() method, but I really don't know if that will work.

Categories : Java

Monitoring network connection type change in Android Service
Your BroadcastReceiver needs to receive the Intent from the system, so you need to register your BroadcastReceiver in your AndroidManifest <receiver android:name=".ConnectivityReceiver android:exported="false" > <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> </intent-filter> </receiver> and do not forget the permission <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Categories : Android

Data Model for Generating recommendations using Apache Mahout
Preference data can be accessed from the database using JDBCDataModel. Take a look at MySQLJDBCDataModel

Categories : Java

Class Architecture of Monitoring Log Data
15k records every 3 minutes, sounds a lot like what I used to see with network monitoring applications in data centers (snmp can get very noisy in that kind of environment). What we'd do is determine how much of the data we need, for how long, at what level of granularity, and that information goes into determining what kind of roll-up strategy to use - also, how much storage space we were willing to throw at the problem. With a roll-up strategy where you combine over time rows, by merging their columns, you can make sure there is a finite limit to the size of the database. There are probably newer tools out there these days but I used to use RRD (http://oss.oetiker.ch/rrdtool/) and BerkeleyDB for example for these kinds of monitoring problems. You can also perhaps take advantage of

Categories : C#

mongodb data model for monitoring/logging application with 10'000 loggers
Your fourth option sounds best. No worries on how big the collection is, you just need to ensure that you have a proper shard key picked. The key to picking a good shard in this case will depend on how the messages are actually found. Do you have a message id and the external application that reads them just queries for an id? Or are you doing a full text search on the messages? Does the external app know the logger & datetime that the message was created? Considerations: If you make the logger your shard key then you'll end up with chunks that are too big to split If you make the datetime your shard key then you'll end up with poor distribution due to your share key If the external application is going to be searching by message id then make the hashed message id your shard k

Categories : Mongodb

Does truncating a counter column family have the same caveats as removing a single counter
The issue is the same: if you are doing simultaneous deletes or truncates and increments, the result is undefined. The issue is that delete is effectively setting the counter value to zero. Truncate is setting all counter values to zero. The 'set' operation does not commute with the 'inc' operation, so a mixture of simultaneous operations gives unpredictable results. If you aren't doing increments or can pause them, then it is perfectly safe doing a truncate. There is no need to drop the column family. If you cannot stop the increments then it depends on your client. Dropping the column family will cause the client to fail until it is recreated - if the client can survive those errors and then continue that might work. But the best would be to temporarily pause the increments.

Categories : Cassandra

The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly." on RouteTable.Routes.MapHubs();
So based on the information you've provided it is clear that these are first chance exceptions being thrown when SignalR is attempting to create the performance counters but doesn't have the rights to do so with the identity that the process is running under. You can safely ignore these exceptions, but you obviously won't get performance counter data. If you want to create the performance counters you need to make sure the identity of your application belongs to the Performance Counter Users group when it's running. Either that or you need to use the utility application provided in the Microsoft ASP.NET SignalR Utilities NuGet package that allows you to create the counters out of band. Just install the package and run the command: signalr ipc

Categories : C#

Getting "The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly." while trying to self-host SignalR with Owin
While I cannot explain why this happens, in my experience it is not a fatal error. See for example the response to this issue. Therefore I would suggest that you ignore the exception and hope that if a further exception occurs that provides further insight into your underlying problem.

Categories : C#

Hadoop difference between methods Counter.getName and Counter.getDisplayName
getName returns the name of the counter getDisplayName() returns the user facing name of the counter Source : http://hadoop.apache.org/docs/r2.0.3-alpha/api/org/apache/hadoop/mapreduce/Counter.html#getName()

Categories : Java

How to set constantly incrementing counter in javascript , to perform another operation when counter > certain value?
Use function memoization to avoid global "timer" variables: function run(){ run.timer = run.timer || 0; return run.timer++; } // run ends here setInterval(run,1000); And to act accordingly to the timer, run your handling from run(), for example: function run(){ run.timer = run.timer || 0; run.timer = handleTimer(run.timer++); } // run ends here setInterval(run,1000); function handleTimer(timer) { if(timer > 5){ $("iframe").hover(function(){ $.ajax({ url: 'http://localhost/test.html', cache: false, data: 'html', success: function(data,status) { } }); // And disable hover handler once executed $("iframe").unbind("mou

Categories : Javascript

How are you integrating help into your WPF application. Any recommendations?
My current preference is to use a third party help authorizing system to generate HTML based help. We then use a WebBrowser to display this help as needed. The authoring system we use makes it fairly easy to extract out a single page from the main help (each "topic" is a single HTML file, and can be included with full contents or not as desired). Granted, this definitely felt like a bit of a nasty hack at first - but once we wrote the basic plumbing (some attached properties for xaml to specify attributes for context location and add behavior to trigger help, etc), it's fairly clean. One very nice advantage to this approach, however, is a single help system build works perfectly in all contexts - we can include the documentation online, expose it locally for use in a browser, and use i

Categories : Wpf

ZF2 Server Requirements/Recommendations
This type of answer is really only one you'll be able to answer yourself by loading up your application and testing. Depending on your application you may need more resources than the typical application would. You mentioned Magento so here is a link to their requirements: http://www.magentocommerce.com/system-requirements However this still won't fully answer your question. There are many factors involved here such as the web server you will be running. Other applications running on the same machine. The amount of users you will have at any given type. There really is no true calculator to define what resources you'll need. ZF2 specifically does not have many system requirements but you can find more information on that here: http://zf2.readthedocs.org/en/latest/user-guide/overview.htm

Categories : Apache

Complex SQL query for recommendations
This is what I think you're looking for: Given a user John, find all movies B such that there exists a movie A, a user Simon, and a genre G where: John rated movie A a 5 Simon rated movie A a 5 Simon is not John Simon rated movie B a 5 movie A is of genre G movie B is of genre G Phrased this way, I think it's pretty easy to come up with a query: select B.* from user John join rating JohnA on JohnA.userid = John.id and JohnA.value = 5 join movie A on A.id = JohnA.movieid join rating ASimon on ASimon.movieid = A.id and ASimon.value = 5 join user Simon on Simon.id = ASimon.userid and Simon.id <> John.id join rating SimonB on SimonB.userid = Simon.id and SimonB.value =5 join movie B on B.id = SimonB.movieid join movie_genre Agenre on Agrenre.movieID = A.id join genre G on G.id = A

Categories : SQL

Python Geo-database recommendations
Yes indeed. You will have to make a use of the Search API and more specifically of the Location-Based Searches.

Categories : Python

Recommendations regarding nested transactions in SQL Server
When you do a BEGIN TRANSACTION an internal counter is incremented @@TRANCOUNT. ROLLBACK TRANSACTION will rollback all BEGIN TRANSACTIONS setting @@TRANCOUNT to 0. Doing a commit transaction will only decrement @@TRANCOUNT, it will do a full commit when @@TRANCOUNT is 1 before setting it to 0. With that in mind, Assuming you have paired BEGIN and COMMIT TRANSACTIONS in your Book and UnBook procedures I would do the RescheduleBooking procedure something like the following which will maintain the first book even if the unbook fails... CREATE PROCEDURE RescheduleBooking ... AS BEGIN BEGIN TRY BEGIN TRANSACTION EXEC BookAVehicle ... COMMIT TRANSACTION END TRY BEGIN CATCH IF @@TRANCOUNT > 0 BEGIN ROLLBACK TRANSACTI

Categories : Sql Server

pageviews counter updating with false data
//int(255) NOT NULL change it as int(11) unsigned and validate the pid //add validation <?php function viewsCounter($pid) { //validate here if(!empty($pid)) { $this->query("update post set hits=hits+1 where id='$pid' "); }else{ //your error message goes } }

Categories : PHP

Eclipse e3 to e4 migration/adaption(preferred) - recommendations
solving this required creation of an e3 Application in an e4 workspace. then create POJO views and use the Wrapper Class to enable DI. detailed solution for building it up can be found here

Categories : Java

Android: UI Recommendations about Exit button in Applications
This video will help your customers to understand: https://www.youtube.com/watch?v=631T7B8HOv4 Basically, the back button is an exit button. So, there is already an exit button! Show it to your customer and ask him if he wants to look stupid with duplicate button that takes precious space on a small screen. His app will never look professional.

Categories : Android

How to get Wifi data counter in Android using TrafficStats class
TextView totData = (TextView)findViewById(R.id.totData); TextView wifiTot = (TextView)findViewById(R.id.wifitotData); TextView wifiTX = (TextView)findViewById(R.id.wifiUpData); TextView wifiRX = (TextView)findViewById(R.id.wifiDownData); TextView mobileTot = (TextView)findViewById(R.id.mobtotData); TextView mobTX = (TextView)findViewById(R.id.mobUpData); TextView mobRX = (TextView)findViewById(R.id.mobDownData); /* * Converting bytes to MB */ long rxBytes = TrafficStats.getTotalRxBytes()/1048576; long txBytes = TrafficStats.getTotalTxBytes()/1048576; long mobUpload = TrafficStats.getMobileTxBytes()/1048576; long mobDown = TrafficStats.getMobileRxBytes()/1048576; lo

Categories : Android

Cannot load Counter Name data because an invalid index -Exception
Just had that message related to Microsoft Dynamics CRM updates not installing and the marked answer for this post helped greatly: Click Start, type cmd right click cmd.exe, and select Run as administrator. At the prompt, type lodctr /r and press ENTER. Apparently, Windows keeps some counters cache in the registry at HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionPerflib09 Counter+Help. If this cache becomes corrupted (has blank lines), you get the above errors - and lodctr /r rebuilds that cache.

Categories : C#

Rails Displaying Recommendations - Facebook/Linkedin style
Well, you could 'store' the decision of the user in session/cookie/database depending on how persistent you want the decision to be. After the user rejects a suggestion you could just reload the suggestions taking the decision into account. E.g. Suggestions.where(["id NOT IN (?)", User.rejected_suggestions]) (Assuming you have an m-to-n-relation between User and Suggestions called rejected_suggestions) And the way it is displayed is just javascript. You could use for example jQuery and fade the rejected suggestion into hiding and let the new one slide in. http://api.jquery.com/fadeOut/ http://api.jquery.com/slideDown/ And for reloading and storing the decision just use an ajax call. Alternatively: Load a few more suggestions (than 5) and only use JS to fade them out and slide new

Categories : Javascript

http/https mismatch with linkedin recommendations on a website
I had the same problem while integrating LinkeIn auth on my site. While it didn't stop the linkedin api from working, I was annoyed to see the error popping on the console. So I binded a listener to remove any iframe coming from "https://api.linkedin.com" before it loads. jQuery('body').bind("DOMSubtreeModified", function(evt) { var elemento=evt.delegateTarget.lastChild; if(elemento.tagName=='IFRAME') { if(elemento.src.indexOf('https://api.linkedin.com')!=-1) { jQuery('#'+elemento.id).remove(); } } }); Everything is still working.

Categories : Javascript

Is Myrrix a good choice for content-based recommendations?
In an indirect way, yes. You can add 'tags' as if they are users and items -- that is, a user tag is like an item that the user interacts with. This provides a way to inject information like user attributes, and vice versa for items. Under the hood, these work just like actual users and items in the algorithm. See the setTag() method and API methods.

Categories : Misc

Recommendations of bypassing show/hide javascript with anchors
What I've done in the past is to use anchors to trigger the javascript that shows/hides data. So every action that can happen is triggered by an anchor tag with the href as "#<whatever>". Whenever an anchor (hyperlink) is clicked, it updates the url with the proper anchor and triggers the hashchange event in window. Whenever that event fires I just have a switch statement that analyzes the hashtag and figures out what dynamic content needs to be changed. The last part of this is to call the function with the switch statement at the dom ready event so that if somebody bookmarked the page with an anchor, it will know to load whatever dynamic content that specific hash triggers.

Categories : HTML

Android app that uses network for data retrieving/ data sending
You should first have some idea about networking with android. Android will not let you do networking in the main activity, therefore first check this out: http://www.vogella.com/articles/AndroidBackgroundProcessing/article.html Learn about activity,fragments and some xml for views in your app. Depending on the server side, you should design your connection to the server(web services,REST etc.) and data format(which form will you retrieve them, XMl,JSON...) These are the first things come to my mind.

Categories : Android

Add forward or reverse counter for subsets of data, depending on first record's value
Wouldn't that just be: Stops$counter<-ave(Stops$ID,Stops$ID, FUN=function(x) if (x[1]=="1" ) { seq_along(x)} else {rev(seq_along(x))} ) > Stops ID response startno counter 1 1 Yes 1 1 2 1 Yes 2 3 1 Yes 3 4 1 No 4 5 2 Yes 4 6 2 Yes 3 7 2 No 2 8 2 No 1 1 When programming with ave you need to think one group at a time and realize that you will be retruning a vector exactly as long as the "group length", so if seq_along is good for the simple case then using if to retrun one of two alternatives is pretty simple to implement.

Categories : R

Cassandra time series data model with counter column
If you want a composite partition key, you need extra brackets: CREATE TABLE minute_usr ( min varchar, usr varchar, bytes counter, PRIMARY KEY ((min, usr)) ); However, then you can't do range queries on min or usr. You can only do range queries on non-partition keys. You can use your second model, with usr as the partition key, and shard on some time bucket to stop the rows growing too large. For example, you could have a partition per user per day: CREATE TABLE usr_day_minute ( day varchar, min varchar, usr varchar, bytes counter, PRIMARY KEY ((usr, day), min) ); but now you will need to do separate queries per day if you want results for multiple days. You could choose a larger time bucket, but at the cost of larger rows. Note you probably want to use a numer

Categories : Cassandra

Are Google Play billing security recommendations only for piracy prevention?
It looks like you are referring to the Android In-App Billing "Security and Design" best practices which are specific to Android in-app transaction security only. A malicious hacker may find ways to access your in-app digital goods without actually paying for them. However, there are multiple and effective solutions to thwart hacking attempts. I recommend to watch this Google I/O presentation that addresses such issues.

Categories : Android

Image hosting with public API, management console and autoresize, any recommendations?
For your use, you can use Amazon S3. It is great and it just works perfectly! A possible cheaper option is Google. Google docs now supports all file types, so you can load the images up to a Google docs folder, and share the folder for public access. The URL's are kind of long though. There are various options for resizing etc and it's Google so obviously their API is stable and perfect. Google only charges USD5/year for 20GB. There is a full API for uploading photos, docs etc.

Categories : Image

Recommendations on using assertions to remove sections of Java code in production
If someone at the data center - for whatever reasons - enables assertions, your production is going to execute test code happily in the production environment: For example, if an administrator enables assertions to analyze another application, but he just picked the wrong one in his console. Or it's only possible to enable them globally. This just happens. And you cannot really blame him: The basic problem is really that the connection between "assertions" and "conditionally execute production or test code" is not obvious.

Categories : Java

getting network/data usage via adb
You can use trafficStats class to calculate internet usage for different applications installed in the device if using adb/adb shell isn't a necessary requirement final PackageManager pm = getPackageManager(); // get a list of installed apps. List<ApplicationInfo> packages = pm .getInstalledApplications(PackageManager.GET_META_DATA); // loop through the list of installed packages and see if the selected // app is in the list for (ApplicationInfo packageInfo : packages) { // get the UID for the selected app UID = packageInfo.uid; //internet usage for particular app(sent and received) long recived = TrafficStats.getUidRxBytes(UID); long send = TrafficStats.getUidTxBy

Categories : Android

Quickest way to read network data?
The lowest latency for receiving packets in Linux is, as you say, to bypass the Linux kernel, which requires special drivers. High-end network adapters from Mellanox, Solarflare, Myricom, Chelsio, etc. provide kernel bypass software. For example, Mellanox claims you can receive a packet in under 2 microseconds with their ConnectX-3 card and VMA 6.0 software This week Mellanox announced the newest version of its VMA 6.0 Messaging Accelerator, which includes enhanced TCP and UDP acceleration support over ConnectX-3 VPI adapter cards. With ultra-low UDP latency under 1.4 microseconds and TCP socket latency under 1.7 microseconds, this messaging technology is reportedly more than two times faster than competitive offerings. http://insidehpc.com/2012/01/10/interview-mellanox-v

Categories : C++

Lost Data over GIO Network Transmission
You are not evaluating the number of actually read bytes g_input_stream_read returns - this may differ from the requested number of bytes. https://developer.gnome.org/gio/2.32/GInputStream.html#g-input-stream-read Some more output and a example transfer with a random string would be nice.

Categories : C



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