w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
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

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

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

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

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

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

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

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

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

Do any standards and practices exist for applying acceptance test driven development to non-development tasks?
Take a look at this post in StackExchange: Agile methodologies such as Scrum in non-software development projects Also there is a nice article called "Scrum is not just for software" written by the Agile Alliance (note that this is a PDF download)

Categories : Misc

Resolution on my laptop and pc for my program
Instead of Windows Forms, you should use WPF, it solve that kind of issue. Look at Resolution independent or monitor size independent WPF apps. You can with VS'12 create WPF UI with C++/CLI it can provide an easy integration of your C++ native code.

Categories : C++

How to host server from laptop?
connect to 127.0.0.1 instead of your public ip. 127.0.0.1 is called localhost, and always points to your own machine. That way it doesn't matter if any NAT routing firewalls or anonymous proxy servers are hiding your local network IP from whatismyipaddress.com

Categories : Python

How can i redirect my laptop mic to gsm modem input..?
It is not that easy. You see, the modem hardware in a laptop is not connected to the audio system in any way. So there is no physical way to route the output of the sound chip to the telephone line connected to the modem. However, some modems support a AT+VTX command that allows you to send uncompressed, 8-bits sampled audio at 8 kHz. That should let you do what you want to achieve. Wikipedia explains the basics of this approach nicely.

Categories : Java

Emulating an XBox 360 controller from (not for, from) a laptop
If you have access to a development console and the SDK I could help you out, the task is essentially impossible with a retail console and your laptop or xbox would require some hardware modifications to work properly, unless you want to connect via a USB. It might be more plausible then. Regardless, if you have access to the proper software I might be able to lend you a hand.

Categories : C#

USB transfer speed between tablets and laptop
if your using a USB hub from you Mac it will slow down but not by much. Its because you will be using more bandwidth of the USB XHCI Host Controller. So the devices needs to split speeds to how ever many locations you are copying to and files copying concurrently. Also the CPU needs to work slightly harder therefore slowing down other processes. However on ADB the difference is negligible. You will not be able to tell I'm pretty sure this is the case anyways

Categories : Android

Viewport userscalable for laptop/desktop
The viewport meta tag doesn't affect desktop browsers. It is purely for targeting mobile browsers. You can use the following CSS to try and prevent text zooming in desktop browsers: <style type="text/css"> -webkit-text-size-adjust:none; -ms-text-size-adjust:none; -moz-text-size-adjust:none; text-size-adjust:none; </style> However, this is experimental only and widely unsupported; See Moz Developer Network:https://developer.mozilla.org/en-US/docs/Web/CSS/text-size-adjust Personally, I think that preventing a user from zooming in a browser will lead to awful accessibility. Some users need to zoom in to consume content on the web. If you're interested in creating a webpage that functions correctly and is still accessible, check out the W3 accessibility guidelines: http://www

Categories : HTML

AS3 slow webcam with 1080p on i3 laptop
The simple truth is that Flash's performance is not good enough for realtime video applications. Maybe lag would be better if you could attach your webcam to StageVideo (GPU decoding) instead of using the old Video class. Or you could simply lower the resolution... If you want to develop realtime video applications you should take a look at Cinder, or OpenFrameworks instead. Both use C++ and performance is amazing. I have personally done projects involving 4k video on multiple monitors with Cinder. Another option would be using Max MSP, much more powerful than Flash in terms of video performance, and you program visually using nodes and boxes.

Categories : Actionscript

sending data from PIC to laptop via bluetooth
You can use two HC-05 Serial Port Bluetooth Module. You can find a lot of tutorials like this explaining how to deal with them.

Categories : Windows

Java Robot class working in laptop but not pc
Surely the simple answer to this is not to cheat at games? Try adding e.printStackTrace() to your catch block and look to see if there are errors on the pc version and not on the laptop.

Categories : Java

Algorithm for touch detection on laptop touchpads?
I am not touchpad expert, but here a some ideas: Pressed keyboard keys shortly before and after touchpad (TP) event; Series of events starting from tapping, (not moving); If TP is capable to tell area of touching: big area is touched (palm, not a finger);

Categories : Algorithm

Setting up Java compiler on Windows laptop
It looks correct. Did you restart the Command prompt every time you changed the PATH variable ? Also there's supposed to be only one path variable, so you're supposed to edit the existing one, entries are separated by a semi-colon (;).

Categories : Java

W3C geolocation API's watchPosition isn't working on GPS-equipped laptop when offline
I had this same problem using a Getac laptop with a gps chip. I extensively tested Chrome 33.0.1750.117, Firefox 27.0.1, IE 11.0.9600.16518 and Opera 20.0 and found that none of them use the local GPS chip. All of them instead call out to either Google or MS's location api. I guess this is because the browser implementors assumed that desktop operating systems like Windows and OSX do not have local GPS chips accessible to them. If they do not have an Internet connection, they cannot get their location. On iOS and Android, they made a different choice in their browser implementations and do in fact use the local GPS. The only solution I found for the laptop/desktop use case if you want get results from the local GPS chip is to integrate with it directly using GpsGate, which is a program y

Categories : Google Chrome

I'm not able to get any Linux Distro work on my Samsugn laptop. Any suggestions?
If the hardware support for your laptop is not great on any Linux distribution, you can try out virtualization (vmware, virtual box, ...). With help of this software you install your favourite Linux distribution in a 'virtual machine' and can use it from within Windows.

