can't install the ADT Plugin - adt

RT.
It can't connect to https://dl-ssl.google.com/android/eclipse/ or http://dl-ssl.google.com/android/eclipse/
And I open the web site by browser,it returns 404 not found.

How are you trying to connect? Those URLS are meant to be pasted in to the Eclipse "Install" window.
To get there click: Help>Install New Software
Then, click the "Add" button and paste the URL in where it says "Location". Name it ADT (or anything you want) and click "OK".
That should start the install.

Related

Accessing ExternalStoragePublicDirectory in Google Chrome ARC app

We have a feature in our app which can save file to ExternalStoragePublicDirectory. Below is the directory path we are using.
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);
It looks like file is getting saved in the directory. But I cant locate the saved file in Desktop or Chromebook. Can anybody please point me to right direction?
Under ARC, your external storage files are being read and written to the HTML5 filesystem. Under Chrome app (yours included) gets its own filesystem.
You can view this filesystem with Chrome (desktop or Chromebook) using some experimental developer tools. You have to enable them and then restart the browser. Here is how:
Visit "chrome://flags" in your browser.
Search for "Enable Developer Tools experiments", and click the "Enable" link.
A prompt to restart your browser should have appeared. Go ahead and click it to restart your browser.
Go ahead and launch your app. It needs to be running so that you can browse the filesystem.
Next visit the "chrome://inspect/#apps" page in your browser, and find your app in the list. Click the "inspect" link to bring up the inspector window.
Click the gear icon in the upper right of the window.
Click the "Experiments" tab listed on the left side of the popup. This is only visible if you enabled the experimental features at all.
Click the "Filesystem Inspection" checkbox to enable the filesystem viewer.
Finish up by closing the options page with the "x" at the top left.
Now you can view your app's filesystem.
From the inspector window for your app, click the "Resources" tab along the top.
You should see a "FileSystem" option appear in the list on the left side. Click it to expand it.
Click the "persistent -chrome extension:" subpanel.
You should be able to then navigate to the download directory by expanding the view that appears. I believe for downloads you want "/storage/sdcard/Download".
Selecting the directory will display basic metadata on all the files in the directory. Selecting the file might display it if it is supported. Or you might just get a "Binary File" message if not.
If you want to actually manipulate the data beyond that, you will need to connect with the browser with the Android adb command/shell, and you should be able to "adb pull" the file. See https://developer.chrome.com/apps/getstarted_arc#bestpractices to get going on that.
You can also add {"enableExternalDirectory": true} to your application's metadata. Enabling this option means that ARC will prompt you for the directory to use for for the external directory, and you can pick a real directory on your system to use. But if you already download a file prior to enabling this feature, you will have to download it again.

Current info on obtaing Firefox extension source code

I've searched here and tried many of the suggestions but things seems to have changed since these posts were answered. Is there new information on how to look at the source code of an extension directly? By directly I mean not through some other add-in.
At the moment I am on a machine running Windows XP and Firefox 23.0.1.
When I go to any extension page the "download" button changes to "install" in an instant and no right-clicking or options in the dialog gives me the opportunity to save rather than install the plug-in. I've tried this many times and many different ways.
When I drill down to the ...\Application Data\ ... directories I am finding what just looks like config and data files -- no source code.
What i usually do is go to that extension's page in google chrome and it will show this:
You click "download anyway" and then change the file extension from xpi to zip and extract it.
Hope it helps
EDIT:
Either in Firefox or Chrome you can also right click on the button like in the following image and click Save Link As:

Issues opening project file in tfs?

I am trying to open a project/website for edit in TFS and I'm having a lot of issues. TFS is proving a learning curve for me...
I'm trying to access files in the 'forms' root...
These are the steps I’m taking…
Right-click on ‘forms’ and click on “Get Latest Version”
Then this screen pops up…
When I hit OK, then I right click again, and click “Check Out for Edit”
I hit “Check Out”
Then to open the site, I go to File > Open > Web Site…
Then the File System comes up… I selected ‘forms’, as you suggested…
Once it opens, I see this…
I double-click on ‘Default.aspx’, and this comes up…
When I view in Browser, this is the screen I get…
Where am I going wrong?
Here's the best way to accomplish what I was trying to do. This was after several hours of trial/error...
Open a Web Site…
Select Source Control Project…
Choose the site root.
It may prompt you to receive a local copy. Do this.
If it asks you to change frameworks, say no.
In the Solution Explorer, a new .sln file should be generated, with properly bound files:

