USB Bluetooth Dongle for logging into Beaglebone Black
◷
تاریخ انتشار: 1395/2/3 | ساعت: 11:16
Vote count: 0 I'm trying to wirelessly log into my Beaglebone Black (Debian, Rev C) using a USB bluetooth dongle. The dongle is recognized, and other computers w/ bluetooth radios can see my Beaglebone, but for some reason I can not create a session in putty using the Serial option. My process: SSH ...
Sonatype Nexus 3 504 Gateway Timeout when pushing to hosted Docker repository
◷
تاریخ انتشار: 1395/2/3 | ساعت: 11:16
Vote count: 0 I am getting 504 GATEWAY_TIMEOUT when pushing to a hosted Docker repo on Sonatype Nexus 3. I'm trying to push a multi-GB layer: 451c9f0946ad: Image already exists 97444a62d0da: Image already exists 3acdb070c7f5: Image already exists 78362681bd49: Image already exists 5890a244c36a: Push...
Replacing an even element with another element
◷
تاریخ انتشار: 1395/2/3 | ساعت: 10:14
Vote count: 0 I am having trouble with this part with my class assignment. It ask to replace an even element with a 0. I have tried but kept getting error for trying to divide it in anyway. Is there a way to replace even numbers with 0, I might end up adding a user input later on, so have to code wh...
Chrome Extension get current theme background
◷
تاریخ انتشار: 1395/2/3 | ساعت: 10:14
Vote count: 0 I have a chrome theme that changes the new tab page, and I would like to get the image background of the current theme. I found that the theme image can be accessed at chrome-search://theme/IDR_THEME_NTP_BACKGROUND and included "permissions": ["chrome-search://theme/IDR_THEME_NTP_BACKG...
Click behavior changes on SVG when changing between and
◷
تاریخ انتشار: 1395/2/3 | ساعت: 10:14
Vote count: 0 I have 4 SVG buttons as part of a main menu on my personal webpage. /----------------------------------------------------------------------------------------------------------------------------------/ When one is clicked, all 4 buttons retract to the co ers and the respective section i...
mongoose query object ref to other query
◷
تاریخ انتشار: 1395/2/3 | ساعت: 8:59
Vote count: 0 I have two schema: one is the Zone: var ZoneSchema = new mongoose.Schema({ name: String, priceRate:Number, ... }) the other is the zoneprice which ref to zone var ZonePriceSchema = new mongoose.Schema({ zone:{type:ObjectId, ref:'Zone'}, }) now I want to do like that: get ZonePirce wher...
How would you represent this logic in models and migration
◷
تاریخ انتشار: 1395/2/3 | ساعت: 8:59
Vote count: 0 This has probably been asked but I am not even sure how to phrase this suitable for querying. I wish to call user1.friends (user1 is an instance of the User model) which retu s a list of users who all include user1 as one of their friends. I am not sure where to even start with this on...
php - Inserting a MySQL table column into a PHP document
◷
تاریخ انتشار: 1395/2/3 | ساعت: 8:59
Vote count: 0 I'm new to PHP and have been working on a variation of a system I am using. This system is comprised of PHP, HTML and CSS (duh). It's a user registration and management system. At current, if I want to insert the current user's email address, all I have to do is insert <?= $fgmembersit...
how to replace ' with ' in Wordpress site title
◷
تاریخ انتشار: 1395/2/3 | ساعت: 7:29
Vote count: 0 A Wordpress website uses Paypal to accept donations. Once a donation is made on the Paypal website, the Paypal "donation complet" page diplays an orange button: <input id="merchantRetu " name="merchant_retu _link" value="Margie&#039;s Angel Card Readings" type="submit"> I want to r...
(2003, "Can't connect to MySQL server on 'mysql.server' (111)") error in pythonanywhere
◷
تاریخ انتشار: 1395/2/3 | ساعت: 7:29
Vote count: 1 I am trying to deploy a django project on pythonanywhere but it is giving error- (2003, "Can't co ect to MySQL server on 'mysql.server' (111)") I have seen many such questions already asked for this problem but no answer solves my problem. May be there is a previlleges problem with dat...
Parse iOS Swift SDK HTTP Requests stopped working spontaneously
◷
تاریخ انتشار: 1395/2/3 | ساعت: 7:29
Vote count: 0 Without changing anything, simply opening my Xcode workspace and ru ing it on my iPhone 6, all co ections to Parse seems to hang and end with an Error 3840. Same issue on simulator. Error: Error Domain=NSCocoaErrorDomain Code=3840 "No value." UserInfo={NSDebugDescription=No value.} [NS...
Load a PHP file like it was a JavaScript
◷
تاریخ انتشار: 1395/2/3 | ساعت: 6:22
Vote count: 0 I have a script.js.php file that I need to load like this <script src="script.js"></script> Becuase using getScript() is too buggy and load() doesn't fulfill the purpose. The .htaccess is instructed to ignore if .php is missing. But when I then try to use the script-Tag it gives me thi...
Find non-duplicate records, excluding nulls, based on one field.
◷
تاریخ انتشار: 1395/2/3 | ساعت: 6:22
Vote count: 0 I want to find all unique records in the Dat1 field, but I want every single Null record retu ed. It doesn't matter which duplicate record is dropped. Example Table: +----+--------------+ | ID | Dat1 | +----+--------------+ | 1 | 11@email.com | | 2 | 11@email.com | | 3 | NULL | | 4 | N...
session variable not updating after a new value has been set in the database
◷
تاریخ انتشار: 1395/2/3 | ساعت: 6:22
Vote count: 0 I'm having some troubles understanding how session variables actually work. I have an account management page where the user has access to his informations (e-mail, password, city...) and can update them. However when the user saves the modifications and reload the page the information...
Write function/Program that finds the n largest integers in an array and returns them in a new array
◷
تاریخ انتشار: 1395/2/3 | ساعت: 4:42
Vote count: 0 Write Program that finds the n largest integers in an array and retu s them in a new array. asked 1 min agoRaas Let's block ads! (Why?)
Make FloatingActionButton Disappear Behind Toolbar
◷
تاریخ انتشار: 1395/2/3 | ساعت: 4:42
Vote count: 0 So I have got this FloatingActionButton anchored to an ImageView. But when I scroll down, I want the FAB to hide behind the toolbar, not hovering over it. Is there any way I can achieve this? Can't seem to get it to work. I tried to use layout_weight but it didn't work sadly. Click her...
Is there a better way to do a find with optional insert using unordered_map of objects with no default constructor?
◷
تاریخ انتشار: 1395/2/3 | ساعت: 4:42
Vote count: 0 I have the following code: class CEvent { public: CEvent(std::string const&) {} }; std::unordered_map<std::string, CEvent> m_messageList; CEvent& GetMessageEvent(std::string const& name) { auto it = m_messageList.find(name); if (it != m_messageList.end()) { auto pair = m_messageList.em...
Where do local variables get stored at compile time?
◷
تاریخ انتشار: 1395/2/3 | ساعت: 3:19
Vote count: 0 Maybe i'm missing something obvious, but isn't it during runtime that local variables get placed on the stack when the function containing the variables gets called. Therefore when the compiler will step through our source code, it will place the operations of the function in the .text...
First argument in form cannot contain nil or be empty, rails
◷
تاریخ انتشار: 1395/2/3 | ساعت: 3:19
Vote count: 0 Attempting to use form_for, I have been getting the error "First argument in form ca ot contain nil or be empty." The error is highlited in the first line: <%= form_for @item do |f| %> #------error highlited here <%= f.label :Task %> <%= f.text_field :name, placeholder: "What do you ha...
MongoDB : Make an aggregation on an saved aggregation pipeline
◷
تاریخ انتشار: 1395/2/3 | ساعت: 3:19
Vote count: 0 I saved a lot of aggregations pipeline into a collection : { "_id" : ObjectId("56d06614070b7f2b117b23db"), "ops" : [ { "$unwind" : "$x" }, { "$unwind" : "$y" }, { "$match" : { "brand" : "z" } } ] } I want to make some statistics on those data : db.apicalls.aggregate([{"$unwind":"$ops"}...