Categories : Linux

Can I run an app on a real device (iPhone) from a laptop (mac) with Appium - WebDriver?
The absolute path is a filepath to an application on your Mac that Appium will grab and install before starting the test you are trying to run. Currently the way that people are making this work for getting Mobile Safari open is using an absolute path to a program like SafariLauncher which opens Mobile Safari for you. After that happens you can retrieve the window handle of the webview within Safari and start running normal WebDriver commands. This workaround is discussed at length here. I can confirm that it works, but the timing of all these components working together is a bit janky, speaking from my testing experience. For reference, I believe these are the capabilities that I used to get myself up and running. capabilities.setPlatform(Platform.valueOf("MAC")); capabilities.setBrows

Categories : Java

Connect local rails app on my laptop to heroku database
Try something like this production: adapter: postgresql encoding: utf8 database: DB_NAME_FROM_HEROKU username: USERNAME_FROM_HEROKU password: PASSWORD_FROM_HEROKU host: HOSTNAME_FROM_HEROKU # something like ec2-xxx-xx-xxx-xxxx.compute-1.amazonaws.com sslmode: require to get the values, you need to run the following command $ heroku pg:credentials DATABASE Then start your app in production env $ rails s -e production Since the database is hosted on the internet, expect lot of latency & general lack of responsiveness when working with running on local machine connected to database in the cloud. PS: Ensure schema version of your local app matches exactly with remote database on heroku. Otherwise, there is a chance of dataloss when running migrations

Categories : Ruby On Rails

Thermal Printer - Laptop via FTDI Basic Board and C#
It looks to me like your wiring might not be correct. TX (transmit) on the FTDI board should be connected to RX (receive) on the printer. Likewise, RX (receive) on the FTDI board should be connected to TX (transmit) on the printer. See this tutorial for an example with further explanation: https://www.sparkfun.com/tutorials/224

Categories : C#

using QT process to get sensor information from the laptop using command line
process->start("sensors | grep "Core""); The problem here is that the start function takes the first parameter as the program to execute and then passes subsequent parameters to the program as arguments, so the | grep and "Core" are being passed to the sensors command, which is then complaining because it doesn't know what to do with those arguments. One way to solve this is to call sensors and get the returned information with readAllStandardOutput(). You can then either use the Qt string functions to search for the information you want, or if you set the standard output file with setStandardOutputFile, you can then call QProcess with grep on the that file. (Note QTemporaryFile may be of use here). However, the simplest way would be to create a small command line script that calls

Categories : C++

Android mobile not detecting wireless network created on my laptop
Ad Hoc networks are not supported natively by Android devices, unless you get your device rooted and make some tricks in the underlying linux system. There are a lot of pages talking about that: http://dev.gadgeticworld.com/how-to-connect-android-devices-to-adhoc-network/ http://www.pcadvisor.co.uk/how-to/google-android/3372947/connect-android-phone-ad-hoc-network/ http://code.google.com/p/adhoc-on-android/ You can try this at your risk: http://www.arenddeboer.com/wifi-ad-hoc-enabler-for-android

Categories : Android

Copied my asp.net project folder to open it in my laptop, and css stoped working
I think one common mistake is having mismatching paths when you copy from one machine to another (at least in my workarea it is!) did you double check the paths to your CSS in code and filesystem? if the ASP.Net engine cant find the files it wont be able to use them.

Categories : Asp Net

Once SSHd into my windows laptop, Putty doesn't recognize python
Figured it out. I found this link: http://cs.nyu.edu/~yap/prog/cygwin/FAQs.html#bashrc which really helped. I went to the /usr/bin folder, then typed ln -s /cygdrive/c/Python27/python.exe and now I can type "python myfile.py" when ssh'd through PuTTY and it works!

Categories : Python

Why multi-touch events using touchpad (laptop) is not working in this Qt program?
To make touch events work add the following to your MainWindow: MyWidget *myWidget = ...; setCentralWidget(myWidget); In the MyWidget constructor add: setAttribute(Qt::WA_AcceptTouchEvents); //grabGesture(Qt::PinchGesture); //setAttribute(Qt::WA_InputMethodEnabled); //setFocusPolicy(Qt::WheelFocus); setAttribute(Qt::WA_StaticContents);

Categories : Qt

i am trying to make an ajax request from my phonegap app to servlet running on my laptop,
Are you using 127.0.0.1 or localhost for your IP? If so, you will need to use the actual IP of your machine when testing the app. This is because when you load the app into a device or simulator, 127.0.0.1 will resolve to the actual device or emulator itself, not your machine. (If using Android emulator, you can use 10.0.2.2 to get to your localhost on the machine, see http://developer.android.com/tools/devices/emulator.html#emulatornetworking).

Categories : Ajax

Android Socket doesn't connect to laptop server - but local Java program can
Oh boy this is silly and embarrassing. Basically I was using the wrong IP address (192.168....). In Windows, use ipconfig (Linux: ifconfig), and choose the IP address corresponding to Wireless LAN (wlan). I was using another IP address corresponding to a virtual machine or some crap. Hope this helps someone else in the future, I hate these kind of issues.

Categories : Java

Will developing a PhoneGap/Cordova iPhone app on an old XCode IDE+laptop affect my App Market sales?
The version of the OS and machine you are developing on is irrelevant to app downloads. The person downloading the app never sees this information. The marketplaces don't store this information.

Categories : Android



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