Showing posts with label your. Show all posts
Showing posts with label your. Show all posts

Thursday, March 12, 2015

Rich signatures for your domain using the Email Settings and the Profiles APIs



A recent addition to the Email Settings API allows domain administrators to use HTML-encoded strings when configuring the default signature for their users.



Updating all signatures to make them adopt the same visually appealing style sounds like a perfect task to automate, however we’d still need to collect various pieces of information for each user, such as phone number or job title, and the Email Settings API has no knowledge of them.



The Google Apps Profiles API provides exactly what we are looking for and in the rest of this article we’ll see how to have the two APIs interact to reach our goal.



Let’s assume we want our signatures to look like the one in the screenshot below, with a bold name, italic job title and clickable link for the email address. Of course you can edit the style as you like with a bit of HTML skills:





Python is the programming language of our choice for this small script and we use the Google Data APIs Python Client Library to send requests to the Email Settings and Profiles APIs.



The first few lines of the script import the required libraries and set the values of the credentials that will be used to authorize our requests. You can find the consumer key and secret for your domain in your Control Panel, under Advanced Tools - Manage OAuth domain key. Remember to replace the dummy values in the script below with yours before running it:

import gdata.apps.emailsettings.client

import gdata.contacts.client

# replace these values with yours



CONSUMER_KEY = mydomain.com

CONSUMER_SECRET = my_consumer_secret

company_name = ACME Inc.

admin_username = admin


We’ll use 2-legged OAuth as the authorization mechanism and set the administrator’s email address as the value of the xoauth_requestor_id parameter, identifying the user we are sending the requests on behalf of.



The consumer key and secret plus the requestor id are the only parameters needed to create an OAuth token that we can pass to the Email Settings and Profiles clients:

# request a 2-legged OAuth token

requestor_id = admin_username + @ + CONSUMER_KEY

two_legged_oauth_token = gdata.gauth.TwoLeggedOAuthHmacToken(

CONSUMER_KEY, CONSUMER_SECRET, requestor_id)



# Email Settings API client

email_settings_client = gdata.apps.emailsettings.client.EmailSettingsClient(

domain=CONSUMER_KEY)

email_settings_client.auth_token = two_legged_oauth_token



# User Profiles API client

profiles_client = gdata.contacts.client.ContactsClient(

domain=CONSUMER_KEY)

profiles_client.auth_token = two_legged_oauth_token


Let’s define a class that generates the signatures for our users on the basis of a set of optional attributes (occupation, phone number, email, etc). This is the class you need to edit or extend if you want to change the style of the signatures for your domain. In the example below, the HtmlSignature() method simply concatenates some strings with hard-coded styling, but you may want to use a more elaborate templating system instead:

# helper class used to build signatures

class SignatureBuilder(object):

def HtmlSignature(self):

signature = %s % self.name

if self.occupation:

signature += %s % self.occupation

if self.company:

signature += %s % self.company

signature += Email: <a href=mailto:%s>%s</a> - Phone: %s % (

self.email, self.email, self.phone_number)

return signature



def __init__(

self, name, company=, occupation=, email=, phone_number=):

self.name = name

self.company = company

self.occupation = occupation

self.email = email

self.phone_number = phone_number


Let’s use profiles_client to retrieve a feed containing all profiles for the domain. Each call to GetProfilesFeed() only returns a page of users, so we need to follow the next links until we get all users:

# get all user profiles for the domain

profiles = []

feed_uri = profiles_client.GetFeedUri(profiles)

while feed_uri:

feed = profiles_client.GetProfilesFeed(uri=feed_uri)

profiles.extend(feed.entry)

feed_uri = feed.FindNextLink()



At this point profiles will contain the list of users we want to process. For each of them, we instantiate a SignatureBuilder object and set its properties name, company, occupation, email and phone_number with the data for that user.

A call to the HtmlSignature() method of the SignatureBuilder instance will provide us with a properly formatted HTML-encoded signature.

# extract relevant pieces of data for each profile

for entry in profiles:

builder = SignatureBuilder(entry.name.full_name.text)

builder.company = company_name

