Converta seu Texto em Áudio.
quarta-feira, setembro 30, 2015
quinta-feira, setembro 24, 2015
Root galaxy s6 deep sleep problem fix
Another threads
http://forum.xda-developers.com/galaxy-s6/general/battery-drain-root-twrp-to-fix-t3088860
http://forum.xda-developers.com/showpost.php?p=60383471&postcount=49
EDIT: HomerSp posted a TWRP-flashable ZIP here:http://forum.xda-developers.com/show...7&postcount=56
It still requires you are rooted with SuperSU though. If not, flashing back stock kernel and stock recovery with ODIN will still fix the deep sleep issue.
---
If using SuperSU, copy/paste this into an ADB shell, it'll reboot your device, and the problem will be fixed. You might need to grant permissions on-screen after the first line.
Code:
su mount -o rw,remount /system /system mkdir /system/su.d chmod 0700 /system/su.d echo "#!/tmp-mksh/tmp-mksh" > /system/su.d/000000deepsleep echo "echo 'temporary none' > /sys/class/scsi_disk/0:0:0:1/cache_type" >> /system/su.d/000000deepsleep echo "echo 'temporary none' > /sys/class/scsi_disk/0:0:0:2/cache_type" >> /system/su.d/000000deepsleep chmod 0700 /system/su.d/000000deepsleep reboot
This takes @HomerSp 's fix listed a few posts up, and has SuperSU apply it on every boot.
quarta-feira, setembro 23, 2015
Creating a Magento Multi-Website - a Multi Store Checklist
Magento Multi-Website Checklist
- Buy a multi-domain SSL certificate. Make sure that new domain is associated with this certificate.
- Point your new domain name at your server.
- Log into Magento and do a backup – peace of mind, etc.
- Set up a new root category & then add any sub categories as required. This root category is going to be ‘home’ of the new website.
- Go to System/Manage Stores. Next, hit the Create Website button & fill in the necessary information – keep a note of the value you put in the “code” field. In my example I’m going to use “may” as the code value.
- Repeat the steps for Create Store & Create Store View. When you create a store you set the root category to be the one you’ve just created in step 4 above.
- Go to CMS/Pages and create a new home page & associate it with the new Website.
- Now go to System/Configuration and change the ‘Current Configuration Scope’ to your new website. You’ll notice that the values are a copy of the default website. You’re now going to have to go through a number of tabs and change the required values. Here I’ll refer only to the essential changes.
- Under System/Configuration/Web change the Secure & Unsecure urls to your new domain name – in this case eddie-may.com. Also under Default Pages set the CMS Home Page to the page you created in step 7. Under the Session Cookie Management tab, add your new domain as the Cookie Domain like so -> .eddie-may.com
- In the Design tab you now have a choice of determining how the website will look. Here I’m going to assume that you’ll use the same template but use CSS to change the style of the site.
- So, upload a new skin under the /skin/frontend/default. Lets assume the new skin is called eddiemay, that means you’ll have a folder like so /skin/frontend/default/eddiemay
- If that’s the case, the design settings will be Package = default; Skin (Images/CSS) = eddiemay; Layout & Default will be the same values as your first website.
- Still under the Design tab, change the HTML Head, Header, Footer, etc as required. From an SEO perspective, make sure that the Default Title & Description are unique.
- Now go to Store Emails – you’ll need to change email addresses to reflect the new domain name. Make sure that these email accounts actually exist before going live.
- Under Contacts change the main contact email as required.
- Under Sales/Invoice & Packing Slip Design – change the default logos to your new logo.
- Under Sales/Sales Emails – you may have to change the email templates if you’ve heavily customised your default email templates (you may have hardcoded your store name, for example).
- That’s more or less it for the System/Configuration settings.
- Now go to CMS section. Here you may have to create new CMS pages & Static Blocks, or at least associate existing ones with the new website. At a minimum you’ll need to associate the Contact, About, Privacy, Terms, Shipping pages with the new website.
- The next thing you’ll need to do is add the new website to your .htaccess file. You need to add the new domain like so:
## multidomain SetEnvIf Host www\.eddiemay\.me.uk MAGE_RUN_CODE=base SetEnvIf Host www\.eddiemay\.me.uk MAGE_RUN_TYPE=website SetEnvIf Host ^eddiemay\.me.uk MAGE_RUN_CODE=base SetEnvIf Host ^eddiemay\.me.uk MAGE_RUN_TYPE=website
SetEnvIf Host www\.eddie-may\.com MAGE_RUN_CODE=may SetEnvIf Host www\.eddie-may\.com MAGE_RUN_TYPE=website SetEnvIf Host ^eddie-may\.com MAGE_RUN_CODE=may SetEnvIf Host ^eddie-may\.com MAGE_RUN_TYPE=website
- You’ll notice that I’ve used the code “may” – this was the value I entered in the new Website code field in step 5 above.
- Upload the new .htaccess file.
- Now test your new website – chances are that you’ll get an error. Downloading the error report will give a cryptic “SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘database-name.catalog_category_flat_store_3′” doesn’t exist – or something similar. If this happens, log into your Magento administration UI, go to System/Index Management & you’ll probably see that several indexes need re-indexing. Once complete, your website should now work as expected.
- If all is good, its now time to add some products. You could copy products over from the original website but personally I’d create them from scratch or upload new ones. This is because you can then optimise their descriptions, etc., to avoid duplicate content penalties, etc.
Digging for hosts on FreeBSD 10 | The FreeBSD Forums
Digging for hosts on FreeBSD 10
host(1)
host(1)
is usually part of BIND, but for FreeBSD 10 a compatible replacement has been imported from ldns-host.[~]% host arp242.net arp242.net has address 66.111.4.53 arp242.net mail is handled by 20 in2-smtp.messagingengine.com. arp242.net mail is handled by 10 in1-smtp.messagingengine.com.
It has a nice short output, which is cool. For a reverse lookup, just use the IP address:
[~]% host 66.111.4.53 53.4.111.66.in-addr.arpa domain name pointer web.messagingengine.com.
Using
dig arp242.net NS
[~]% host -tNS arp242.net arp242.net name server ns0.transip.net. arp242.net name server ns2.transip.eu. arp242.net name server ns1.transip.nl.
dig arp242.net ANY
can be done with host -a
[~]% host -a arp242.net Trying "arp242.net" ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24937 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 3 ;; QUESTION SECTION: ;arp242.net. IN ANY ;; ANSWER SECTION: arp242.net. 56930 IN NS ns0.transip.net. arp242.net. 56930 IN NS ns2.transip.eu. arp242.net. 56930 IN NS ns1.transip.nl. ;; ADDITIONAL SECTION: ns2.transip.eu. 85989 IN A 217.115.203.194 ns1.transip.nl. 7146 IN A 80.69.69.69 ns0.transip.net. 86172 IN A 80.69.67.67 Received 158 bytes from 192.168.178.1#53 in 0 ms
drill(1)
drill(1)
comes with Unbound, and behaves a bit more like dig.[~]% drill arp242.net ;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 33602 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;; arp242.net. IN A ;; ANSWER SECTION: arp242.net. 86326 IN A 66.111.4.53 ;; AUTHORITY SECTION: ;; ADDITIONAL SECTION: ;; Query time: 0 msec ;; SERVER: 192.168.178.1 ;; WHEN: Tue Mar 4 21:27:18 2014 ;; MSG SIZE rcvd: 44
Reverse lookup with -x:
[~]% drill -x 66.111.4.53 ;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 19910 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;; 53.4.111.66.in-addr.arpa. IN PTR ;; ANSWER SECTION: 53.4.111.66.in-addr.arpa. 526 IN PTR web.messagingengine.com. ;; AUTHORITY SECTION: ;; ADDITIONAL SECTION: ;; Query time: 0 msec ;; SERVER: 192.168.178.1 ;; WHEN: Tue Mar 4 21:28:04 2014 ;; MSG SIZE rcvd: 79
And classes work like dig as well.
[~]% drill arp242.net ANY ;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 62701 ;; flags: qr tc rd ra ; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;; arp242.net. IN ANY ;; ANSWER SECTION: arp242.net. 86177 IN A 66.111.4.53 arp242.net. 86177 IN RRSIG A 7 2 86400 20140807142905 20140205142905 3707 arp242.net. JWyPfrgV+sauV03/8eKSAzzM+GIRLLcqzye1BKFYsYwoAOxS+yBQNOzoSSJiuWMGj+zhvu1hyK0E3yFgSyWbzITTdigkWBwnkrVLOEnZ/CRVwj68/9MhLC/l2w7YyOyAkty2EVOWZljduVo1NIajB593JIWpDVbh0rKwn1X7IOY= arp242.net. 86177 IN MX 20 in2-smtp.messagingengine.com. arp242.net. 86177 IN MX 10 in1-smtp.messagingengine.com. arp242.net. 86177 IN RRSIG MX 7 2 86400 20140807142905 20140205142905 3707 arp242.net. MvvwO7HNnvJXOazXTbGtk28ofhPttYdiF5enHcAREs7ZevQP2k8hVF6xXZSPLScDCPP1R4CPaZrq7XtUPkWDqPSjD3zcBaIE8VyKZIPmAotR7ZpGIlmVDEdqcHlvbFZF9HWZM4wwSe8hO97sy3KRaqR3GxE167n6D0njw8B5PSY= ;; AUTHORITY SECTION: ;; ADDITIONAL SECTION: ;; Query time: 1154 msec ;; SERVER: 192.168.178.1 ;; WHEN: Tue Mar 4 21:29:47 2014 ;; MSG SIZE rcvd: 453 ;; WARNING: The answer packet was truncated; you might want to ;; query again with TCP (-t argument), or EDNS0 (-b for buffer size)
+short doesn’t seem to work, though
[~]% drill arp242.net +short ;; ->>HEADER<<- opcode: QUERY, rcode: NXDOMAIN, id: 609 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;; +short. IN A ;; ANSWER SECTION: ;; AUTHORITY SECTION: . 815 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2014030401 1800 900 604800 86400 ;; ADDITIONAL SECTION: ;; Query time: 0 msec ;; SERVER: 192.168.178.1 ;; WHEN: Tue Mar 4 21:29:52 2014 ;; MSG SIZE rcvd: 99
terça-feira, setembro 22, 2015
FlashFire is the spiritual successor to Mobile ODIN
http://flashfireapk.com/
MobileOdin
It's long overdue for release, but some i's still need to be dotted and some t's crossed. That being said, most of the functionality actually works well already, and it's pretty darned powerful. I have used it to update various Samsung devices from 4.x to 5.x, done (block-level!) OTAs on Nexus devices, etc.
If you're fairly tech-savvy and/or used to Mobile ODIN I suspect you won't have much trouble getting around with this app. Updates and the manual (which would be bloody useful, wouldn't it?) are coming over the next few days and weeks.
Notes and hints to help you use it:
- No kernels or recoveries are flashed for FlashFire to run, Android is torn down and restarted in a minimalist manner for the flashing part of the app to run. I'm sure this will completely fail on some devices.
- A lot(!) of memory is used, likely the entire operation will fail on low-memory devices. I strongly suggest you make an 'ID' backup as the very first test and see if that works at all.
- Technically it should be compatible with 4.2, but note virtually all of the testing so far has been done on 4.4 and 5.0 firmwares.
- SuperSU is required, unless you are running a CM-based ROM
- While development has focused so far on Samsung and Nexus compatibility and features, it should be able to function on many devices. Specific support for some other manufacturers is coming via updates soon.
- Individual files need to be named correctly (after their partitions) to be flashable or be contained in archives. Archive-wise, TAR and ZIP are supported. Compression-wise, ZIP, GZIP and BZIP2 are supported. These can be embedded inside each-other, so yes, you can directly flash the standard ZIP-inside-TGZ Nexus firmwares, as well as TAR-inside-ZIP Samsung firmwares. More formats are to come.
- Backups can be to internal, external (sd) or USB storage. The backups are compressed. There is no way of knowing if the backup will fit, you are not warned about this.
- Backups are standard TGZ's for file-based, and plain GZIP'd for raw partitions
- For block-level OTAs, flash a stock system partition or restore a (raw!) system (and vendor) backup before applying the OTA. After the OTA action, create a (raw!) backup of system (and vendor). The latter will be restorable to apply the next OTA.
- The embedded SuperSU version installed by EverRoot is v2.49 BETA
- Pro version is unlocked if you have Mobile ODIN Pro installed, but you still see an upgrade option. This is a (much cheaper) In-App Purchase you can optionally do, so you don't need to keep MOP installed.
- Pro version actually does nothing different at the moment.
In case of issues, immediately after rebooting back into Android:
- Post /sdcard/FlashFire/lastlog
- Post /proc/last_kmsg
The latter may not be present, and is replaced on every reboot. So if you rebooted twice, no sense posting it.
If you are reading to start messing around with it, this is how you get the BETA:
- Join the G+ community using the same Google account as you're using for Play on your phone/tablet here:https://plus.google.com/communities/...25291346007584
- Sign up to receive the BETA versions from Play here: https://play.google.com/apps/testing/eu.chainfire.flash
- Use the link provided after sign-up to download the app. Note that it may take minutes to even hours before the provided link actually works.
If you have no idea what any of the above means, you might want to wait with playing with this until proper instructions are available, and more people have tested it.
sexta-feira, setembro 11, 2015
How To Setup Multiple Magento Stores
alternative link and instructions
https://www.properhost.com/support/kb/30/How-To-Setup-Magento-With-Multiple-Stores-And-Domains
very nice.
you must have to make things easier the domains pointing to the same DOCUMENT_ROOT
then change index.php
Jump To Section
- URL Structure
- Shared Hosting Caveat
- Adding Another Store In Magento
- Parked Domain Method
- Addon Domain Method
- Sub Domain Method
- Subdirectory Method
- Managing Multiple Stores
- Secure Checkout For Each Domain
URL Structure
mall.com/shoes
mall.com/shirts
shoes.com
shirts.com
mall.com
shoes.mall.com
shirts.mall.com
Shared Hosting Caveat
domainA.com
to checkout on domainB.com
, then you will not be able to do this in a shared hosting environment.- All of your stores do not have a secure checkout, which is fine if you're using PayPal, Google Checkout, or a similar third-party service that handles the processing of card data on their website. For example, visitors to any of your stores are redirected to a third-party website for card processing.
- All of your stores are setup as sub domains, and you've purchased a wildcard SSL certificate.
Adding Another Store In Magento
shirts.com
. Adjust the values accordingly for your own store.- Login to the Magento admin.
- Go to the Catalog tab, and select Manage Categories.
- Click on the Add Root Category button on the left.
- On the right, for the Name, we'll enter
Shoes.com
. Set the dropdown toYes
for both Is Active and Is Anchor. - Click the Save Category button.
- Go to the System tab and select Manage Stores.
- Click on the Create Website button.
- For the Name, we'll enter
Shoes.com
, and for the Code, we'll entershoes
. We'll use this value later, so don't forget this! - Click the Save Website button.
- Click on the Create Store button.
- For the Website, select
Shoes.com
from the dropdown. For the Name, we'll enterMain Store
. For the Root Category, select theShoes.com
from the dropdown. - Click on the Save Store button.
- Click on the Create Store View button.
- For the Store, select
Main Store
from the dropdown, making sure it's for theShoes.com
website. For theName, we'll enterEnglish
. For the Code, we'll entershoes_en
. For the Status, selectEnabled
from the dropdown. - Click the Save Store View button.
- Go to the System tab and select Configuration.
- For the Current Configuration Scope (located on the top left), change the dropdown menu from
Default Config
toShoes.com
. - Select Web from the sidebar on the left under the General heading.
- For both the Unsecure and Secure sections, uncheck the Use default box next to the Base URL item, and enter the URL for your store, e.g.
http://www.shoes.com/
. Don't forget the trailing slash! - Click the Save Config button.
Parked Domain Method
shirts.com
and shoes.com
. The shirts.com
domain is our primary domain, and Magento is already installed on it. Here's how we would set this up for the shoes.com
domain:- Login to cPanel for your domain and click on the Parked Domains icon.
- In the input field, enter the domain name that you'll be setting up as a second store, e.g.
shoes.com
. - Click on the Add Domain button.
- Open up the
index.php
file for Magento and look for this line (it's the last line of the file):Mage::run($mageRunCode, $mageRunType);
…and right before this, we're going to add the following code:switch($_SERVER['HTTP_HOST']) { case 'shoes.com': case 'www.shoes.com': $mageRunCode = 'shoes'; $mageRunType = 'website'; break; }
If you have more than two stores, you will need to add additional cases to the above code block, e.g.:switch($_SERVER['HTTP_HOST']) { case 'shoes.com': case 'www.shoes.com': $mageRunCode = 'shoes'; $mageRunType = 'website'; break; case 'hats.com': case 'www.hats.com': $mageRunCode = 'hats'; $mageRunType = 'website'; break; }
Addon Domain Method
shoes.com
domain:- Login to cPanel for your domain, and click on the Addon Domains icon.
- For the New Domain Name, we'll enter
shoes.com
. cPanel will automatically fill in the next two fields, so removepublic_html/
from the Document Root field, leaving us with justshoes.com
. This step isn't required, but for organizational purposes, it makes more sense. - Set a password for this domain and click on the Add Domain button.
- Login to your site via SSH, and go to the directory that we previously set in the Document Root field above when adding our domain. In our case, we would do the following:
cd shoes.com/
- Copy the
index.php
and.htaccess
file from the directory where Magento is installed, which would be in our root web directory:cp ../public_html/index.php ../public_html/.htaccess .
- Open up the
index.php
file and look for this line (it's the last line of the file):Mage::run($mageRunCode, $mageRunType);
…and right before this, we're going to add the following code:$mageRunCode = 'shoes'; $mageRunType = 'website';
- Lastly, we need to create symbolic links to point to a few directories:
ln -s ../public_html/app ./app ln -s ../public_html/errors ./errors ln -s ../public_html/includes ./includes ln -s ../public_html/js ./js ln -s ../public_html/lib ./lib ln -s ../public_html/media ./media ln -s ../public_html/skin ./skin ln -s ../public_html/var ./var
Sub Domain Method
mall.com
, and it's setup as a portal that links to the various shops within the mall. Magento will be installed on the mall.com
domain, and all of the shops will be in sub domains, e.g.:shoes.mall.com
shirts.mall.com
shoes
sub domain:- Login to cPanel for your domain, and click on the Sub Domains icon.
- For the Sub Domain, we'll enter
shoes
. cPanel will automatically fill in the next field, so removepublic_html/
from the Document Root field, leaving us with justshoes
. This step isn't required, but for organizational purposes, it makes more sense. - Click the Create button.
- Login to your site via SSH, and go to the directory that we previously set in the Document Root field above when creating our sub domain. In our case, we would do the following:
cd shoes/
- Copy the
index.php
and.htaccess
file from the directory where Magento is installed, which would be in our root web directory:cp ../public_html/index.php ../public_html/.htaccess .
- Open up the
index.php
file and look for this line (it's the last line of the file):Mage::run($mageRunCode, $mageRunType);
…and right before this, we're going to add the following code:$mageRunCode = 'shoes'; $mageRunType = 'website';
- Lastly, we need to create symbolic links to point to a few directories:
ln -s ../public_html/app ./app ln -s ../public_html/errors ./errors ln -s ../public_html/includes ./includes ln -s ../public_html/js ./js ln -s ../public_html/lib ./lib ln -s ../public_html/media ./media ln -s ../public_html/skin ./skin ln -s ../public_html/var ./var
Subdirectory Method
mall.com/shoes
mall.com/shirts
shoes
subdirectory:- Login to your site via SSH, and create a subdirectory where your second store will be:
cd public_html mkdir shoes/ cd shoes/
- Copy the
index.php
and.htaccess
file from the directory where Magento is installed, which would be in our root web directory:cp ../public_html/index.php ../public_html/.htaccess .
- Open up the
index.php
file and look for this line (it's the last line of the file):Mage::run($mageRunCode, $mageRunType);
…and right before this, we're going to add the following code:$mageRunCode = 'shoes'; $mageRunType = 'website';
Managing Multiple Stores
Default Config
, it will globally change the values for all of your stores, assuming you haven't removed the checkmark next to Use default throughout the configuration sections.Secure Checkout For Each Store
httpd.conf
file to give the addon or parked domain a dedicated IP address. However, this is not advised. Your changes will most likely be overwritten with a control panel upgrade, Apache or PHP rebuild, or even simple maintenance.Error while adding an Addon domain in cPanel.
Detailed error message:
Error:Using nameservers with the following IPs: xxx.4x3.xx9.2x,6x.xx8.xx9.1xx Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver.
Solution:Do follow these steps:
Login to WHM >> Home >> Server Configuration >> Tweak Settings >> Find "Allow Remote Domains" option under Domain group and turn ON it >> then SAVE.
###Please See###
(Note :Allow creation of parked/addon domains that resolve to other servers (e.g. domain transfers) This can be a major security problem. If you must have it enabled, be sure not to allow users to park common Internet domains.Please make sure that this option is turned OFF after adding Addon domain.)