Magento development environment on windows with debug capability

I have seen hundreds of post on how to setup an Magento development environment for Windows. But nowhere i could find a good tutorial on this works with proper debugging enabled. I have tried many IDE's and debugging frameworks (Zend, Xdebug) but i can't find a way to actually get this to work.
It would be great if i could set a break-point in an .phtml file so i can see what is going on and check all variables/objects.
Any (experienced) Magento developers who can explain on how to setup a proper development environment for Magento on a windows machine.
Hope to get some feedback....
Here is a simple step-by-step
Download the latest version of Z:WAMP
Extract Z:WAMP wherever you like.
Download the XDebug DLL
Copy the XDebug DLL to {zwamp directory}/vdrive/.sys/php/ext/
Add the following text to the bottom of the {zwamp directory}/vdrive/.sys/php/php.ini file
[xdebug]
zend_extension="/.sys/php/ext/php_xdebug-2.1.0RC1-5.3-vc9.dll"
xdebug.remote_enabled=1
xdebug.remote_connect_back=1
Run {zwamp directory}/zwamp.exe and accept the security messages for Apache and Mysql.
Delete everything under {zwamp directory}/vdrive/web/
Copy your magento project into the {zwamp directory}/vdrive/web/ directory
Download the latest version of NetBeans PHP and install it.
Start netbeans and click File > New Project
Click the PHP Category, Select the PHP Application with Existing Sources option
Click Next
Click Browse on the Sources Folder option
Select the {zwamp directory}/vdrive/web directory
For PHP Version, Select version 5.3
Click Next
For Project URL enter "http://127.0.0.1/" (Magento had/has a problem with names that do not have a TLD)
Click Finish
Wait for the Scanning Projects.. to finish (bottom right status bar, it takes a while)
Open a code file, add a breakpoint, and run in debug mode (Ctrl-F5).
Profit!
To turn off the 'break on start' option
Select Tools > Options
Select PHP
Select the General tab
Under Debugging, un-check the Stop at first line option
Click Ok

On publishing a click once installer through install from web, the installer does not appear on the webpage

I am creating a clickonce installer using the deployment strategy of Install from the Web or network share, on one of my project. I am learning how to use click once installers. When i publish my project it gets succeeded. i gave the URL of my website that i had created through google so that anyone can install from that URL. After publish gets succeeded the URL should be launched automatically but it is not. Moreover. When i check my website and in it that page whose URL i had given, there is nothing there. No installer. Please help.
Right Click on Publishing Project
Click Properties
Click "Publish"
In "Publishing Folder Location" is anything set there?
Click the button with ellipsis (...) to the right of the combobox
Click "FTP Site" (not Remote site, as this needs FrontPage extensions)
Enter the Server information, Directory (that you have access to), keep it as passive mode, uncheck the Anonymous option and put in the valid FTP instructions.
Click Open, and Republish. All should work 100% with this.
If not, have a look in your wwwroot/ folder and find the application information (if it's there) and you will have to manually upload the files.
EDIT for comment:
The website that you are uploading to, does it have FTP access? Meaning a place that you would upload file to for display on the website, even like your html content? (index.html etc.)
If not, you will need to get these details from your website hosting provider and fill in the appropriate fields for the FTP upload.
It's a while since I did this, but I'm fairly sure that you have to upload the files manually.
The installer needs the location so it can build the web page etc. All the files should be in an output folder in your project.
EDIT: I've just checked and the output folder is the one you specify on the first step of the Publish Wizard. If you specify a local folder the files will be put there for you to FTP to your website later. You can also specify a remote address as and FTP or HTTP location (which I'd forgotten when I posted my original answer). You'll have to enter the user name and password for connecting to the remote location later in the process.
Are you using Visual Studio 2008? The default behaviour of deploying a "publish.htm" page has changed.
Bring up your project's properties and switch to the "Publish" tab. Click the "Options" button and switch to the "Deployment" section of the dialog. You'll see by default that the "Deployment web page" TextBox is empty. You'll need to give that a value and also check the "Automatically generate deployment web page after every publish" CheckBox.
I've taken to filling that in with "default.htm" so that whichever folder you deploy your app into will have the ClickOnce publish page as its default page.

Resources