How do I upload a screenshot in google projects? - google-code

I recently created a project (open source) on Google projects hosting. I want to upload a screenshot, but I am not able to do it. Does anyone have a clue ?

You need to host the image on a different server and reference it by simply writing the URL such as http://code.google.com/images/code_sm.png in the admin text area.

You can put the images in source repository and reference them from there. Simply upload it, browse through the directory and try to view for example the .png file. It will say 'This file is not plain text'. Look out for the link 'View raw file' on this page. Click on the link and you have the URL you need for the wiki. Worked for me with git, dont know about other vcs.

Related

WP File Manager - Cannot view PDF

I am working for a client and cannot seem to find the solution to this issue. When changing the file path for the root directory of the WP File Manager we can "lockdown" and specify that we want the /home/site_name/files folder for the users to see when logged in. The default file path is /home/site_name/ and I can view the PDF's in the files folder by navigating and opening them up.
But once I specify that I want only the contents in the /home/site_name/file to be viewed I can no longer open the PDF's, it will give me a 404 this page cannot be found. If I take this URL and add in the /files/file_name then it loads... there is some disconnect between the link and the file path and I cannot figure it out.
Let me know if anyone has seen this before while using Wordpress File Manager!
Thanks!!
Update: After contacting the developers of the plugin there was a known issue with it, now with the new version the bug is fixed

How to force Microsoft Edge to download file using correct file extension?

I don't know why, but clicking an anchor link to a .themepack file in Edge causes Edge to change the file extension to ".htm" instead, but only on my site. The .themepack files available on the Microsoft gallery do not behave this way.
Given this, I'm sure it must be a server configuration, but I can't determine how to fix it. At first it was trying to display the .themepack (it's a cab format file) as if it was text, right in the browser. I added the html5 attribute "download" to my <a> tag and that prompted for download, but it still tries to name it as .htm.
Demo of issue:
https://soulcon.com/downloads contains a link to https://soulcon.com/img/SOULCON.themepack
This either tries to show as text, or if you use the page to click the link containing the "download" attribute, it downloads as a .htm file.
Links at https://support.microsoft.com/en-us/help/13768/windows-desktop-themes do not cause this.
Considering this site is on managed wordpress by GoDaddy, I don't have any true direct access to the server.
You need to associate the .themepack file extension with the application/octet-stream MIME type on the server. Ask a support person at your hosting provider how to do that. It may be doable with an .htaccess file.
Worked round the issue by zipping the file.

Error when distributing an IPA over the air with dropbox - iOS 7.1

As Apple requested to use https instead of http for distributing the IPAs over the air, I tried to use dropbox. I followed this solution Enterprise app deployment doesn't work on iOS 7.1 but I'm getting this error:
"Cannot connect to dl.dropboxusercontent.com"
when trying to install the plist through this link: <a href="itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/56ny312cwdacho7/xxxxx.plist> Install </a>
Thanks in advance.
NOTE : Shared links don’t render HTML content in a web browser
Refer https://www.dropbox.com/help/desktop-web/force-download
Check question
How to force render a file in a browser
EDIT : Reason is you will need to change link url and reupload it :
replace www.dropbox.com with dl.dropboxusercontent.com inall links
Reupload by making changes in link which are in html and plist file again.
Thats it. Enjoy
TOTAL SOLUTION
Needed file for distribution using example link are given below :
Build your app from xcode using Build and Archive option. Upload your ipa file to Dropbox. And get public link for the ipa.
Note : replace www.dropbox.com with dl.dropboxusercontent.com in the link.
Download the manifest.plist - edit the line #14 with the public link of your ipa . Modify other keys as well (bundle-identifier, bundle-version, title) .
Upload the modified manifest.plist to Dropbox and get its public link.
Download the index.html - edit url param at line #8 with public link of your manifest.plist
Hosting using Github. How that can be achieved is explained in following steps
Create a new project.
Add index.html as we will be hosting a site in Github Pages. Note
html file with other name will not be valid as it should always be
with index name.
Now go to project settings. Traverse through Github Pages
Under source tab select master-branch and click on save
Traverse back Github Pages you will see site will be published
Now you have Download link like https://paresh-navadiya.github.io/install.html/
Refer How to distribute using DropBox by #
oldman's answer and Distribute your iPhone/iPad adhoc builds Over The Air using DropBox
It working 100% percent.
Have a nice day to all :)
I had exactly the same issue. Firstly I tried putting all of my files in the public folder of my dropbox account. It still didn't work but I noticed with modifying my plist file I had overwritten the closing "</string>" XML tag for the ipa file itself. Once I added that back in it all worked. So whether it would have worked without moving to the public folder I do not know. I haven't tried because I have the result I desire for my users.
I faced the similar issue with dropbox few days back, saying cannot connect to dl.dropboxusercontent.com, what I did is deleting the sharable link which I created earlier and created a new sharable link for both plist and ipa files. And I updated these links in plist and html page. I don't know what was wrong with my old sharable links. Hope this answer might be helpful for someone.
Happy coding.
As already pointed out in a similar reply here, if the PLIST file is malformed, this error will appear.
In my case, I forgot the fact that the ampersand ("&") charcater is forbidden in XML, and the name of my app contained "&" in it, so I had to replace the & with & in the containing the name and everything worked.

how to show an uploaded image on jsp page

when I am uploading an image into serverside, and saved in a specific folder. Then on the next page I have to show that uploaded image. But I cant show it using the html img tag . what is wrong with this?.Can any one help me to solve this problem?
You likely need to make sure that the folder that you are uploading the images is accessible through the web server your are using, this would mean both that it's location is mapped to something on the web server and also that the web server has permission to read the image files after they have been created.
I would start by looking to make sure that the files are actually showing up in the folder that you expect them to be in, and that they aren't being cleared out by something.
Second, check if you manually place an image in that folder if you can navigate to the url of the image. If you can't it likely isn't mapped or there is a permissions issue.
You can test to see if the URLs of the images are working. Instead of just checking it through an img tag, navigate to the URL directly and see if you get some kind of an error, this might help you troubleshoot the issue.

Uploaded pictures not included in project

I have upload control on my asp.net page. I upload pictures in folder cars and they show in windows explorer when I open that folder (cars), but in Visual Sudio they act like they not include in project ( that is the reason why they don't show on image control which point to some of them. What did I make wrong ?
Uploading the images in the web application will never make any changes to your project. You will have to add them manually if you'll need them there. But generally these are pictures added by your user so the would just be in the file system - not really part of the solution, are they?
If you have choosen a webSITE then it will allow this, but not if a webPROJECT is selected.
I didn't find this on net, but I had two projects, and the one which was allowing me to show uploaded files was a website.
You have to click the refresh button at the top of the solution explorer in Visual Studio for it to show changes to the files.
You have to click Refresh button. Also ensure that "Show all files" icon is selected. And finally, you will have to right click on the files and select Include in Project. That way it would become part of your project.
If I may ask, what exactly are you trying to achieve in your application? The reason I ask is, if there is an upload happening in your application, you shouldn't need to include the files in your project to refer to it from code.

Resources