if entry.occupation:

builder.occupation = entry.occupation.text

for email in entry.email:

if email.primary and email.primary == true:

builder.email = email.address

for number in entry.phone_number:

if number.primary and number.primary == true:

builder.phone_number = number.text



# build the signature

signature = builder.HtmlSignature()


The Email Settings API client exposes a method called UpdateSignature to set the signature for a target user. This methods accepts two parameters, the username of the user to be affected and a string containing the signature. We just built the latter, so we only need the retrieve the unique username that identifies each user and that can be easily inferred from the entry identifier returned by the Profiles API, as described in the code and the comment below.



It is worth mentioning that you can also retrieve usernames with the Provisioning API, but for the sake of simplicity we’ll rely on this small hack:

# entry.id has the following structure:

# http://www.google.com/m8/feeds/profiles/domain/DOMAIN_NAME/full/USERNAME

# the username is the string that follows the last /

username = entry.id.text[entry.id.text.rfind(/)+1:]


It’s time to send the requests to the Email Settings API and update the signature:

# set the users signature using the Email Settings API

email_settings_client.UpdateSignature(username=username,

signature=signature)


For further details on what can be accomplished with the Google Apps APIs, please check our documentation and don’t hesitate to reach out to us on our forums if you have any questions.







Claudio Cherubino profile | twitter | blog



Claudio is a Developer Programs Engineer working on Google Apps APIs and the Google Apps Marketplace. Prior to Google, he worked as software developer, technology evangelist, community manager, consultant, technical translator and has contributed to many open-source projects, including MySQL, PHP, Wordpress, Songbird and Project Voldemort.


Monday, March 2, 2015

Webnode Create Your Own Website Easily For Free!

  • Link to Webnode
  • Webnode Overview & Demo
  • Via Malaysian E-Learning Community (Via Jane Hart)

"Webnode is completely FREE. There is no catch."
(Havent we heard that one before? If you tell us the catch we would trust you more!)


The webnode system is a free hosted tool (until when? Soon you will probably see different pricing packages for extra services and additional storage.) that completely manages your entire web project. Anyone, without any technical know-how, can create and manage their own little website (Something like Google Page, but perhaps a bit better. I need to explore both properly to have any serious opinion). There is no need to install anything on your computer or server. Everything is made available through your web browser. Webnode includes tools for website publishing (Webnode Builder), advanced website statistics (Webnode Statistics) and webmail (Webnode E-mail). By using Drag-and-Drop from the toolbar you can add new content such as polls, forums, articles, catalogues, widgets such as PayPal and much more. Webnode contains many cool templates, and you can even make your own.

The interface is pleasant and it seems easy-to-use, and you will probably be positively surprised with all the features and tools provided. Explore the demo site and judge for yourself.

As for me, I am looking forward to meet Stephen Downes for the first time tomorrow (and hopefully not the last!). He is conducting a 2-day e-Learning 2.0 workshop here in Malaysia. Dont worry (and be happy!), I will be posting all the juice I learn from this projected amazing learning adventure (Coming soon!) :)

Saturday, February 28, 2015

How to Make Clipart From Your Own Drawings!

This is a question that people also put on the Technology Tuesday request form... so I knew it would be popular with the polls!  Teachers always ask me how they can make their own clipart using their pictures... so here it is (finally, I know!)


Here was the poll:

Now, for the tutorial!

 

 


 



 

I know it seems like a lot, but so many of the steps are optional and/or just for troubleshooting purposes!  Its definitely not as hard as it looks!

You can download this tutorial as a PDF by clicking this picture!
Note: This tutorial is hosted on Google Drive.  To save it from there, just open the file and click File > Download to save onto your computer!

As for next weeks tutorial, Im going to add something that a few people have asked me for: how to open ZIP files.  Be sure to vote!



Thursday, February 26, 2015

Help Your Students Remember Everything!

Do your students ever forget that theres a spelling test tomorrow, or do they forget to bring in their homework?  For some reason... mine always seems to forget that they need to bring their snack from home!  Well... Ive been thinking about doing this for a while but I finally did it... I came up with a set of "reminder" bracelets to help them remember all the important things they need to do at night!





