w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
is there software for jar file copy protection, or licensing software
Copy protection can't prevent your file to be copied but you can make it fail when it is run on unlicensed machines. Selection of a copy protection mechanism is a matter of budget and time. There are many companies with many products. You can go with not yet cracked technologies like iLok etc. This is applicable for very high revenue cases. But if your target audience is less than 1000 people then a simple in-house solution might work. Consequence of a complex method is typically many calls to support line and unhappy customers. Things got a lot easier after clients are all connected to internet. You can make some simple parts to run on server which a cracker would never dive into for a replacement. Or the app might download the contents from server after installation. Latter is what I d

Categories : Misc

Myrrix recommend vs recommendToAnonymous
They are nearly identical in speed. The 'anonymous' method has to form a temporary user vector, which takes time proportional to the # of items passed, but this is quite fast. Neither uses any significant memory. The problem with always using the anonymous method is that you would have no data actually in your model then!

Categories : Misc

Why do people recommend against using Amazon RDS?
The only thing that you would give up by using RDS, are the logs, unfortunately RDS doesn't provide a full set of logs which sometimes are vital for debugging. If you can live without them and you have a strong testing before going to production then RDS is the way to go.

Categories : Mysql

Easeljs, is it a recommend way to fix the size of container?
Consider a container as a group of objects, not a physical container. Containers give you the ability to transform, translate, cache, and otherwise control multiple items as a single item. They do not really have a physical size, except that of their collective children. There is no width or height mainly due to the cost of calculating the size, especially considering transformations, sub-containers, etc. There may be support added in the future for width/height, but for now its not available.

Categories : HTML

Recommend ways for passing configuration to modules
One solution could be using something like nconf and rely on it to load the right files at the right time. Particularly in your case, I'd go by creating a conf folder in the root of your project with a default.json configuration file. You can then create a global configuration.js that leverages nconf and the newly created file: var nconf = require("nconf") , path = require("path") , environment; nconf.argv().env("_"); environment = nconf.get("NODE:ENV") || "development"; nconf.file("default", path.resolve("config/default.json")); module.exports = nconf.get From the other modules that require the some configuration, you can simply use: var conf = require('configuration.js') conf('NODE_ENV') // print NODE_ENV But it sounds like it's very similar to what you DON't want. The othe

Categories : Node Js

Why does sinatra nginx recipe recommend only 1 worker?
It probably doesn't have anything to do with the relationship between the two, just the fact that whoever wrote the tutorial was using a single processor machine (usually you assign one worker process per core with Nginx).

Categories : Nginx

