Vote count: 0 I am following this and this to add an Icon to my Executable I am getting Error make: *** No rule to make target 'resources.o', needed by 'Project_Name'. Stop. I have:- created resources.h- created resources.rc (Already checked that path inside file is correct)- added #include "resources.h" to my main.cpp- added prebuilt option windres ../resources.rc -O coff -o ../resources.o - added linker object resources.o Still looks like something is missing. The files resource.rc and resource.h are included in my project asked 1 min agoXeverous Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Here is my model class that is just working with text data right now. How would I alter it to have the image field created in the DB using System; using System.Data.Entity; namespace BizzCoect.Models { public class Post { public int ID { get; set; } public string Title { get; set; } public DateTime ReleaseDate { get; set; } public string Genre { get; set; } public decimal Price { get; set; } } public class PostDBContext : DbContext { public DbSet Posts { get; set; } } } Following is the controller using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Net; using System.Web; using System.Web.Mvc; using BizzCoe...
ادامه مطلبVote count: 0 I'm creating a gradle plugin that uses gson, but when I use the plugin at my client it throws this java.lang.NoClassDefFoundError: com/google/gson/Gson I expect I am linking my dependencies in the plugin in a wrong way, but i'm not quite sure so any help would be great. The build.gradle in the plugin group 'nl.daanluttik.gradle' version '0.1' apply plugin: 'java' apply plugin: 'maven' // the plugin to distribute to maven sourceCompatibility = 1.8 repositories { mavenCentral() } dependencies { compile group: 'com.google.code.gson', name: 'gson', version: '1.7.2' compile gradleApi()/*The gradle plugin api*/ testCompile group: 'junit', name: 'junit', version: '4.11' } //To distrib...
ادامه مطلبVote count: 0 My question is about the dojo calendar. is there a any method or function to add color dynamically to data without using the css class . Thanks asked 3 mins agoosiris23 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I just started leaing about linked list and I'm trying to extract certain info from a file and insert it into a linked list using a push function. When I try to view the info to see if it inserted correctly, it just displays the last line of the info over and over. What am I doing wrong? This is my code: struct Country { string name; double population; }; struct Node { Country ctry; Node *next; }; Node *world; void push(Node *&world); int main () { push(world); retu 0; } void push(Node *&world) { ifstream inFile("file.csv"); if (!inFile.fail()) { cout > temp1 >> temp2 >> temp3 >> population; getline (inFile,countryName); top -> ctry.population = population; top -> next = world;...
ادامه مطلبVote count: 1 I'm trying to figure out how to clone an existing element with additional props. For reference: this.mainContent = I attempted to do something like React.createElement(this.mainContent, Object.assign({}, this.mainContent.props, { anotherMessage: "nice to meet ya!" })); but it's not working. How would I accomplish this? asked 5 mins agozoopz Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am having serever.js file which contains the below code. I am having another package.json file which have dependencies. I later added underscore dependency to the existing dependency. It's throwing error on require("socket.io")(http) as require(...) is not a function. When I run the file using command node server error is coming after adding dependency. var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var http = require('http').Server(app); var io = require("socket.io")(http); package.json "dependencies": { "express": "~3.4.0", "jade": "*", "socket.io": "0.8.x", "logfmt": "~1.1.2", "nodemailer": "~0.7.0", "mongoose": "^4.2.4", "b...
ادامه مطلبVote count: 0 This is a eager plugin which adds a greeting message with a custom image and fireworks to your site. Preview of what it looks like: How can I implement this on my website without using the eager plugin and with the help of its github page. Here's my fiddle. asked 1 min agoZack Let's block ads! بخوانید...
ادامه مطلبVote count: 0 document.getElementById('addplace').addEventListener('click', function() { addplace(); }); function addplace () { var node = document.createElement("li"); // Create a node var textnode = document.createTextNode("Waypoint"); // Create a text node node.appendChild(textnode); // Append the text to document.getElementById("waypoints").appendChild(node); } I need this to make the html code work in each new li. I tried ierHTML as well and was only able to add plain text. How to make "Waypoint" bold instead of it showing the text "Waypoint"? It's specifically for adding a new Google Places autocomplete field and an image of an "x" to delete the li so i'm looking for a solution that ca...
ادامه مطلبVote count: 0 How to make an equal width separator for tableViewCell on storyboard without by adding another UIView? thank you very much! asked 1 min agoYaique Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to aotate a ggplot2 graph with lambda' or in LaTex speak $lambda^{prime}$, but this will not parse in R parse(text='lambda"'"') Error in parse(text = "lambda"'"") : :1:7: unexpected string constant 1: lambda"'" Does anybody know how to do this? I think this is why ggplot throws an error to aotate('text',x=x,y=y,label='lambda"'"',parse=TRUE) asked 2 mins agouser13317 Let's block ads! بخوانید...
ادامه مطلبI have a table that holds order information from customers. When I do this: @orders = Order.where("order_date >= ? and order_date = ? and order_date...
ادامه مطلب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 application crash at startup. Also too with the libvlcjni.so that is inside the official vlc APK. Finally, I've done a dummy project, with only the default Quick QML Project, and only added the library with ANDROID_EXTRA_LIBS, but the same occurs: main.cpp: #include #include int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral(...
ادامه مطلبVote count: 0 I'm trying to create a duration input field, ie HH:MM, and I would like it to trigger the numeric keyboard on mobile devices. appears to be the only reliable way to make this happen. But I require it to accept colons :. Is there a way to force the number input field accept additional special characters? asked 1 min agoRyan King Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have following query which is not working with WHERE clause.Any help will be appreciated. UPDATE abc SET col1 = CASE WHEN a1_date < now() THEN "xyz" END, col2 = CASE WHEN a2_date < now() THEN "xyz" END, col3 = CASE WHEN a3_date < now() THEN "xyz" END WHERE a1_date != NULL AND a2_date != NULL asked 1 min agoDiksha Let's block ads! بخوانید...
ادامه مطلبVote count: 0 barplot(counts, main="title", xlab=group, col=rainbow(20) ,legend = rownames(counts), beside=TRUE, xlim=c(1,30)) abline(v=mean(df$ddd), col="red", lwd=2.5) My question is - how to add abline to the legend? I have tried to throw the legend from barplot area and do something but it did not work asked 4 mins agoAgnieszka Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to add some files to the staging area. But git isn't responding. What am I doing wrong? This is what I get when I am querying for the current status (web) roy@desktopL:~/Workspace/kpr-admin-db$ git status On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) Changes not staged for commit: (use "git add/rm ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) deleted: .~lock.callLog.csv# modified: db.sqlite3 modified: dbaccess/models.py modified: dbaccess/models.pyc modified: volunteers.csv Untracked files: (use "git add ..." to include in what will be ...
ادامه مطلبVote count: 0 use kSecPaddingSigRaw mode the SecKeyRawVerify always retu -50 error //sign data with SecKeyRawSign retu success status = SecKeyRawSign(privateKey, kSecPaddingSigRaw, digestData, digestLength, signatureData, &signatureLength); //use kSecPaddingSigRaw mode the SecKeyRawVerify retu -50 error status = SecKeyRawVerify(publicKey,kSecPaddingSigRaw, digestData, digestLength, signatureData, digestLength); asked 1 min agoiDivines Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm trying to get my front end and backend communicating with private key pairs, using JS on the front end with https://github.com/vibooff/asmcrypto.js, and PHP on the backend with php's openssl library. asmcrypto has some functions to encrypt like: asmCrypto.RSA_OAEP_SHA1.encrypt(). It also has asmCrypto.RSA_OAEP_SHA256.encrypt() which I assume is more secure, but PHP only wants to decrypt with the option OPENSSL_PKCS1_OAEP_PADDING, which only works for SHA1, and not SHA256. Also, it seems that openssl_public_decrypt() and openssl_private_encrypt() are missing the OPENSSL_PKCS1_OAEP_PADDING, and won't work with that option at all, only OPENSSL_PKCS1_PADDING and OPENSSL_NO_PADD...
ادامه مطلبVote count: 0 I'm using the parse4cn1 to enable push notifications for my cn1 app (with a hosted parse server called back4app). I want to add a custom icon for the notification tray in Android, and I need to add a line to the section of the manifest.xml file: Where do I put the png file within the cn1 project structure? asked 1 min agojegesh Let's block ads! بخوانید...
ادامه مطلب