You can grab the spelling test labels for free below!  Click the pictures below to load higher quality versions of the pictures, then save and print them!




I originally got the idea of using bracelets from KindergartenWorks.  I absolutely love the set of freebie behavior bracelets that Leslie offers... and I knew my kids would love them!  As the school year started and my class was forgetting simple things (like reading every night), I just knew that adapting her idea would be the perfect solution!
(source)

Be sure to check out her freebie and and follow her blog while youre there!

Sunday, February 1, 2015

Torque Droidz Easy Stock ROM Firmware to unbrick your phone

Im finally done uploading the stock rom/firmware of Torque Droidz Easy. This phone has an MTK Chipset. You can download the tools that is needed to unbrick your phone below.

Updated with Kitkat version of firmware


Firmware Here -->Torque Droidz Easy Jellybean 4.2.2

Firmware Here --> Torque Droidz Easy Kitkat 4.4.2
VCOM Driver --> AutoInstaller
SPFlashTool --> SPFlashTool

"Extract the files to your desired folder"




Installing Driver

First try the Alternative Driver, which is the AutoInstaller. Just open the install.bat then it will automatically install the driver. Then proceed to flashing. If it did not work then proceed with VCOM driver that you had downloaded. Then install it manually follow the guide below.

Reference Video Installing the Driver using AutoInstaller(watch it in HD)

When installing it manually your phone must be turned off, then connect it to your computer/laptop while pressing VOLUME UP or VOLUME DOWN. This will detect and look for the driver.

 1. This is the first time that you will connect your phone and it will search for the correct driver. You can connect your phone without battery in it.


2. Check include this location ... ... and click on browse. Look for USB VCOM Driver and Click on 2K_XP_COM folder if you are using Windows XP or Win7 for Windows 7 and then press OK when you are done picking the right folder for the driver.




3. If the driver is successfully installed MediaTek DA USB VCOM will appear in the New Hardware Wizard.

Reference Video Installing the Driver (watch it in HD)



Reference Video Flashing your phone (watch it in HD)



