w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to determine if a Perl module is cross-platform?
CPAN offers an array of tools you can use to determine the usefulness of a module before installing it. Unfortunately, IO::Compress::Gzip is a suboptimal example of how this can go. When you visit the metacpan page of a module, there is a list of tools in the left column. The interesting points are Test Results: This takes you to a page where the results of the test suite on different OSes and different perl versions are shown. Unfortunately, this service doesn't respond to my requests at the time of writing. Bugs: This is a link to the bugtracker for this module. You can browse the list of open bugs to find possible dealbrakers. And if you find an issue, you can report it here. Reviews: Some modules have short reviews and ratings by the Perl community. The module you mentioned doesn't

Categories : Perl

How to identify the platform between facebook app canvas / website using PHP
I have changed my code after some Stack Overflow question reviews <script> //if a user is coming from //facebook or directly from the site. function platformAuthentication(){ var platform = "fb_platform"; if(window.self === window.top) { platform = "web_platform"; $("#platform_key").val(platform); $("#platform_form").submit(); }else{ platform = "fb_platform"; $("#platform_key").val(platform); $("#platform_form").submit(); } } setTimeout(platformAuthentication,500); </script> </head> <body> <!--hidden form for user tracking, if a user is coming from fb/direclty from the site --> <form id="platform_form" name="platform_form" method="post" target="iframe_platform" action="url">

Categories : PHP

