What is the minimum vale of "initial-scale" in meta viewport tag?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
14:42
Vote count: 0 While experimenting with the meta viewport tag I noticed that any value less than 0.25 for initial-scale is treated as 0.25. E.g. all of the following <meta name="viewport" content="width=device-width, initial-scale=0.25"> <meta name="viewport" content="width=device-width, initial-scal...
Check if generic parameter type derives from some class X
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
14:42
Vote count: 0 What is the proper way of check if the type parameter if of type (or derives from) some type X? E.g. Function MyFunc(Of T As BaseClass)() As T If TypeOf T Is GetType(ChildClass1) Then 'Do something specific to ChildClass1 End If 'Do things common to all BaseClass objects End Function T...
Grouped context menu items in a Chrome extension
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
13:40
Vote count: 0 I have the following data structure (sample): Folder1 - Folder2 - Snip1 - Snip2 - Folder3 - Snip3 - Snip4 - Folder4 - Snip5 There is no limit on nesting of folders inside one another I need to allow the user to insert a particular snip whenever he/she right-clicks on a textarea. Now, I...
Run code automatically when cells/sections added/remove from `UITableView`, but not reload?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
13:40
Vote count: 0 Is there an elegant way, without subclassing UITableView, to run code reliably whenever the "insertSections:", "deleteSections:", "insertRowsAtIndexPaths:", and/or "deleteRowsAtIndexPaths:" are called? Preferably in the UITableViewDelegate and still having access to the NSIndexPath or ...
Constructor is Underfined
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
13:40
Vote count: 0 I am getting an error saying my constructor Book(String, int) is undefined. I check everything else and try to redo my programs still has an error. Any solutions of fixing this issue? Book Class: public class Book extends SaleItem{ private String author; private int numPages; public Bo...
Reverse GeocodeLocation Crashes
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
12:31
Vote count: 0 I am receiving a few crash reports from a live version of my app. They all are focused around the following lines of code in update location. Please let me know if you see anything wrong with it. All reports specifically point to the reverseGeocodeLocation portion. Thanks for any help ...
My android stuck with page in Chinese
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
12:31
Vote count: 0 my device is HTC desire 816 dual sim, and now the android system stuck on form with Chinese language. even after i made factory setting it still stuck with the same screen. so what does it need to get back to normal factory setting? asked 2 mins agomohamad salama Let's block ads! (Why?...
How To get an mp3 or wave file from java program without knowing the name and url of the file?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
12:31
Vote count: 0 I have created a Mediaplayer in Java .. It can Play both .mp3 and .wav files .. I create its setup installer and install MediaPlayer on my computer .. Then i set My MediaPlayer as a default program for Audio files on my computer .. Now Problem is that when i open an audio file on my co...
Initializing private variable vector in a templated class in c++
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
10:13
Vote count: 0 I'm currently working on a template graph class that utilizes two vectors to create an adjacency matrix. I can get this to work outside of the template class, but I can't seem to initialize the vectors. Here is what I have: #include <stdexcept> #include <vector> #include <list> #includ...
Why can't I locate or navigate to this directory that my find command grabs?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
10:13
Vote count: 0 I ran sudo find -L / -name .rvmrc and got: /Library/Application Support/Comodo/Antivirus/Quarantine: Permission denied When I try navigating to the directory I can only get to Application Support, and then from that directory when I run cd Comodo I get Comodo: No such file or directory...
why odata specs return 204 and 404 for those two similar cases
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
10:13
Vote count: 0 In http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.html 11.2.7 Requesting Entity References If the resource path terminates on a single entity, the response MUST be the format-specific representation of an entity reference pointing to the related single entity. If...
Calling function in static member variable
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
8:07
Vote count: 0 I'm trying to call a function in a static class variable but I have some problems This is the minimal example #!/usr/bin/php <?php class Foo { public static $func; public static function call() { echo "calling funcn"; if ( isset(self::$func) && is_callable(self::$func)) self::$func(); ...
FacebookFacebook cyrillic symbols issue
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
8:07
Vote count: 0 I get user name by this code. If user name is in Russian (Cyrillic) it will always something like: Р?лья Мартьянов if (isset($accessToken)) { // echo "Request"; $response = $fb->get('/me?fields=id,name,email,hometown', $accessToken); $user = $response->getGraphUser(); } How...
how to get dark image overlay upon hover
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
8:07
Vote count: 0 currently trying edit my tumblr theme, and my goal is to have some type of overlay that darkens over the post images on upon hover. so basically, when you hover over the post it'll just tu dark so that you'll be able to see the text/ links i'll put over the image later. no matter what ...
How does the browser download the source file from a video tag
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
6:55
Vote count: 0 I am looking at a website that displays a video tag plays an m4a file. In the html the source url of the m4a file is given. The source url and the url that the player is being displayed are the same. If I load up the source url in the browser it just loads up the same player. I can dow...
Fresh install of WAMP on Win 10, localhost shows error 404, but phpmyadmin connects
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
6:55
Vote count: 0 So I installed fresh, the WAMP on my windows 10 64bit, after installing all VC files (the 2015 VC versions showed an restart error). The installation was successful but cant see localhost - error 404, phpmyadmin co ects correctly. What might be the solution? asked 1 min agoKelumon Let'...
How can the client and server pause to wait for the other to send the next message?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
6:55
Vote count: 0 I am building a java client and server that plays a guess my number game. The server tells the client the range of numbers, the client enters a guess, and the server retu s "Try Again" or the number if the client guessed the correct number. The server also needs to be multithreaded. I ...
Change content inside from "sort posts by category" menu without page load
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
5:49
Vote count: 2 My first post here on this website and I am seeking some guidance for my first custom wordpress theme. I am extremely new to jQuery/AJAX and it hurts my brain at this moment as this entire process has been one lea ing curve after the next. So please forgive my inability to see between ...
Go: declaring a slice inside a struct?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
5:49
Vote count: 0 I have the following code: type house struct{ s := make([]string, 3) name string roomSzSlice := make([]roomSz, 3) } func main() { } And when i try to build and run it i get the following errors: c:gosrctestmain.go:10: syntax error: unexpected := c:gosrctestmain.go:11: non-declaration s...
QT Android application crashes at startup when adding libvlcjni.so
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
5:49
Vote count: 0 I would like to use libvlc with an Android QT application, but the application always crash at startup. To ensure that it isn't a compile problem, I've copied the libvlcjni.so from this project: https://github.com/mzafers/QtVlcMediaPlayer, but continue with the same problem, the applic...