Flashing
1. Launch FlashTool
2. Click on Scatter-Loading, and load your scatter file. (see example below with loaded file in Flash Tool




Video Reference Using FlashTool version 5.xxx (watch in HD)



3. After you load the file, press F9 or Press Download to Flash your Phone.
4. If Download is not possible, you can press Firmware Upgrade.
5. After you press Download or Firmware Upgrade re-insert your battery and connect your Phone to the PC. Press Volume Down or Volume Up while connecting to PC.


"Hard reset your phone after flashing"

I hope this tutorial help you. Please drop a comment if something is not clear to you. If you have time, please confirm if the firmware is working. Thank you.

Tested by:
Kingjames Desu --> Kitkat Version

Saturday, January 31, 2015

Samsung Galaxy Y Plus or S5303 stock rom to unbrick your phone

Hey all, 


Im done uploading the firmware or stock rom for S5303 or the Samsung Galaxy Y Plus. I hope this firmware helps you.




You need to download several files including the firmware

Odin --> Odin 3.07
Firmware -- > S5303
Firmware --> Part 2
Firmware --> Part 3 
Firmware --> Part 4 
Samsung Driver -- > SamsungDriver

"Extract these files in your desired folder"


 "Use Winrar to JOIN all parts of the files"

Installing the driver

1. Install driver first just keep on hitting next.
2. After installing the driver Press and Hold Volume Down + Home Key + Power Button, a selection will appear if you would like to go in Download Mode, Press Volume Up to proceed in Download Mode.
3. Connect your phone in the PC via USB Cable
4. Wait for it to finish installing the driver.
"Note: Sometimes it is better to reboot your PC. After installing the driver."

BEFORE PROCEEDING IN FLASHING MAKE SURE  THAT THE BATTERY IS FULLY CHARGED OR 50% CHARGED.


Flashing your Phone
1. Open Odin 3.07
2. Load only PDA, because the file is one package. Ignore loading csc and phone in the picture it is just an example.


PDA --> S5303DDAMD1_S5303ODDAMD1_S5303DDAMD1_HOME.tar



3. Do not check repartition in option key, copy only what is shown in the picture above.
4. When you are ready to flash your phone, Press and Hold Volume Down + Home Key + Power Button, a selection will appear if you would like to go in Download Mode, Press Volume Up to proceed in Download Mode.
5. Connect your phone in the PC via USB Cable, wait for a value in the ID:COM to appear. It will turn yellow with number example: COM32, if it nothing appear close Odin an open it again and load the file again.
6. Press START to proceed flashing your phone. Wait until it is done, the phone will reboot after flashing.


I hope this tutorial help you. Drop a comment if there is something is not clear to you. Cheers! ^_^

Wednesday, January 28, 2015

SKK Mobile Phoenix Stock ROM firmware to unbrick your tablet

The tablet has a MTK6582 cpu and I suggest that use the latest flash tool for this tablet.






Firmware Here -->SKK Phoenix+
VCOM Driver -->VCOM Manual
Alternative Driver --> AutoInstaller
SPFlashTool --> LatestVersion 

"Extract the files to your desired folder" See picture below"
"If you encounter error in flashtool, use different version of it."

Installing Driver

First try the Alternative Driver, which is the AutoInstaller. Just open the install.bat then it will automatically install the driver. Then proceed to flashing. If it did not work then proceed with VCOM driver that you had downloaded. Then install it manually follow the guide below.
Video Reference using Driver Auto Installer (watch in HD)



When installing it manually your phone must be turned off, then connect it to your computer/laptop while pressing VOLUME UP or VOLUME DOWN. This will detect and look for the driver.

 1. This is the first time that you will connect your phone and it will search for the correct driver.

2. Check include this location ... ... and click on browse. Look for USB VCOM Driver and Click on 2K_XP_COM folder if you are using Windows XP or Win7 for Windows 7 and then press OK when you are done picking the right folder for the driver.


3. If the driver is successfully installed MediaTek DA USB VCOM will appear in the New Hardware Wizard.

Video Installing VCOM Driver (please watch in HD)







Video Flashing your phone (please watch in HD)



Flashing

(Although the version of the Flashtool below is lower and the UI is a bit different, the procedure is still the same)

1. Launch FlashTool
2. Click on Scatter-Loading, and load your scatter file. (see example below with loaded file in Flash Tool


Video Reference Using FlashTool version 5.xxx (watch in HD)

3. After you load the file, press F9 or Press Download to Flash your Phone.
4. If Download is not possible, you can press Firmware Upgrade.
5. After you press Download or Firmware Upgrade, power off your tablet and connect your tablet to the PC. Press Volume Down or Volume Up while connecting to PC or press the buttons simultaneously.


"Hard reset your tablet after flashing"

I hope this tutorial help you. Please drop a comment if something is not clear to you.

Lenovo A269i stock rom firmware to unbrick your phone

This firmware is for Lenovo A269i. It is already rooted. There is a tutorial below that you can follow if this is your first time to flash your phone.


You can fix the following issue in your phone:
1. Bootloop
2. Damaged System UI
3. TP Upgrade only
4. Dead phone but it is detected in computer
5. Remove Gmail Account / Password / Pattern Lock (Alternative Way)


Firmware Here -->Lenovo A269i
VCOM Driver -->VCOM Manual
Alternative Driver --> AutoInstaller
SPFlashTool --> SPFlashTool
SPFlashTool --> LatestVersion 



"Extract the files to your desired folder" See picture below"
"If you encounter error in flashtool, use different version of it."

Installing Driver (AutoInstall)

First try the Alternative Driver, which is the AutoInstaller. Just open the install.bat then it will automatically install the driver. Then proceed to flashing. If it did not work then proceed with VCOM driver that you had downloaded. Then install it manually follow the guide below.

Video Reference using Driver Auto Installer (watch in HD)



When installing it manually your phone must be turned off, then connect it to your computer/laptop while pressing VOLUME UP or VOLUME DOWN. This will detect and look for the driver.
If AutoInstall did not succeed then proceed to Manual Install below 


Installing Driver (Manual Install)

 1. This is the first time that you will connect your phone and it will search for the correct driver.

2. Check include this location ... ... and click on browse. Look for USB VCOM Driver and Click on 2K_XP_COM folder if you are using Windows XP or Win7 for Windows 7 and then press OK when you are done picking the right folder for the driver.


3. If the driver is successfully installed MediaTek DA USB VCOM will appear in the New Hardware Wizard.

Video Installing VCOM Driver (please watch in HD)


Video Flashing your phone (please watch in HD)





"Your Phone must be turned off when you are ready to connect and flash your phone"

Flashing
1. Launch FlashTool
2. Click on Scatter-Loading, and load your scatter file. (see example below with loaded file in Flash Tool



Video Reference Using FlashTool version 5.xxx (watch in HD)

3. After you load the file, press F9 or Press Download to Flash your Phone.
4. If Download is not possible, you can press Firmware Upgrade.
5. After you press Download or Firmware Upgrade re-insert your battery and connect your Phone to the PC. Press Volume Down or Volume Up while connecting to PC. 

Some workarounds:
If you encounter PMT_Changed error here is what you do:
In Older Version of FlashTool
  1. Load the scatter file
  2. Click in Format (a new menu will popup)
  3. Make sure that you select Format whole flash except bootloader then press OK
  4. Connect your phone in bootmode (Turn off your device then hold Volume UP or VOLUME DOWN then insert USB)
  5. It should detect your phone and continue to flash.
  6. Then Click Download to fully flash your phone.
  7. Hard Reset your phone after flashing.
In Latest version of Flashtool
  1. Load the scatter file
  2. Choose Format + Download (Underneath Scatter-loading file)
  3. Then Click Download and wait until it is done flashing
For Invalid IMEI:
Restore yong IMEI in MTKDroidTools version 2.5.3. You will have this error when you format your phone in Flashtool as I had experienced. To restore download MTKDroidTools version 2.5.3 After you extract the file. Open the green robot, you must enable the usb debugging in your phone. It is usually located in Settings>Devoloper Mode then look for usb debugging. After enabling it. Connect your phone in your computer then in MTKDroidTool click on ROOT. Wait for it to finish, then Click in IMEI/NVRAM, input 15 number in each box. Then click REPLACE. Then click Reboot or you can manually turn off your phone. Then turn your phone on again. You can see that you have fully restored your IMEI.

"Hard reset your phone after flashing"


I hope this tutorial help you. Please drop a comment if something is not clear to you.

Monday, January 26, 2015

Hard Reset your Cherry Mobile Superion Voyager and remove password pattern lock gmail account

Cherry Mobile Superion Voyager Hard Reset





Hard resetting / factory resetting your phone will solve the following issues:

1. If you forgot your pattern lock
2. If you forgot your gmail account
3. If you forgot your password
4. Apps that automatically force closing
5. Stuck in Cherry Mobile Logo (sometimes does not work if the firmware is totally damage)


NOTE: Performing hard reset will erase your data.

To hard reset:

1. Turn off your tablet.
2. Press first the POWER Button wait until the tablet vibrates and then immediately Press and HOLD VOLUME UP until you see the Android Robot.
3. Select English or Chinese if you can understand chinese :)
4. Select wipe / factory reset, press Volume rocker to navigate and press the power button to confirm your selection
5. Reboot your tablet.

Note:
If  performing hard reset did not succeed, you need to wipe the cache first in the android system recovery before performing wipe / factory reset.



I hope this tutorial helps you.. If you have any question just drop a comment.

Saturday, January 24, 2015

Remove password pattern lock gmail account in your SKK A6

This tutorial is for SKK A6. We need to use PC to factory reset your phone. Because this phone does not have a android system recovery. But the alternative way is to wipe your phone in fastboot mode. You can wipe your phone in Windows and my favorite Linux OS (Lubuntu).



You can do this in Windows and Linux OS. 

First you need to download a file. 
1. ADB Fastboot Driver --> Download Here
2. ADB Fastboot Tools -- >Download Here

After Downloading all the files. And install first the driver.

Hard resetting / factory resetting your phone will solve the following issues:
1. If you forgot your pattern lock
2. If you forgot your gmail account
3. If you forgot your password
4. Apps that automatically force closing
5. Stuck in Logo Only (sometimes does not work if the firmware is totally damage)

NOTE: Performing hard reset / factory reset will erase your data.

Using fastboot command.

1.Turn off your phone
2. Press and Hold Volume Down and Power button together
3. A fastboot word in your phone will appear
4. Connect your phone in the PC via USB, the driver will automatically install
5. Go to the file that you extracted and look for commandprompt.bat
6. In command prompt type this two command below
fastboot -w
fastboot reboot
7. Wait for your phone to reboot properly.


LINUX Mode

First you need to update your package manager and download fastboot tools for android.

Here is how to download it
1. Open terminal or press this ctrl + alt + T and it will open up Terminal, this is for Ubuntu, Lubuntu command that I have tried.

2. Then in terminal type the following command
sudo apt-get update
sudo apt-get install android-tools-fastboot
3. After installing it, enter FASTBOOT mode in your phone.
4. Go to terminal again and execute this command
sudo fastboot -w
sudo fastboot reboot
I hope this tutorial helps you. If you have any questions just drop a commend below.

Friday, January 23, 2015

Share your devices mobile data connection via USB Wi Fi or Bluetooth

How to turn your android smartphones into Wi-Fi Router .Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .


Do you know , you can turn your smartphone into portable Wi-Fi hotspot, to share its internet connection with other devices(Laptop,tablets,smartphones ).  You can share your Android Device internet with computer , smartphones and tablets.This is amazing built in Android OS feature which allow other users to use your mobile data from different devices. 
We will discuss these option step by step.
i) How to turn your Android mobile phone into Wi-Fi Router .
ii) How to turn your Android phone into Internet Modem .
iii) How to share your Android device mobile data via Bluetooth.
you need few simple steps . 

