w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Multiple VLANs in the same subnet
Of course, that's possible to have multiple VLANs in the same subnet. But it's impossible to have one TMG for multiple VLANs, from the guest OS side, each switch VLAN interface can bind only one primary address. Either untag or tagged traffic can pass VLAN 1-3 range.

Categories : Misc

Why does chrome say this app doesn't have permission to call "management.get" despite having "management" permission?
Only extensions may use the chrome.management API. What you've created is a Chrome App, which doesn't implement nor recognize the management permission (compare the permissions of apps with the permissions of extensions to see the difference). If you want to use the management API within an app, you need to publish a Chrome App and a Chrome extension, and use the external message passing API to communicate with each other.

Categories : Google Chrome

Cannot convert value of type "Microsoft.SqlServer.Management.Smo.Server" to type "Microsoft.SqlServer.Management.Smo.Server"
After some further testing and reading about the SMO syntax, it looks like I don't need to define the $server as a new object. Instead, just passing the name of the server to $server works fine.

Categories : Sql Server

Using an ORM with IOC fro transaction management .NET
The answer is 'yes' - there are equivalent frameworks to implement the same ideas in the Java frameworks you mention. In C# .NET, you can pick and choose: IoC (Spring) equivalents Castle Windsor AutoFac ServiceStack Func many others... ORM Equivalents (Hibernate) NHibernate Entity Framework Micro-Orms (lightweight) are getting more popular ServiceStack OrmLite Dapper Testing xUnit.net NUnit MS Test Many of the same software development principles and practices apply.

Categories : C#

Event management in C + +
Not sure if this is the same issue that you have, but I recall looking at this just a day or two ago!: Quote: There's something wrong with your project's settings. Did you actually create a Console Application? I think that you have created a Win32 Project instead of a Console. Do this: Right click on project name -> Properties -> Expand Linker tab -> System -> SubSystem: make sure that it is Console (/SUBSYSTEM:CONSOLE). Otherwise, re-create the project, but when you create it, make sure that you select Win32 Console Application. link Looks like you have the same issue here...

Categories : C++

EF 5 Connection Management
If you look at the MSDN here: http://msdn.microsoft.com/library/vstudio/bb896325 The Entity Framework opens connections only when required, for example to execute a query or to call SaveChanges, and then closes the connection when the operation is complete. When a query method is called, the connection is opened, and it remains open until the ObjectResult has been completely consumed or disposed. public void UpdateCategory(Models.Category catData) { if (catData == null) return; using (var cntx = new DataContext()) { //IN THE LINE BELOW A CONNECTION IS DEFINITELY OPENED BUT IS IT //IMMEDIATELY CLOSE? => YES! var cat = cntx.Set<Category>() .FirstOrDefault(c => c.CategoryId == catData.CategoryId);

Categories : C#

Memory management iOS/ARC
No, it will not leak. ARC will perform the release message when it goes out of scope. The timing/sequence is not specific for optimization purposes. Technically, it has the liberty to use autorelease instead.

Categories : Objective C

User management with ASP.NET MVC 4
For Authentication and Authorization in asp.net, have a look at Forms Authentication and Membership Provider (and Role Provider for roles) A quick search gives this article: Here have a look at other searches for "Custom Membership Provider" This also looks interesting: How do I create a custom membership provider for ASP.NET MVC 2?

Categories : Asp Net

UIView management with ARC
I mean some memory leaks Use instruments to detect where the memory leaks are and solve them. What are the main things I have to do with the subviews I add to my view? Normally the UIViewController will manage the views for you, but I cannot tell you anything else without seeing some code.

Categories : Iphone

Dependency management in EAR
The ultimate solution for Websphere Application Server is to use OSGi Applications. Working with OSGi Applications (WAS 7.0) About OSGi Applications (WAS 8.0)

Categories : Java

Bundles management in PHP
It it should run on unix, use apt, yum, yast ... Simply try to build your own dep / rpm pakages. Build foreach application bundle and depencencies bundle. That add at theapplication bundle the depencencies bundle as depends. Or do you looking for something like pear?

Categories : PHP

