FAQ Database Discussion Community


Div Text's Color Changes when Printed

html,css,css3,media-queries,media
I have a div with white text color. Using css media queries. @media print { .myid_print_duo_name { z-index: 2; position: absolute; left: 0px; top: 330px; width: 303px; height: 28px; line-height: 28px; text-align: center; color: white !important; font-weight: bold; font-size: 20px; font-family: "Times New Roman"; } } My text looks like...

Can't display images on html page from database

python,django,media
I see only icons with urls like /media/image.jpg. I think problem in urls.py, but I don't know how to resolve it. Can someone help me? settings.py: ... MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') .... models.py: .... class Image(models.Model): product = models.OneToOneField(Product) top_image = models.ImageField(upload_to='media/', verbose_name ="Главное изображение") second_image =...

magento product image returns 404

php,magento,nginx,media
I’m fresh install Nginx + PHP5.4 + Magento 1.9.1 + Theme. I upload a product with image. The image can not be show in frontend. The url like http://www.example.com/media//650x/d/e/desk1_2.jpg can not be accessed. But url http://www.example.com/media/catalog/product/d/e/desk1_2.jpg is ok. Nginx log shows that GET /skin/frontend/ultimo/default/images/infortis/_shared/cck/list/bullet.png HTTP/1.1” 200 172 “http://www.domain.com/media//650x/d/e/desk1_2.jpg How can...

Bootstrap 3 fix container width to media breakpoints

twitter-bootstrap,twitter-bootstrap-3,sass,media,breakpoints
How can I fix width of the container to be equal to media break points? Twiter.com does something similar to this. The layout is pretty constant until the user resizes the window to a media breakpoint. Then the layout is changed.

C#: Upload Photo To Twitter From Unity

c#,twitter,unity3d,upload,media
currently I am working with unity. In this project, I need to post some status with image to twitter. However, I got a problem to upload the image to the Twitter. Here is the code, which I used to upload the Image: private const string UploadMediaURL = "https://upload.twitter.com/1.1/media/upload.json"; public static...

Return video with Javax Rest Api

java,rest,media
I'm working on android app and back-end server Rest API part. I'm at the point where i need to return some video files from the server back to my android device. How can i do that? I looked up jersey documantation https://jersey.java.net/documentation/1.19/jax-rs.html#d4e142 and http://www.vogella.com/tutorials/REST/article.html#restjersey_annotations but din't have any luck figuring...

Cordova media plugin and local files in Windows Phone 8

cordova,audio,windows-phone-8,media
I want to port cordova app to Windows Phone 8 platform. But there's come troubles with sound. There was string new Media('/android_asset/sounds/bell.wav'). When I changing param to 'sounds/bell.wav', error code is 1. If I put 'x-wmapp0:www/sounds/bell.wav' or 'file:///www/sounds/bell.wav' there's no errors but sounds is not playing. URLs from Internet (files...

Media content tag missing from rss feed generated by Rome 1.0

rss,media,rome
I am trying to add some media content to my Rome 1.0 generated RSS feed. But the feed that generates is without my media content tags. I've been looking all over the Internet for answers but no site has really been helpful this far. How do I get my media...

What is the purpose of the LowLag* advanced features in the MediaCapture class?

windows-runtime,media,video-capture,image-capture
I don't see a real difference between the LowLag* features (controlled by LowLagPhotoCapture, LowLagPhotoSequenceCapture and LowLagMediaRecording classes) and the more classic CapturePhoto* and StartRecord*/StopRecord* methods of the MediaCapture class. What are their purpose ? What advantages have they over the classic methods ?...

Media query using jquery