1. How to turn your android smartphones into Wi-Fi Router ?


First you need to activate mobile data. (Wi-fi hotspot will work on 3g,4g and other fast services.)
Go to setting and click on More settings.

tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .

Select tethering and portable hotspot.

tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .

 You will have these 3 options. Turn on Portable Wi-Fi and click on it for further options.



tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .

It will automatically turn into hotspot and will allow devices to connect. Your device name will be shown as AndroidAP from other devices . 
tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .

 You can change your device name and password . The default password will be shown in " how to connect from other devices" section.


tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .

Your devices will be shown in Wi-Fi connection of other smartphones and tablets as shown in below image. 

tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .


you can Allow and Disallow other devices by tapping a + sign to be connected or not. You can allow devices to connect manually by configuring other device name and Mac Address. 

tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .

tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .


2. How to turn your android phone into Internet Modem .How to use internet on computer via Android Mobile .

You can also turn your android smartphones into internet modem to use internet on computer. There is nothing difficult to turn your smartphone into internet modem. 


Go to setting and click on more setting 

Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .

Now select Tethering and portable hostpot . 

Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .

Now select USB tethering and connect your smartphone with computer via data cable.

Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .


Computer will recognized attached device ans will start installing drivers. After installing drivers your smartphone will be attach to computer as modem. you can view it by clicking on device manager as highlighted in picture,as " Remote NDIS based Internet Sharing Device ".You can check this connection as well in My Network .  


tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .


3. How to share your Android device mobile data via Bluetooth.

Following option will not work on lower then 4.3. To share your mobile data via bluetooth to other devices your smartphone or tablet must be on Android OS 4.3 or Higher. Pair your devices via bluetooth first then go to more setting . Turn on Portable Wi-Fi hotspot . Select Bluetooth tethering . 
tutorial how to Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .


Now go to bluetooth tab. See Desired Paired Device. Click on paired device setting .You will see Internet access with bluetooth sign under Profiles tab. Click on it to allow paired device to start using internet via your device.

Share your devices mobile data connection via USB,Wi-Fi or Bluetooth .

Note: The above method is based on Author personal experience . Found nothing harmful .