Getting the Number of Children in a Group (Size)

Posted by Unknown Kamis, 03 Januari 2013 0 komentar
Sample code to get the size of groups in corona :

for i=1, group.numChildren do
local child = group[i]
local description = (child.isVisible and "visible") or "not visible"
print( "child["..i.."] is " .. description )
end

Baca Selengkapnya ....

Working with images in Corona

Posted by Unknown 0 komentar
Loading an Image :
syntax:
display.newImage( filename [, baseDirectory] [, left, top] )
example:
newImage = display.newImage( "image.png", 10, 20 ) myImage2 = display.newImage( "image.png" )
Image Autoscaling:
The default behavior of display.newImage() is to auto-scale large images.To control manually we can use boolean value.
syntax:
display.newImage( [parentGroup,] filename [, baseDirectory] [, x, y] [,isFullResolution] )
example:
newImage = display.newImage( "image.png", 10, 20, true )
Images with Dynamic Resolution :
syntax:
display.newImageRect( [parentGroup,] filename [, baseDirectory] w,h )
example:
newImage = display.newImageRect( "Image.png", 100, 100 )

Baca Selengkapnya ....

Display hello world without using semicolon

Posted by Unknown 0 komentar

#include<stdio.h>
void main(){
if(printf("Hello world")){
}
}

Baca Selengkapnya ....

Calculate Quadratic equation in c language

Posted by Unknown 0 komentar
Simple program to get Quadratic equation in c language

#include< stdio.h>
#include< math.h>
int main(){
float a,b,c;
float d,root1,root2;

printf("Enter a, b and c of quadratic equation: ");
scanf("%f%f%f",&a,&b,&c);
d = b * b - 4 * a * c;
if(d < 0){
printf("The roots are complex number.\n");
printf("The roots of quadratic equation are: ");
printf("%.3f%+.3fi",-b/(2*a),sqrt(-d)/(2*a));
printf(", %.3f%+.3fi",-b/(2*a),-sqrt(-d)/(2*a));
return 0;
}
else if(d==0){
printf("Both the roots are equal.\n");
root1 = -b /(2* a);
printf("The root of quadratic equation is: %.3f ",root1);
return 0;
}
else{
printf("The roots are real numbers.\n");
root1 = ( -b + sqrt(d)) / (2* a);
root2 = ( -b - sqrt(d)) / (2* a);
printf("The roots of quadratic equation are: %.3f , %.3f",root1,root2);
}
return 0;
}
Sample output:
Enter a, b and c of quadratic equation: 2 4 1
The roots are real numbers.
The roots of quadratic equation are: -0.293, -1.707

Baca Selengkapnya ....

Long Integer Literal in java

Posted by Unknown 0 komentar
Simple program to explain Long integer literal in java.

public class MainClass {
public static void main(String[] a){
long longValue = 123456789L;
System.out.println(longValue);
}
}

Baca Selengkapnya ....

Tech Apple admits flaw in Do Not Disturb feature, will be fixed after 7 Jan

Posted by Unknown 0 komentar
 

It’s now confirmed that Apple’s Do Not Disturb feature which is available for iPhone, iPod Touch and iPad on iOS 6 doesn’t work. The buzz first started on MacRumours, where users complained that the Do Not Disturb was working ahead of the time that they had set it for.

Read more from here


http://www.firstpost.com/tech/apple-admits-flaw-in-do-not-disturb-feature-will-be-fixed-after-7-jan-576817.html 

Baca Selengkapnya ....

Flipboard 1.9.17 apk for Galaxy Y, Galaxy Y Duos & lite, Galaxy Music.

Posted by Unknown Rabu, 02 Januari 2013 0 komentar
Hey Guys,

This is the admin of this blog (mTz),
First of all, I am really sorry for keeping this thing inactive since months, but I will finally be posting something here.

I have also done a video, check it out below 0  (that's a bonus :P)
if you can't watch the video, click here - https://www.youtube.com/watch?v=qFTZVMKPuYU



Now here's a description - 

Flipboard brings together world news and social news in a beautiful magazine
designed for your Android phone and tablet. Once you pick a few topics, your Flipboard is built and you can instantly start flipping through the pages of news you care about and stories and photos friends are sharing. Flip through the news from your Twitter timeline as well as from outlets like the BBC, USA Today and The Verge. See everything from posts and photos shared by friends on Facebook and Instagram to videos from YouTube and pop culture nuggets from Rolling Stone. Find inspiration for your travel, style and life from places like National Geographic, Oprah and Cool Hunting.
Bring Flipboard on the train during your morning commute, catch up over coffee or on vacation, use it as a tool at work or simply to wind down your night. Search for anything or anyone, and make it your own.
It’s the one thing to simplify your daily life.
Highlights:
★ With news and social networks all in one place, it’s easy to quickly catch up on the news you care about.
★ Search for anything—people, topics, hashtags, blogs, your favorite sites—and flip through articles, updates, photos and videos in a beautiful magazine format.
★ Connect Flipboard to up to 12 social networks, streamlining your reading and activities like commenting, liking and sharing. Services include Twitter, Facebook, Instagram, Google+, YouTube, Google Reader, LinkedIn, Flickr, 500px, Sina Weibo and Renren.
★ Use Cover Stories, a custom tile on Flipboard that gives you the best of everything you follow on Flipboard. Cover Store is a quick dose of what’s happening now a constantly updated selection of articles, photos and videos shared by your friends.
★ Save anything to read later using Instapaper, Pocket and Readability.
★ Create a Flipboard account to access your favorite content and social networks on different or shared devices.
★ Enjoy Flipboard in 15 localized editions—for Australia, Brazil, Canada, China, France, Germany, Hong Kong, Italy, Japan, Korea, Netherlands, Spain, Taiwan, U.S. and U.K.
★ Explore hundreds of staff picks in the Content Guide, including must-read magazines and blogs, gorgeous photography and special curated sections devoted to the news of the day and other topics of interest.
★ Access Flipboard quickly through the widget.

Download from here - HERE
Like, comment, share this post and the video to motivate us for doing more.
Thanks - mTz!



Baca Selengkapnya ....
Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android populer.