w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Breaking News show with category base in Marquee code
you can use this code. but remember i don't support you to use marquee code.. <marquee width="820px" style="font-size: 12pt; height:32px;padding-bottom: 10px;" behavior="scroll" direction="left" bgcolor="#DEE9FB" scrollamount="2" scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()"><?php query_posts('category_name=wordpress&showposts=5'); ?><?php while (have_posts()) : the_post(); ?><li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li><?php endwhile; ?></marquee>

Categories : PHP

Implementation options to determine whether news is good news or bad news
a series algorithms to handle this are called supervised learning, which belong to machine learning.

Categories : Algorithm

How are Android News Apps built that get updated as soon as new news come in?
They simply parse the XML given by the site: For XML parsing in android try these tutorials Android XML Processing with the XmlPullParser Android XML Parsing Tutorial Using DOM parser Also you can develop android apps using javascript,Various platforms are available for it like: Titanium Studio PhoneGap

Categories : Javascript

Downloads from China?
Well, I suppose you're talking about Android app/game. As an Android user from china, I can tell you something I know. I don't know whether you know the fact that the google app store is blocked in China by the goverment, and all the legal device sold in market are not allow to install the goole pay market, don't ask me why about it. For those who want to download app from the google offical market, they need to get root authority of their device, and bear the low download speed and sometimes need to set the proxy to get the access. So it's quite not easy for most user to get the app from the offical market. Per your question, there are lots of third part local market exist in China, you can get the most popular from here, and as I know, they are also the largest, and also you can get m

Categories : Android

Medical Imaging Application Automation via QTP
The Insight feature can be very useful for testing an application that generates its own graphics however it does have its limitations. The answer to your question depends on the nature of the UI the application generates. At its base Insight uses image matching algorithms to find an image on the screen so if the application generates the same (or pretty similar) UI then Insight would be a good fit for you. The best answer is to download UFT and play around with the application during he trial period to see if it meets your needs.

Categories : C#