TFS - Folder Management
You should be able to use the "Move..." option. Right click on Test2 and Move it from "$/Project1/Test1/Test2" to "$/Project1/Test2". Check in the change Right click on Test1 and Delete Check in the change (I've suggested two checkins for this because TFS is very bad at handling mixtures of renames and deletes, and as Test2 is inside Test1, you may encounter problems trying to delete and rename in one step)

Categories : C#

Memory Management using ARC
A couple of thoughts: This technique of adding a controller to some strong variable and then adding its view as a subview is not a recommended way of present another view. You really should be using [self presentViewController:stocksController animated:YES completion:NULL] or [self.navigationController pushViewController:stocksController animated:YES] (or, if you're determined to do it the way you have, you should do the view controller containment calls, such a addChildController and didMoveToParentViewController). If you let your view controller hierarchy get out of sync with your view hierarchy, you can end up not getting certain events (notably rotation events; for a lengthy discussion on the problems/risks of not doing this carefully, see WWDC 2011 session - Implementing UIV

Categories : IOS

Python Multiprocessing Management
From what I can gather (assuming that you don't have a stringent requirement that the master is always logging the data from the serial device) you just want the master to be ready to give any worker a chunk of data and be ready to receive data from any worker as soon as the worj=ker is ready. to acheive this use two queus and multiprocessing Multiprocessing Queue in Python How to use multiprocessing queue in Python? this should be sufficient fro your needs if time(parse data)>>gather data

Categories : Python

User Management for Android
If you want to integrate with Elgg, have a look at it's web services API: http://docs.elgg.org/wiki/Web_Services You can use existing plugins to implement part of the logic on the backend side: https://github.com/Tachyon/Elgg-Web-Services For more detailed support, seek help at Elgg community discussion forums

Categories : Android

Multithreading management in Perl
The usual method for terminating a thread is to return EXPR from the entry point function with the appropriate return value(s). The join function waits for this return value, and clean up the thread. So, in my opinion your code is fine. Another way to exit a thread is this: threads->exit(status); Also, you can get a list of joinable threads with: threads->list(threads::joinable);

Categories : Multithreading

I am having a requirement in Session Management OAM
You can use HttpSession for this. If user session already exists or not? Check that session is null or not. request.getSession() != null If user clicks on old session, then user will be logged out from current session and can continue old session. Use: request.getSession(false); 3) If user clicks on new session, then user old session will be terminated and continues with new session. Use: session.invalidate(); and request.getSession();

Categories : Java

Memory management using placement new
If your data types are variable length you are better using the standard heap for memory management. The standard heap is highly optimized for this use-case. Using a memory pool generally only becomes useful when you are consistently allocating objects of the same size. It then becomes easy to divide your pool into equal sized cells are perform optimizations like free-lists that the system heap is unable to do.

Categories : C++

Data management in MMORPG
MMO's are not easy programs to develop. It sometimes takes experienced teams years to develop one, and the questions you ask here don't seem to indicate you are a very experienced programmer. Having said that, I would suggest taking a look here: http://slick.ninjacave.com/ http://www.13thmonkey.org/~boris/jgame/ These resources might be good starting points and get you up to speed quickly, but I'd suggest looking for a good tutorial on how to sync client/server data, en get a bit up to speed on programming Java in general.

Categories : Java

SCons, multithreading, management
You can use SideEffect. def MyFunc(env, param): run_ret = env.Command(... external command using param ...) # ensure that no unit tests are run in parallel env.SideEffect('#/GLOABL_LOCK', run_ret) Then AddMethod MyFunc to your environment. The SideEffect ensures that the different calls to the Command won't be simultaneous.

Categories : Python

Handlebars Template Management
If you're using require.js, you can rely on the text or one of the handlebars template loader plugin. If you're not very much into AMD (you should - but), then you could add precompilation to your build process via tools like grunt-contrib-handlebars. These advice are mostly generic, you can checkout how we manage inlining templates over on the Backbone-Boilerplate

Categories : Javascript

MVC Uploading,File Management
Are you debugging the application with IIS? If yes then the default application pool will be used and it will not have full permission to manage file system on desired location. The better way you should create app-pool with account to whom you can provide appropriate file management permission.

Categories : Asp Net Mvc

Git local repository management
You can think about a git repository in one of 2 ways: If you think of it as a git owned / controlled repository then you might want to add other repositories to it. These are called submodules. It's a way of including one repository's contents into another. Read enter link description here. Doing this means that everything will be under a single folder and if you clone the repository you'll get everything required for the project. If you think of it as just a folder of stuff that Xcode uses then there is no reason that Xcode needs to refer to only one folder. You can have multiple repositories cloned to different locations on your machine and files from each of them included in your project. In some ways this is simpler than submodules, but it limits you to always having each of the rep

Categories : Iphone

Open GL ES memory management
Simply use gles glDeleteTextures If you run out of memory you will gen GL_OUT_OF_MEMORY error probably. Another thing is to monitor memory usage in Android. android memory: How to discover memory usage of my application in Android See here an interesting question for opengl: how to manage memory with texture in opengl?

Categories : Android

identity management in cloud
An app being deployed to the cloud has little to do with identity federation or identity as a service. You could very well use Forms authentication on a cloud service. The question is whether you want to make your app responsible for authenticating users or not. If you choose not to (which is likely a good thing), then you need to rely on a mechanism to outsource identity. The techniques to do this are referred to as "claims based identity", "identity federation", among others, and involve a number of protocols (e.g. SAML, SAML-P, WS-Federation, OAuth). These depend on the systems you want to use for authenticating users: SAML/WS-Fed are typically used for enterprises (using AD for example) OAuth is mostly used by consumer oriented systems (e.g. Facebook, etc). So, depending on where

Categories : Misc

database management for images
It used to be that filesystem performance would deteriorate if there were too many files in a directory, so the common wisdom was to limit to ~1,000 items in any directory. Try creating a directory structure around the item_id (padded), so #1002003 might be 001002003, which could be found in 001/002/001002003.jpg. Since you're storing more than one image per item, you might have one more level, e.g. 001/002/003/001002003_1.jpg. Use the full ID as the item's name in the final directory (001002003.jpg, not 003.jpg). It'll come in handy later. Hope that helps.

Categories : PHP

chrome.management.get not working
Most of the methods provided by chrome don't return a value, instead they take a callback function as a parameter, and call that function with the wanted result. You should replace your code by chrome.management.get(id, function(ex) { console.log("Checking",ex,"-",id); if(!ex.enabled){ Notify("Extension reloaded!",ex.name+" was found crashed, and reloaded!"); chrome.management.setEnabled(id,true); } }); See http://developer.chrome.com/extensions/management.html#method-get for details.

Categories : Javascript

AngularJS: Dependency Management
I suggest to use the same organization as ng-boilerplate: https://github.com/joshdmiller/ng-boilerplate I use an organization close to ng-boilerplat for one project and it allowed us to be modular in our dependency management.

Categories : Javascript

Media queries management
Please add following meta tag : <meta name="viewport" content="width=device-width, initial-scale=1.0"> For media query details you can more info from http://stephen.io/mediaqueries/ for all iOS devices. If you have any other query let me know. Even you can get better idea from here http://webdesignerwall.com/tutorials/responsive-design-in-3-steps

Categories : CSS

playframework: model management
Model generation By default, Play tracks your database evolutions using several evolutions script. These scripts are written in plain old SQL and should be located in the conf/evolutions/{database name} directory of your application. How to migrate? Each script contains two parts: The Ups part the describe the required transformations. The Downs part that describe how to revert them. Here's a link: http://www.playframework.com/documentation/2.0/Evolutions To answer your question: Which directory is recommended/convention for play models definition? Here's the recommended play project layout: app → Application sources └ assets → Compiled asset sources └ stylesheets → Typically LESS CSS sources └ javascripts →

Categories : Java

wso2 key management functionality
I have had a few positive responses to the proposal, so I have created a JIRA feature request: https://wso2.org/jira/browse/CARBON-14173

Categories : Wso2

PHP Inventory Management Registration
It is not good practice to create a table for each user. Have an extra field in the orders table to denote the user who placed the order. Table definition like this, UserId,ItemNumber, Quantity Insert Query $sql = "INSERT INTO `orders` (UserId,ItemNumber, Quantity) VALUES ('<UserId goes here from session data>','".$_POST['ItemNumber']."', '".$_POST['Quantity']."' )";

Categories : PHP

obj c class memory management
If I have a large number of objects, will the fact I have these defaults instantiated in every object (they may go unused in some objects) seriously affect the app's performance? It depends on the size of these properties and whether the frameworks internally cache instances. What you could do in your case is to keep defaults in variables with static storage duration and have your properties point to those variables when an instance is initialised. In this case, if those properties aren’t changed after initialisation then they all point to the same objects. For example: // ARKGraphicsView.m static UIColor *_ARKGraphicsViewDefaultForegroundColour = nil; static UIColor *_ARKGraphicsViewDefaultBackgroundColour = nil; static UIColor *_ARKGraphicsViewDefaultBorderColour = nil; @imple

Categories : Objective C

Memory Management Design
Can my first idea be improved upon in a meaningful way? Hard to say without knowing more about the nature of the work being undertaken. For example, you haven't said anything about your use of threads, but it seems your design gives equal priority to all the possible updates by cycling through things in a set sequence. For some things where low latency is important, or there's some useful prioritorisation that would ideally be done, a looping sequence like that isn't good, while other times it's ideal. There are other ways to coordinate the Component-driven removal of Entities from the Program: return codes could bubble up to the loop over entities, triggering an erase from the container of Entities, an Observer pattern or lambda/std::function could allow the Program to specify c

Categories : C++

Responsive JavaScript management
I don't recommend supplying different forms of JavaScript up depending on whether you're on a phone or desktop etc, it can become a maintenance nightmare and not really what responsive is about, you might as well have a separate site for mobile in that case. However, using Bootstrap you could apply the responsive classes to your elements then using jQuery you can look for and select on those classes. This means you're providing the same JavaScript files up but making them a little more intelligent when dealing with the elements they need to, for example: <div class="visible-phone"> </div> <div class="visible-desktop"> </div> <script type="text/javascript"> $('.visible-phone').length > 0) { // Do phone stuff } $('.visible-desktop').length > 0) {

Categories : Javascript

Manual transaction management in DBD::Pg
My understanding is that if I want to manually manage transactions, I should turn off AutoCommit. No, quite the opposite. Setting AutoCommit to 0 starts a transaction, so you want to set it to 1. To have your changes committed automatically is to have the database not use transactions, which is exactly what you want.

Categories : Perl

Location management and the new apis
the new version which uses Googles new low energy consumption location tracking. I would phrase it as "lower", not "low". Are there any downsides to using it? It introduces a dependency upon Play Services, which means that your app cannot be used on devices that lack it, such as the Kindle Fire.

Categories : Android

CMS for Event Management website
A decent open source cms I use is Umbraco because it's not that difficult to use and there is plenty of resources to help you get started. If you're willing to pay then I would recommend Ektron but again that is just my opinion.

Categories : Asp Net

IOS - memory management pointers
You don't need to write any cleanup code, ARC will take care of releasing the memory. ARC will automatically put the code to decrement the reference count for variables defined as strong properties. I would recommend you think in terms of reference count for a variable to understand the memory management. ARC will automatically insert the statements to decrement the reference count at proper places. Lets consider two scenarios for your example: Scenario 1 No other class has a variable referencing class A's someVariable: when class A reference counts becomes 0 then you can be sure that ARC has put the code to make someVariable reference count 0 (in class A's dealloc). Scenario 2 Another variable (say in Class C) that is referencing Class A's someVariable then reference count of some

Categories : IOS

Httpsession management in springMVC
@SessionAttributes doesn't fully replaces the traditional HttpServlet session management. Use it if two or more Controller methods need to communicate some data. But, using this we can only achieve communication within single controller class. You do not use to read and write from and to the session explicitly if you are using @SessionAttributes. Usage of @SessionAttributes is suggested only for short lived communications. If you need to store long term data in session, it is suggested to use session.setAttribute and session.getAttribute explicitly, instead of @SessionAttributes. For more information check this out.

Categories : Java



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