Recommend an approach for 'modeling' localized strings for the view?
Using auto-generated resource accessor class (Running PublicResXFileCodeGenerator at compile time) and simply rendering strings in a view using whatever rending engine you prefer is simple and straightforward version. Razor sample below: @* assuming CurrentUICulture is set correctly for whole request *@ <span>@Resource.DirectionsTitle</span> If you need to pass localized strings to JavaScript - rendering in a view in script tag is possible option (don't forget proper encoding).

Categories : C#

would you recommend using assembly to access arguments in this exceptional case?
No, I would not. Calling conventions may vary (between x86 and x86_64); Parameters could be pushed to the stack or put into register, and I'm not sure you can know for sure where they'll be. Writing this in assembly, unless you really know what you're doing is likely to lead to undefined behavior code.

Categories : C++

using PHP to recommend products based on the current view item
Assuming you have your data set up as such. items: +----+-------------+------+ | id | category_id | name | +----+-------------+------+ categories: +----+------+ | id | name | +----+------+ You could use select * from items left join categories on categories.id = items.id where item.category_id = $category_id limit 4 this will pull 4 items from the same category as whatever $category_id is set to. thats as good an answer as i can give with the data you've given.

Categories : PHP

Get software's information in WiX from software
The WiX.chm documents all the standard binder variables at the bottom of the topic titled Linker (light). It does not appear the those pieces of information are available. However, it might be something you could work with the WiX toolset community with to get the code added.

Categories : Wix

how to recommend other contents that created by a node author to a visitor in drupal 7?
Contextual filters in View is the easiest / most correct way to accomplish this task. You can create a view that defines a block and shows content of the type you are after. Then by adding a Contextual filter of "Author uid" and selecting the 'provide default value' bullet and choosing User ID from URL, then that block will display content created by that same user. I can offer you some screenshots if that would help. Views is most excellent at performing this task IMO

Categories : Drupal

Recommend data structure for snapshoted data
First question -- sure, at least in Perl you can use any string as a hash key. No limits. Next: evaluate the snapshots sequentially. At snapshot 1, just read everything into memory and assign a counter 0 to each item. Proceed to snapshot 2. At snapshot N, proceed as follows: Anything new is stored in the memory and assigned a count of 0. Anything that was already in memory is kept in the memory with an increased counter. Anything that is in the memory, but is no longer in the current snapshot gets filed to the output file. If you are worried about the size of the log files, instead of Perl's hash use an SQL database, for example SQLite via DBI.

Categories : Python

How to combine two multidimensional arrays with showing duplicate keys or if duplicate, must add the values
$array1 = array( 'a1' => array(200,300,300), 'a2' => array(100,600,200)); $array2 = array( 'a1' => array('gen','gen2','gen'), 'a2' => array('gen2','gen3','gen3')); $result = array('a1' => array(), 'a2' => array()); foreach($array2 as $k => $v) { foreach ($v as $k2 => $v2){ if (array_key_exists($v2, $result[$k])){ $result[$k][$v2] += $array1[$k][$k2]; } else { $result[$k][$v2] = $array1[$k][$k2]; } } } Output: Array ( [a1] => Array ( [gen] => 500 [gen2] => 300 ) [a2] => Array ( [gen2] => 100 [gen3] => 800 ) )

Categories : PHP

Hudson server running app engine, duplicate shell script executions result in duplicate property errors
It might be the case that the dev_appserver is already running and then you run it again with hudson job. The best way will be to stop the dev_appserver instance first and then pump it up again.

Categories : Python

The relationship between SAS software and SID
Both are possible. If your deployment package includes those products, then you might have them installed, even if they are not available per your license (SID file). That depends on what was selected at installation, and when the original deployment package was created. You (or whomever manages installations) could look at the deployment package in SAS Deployment Manager to find out. To answer the question I think you're asking, you could certainly have one deployment package that includes the modules, and use the appropriate SID file to only activate the desired products on the desired machine(s) while still using the same deployment package. You could also install with a SID file that does not contain them and then run a new SID that does contain them later, so long as your deploym

Categories : Sas

Best software installation kit for Mac OS X?
It might be rich, but it is not the OS X "style" - I have not seen any installer do that in ages. If you would like to do a tutorial or orientation, I would launch that after the installation business has been completed. BTW, full screen etc are also discouraged on Windows.

Categories : Osx

How can I get all the software link?
Because you only download the first page of content. Just use a loop to donwload all pages: import urllib import urlparse from bs4 import BeautifulSoup for i in xrange(3): url = "http://www.downloadcrew.com/?act=search&page=%d&cat=51" % i pageHtml = urllib.urlopen(url) soup = BeautifulSoup(pageHtml) for a in soup.select("div.productListingTitle a[href]"): try: print (a["href"]).encode("utf-8","replace") except: print "no link" if you do'nt know the count of pages, you can import urllib import urlparse from bs4 import BeautifulSoup i = 0 while 1: url = "http://www.downloadcrew.com/?act=search&page=%d&cat=51" % i pageHtml = urllib.urlopen(url) soup = BeautifulSoup(pageHtml) has_more = 0 for a

Categories : Python

Blogging software using Bootstrap on .NET?
Have you had a look at Orchard? It's a great .NET CMS, written in ASP.NET MVC 4. The development is active and the community is growing. It's also very pleasant to work with as far as theming goes. I authored a basic blog theme based on Bootstrap myself which you can download for free in the Orchard Gallery. There is also a plain Bootstrap Theme, which got updated just 12 days ago. I have never worked with BlogEngine.NET, but having worked with SharePoint for quite a while, I try to avoid WebForms at all cost.

Categories : Dotnet

PhpBB's automod like software for php
The reason that a system doesn't exist outside of phpBB is because it's an incredibly poor way to manage modifications. Your question does not make it clear what you want to gain from this, but since it is your own code, you should definitely not look to copy something so awful. For “patching” code If you want the ability to apply updates to your code, then you should look at handling it through version control. For instance, you could develop and test in a local git repository, and once you are happy, push the changes to the server. You have many options here from a basic update script to a fully-fledged Continuous Integration solution. phpBB have implemented a solution for patching code on your live site via a Web interface, which has many issues with security, verifiability and m

Categories : PHP

C++ software architecture and design
The inner class in C++ is not like it is in Pascal. It's just paled in the "namespace" of the outer class, but no other thing is changed. It sees only its own members, and the instance is unrelated to the outer one. If you want the relation, you must pass an instance of the outer somehow, say in the constructor. Then you can access members through that pointer or reference.

Categories : C++

Is This a Software Design Pattern?
This is a good thing because you can filter the inputs and outputs in a standard way. You can do validation and additional processing. You can also validate inputs so that the inner/virtual method can rely on certain conditions to be true. I usually use the suffix "Core" (GetBarCore).

Categories : C#

UDK Learning Help For A Software Engineer‏
In Unreal Development Kit as a Software Engineer you should know C++ , UnrealScript and Kismet. UDK Videos: Intro: UDK.com 3D Buzz Video Tutorials. UDK Kismet : 3dbuzz.com/training/view/unreal-development-kit/kismet. UnrealScript: 3dbuzz.com (unreal-tournament-2003-2004 unrealscript ). Books in Order of Importance 2013 : UnrealScript: Unreal Development Kit Programming with UnrealScript (Must Read Books)(Reading Order 4° ). UnrealScript: Unreal Development Kit Programming Cookbook (Reading Order 3° ). UDK Kismet : Mastering UDK Game Development (Reading Order 2° ). UDK Kismet : Unreal Development Kit Programming Game Design Cookbook (Reading Order 1° ). Documentation : UDK.com General programming with native code and UnrealScript. Total time 1 or 2 Year.

Categories : Misc

Internationalizing java software
Have a read of this trail as it should answer most of your questions. For web applications we use the standard facilities offered by JavaEE. That essentially means passing a message bundle into a JSF page and then using mark up that looks like this #{msg.hello} in the page. "msg" is the name of the message bundle and "hello" is the key that will be used to look up the translated string. The translations are all held in properties files which have a standardized format and naming convention. The process works in much the same way for client applications although I don't feel it's quite as smooth As I understand it professional translators have software that will load properties files and assist them in producing the translations. Adding comments to your properties files is useful so th

Categories : Java

Card emulation via software NFC
2) Card emulation by software should definitely be possible, but not exposed in current Android APIs. You will have to dig deeper into the libnfc-nxp (and possibly below). This might be a difficult one though. This feature is offered on Inside Secure's chips, as shown in their OpenNFC reference implementation. The only question is whether it requires a CLF firmware change. If not, then you can hack it into a software image. The caveats are, however, that you will lack the following features : - security (an Android app is not as secure as a smartcard) - fast and predictable response times (well, depends how you code it probably) - card emulation running when phone is off I believe SEOS is based on ISO14443-4 and not Mifare. This means you would need a secure element to run it. 1) Not