Write a medical bill to a .txt file in java
Add the bw.flush() call after each iteration and at the finish also and see. for(int i=0;i<size;i++) { Object element = (String) model.getElementAt(i);//Serial number combobox Object element1 = (String) model1.getElementAt(i);//Batch no combobox Object element2 = (String) model2.getElementAt(i);//Quantity combobox Object element3 = (String) model3.getElementAt(i);//Description combobox Object element4 = (String) model4.getElementAt(i);//Rate combobox Object element5 = (String) model5.getElementAt(i);//VAT?TAX combobox Object element6 = (String) model6.getElementAt(i);//Discount combobox Object element7 = (String) model7.getElementAt(i);//Amount combobox bw.newLine(); bw.write((String) element + ") "); bw.write((String) element3); bw.newL

Categories : Java

China to AWS Multi-Master Replication
I have a third option for you: pay for DataStax Enterprise and its integrated Solr search on Cassandra.

Categories : Mysql

How to switch to a map that is centered on the China instead of the default set in R ?
Your example picture seems to be centered around 0 lat, 150 lon. The following seems to roughly generate you example picture: library(maps) map("world",orientation=c(90, 150,0), projection="mollweide", wrap=TRUE) For some reason it appears you need to add 90 to your longitude.

Categories : R

Android Push Notifications in China
in china use other push service,like: pushy(https://pushy.me), igetui(http://www.igetui.com/)、jpush(https://www.jpush.cn/)、baidu(http://developer.baidu.com/wiki/index.php?title=docs/cplat/push)... the google push sometimes don't work. i'm chinese,if you need help ,message to me.

Categories : Android

Paypal sandbox accounts for China & New Zealand
Login to developer.paypal.com with your usual account. After login, goto sandbox.paypal.com directly in a second tab/window in your browser. Click on SignUp and select the country/language combinations to create a test account in sandbox env. Once it's created it will be linked with your developer.paypal.com account automatically. Keep in mind - it's little painful process than creating a test account from developer.paypal.com as you would need to provide all the data like address, credit and bank accounts, etc.

Categories : IOS

How to test if google app engine web application will work in China?
I've used http://www.greatfirewallofchina.org/ before, and it seems to work well. Your app will probably not be accessible from China. I get around this by using nginx as a reverse proxy on Amazon EC2. That way I have my own dedicated IP address that isn't affected by other applications. http://blog.magicalhobo.com/2011/04/11/running-a-reverse-proxy-for-app-engine-on-amazon-ec2/

Categories : Google App Engine

URL: transform "/news.php?id=1" to "/news/1/"
There are plenty of questions out there that answer your question. There are two things you have to do: Redirect the ugly url to the fancy url, so that the user sees the fancy url Internally rewrite the fancy url to the ugly url, so that the server can actually execute it. You can find the documentation for mod_rewrite here. This solution uses the [END] flag which is only available from Apache 2.3.9 and up. You can find the documentation here. The trailing ? in the first rule discards the query string. #Redirect ugly url to fancy url RewriteCond %{QUERY_STRING} id=([^&]*) RewriteRule ^news.php$ news/%1/? [R] #Internally rewrite fancy url to a usable url RewriteRule ^news/([^/]*)/?$ news.php?id=$1 [END]

Categories : Apache

Can I use Neudesic Azure Storage Explorer to access Azure China?
My guess is that Azure Storage Explorer has hard coded URL endpoints for storage. Which when they were all the same, that made sense. I'm ASSUMING that storage endpoints in China are different from all the others. Which would lead me to think that the Storage Explorer tool would need an update to handle the Chinese locations.

Categories : Azure

Yahoo News API In C#
It's likely that you are passing that namespace manager to those attributes, but I'm not 100% certain. Those are definitely not in that .../mrss/ namespace, so I would guess that is your problem. I would try it without passing the namespace (if possible) or using the GetElementsByTagName method to avoid namespace issues.

Categories : C#

How does samachar.com use google news rss?
If you are going to read some standard Rss, look at the SyndicationFeed int he System.ServiceModel.Syndication namespace.

Categories : C#

subnav / news toggle
My solution is do a small re-write of your first event: var timer; $('#nav > ul > li').on('mouseover mouseout', function (e) { clearTimeout(timer); $this = $(this); var child = $this.find('.children'); timer = setTimeout(function () { if (e.type === 'mouseover' && child.length) { $('#nav > ul > li').not($this).removeClass('active'); $this.addClass('active'); $('#news').slideUp(); $("#nav .children").not(child).hide(); child.slideDown(); } else { $this.removeClass('active'); $("#nav .children").hide(); $('#news').slideDown(); } }, 300); }); The timeout is set when the user hovers. If the user stops hovering over the element within

Categories : Jquery

Get current news for a location
Depending on your needs, you want to use Google News API their section feeds, their search feeds google news Google news rss or Bing News Search. Bing developer

Categories : Iphone

How to create a news blogging system in JSP?
If you just want blogging software implemented in Java, how about Apache Roller? Writing your own blogging software from scratch may seem like fun, but you are more likely to create something with fewer features and more security holes. If you are looking for an academic project to learn some techniques, go for it. If you just want to more easily integrate some blogging software into your existing Java stack, try Roller.

Categories : Wordpress

Getting users news feed from Facebook
The accepted answer at How to get user's news feed via graph api was over a year ago, whereas the other answer is 5 months ago. As documented at https://developers.facebook.com/docs/reference/api/user/#home , the usage https://graph.facebook.com/me/home works, which I tested in the API Graph Explorer Tool and it worked. Let me know if it works for you :)

Categories : PHP

Output last 10 news use django-sidebar
You should use custom template tags to achieve this. the most appropriate ones seem to be inclusion tags (but it's worth reading the whole chapter!). There is a good step-by-step instruction which should work for you.

Categories : Python

News Feed "More Updates button"
Create a mysql database table (news_table) with the news in the column 'content' and another column 'id' (of type int and primary index + auto increment on). Make this file get_news.php: <?php $start = mysql_real_escape_string(strip_tags(stripslashes($_REQUEST["start"]))); if (!isset($start)) $start = 0; $sql = mysql_query("SELECT * FROM news_table WHERE id >= $start LIMIT 15") if (!$sql || mysql_num_rows($sql)==0) exit("There are no more news."); while ($post = mysql_fetch_array($sql)) { echo "<li>"; echo $post['content']; echo "</li>" } ?> And in you main file: <ul class="news"> <li>Blabla 1</li> <li>Blabla 2</li> </ul> <button class="load-more" onclick="">Load more...</button> <

Categories : PHP

Creating a news feed realtime
If your data is normalized, you should be able to pull all the data with one query (using JOINs), or you could try creating a View if you want to query from one table. It's always best to keep your data in the appropriate tables to avoid having to duplicate data. The push notifications are easier on the server, since they're not receiving requests from each client. Depending on your load, you could probably get away with simple AJAX requests.

Categories : PHP

System.Xml.Xsl.XslLoadException in DNN News Feeds
It is because you haven't defined the xsl namespace. Change <xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"> to <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> You also need to add an 'atom' namespace in order to make your 'for-each' and 'value-of' directives work, and you probably want to disable output escaping on your title fields to make the tags within them show up as markup. I suggeest this: <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom"> <xsl:output method="html"/> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml"> <bo

Categories : Xml

Adding news as a new .txt file from form
Maybe something like this? Haven't tested. $file_name = "path/to/save/file/[" . date( 'd.m.y' ) . "] " . $_POST['title']; $handle = fopen( $file_name, 'w' ) or die( 'Unable to open file' ); //create new file fclose( $handle ); //close file $file = file_get_contents( $file_name ); //open the file $file .= $_POST['content']; //apppend $_POST['content] to file file_put_contents( $file_name, $file ); //write the contents back to file

Categories : PHP

Database structure for edited news
The long answer is to learn about Time-Oriented Database Applications, there's a web site that has an eBook about it. The short version is to either have another table for the history or change you existing table to allow for history. Think about how you would differentiate between "original version", "edited versions" and "most recent versions". It could be simply by date, or you could try to maintain your own version number column, or you might even want some kind of flag or bit field (I don't recommend this option). UPDATE One possible solution (hard to know the best one for your scenario, so just an example): Keep your existing table for the most recent version, as that's what you will probably need most of the time. Add another table for historical versions, and in code (or a SQ

Categories : SQL

jQuery - GET News.html 404 (Not Found)
This smells a bit like a same-origin policy issue. The path you are specifying may be causing the issue. Try $.ajax({ url: "/News.html", cache: false, }).done(function(data) { $("#content").load(data); }); And let me (us) know if that helps.

Categories : PHP

CSS Spacing of News Release Links
Hi you can simply do this in css. .feedburnerFeedBlock > ul > li { padding-top: 15px; } A span element is not a block element and u can only apply dimensions if u set the span to e.g. display: block

Categories : CSS

News by CommerceLab magento module
How is this? <?php $items = Mage::getModel('clnews/news')->getCollection(); ?> <?php foreach ($items as $item): ?> <?php echo $item->getTitle() ?> <?php endforeach; ?>

Categories : Magento

how to add title to jquery news ticker?
Here's what you can do. add anchor tag with class which has css float right. Check fiddle: http://jsfiddle.net/ezEtK/254/ Added the latest news link too. Example: .read{ float: right; }

Categories : Jquery

Bing News Search API Results
I can't find the exact limitations of the Bing News Search API - what are the maximum number of terms? Another question, What are the query length limits for the Bing WebSearch API?, covers this topic quite thoroughly. I can't think of any reason that the limits for the News Search API would be any different than for the Web Search API. The results that are returned don't necessarily contain the company name. How can this be explained? Search engines are not just 'find literal content' searches. The search engine is not searching its index for pages containing "Company A", but for pages associated with Company A, or have much of the same content as Company A's page. For instance, pages that it links to, or are linked to by pages that also link to Company A, may be returned, even thou

Categories : Api

kafka for news feed like facebook
It sounds like the functionality provided by Collabinate (http://www.collabinate.com) may be what you're looking for. It provides an API for utilizing a hosted activity stream engine.

Categories : Misc

Dynamic Web Page News Feed
Is your labs website based on some CMS? If so you could check out for some newsfeed widgets for modules. For other site you could try feedzilla

Categories : PHP

How to markup "Related News" using microdata?
Try using element from WebPage itemtype (from: http://schema.org/WebPage, I know that You are using NewsArticle in this case, but I used Article for this example): <div itemscope itemtype="http://schema.org/Article"> <span itemprop="name">How to Tie a Reef Knot</span> by <span itemprop="author">John Doe</span> This article has been tweeted 1203 times and contains 78 user comments. <meta itemprop="interactionCount" content="UserTweets:1203" /> <meta itemprop="interactionCount" content="UserComments:78" /> </div> <ul itemscope itemtype="http://schema.org/WebPage"> <li itemprop="relatedLink"><a href="related_news_1.html">Related News 1</a></li> <li itemprop="relatedLink"><a hr

Categories : HTML

Show news on homepage AW_Blog
Here is how you can get the 10 latest blog posts : <?php $_sql = "SELECT * FROM `aw_blog` WHERE `status` = 1 ORDER BY `aw_blog`.`post_id` DESC LIMIT 0 , 10"; $_connection = Mage::getSingleton('core/resource')->getConnection('core_read'); foreach ($_connection->fetchAll($_sql) as $_post) { $_post_date = date("m/d/y", strtotime($_post['created_time'])); $_post_content = strip_tags($_post['post_content']); $_post_url_slug = $_post['identifier']; } ?>

Categories : Magento

Creating a news feed with CoreData
You can create abstract entity Story with basic parameters that all Story objects have. Than you can create other concrete entities like event, status update with specific fields and set Parent entity parameter of these concrete entities to Story. In this way concrete entities inherit all fields from abstract Story entity. (You can set Abstract entity and Parent entity parameters in Utilities -> Data Model Inspector). As a result you would have clear and readable interfaces for your entities. Also you can fetch and display all your entities in tableView specifying "Story" entity in fetch request. Edit Yes, you can set to-many relationship from Group to Story. E.g. And you can add Event and Status entities like this: Group *grp = [NSEntityDescription insertNewObjectForEntityForN

Categories : Iphone

news feed from facebook wall to a android app
Of course, you can. First of all, if you are new to facebook integration- read the basics of the android integration, login/authorization calling its APIs etc. (not complex at all). Facebook provides many APIs (for different functions) that uses the access token. Based on your requirement, you just need to use the API: /PAGE_ID/feed with the page access token to get the feeds of your page. The page access_token can be obtained with the API: me/accounts?fields=access_token,name (Demo) after the user authorization/login. You can test this API here: Graph API Explorer, using the default token already present there. Smarter way (Without using the facebook API) Since your requirement involves only back-end processes, you can use this method. First of all, get the Long-lived page a

Categories : Android

Can a Facebook Group send the News Feed?
go to link click Get Access Token , select by click everything from the 3 tabs , click get acccess token , then paste your group id ; also at your feed field and click submit. That's all ! this will work

Categories : Facebook

Can Crucial Micron SSD call home for news?
I would say that those were just hard-coded into the firmware, because they don't specifically say that yours is out of date - they just give the location of firmware updates. It wouldn't be too hard for them to include the URLs to their firmware sites when they produce the drive. Still interesting though, and "calling home" is definitely a possibility. I just don't think it's the case here, personally. Also, the Tom's Hardware article is over a year and a half old, so they could've definitely still added that when they created one of the more recent batches of firmware for the drive. Your version (Firmware Version: 000F) came out in April 2012, based on a few Google searches.

Categories : Misc

How to Share My News on Facebook on Windows Phone 8
Use the ShareStatusTask private void Button_Click(object sender, RoutedEventArgs e) { //theMessageStatus is the message you want to post to FB/Twitter ShareNewsArticle(theMessageStatus); } private void ShareNewsArticle(string message) { ShareStatusTask sst = new ShareStatusTask(); sst.Status = message; sst.Show(); } This will let the user choose what social network to update (e.g. FB, Twitter etc..)

Categories : C#

news ordering by file name from files in directory
$files = array(); $dir = new DirectoryIterator('includes/news'); foreach ($dir as $fileinfo) { $files[$fileinfo->getMTime()] = $fileinfo->getFilename(); } ksort($files); EDIT: (try this); <? $dir = new DirectoryIterator('includes/news'); //$dir = new DirectoryIterator('.'); $num = 0; foreach ($dir as $fileinfo) { $name = $fileinfo->getFilename(); preg_match_all('/[(.*?)]/',$string, $matches); //preg_match_all('/-(.*?)-/',$name, $matches); if(!empty($matches[1])) { //create timestamp (to use for key) $timestamp = strtotime($matches[1][0]); //use this as array key (to order by with ksort() $files[$timestamp]['name'] = $name; } } //sort ksort($files); //get the key back to the normal date foreach($files as $key=>$value) { $sorted_file

Categories : PHP



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