jquery,css,media-queries,media
i am using same view page (with css) in 3 different areas where resolutions are different , Here my problem is i want some block of media query at some condition only like.. if( a == 20) { @media (max-width : 900px) and (min-width :500px){ // some code } }...

Creating a music player with javafx and scene builder

java,media,fxml,player
I'm trying to create my own version of itunes, and need some help. I am trying to create a music player and this is my method: public void audioPlayerButtons(ActionEvent actionEvent) { if (actionEvent.getSource() == playbtn) { String bip = "/Users/april121/Work/MyMusic!/src/sample/Songs/01 Clarity.m4a"; Media hit = new Media(bip); MediaPlayer mediaPlayer = new...

How I can host Media files like mp3 in a diffrent server? [closed]

php,media-queries,hosting,media,server
How I can host Media files like mp3 in a different server ? I have a website for converting videos to audio. I want to host this audio files in a different server, but I want to keep the codein the first server. Is this possible? For example, if the...

Restricting upload to mp3 only

php,mp3,media,uploading
I have been working on a PHP script that allows people to upload MP3 files to the server: $target_dir = "upload/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $fileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $uploadOk = 1; }...

Thumbnails in media library not showing after upload path change

wordpress,upload,directory,media
After making these changes to change the folder for uploads I can no longer see thumbnails in my media library after uploading. Could anyone suggest a fix? Screenshot: http://take.ms/wtGMZ Steps I took to do it: http://www.hongkiat.com/blog/wordpress-custom-upload-dir/...

Media files end up in in a pycharm subdirectory when uploading

django,upload,directory,settings,media
I am building a Django application on a Windows system where the user should be able to upload images. But somehow my uploades files end up in my Program Files directory at: C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5.1\jre\jre\bin\WebApp\media\TestData\static\images I just can't understand why I get this result. I would like...

Mediawiki media query wont take effect on browser resize when using firefox and IE

css,media
<meta name="viewport" content="width=min-width, initial-scale=1.0"> @media (max-width: 455px) and (orientation: portrait) { #border-search { display: none; } #n-recentchanges { visibility: hidden; } #n-randompage { display: none; } /*sidebar appearance*/ #column-one { background: none repeat scroll 0 0 #5B5B5B; float: left; text-align: center; margin: 0 0 0 1%; min-height: 149px; padding: 10px...

How to debug Mobicents Media Server

debugging,server,media,webrtc,mobicents
I'm using RestComm Client iOS SDK to make a call to my RestComm instance deployed locally, but I'm having issues setting up a WebRTC call (something seems to be wrong with the STUN pings as part of ICE). How can I attach the eclipse debugger on the RestComm Media Server?...

Javafx - Create player (which doesn't play file)

java,video,javafx,media,player
I have a class that create video player (code is attached below), this class work only with video file. I want to show the player without a video file, and when I send to the object, by public method "setFile", it's will start to play. I tried to send "null",...

Python Django media url not working after setting DEBUG = True

python,django,debugging,media,media-url
As stated in topic, my Django site media url is returning 404 after trying to access it. Everything was working flawless until I wanted to end the development process and set DEBUG = True in settings.py to have the site finished once and for all. When I change DEBUG back...

Media is not overriding the original css

css,override,media
For some reason my @media doesn't override my original css. The thing it shows up in my inspector, but it is crossed. I made sure my media override is under my other css. Css code: #content div div:nth-child(even) p{ margin-left: 40px; } @media (max-width:880px){ #content div div p { margin-left:...

Resize Buttons for Mobile

css,button,media-queries,media
I am trying to make my current CSS buttons on my website 2 or 3 times their actual size for mobile devices.. i'm not having much luck The sytles .all-news-btn { background: #666666; background-image: -webkit-linear-gradient(top, #666666, #333333); background-image: -moz-linear-gradient(top, #666666, #333333); background-image: -ms-linear-gradient(top, #666666, #333333); background-image: -o-linear-gradient(top, #666666, #333333); background-image:...

PhoneGap Cordova Media Plugin - How to integrate/install?

javascript,android,cordova,plugins,media
I have been searching everywhere and trying everything, but I just can't seem to be able to use cordova's Media plugin. (e.g var sound = new Media("sound.mp3"); ) I've tried everything and can't seem to get it to work. Please put me out of my misery and give me a...

Record and Playback Video in a byte format

media,ms-media-foundation
Exactly as it is explained in the title I need to have an application that uses Media Foundation and get stream of data in a raw format save it with out any container then play it back. I need the easiest solution for that I don't want to customize any...

Using Swift to display title of currently playing .MP3

swift,media,music,player,artwork
I was wondering if there was a straight forward way of displaying the image and title of the currently playing MP3 file my music player is playing. My code is as follows and is very simple for this example. I am only wanting to test using one .MP3 that I've...

Orchard 1.8 – Media Library items sync with physical folders

orchardcms,media
I have a new install of Orchard 1.8 and need to sync all images in the /media/default/ directory to the Media Library catalog of items (‘Media’ link in Dashboard). Currently the Media Library lists only the FOLDERS but not the items (images, docs, etc.) within them – only when the...

Changing article height with @media query

css,iframe,responsive-design,media,overlapping
I'm trying to change the height of the Twitter feed module you can see here. The layout was done by the vendor we're using for our WCMS, so the CSS is proving a little difficult to navigate. I resized the iFrame for the feed so that it spans two rows,...

Media Query (for iPhone) Section Not Being Applied; Other Queries Working

css,iphone,safari,media,breakpoints
currently working on a temp page for a restaurant as seen at: mattt.co/ok-rm/iddu. I've set up a number of @media breakpoints for large-to-small desktop screens as well as for mobile. The queries seem to work fine, however, one specific query is not functioning properly, and that is the '.footer1 a,...

Media Queries not working at all whatsoever

html,css,media
I am in despair. I am trying to make a website and make it mobile-friendly and responsive, however, I cannot seem to get any kind of media query to work at all! All my sizes, width and heights are in "%/em" and my font-sizes are in "vw/em". The biggest problem...

Using Guava 19.0, is there a way to map a file extension to a MediaType?

java,file,media,guava
I have a full file path and would like to determine the MediaType (Google's Guava 19.0) it corresponds to. I thought there would be a built in function in MediaType to accomplish this but I don't think so after experimenting and reading the MediaType API. I know I can accomplish...

Android Media Player not Working with Buttons

javascript,android,media
my MediaPlayer is not working. I have 9 Buttons and 9 Songs. One Song is for one Button. All buttons are not working! Sorry for my bad english i come from Germany Here is my code: import android.media.MediaPlayer; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import android.view.View;...