Can Azure WebSite+SQL Database be used as platform for a WAMP app like Moodle?
Azure Web Sites are IIS on Windows. The SQL databases are MSSQL, but there is a MySQL option with ClearDB (though by default they'll only give you a 20MB database until you pay for extra room). Your biggest issue isn't getting Moodle running on Azure, though, but in storing your moodledata directory. You have 1GB of space on the 'C' drive, and that's it. Using a Storage Blob to expand that space is going to require you modifying Moodle pre-installation. In my view the only benefit of using Azure Web Sites over a VM is the automated scaling, letting you keep your costs down during low use periods. Since the data on 'C' isn't available to the other instances that are spun up, you can't make use of that feature. If you want a cheap, fire-up on demand, cloud hosted Moodle test-bed, though,

Categories : Azure

How do I determine what technology has been used for a website backend?
Taking a look at the client server communication I strongly believe that this is a well prepared composition of images, not an automated search. So there's definitely no need for MatLab here, just a database, jquery, some server side scripting and a hell lot of images. If you need live search of fabrics you might take a look at OpenCV (computer vision framework), TinEye (similar image search service), LIRE (library for sontent based image retrieval), etc.

Categories : Javascript

Not sure how I can determine my ASP.NET website domain and port, programatically
I don't think there is a sure way to do this: IIS can map a number of ips, hostnames and ports to a web application Each request can be bound to a different one You probably need to do one of these things: change your code so the binding is only needed when you have a request and not at application start if you know the correct value before hand , you can set it by storing it via a configuration key

Categories : C#

Access violation on reading location 0x33313032. when build the project under x86 platform the ame works fine under 64bit platform
Number 0x33313032 is very suspicious. Those are actually letters "3" "1" "0" "2". Somewhere in your code you have those letters in the memory, and the code thinks that that part of memory is some pointer instead of those four letters, and is trying to reach where the pointer points, which is 0x33313032.

Categories : Dotnet

Cannot resolve unit name delphi xe4 with platform not same windows platform 64 bit
Go into the Project Options and make sure the correct Unit Scope Names are listed for the units you want to use (System, Vcl, Fmx, Winapi, etc). If they are, then make sure the search paths are configured correctly.

Categories : Delphi

What platform (server installed on ubuntu vs ubuntu server) to prefer for website development?
There seems to be a lot of confusion in your post. Based on your lack of experience with GNU/Linux, I would suggest you use desktop Ubuntu. The difference between Ubuntu server and Ubuntu desktop is that the server edition is targetted to experienced users, so you get a very minimal distribution. No GUI, nothing preinstalled except the bare minimum. As for your comment about Apache/Glassfish, the two aren't comparable. Apache is the name of the open source community which looks after a lot of products. Very often people call Apache's httpd just "apache", which is a web server. Glassfish is a Java EE application server (Oracle's reference implementation) so probably a good place to start with Java EE.

Categories : Apache

Cross Platform Platform
The MVC framework can definitely be used for mobile devices (when you say apps, I am assuming you mean websites that function as apps), and MVC 4 introduced significantly more support for mobile development, including things like templates (http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253809). MVC is a move to a less heavy handed framework than, for example, Webforms, and it should give you the flexibility to develop for any device. However, it does also open you up to coding yourself into some problems if you approach it in the wrong way, so make sure you are familiar with the framework before trying to develop some super next-gen responsive web app.

Categories : Asp Net Mvc

How to realize cross-domain security with iFrame custom website under the sharepoint website
It looks like there are no good news on that. Here is the best I could find: You can't use the advantage of SPContext. You can't even use the server object model because your application is in .net 4.0. For exemple, creating a new SPSite won't work. Only solutions : Call SharePoint WebServices from your ASP.NET MVC app Create WebServices hosted in SharePoint. (and call them from your app) source: http://sharepoint.stackexchange.com/questions/14986/integrating-asp-net-mvc-3-and-sharepoint

Categories : Asp Net Mvc

How can I make a website such that when a user enters any URL related to the website, it opens up the index page
If you want to prevent users to open pages directly except for the index, you can check the referer, and redirect to the index page if the referer doesn't match your website. Are you using Apache? If you are, you can use mod_rewrite to do this. First, enable mod_rewrite, usually by uncommenting the following line in the httpd.conf file: LoadModule rewrite_module modules/mod_rewrite.so Then create a .htaccess file in the same folder as index.html with the following content: RewriteEngine on RewriteRule ^index.html$ index.html [QSA,L] RewriteCond %{HTTP_REFERER} !^http://example.com/.*$ RewriteRule ^.*$ /index.html [R,L]

Categories : HTML

truested but still error The security certificate presented by this website was issued for a different website's address
the problem is users connect to server by ip and not the address.bcs site signed by previous admin i didn't know which address the certificate was issued for. so checked the cert address start>certmgr.msc found the certificate in detail tab, found subject property, in the attributes, the CN is showing the address of website: so i added the address of website into the dns and everything get fine.so users will need to connect to the website by "http:///" not "http://" **(if the certificate issued for contoso.com but users access to the site by ip this error will be shown)

Categories : Internet Explorer

Facebook login in from a third party static website then redirect to my rails app website
Facebook login on websites ties an app to one domain (or subdomains) - so using the same app for login from different domains will not work. (Although you could have the login button on the other sites link to your app page first, and then handle login there.)

Categories : Ruby On Rails

how to use .htacess file in our HTML website? for remove page extention from website
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^(.*)$ $1.html No need to add code in any page.Create .htacess file with above content & add file to the root folder of your site(for example, /home/domains/domain.com/htdocs/)

Categories : HTML

VBA: Attempting to access website, but website occasionally fails to load
You could try modifying the code to read Sub LoadWebsite() Dim iSecondCounter As Integer Static iAttempts As Integer iAttempts = iAttempts + 1 Set ie = CreateObject("InternetExplorer.Application") ie.Navigate "https://www.website.com/" Application.StatusBar = "https://www.website.com/ is loading. Please wait..." iSecondCounter = 0 Do While ie.Busy And iSecondCounter < 30 Application.Wait DateAdd("s", 1, Now) iSecondCounter = iSecondCounter + 1 Loop If iSecondCounter = 30 Then ie.Quit If iAttempts <= 3 Then Call LoadWebsite End If Set ie = Nothing End Sub

Categories : Excel

Designing mobile website from existing desktop website
If you just copied the code-behind files and didn't change the namespace or page class names, you'll get conflicts. It would probably be easiest to rename your namespaces in the mobile folder to include the word "mobile". Make sure you remember to change the code-behind reference in your aspx as well.

Categories : C#

Authenticate external website using previous logged on website asp.net
Install siteC which would be the Active Directory Federation Services 2 (ADFS2). Optionally switch it to Forms Authentication so that users will have to type their username and password from the Active Directory. ADFS2 is a free addon to Windows Server, you can download it from MSDN. From this moment, ADFS will be responsible for authenticating your users and passing this information to other sites. Your users authenticate only once, the very first time they log into one of your sites, A or B. Then, learn how federated authentication works, make minor changes to your sites A and B. There is a free ebook on that http://msdn.microsoft.com/en-us/library/ff423674.aspx

Categories : C#

WebAPI + Azure WebSite + Client WebSite + SSL - how many certs do I need?
You client web site is appname.azurewebsites.net. You have appname.com mapped to this. Your SSL certificate is for this domain. So, you will need to put the certificate with the client app. As an end user, if I go to appname.com, the certificate your application will present to my browser will be the one you purchased for appname.com. This is for the pages rendered by the client web application. Now, as the browser renders the page from the client web application, say it needs to make jQuery AJAX calls to your web API site appnameapi.azurewebsites.net. You can use a domain name for this one as well, some thing like api.appname.com but regardless, this will be a cross-origin call, BTW. If this call is also through HTTPS, then for this case also, a valid cert must be presented to the browse

Categories : Asp Net Mvc

website to pull data from another website and return it
This is a really expansive answer, to do this, you have to have a piece of software to read in an API from a live score site and display it. It cant be answered in one answer, to know more about APIs take this course. Hope that helps you, check the course syllabus (on the same page), there is a unit called How to Connect which will help you. Leave a comment to tell me if it helps or if i can do anything else to make it more helpful...

Categories : C#

Website within a website frame? (iframe hates me)
There's a frame HTML tag, but is deprecated under HTML5 and works almost the same as iframe. The only difference is that a frame divides the entire window and an iframe is an inline frame. So, no, the only way is using iframes. You have to correct your blog to work with iframes (If you want). If you don't own the iframed blog, then using iframes is not a good way to work because, for example, you don't know if they are going to add iframe breaker codes in the future, so the best way is to add a link to open in a new window/tab.

Categories : HTML

How to get the website logo path from the link of the website
In c# ASP.Net is simple ... you need to know the virtual path of that image ... bellow is a method that i used to save my barcode images that i ganerate into a web browser public void GetPhoto(string filePath) { WebClient fileReader = new WebClient(); fileReader.DownloadFile(filePath, Server.MapPath(string.Format("Image/someImage_{0}.jpg",txtBarCodeText.Text))); byte[] photo = null; string stream = Server.MapPath(string.Format("Image/someImage_{0}.jpg",txtBarCodeText.Text)); TextBox1.Text = stream.ToString(); } filePath need to look like this... http://www.website.com/image.jpg you can right click on web picture you want to get and look to properties to see it's path Gook luck ;)

Categories : PHP

Use a PHP form script from another website on a static website
It is possible, why not. Consider this example, located on domain A (updated the code and added method="post"): <html> <body> <form action="http://domainB.example.com/email.php" method="post"> <input name="data" value="test data" type="text" /> <input name="submit" value="submit" type="submit" /> </form> </body> </html> That form would be hosted on domain A and would be executing the php script on domain B. Now, consider that you have this php script on domain B: <?php if (!isset($_POST['submit'])){ echo 'ERROR'; else echo 'POST request received'; ?> Now, try accessing the page on the domain A, click the submit button and watch what happens (also note the address in your web browser, which will change too, after you p

Categories : PHP

Ruby: get the website data after logging into website
There are plenty of examples here mechanize example If you are looking at http authentication then a similar post is here basic-and-form-authentication-with-mechanize-ruby Use mechanize to make life easier.

Categories : Ruby On Rails

Create cookie of website without displaying the website
Make a pixel image using a script on the affiliate that sets a cookie. Include it in the footer using img tags. When the browser requests the image, it will set a cookie. More info on creating a pixel

Categories : PHP

Transfer Search Box From Old Website to New Website
It's still unclear as to what exactly you want, a right floated search bar with clear icon on input? I have created this fiddle for you, it replicates the behaviour of site you mentioned. http://jsfiddle.net/DP22Y/ HTML <div id="container"> <div id="utility">Utility</div><!-- --><div id="logo">Logo</div><!-- --><div id="search">LOGIN / REGISTER | CART (0) <span class="clearable"> <input class="data_field" type="text" name="search" placeholder="Search..."/> <span class="icon_clear">x</span> </span> </div> </div> CSS #container{ margin:0 auto; height:100px; width:80%; } #utility, #logo, #search{ box-sizing: border-box; col

Categories : HTML

Access to website/website correct?
You could data drive your test putting the URL and any other data that needs to change in different columns (ie fields) of the data source. It is quite valid to data drive with just one set of data.

Categories : Windows

How to login to another website from current website
There are multiple options to implement SSO for a .NET application. Check out the following tutorials online: Basics of Single Sign on, July 2012 http://www.codeproject.com/Articles/429166/Basics-of-Single-Sign-on-SSO GaryMcAllisterOnline: ASP.NET MVC 4, ADFS 2.0 and 3rd party STS integration (IdentityServer2), Jan 2013 http://garymcallisteronline.blogspot.com/2013/01/aspnet-mvc-4-adfs-20-and-3rd-party-sts.html The first one uses ASP.NET Web Forms, while the second one uses ASP.NET MVC4. If your requirements allow you to use a third-party solution, also consider OpenID. There's an open source library called DotNetOpenAuth. For further information, read MSDN blog post Integrate OpenAuth/OpenID with your existing ASP.NET application using Universal Providers. Hope this helps!

Categories : C#

Stripping content from a website to my website
YQL Solution First off, your XPath query is way too broad. Looking at the wiki page's source, I came up with this: //div[@id='mw-content-text']/table//table[@class='center'] Unfortunately, the table that you want doesn't have an ID on it, so selecting tables with a center class was the best I could do. This returns 5 different tables; you want the first one. I tried to use the "first element" predicate (table[@class='center'][1]), but that didn't seem to do anything. Notice that the XML in the <results> element is straight XHTML that you could dump into your page. (That's assuming that you're requesting the results as XML, not JSON) I found Yahoo's YQL Console really helpful. It allows you to fine tune your query before trying to incorporate it with Javascript to parse the resul

Categories : Javascript

Get website regex from a website link
This one should suit your needs: ^[^/]+(/.*)/[^/]+$ Visualization by Debuggex. The output your looking for is in the first captured group. Demo on RegExr.

Categories : Regex

Deploy MVC Website as an application into MVC website
I copied assemblies in the parent site that were being used by the child web application and it then worked. One more solution seems possible, if the child web application routes are ignored by parent site. Though I haven't tried it.

Categories : Asp Net

C# GUID for different platform
You can create a new solution / project platform for a 64-bit build and then define different GUID-s for the different platforms. You'll then build 2 DLL-s of your MMC snap-in: one for 32-bit platforms and one for 64-bit platforms. In Build->Configuration Manager create a new build platfom (for example x64) and then go to the Build in Project properties to define a new symbol for your x64 build target. This would be something like _WIN64. You can leave the Platform target dropdown as Any CPU, just make sure that the 64-bit MMC loads your _WIN64 build version. (I'm not familiar with how to set up MMC snap-ins so I don't know what this involves.) Once you do the above configuration steps, you can now pretty much duplicate your C++ code in C# to check for build target: #ifdef _WIN64 [Sn

Categories : C#

Platform.runLater
If ReceivedOrderListener is executed by multiple threads, then it looks like "check-then-act" race condition. -> ORDER1 comes to the listener T1 checks ordersIdMap.containsKey(ORDER1) it returs false T1 proceeds to do Platform.runLater to add the order -> ORDER1 comes to the listener again -> T2 checks ordersIdMap.containsKey(ORDER1) it returs false again now T1 proceeds to do ordersIdMap.put(ORDER1) -> T2 proceeds to do Platform.runLater to add the order again

Categories : Java

After migrating a website with MYSQL DB the website (PHP) displays an error. what does the error mean?
It appears you have changed PHP versions. Very likely that your Ubuntu 10.10 box was running PHP 5.2.x or PHP 5.3.x and now your Ubuntu 12.04 box is running PHP 5.4.x or PHP 5.5.x (low chance). You have two real solutions: Update your code (recommended) Go in line-by-line and update your code and correct the errors, you should be able to research those errors individually and use http://php.net/ as a resource. Downgrade your php/mysql version You can check your old PHP version on the Ubuntu 10.10 box by running the following command in terminal: php -v; then do the same command on your 12.04 box to see what you have upgraded to. There is plenty of documentation out there for changing PHP versions on Linux, so I empower you to do that research. You will also want to copy your php.ini

Categories : PHP

Notify android users of my website to install Android app from website?
Use this JavaScript code on the website to detect if the visitor is visiting through an Android phone: <script type="text/javascript"> if( /Android|iPhone|BlackBerry/i.test(navigator.userAgent) ) { var url=confirm("Would you like to download our mobile application?"); if (url==true) { var url = window.location.href = 'http://www.google.com'; url.show(); } else { } } </script> Or this PHP code: $ua = strtolower($_SERVER['HTTP_USER_AGENT']); if(stripos($ua,'android') !== false) { // && stripos($ua,'mobile') !== false) { // Android Device // Here you me popup a dialog with a link to your google play page }

Categories : Javascript

QOS for UDP on Linux or any other UNIX-like platform
If your network implements DiffServ, then you can use setsockopt() with IP_TOS to set the DiffServ code point (DSCP) on your packets to a suitable value. (Before DiffServ was specified, these bits were interpreted as Type of Service (TOS) and priority fields, hence the name.) Note that the UDP-based transport protocol (uTP) in modern BitTorrent implementations already behaves as if it had lower priority than "normal" traffic, and will back off when it senses congestion.

Categories : Linux

Swing Application on Win 8 Platform
use layouts for your Jframe. If you use IDE for design means the look and feel will change in another system. so use layout for your design. check this link click here You can use this layout in Windows XP then try it Windows8. This looks Will not change.

Categories : Java

Cross platform hashcode
Relying on Java's .hashCode() is not what you want here. If you want checksums, you have the choice of using, for instance, MD5, which is available in pretty much all languages, or SHA1, SHA256, SHA512 etc. Pick your poison!

Categories : Java

How to specify Mac platform in qmake (QtCreator)
You can detect Mac OS X this way: macx { SOURCES += hellomac.cpp } But to make the difference with Linux you would rather like to specify unix:!macx { SOURCES += hellolinux.cpp } macx: { SOURCES += hellomac.cpp }

Categories : Osx

Redis in windows platform
I think there is something wrong in your understanding : Do not be confused between where your application is hosted and where Redis server is hosted. As a separate (NoSql) Database Redis can be consumed by MANY client types. Check this : you could use Redis in C#, Ruby, C, PHP, Java... So your application could be written in any technology, you just have to connect to a Redis server. You're true, Redis is not directly supported on Windows but Microsoft has forked the project a few month ago. The git is available here. Even if it's not production-ready, it's a valid solution for dev environment. The good question is : does your application could be run on multiple environnements, Windows and/or Linux ? I suppose it's a web app. This means front-end on Windows and Redis DB on Linux. I

Categories : Database

Cross-platform pgrep in PHP
Use proc_open() + proc_get_status() + proc_close().

Categories : PHP



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