Categories : Android

Can I tell which software generated a PDF file?
You can try opening the file in Adobe Read and look at the properties. You can find this in: File -> Properties in Adobe Reader after you open the pdf file.

Categories : Pdf

Making a software setup for Mac OS
OS X applications are usually distributed as self contained app bundles that don't require an installer. It seems that Mono provides a package maker that help to create .app bundles from Mono projects: http://www.mono-project.com/MonoMacPackager

Categories : Osx

Implementing SSE 4.2's CRC32C in software
Here are both software and hardware versions of CRC-32C. The software version is optimized to process eight bytes at a time. The hardware version is optimized to run three crc32q instructions effectively in parallel on a single core, since the throughput of that instruction is one cycle, but the latency is three cycles. /* crc32c.c -- compute CRC-32C using the Intel crc32 instruction * Copyright (C) 2013 Mark Adler * Version 1.1 1 Aug 2013 Mark Adler */ /* This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it f

Categories : C++

tfs preview and software licenses
I'm going to assume you're using the hosted build controller. If so, you can't install software on those machines as they use standard base images and are reset after each build. Any builds where you want/need custom software installed are best done using your own build server, either with an on premise machine or an IAAS VM in Azure. For reference the software included on the hosted build servers is listed here.

Categories : Tfs

Installing a software using Makefile
You need to compile to an object file using the -c switch for gcc. This performs compilation but does not link your program, meaning that you can have a reference (such as the someFunctionDefinedInX) which is not yet resolved. Later, when you need to perform final compilation and link in that reference, use gcc myFirstUnlinkedObj.o mySecondUnlinkedObj.o. This will look at all of the object files, find all of the undefined references, and look them up in the other object (or source, if any) files. It then links them all together in your final executable. You can find a good explanation of what an object file is in this question. A makefile which could perform these steps for you could look like this (minus your install target): x-as-func.o: gcc -c x-as-func.c my-exe-file: x-as-fu

Categories : C

Testing software on windows 8
Use non-OEM version. As a person that is actively involved with development of paravirtualized drivers for Windows VMs and their certification with MS I think your IT department is not doing a good job.

Categories : Testing

Software sales errors
You need to declare the variable Sales. For example: int Sales = 99; The loss-of-precision errors are because you are assigning float values to int variables. While this is sometimes treated as a warning, it usually indicates an error and requires either declaring the proper variable types or using an explicit cast. Possibly you should declare the variables to be float. Alternatively, do all the calculations in integer cent values and avoid potential round-off errors. Not that you asked about this, but Java naming conventions are for variables to be camel case and start with a lower-case letter: sales instead of Sales (and totalSales instead of TotalSales, if you had such a variable name).

Categories : Java

PLC Program Reference Software
I was wondering, because ages ago I developed PLC software and even then (end of the 80s) our programming software had a pretty decent cross reference generator on board, so with access to whatever programming console your PLC vendor uses you can probably generate cross reference listings and annotated versions of the software. But especially with older machines the quest for a programming console can be nearly impossible. As a plan B option, but one that still beats " unstructured" digitizing, and if the code is really basic ladder, without too much " function blocks" as our PLC vendor calls them, the Soapbox Snap open source ladder editor might be a tool you could use to document your code? As it's open source written in a popular up to date language (C#) it can probably even be exten

Categories : Misc

WPF 4+ software rendering still an issue?
This list is still accurate. This is covered on MSDN's page regarding Graphics Rendering Tiers. The second labeled as "The following features and capabilities are not hardware accelerated:" lists the specific criteria that can cause non-accellerated rendering in WPF. This includes: TileBrush Content rendered via RenderTargetBitmap Any printed output Surfaces exceeding the graphics hardware's maximum texture size Layered windows on Windows XP.

Categories : Wpf

How to add menu button on the software keyboard
For starters, you will get a lot of people telling you here that this is a bad idea, and an old UI pattern. They are right... Here is my answer on a related question - and also lots of other opinions on the topic (some quite amusing): Show options menu button on Galaxy Nexus (Android 4.1) I particularly enjoy Compatibility Menu of Shame reference from @nicopico's answer. Please consider if you really want it - only use in extreme cases, like maybe your client is insisting. Otherwise avoid this pattern. You can set your build target to a version before ICS (i.e. up to and including API 13 / HoneyComb 3.2). <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="13" /> That will get the system to use a compatibility mode setting that inserts an overflow icon i

Categories : Android

Analytics software for responsive website
We've used Mixpanel and Heap. Heap is newer but you don't have to be as precise when you mark up your pages. It just captures all the browser events and you have to dig in a bit to figure out which ones signify interesting events. Mixpanel takes a bit more markup behind the scenes. I don't think it has some of the equivalent reports that ClickTale does (like the heatmap).

Categories : Testing

Updating own software in Program Files
He says its "extremely bad practice" to fiddle with your system so that normal users can write in "Program Files". If your program is in "Program Files" it's installed with System Admin rights. So updates need also be installed with System Admin rights. You can configure InnoSetup to request admin-rights so you can write to "Program Files" but if the 3rd party component does not do this its best to install everything in an other directory. i.e. C:Your_Program That way your 3rd party component can write there.

Categories : Delphi

Audio Recording/Mixer Software
As you've discovered, you are entering a world of pain. If you're really building audio software for Windows XP and expect low latency, you'll definitely want to avoid any audio API provided by the operating system, and do as almost all commercial software does and use ASIO. Whilst things got better, ASIO isn't going anyway any time soon. To ease you pain considerably, I would recommend having a look at Juce, which is a cross-platform framework for building both audio host software and plugins. It's been used to build many commercial products. They've got many of the really nasty architectural hazards covered, and it comes with examples of both host applications and plug-ins to play with.

Categories : C++

Software for testing responsive emails
You could always install the windows phone developer tools and set up an email account in the emulator. You propably only have to test wp8 with different resolutions which can also be done there.

Categories : Email

Mean vectors per type in a matrix in R software
DF <- read.table(text=" V1 V2 V3 V4 V5 type 1 1 76 7 8 54 a 2 2 67 7 8 57 a 3 3 67 5757 7557 6867 a 4 43 4 57 79 85 b 5 56 4 76 79 6 c 6 54 1 76 7 8 c", header=TRUE) aggregate(.~type, data=DF, mean) # type V1 V2 V3 V4 V5 #1 a 2 70.0 1923.667 2524.333 2326 #2 b 43 4.0 57.000 79.000 85 #3 c 55 2.5 76.000 43.000 7

Categories : R

How to check the version of our software from a browser?
In MaVRoSCy's comment above: "only in IE this is possible with some ActiveX help, except if you run a dedicated local server just to serve this functionality". This actually fits perfectly, because each client computer already has a Windows Service running in the background at all times. A simple HTTP server can be added into this client service listening on a universal non-common port number such as 16580. This HTTP server can handle requests like /currentversion which returns the current application version. The javascript on the web page (hosted elsewhere but viewed on that client's browser) calls to obtain the latest version.

Categories : Javascript

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