node js aes-256-cbc encrypt buffer and plain text
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
16:28
Vote count: 0 encryption_key = 0F777D55FDB154E7D8754C3C0E660A65 data = 112233440220160120165502121122334455660811223344156D6173746572706173735F757365720104800000000000 iv = 00000000000000000000000000000000 result = 4A2D82F722F2720E58CE3170A2398783B5F8F1D40404D90A03019C1082DA47D3E855BD8A09F294D3B0607...
Better way to get and show list of items in a page(JSON vs HTML)
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
15:11
Vote count: 0 I am getting a list of items in a JSON(through AJAX) and creating the required markup by JS and appending in the view. On the other hand I have seen few examples which do not use this practice, and send the complete or partially complete markup through AJAX and then simply append them ...
No lines read from text file when using 'readline' for node.js
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
15:11
Vote count: 0 I have a Node app in a directory together with a text file called sample.csv. I'm trying to read the file line-by-line with the following code, but nothing gets read: var readline = require('readline'); var fs = require('fs'); var lineReader = readline.createInterface({ input: fs.creat...
Modelsim export wave (bitmap) batch mode
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
15:11
Vote count: 0 Currently I run Mentorgraphics Modelsim in batch mode for a few nightly simulations. My simulations run fantastic and in my transcript files I can see all errors/wa ings/etc. but it would be nice to see the waveform for every simulation in a image, too, without simulating the projects ...
How can I get my javascript library to support multiple events with on?
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
13:59
Vote count: 0 How can I get my javascript library to support multiple events with on? Here is the code for my on function: Q.fn.on=function(event, fn){ this[0]["on" + event] = fn; }; Also how can my on function add events to multiple elements? asked 2 mins agoNuts Let's block ads! (Why?)
list.js sorting in angular not working
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
13:59
Vote count: 0 I have artists information in the angular scope and used ng-repeat to repeat to list all artist info in the template. I am trying to sort (name, title, label, view) data using list.js. Unfortunately, the sorting part doesn't seems to work. I have installed list.js using bower and menti...
iOS - Public seckeyRef Issue
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
13:59
Vote count: 0 How to store and retrieve (SeckeyRef)Public Key which I get from Authentication Challenge?I need just public key to be saved in using any storing procedure and retereive it back in seckeyref format only.Thanks in advance. asked 2 mins agoadmin Let's block ads! (Why?)
Tomcat startup batch issue
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
12:45
Vote count: 0 Can anyone please explain the below problem. I'm using tomcat 8 and when I'm trying to start startup.bat file, the command prompt is opening and closing immediately just like blinking. However in the past while I'm working with java programs it worked fine but recently I installed Xamp...
Crystal reports code and when I run the report it is all on 1 line. I need everything after '9z2' to be on line 2
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
12:45
Vote count: 0 I have the following in my details section of my crystal report and the report runs fine and retu s the needed data however, I need everything after '9z2' to be left justified on the second line of the report. I have tried spaces, crlf but then the report just has no data after the CRL...
How to host a web based application on cloud for free
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
12:45
Vote count: 0 I want to host a web based application(native) on cloud, so that it can be accessed by everyone. Can it be done? If yes then how, for free ?. asked 32 secs agoPrabodh Hend Let's block ads! (Why?)
Return value from SQL as button name, display text after clicking the button
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
11:44
Vote count: 0 I am doing a project that uses php and Mysql. I am really new to php and I have searched a lot but still haven't found a clean solution. The problem is, firstly user inputs key words and it retu s searched values(table names) to variables. echo '<h2> Search Result: </h2>'; $searchSQL =...
does not name a type in DeNiSe
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
11:44
Vote count: 0 While I run make build for the project DeSiNe, I am getting the error ‘Topology’ does not name a type $ make build mkdir -m 755 -p obj/Algorithm g++ -Wall -DNO_TIMER -DNO_TRACES -O3 -funroll-loops -finline-functions -fexpensive-optimizations -Isrc -o obj/Algorithm/Algorithm.o -c src/Al...
Xquery 1.0 - average over elements with subelements
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
11:44
Vote count: 0 So I have an XML file that has elements with numbers in them, and also some sub elements with numbers in them. Something like: <data> <points> <score>80</score> <score>90</score> <score>10</score> <score>13</score> </points> <favor>50</favor> <ranked> <rank>50</rank> <rank>10</rank> </...
how to draw polygon on Google map v3?
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
10:41
Vote count: 0 I am working on android app and I want to make polygon on android app.so far i have used latitude and longitude to make polygon but how can i get array of coordinate to draw exactly like this.All I need seems like this screenshot. i need coordinates to make a polygon like this but how ...
for loop with if else not working Javascript
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
10:41
Vote count: 0 I have some problems with this code.. I'm trying to make a list where users can insert their favourite beer. there have to be a check if the "userinput" is already in the array.. My thoughts where as follow: loop through the beersArray and check if there is a value in the array that is...
IndexOutOfRangeException for C# Range Match
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
10:41
Vote count: 0 What am I doing wrong here that would make index = -1? When I set index to only >0, it will only retu the last element in the times array, no matter the letter entered. char[] lastNameLetterArr = { 'a', 'e', 'j', 'p', 't' }; string[] timeSlotArr = { TIME5, TIME1, TIME2, TIME3, TIME4 };...
C# Why is Thread.Sleep() causing the program to continue sleeping if another action is right after it?
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
9:39
Vote count: 0 I have my program creating an array based on a time RNG, and whenever I do Thread.Sleep(120); it works fine to get my different numbers, however I have a display that's supposed to populate (Label) right after the random number has been generated. In my case, this does not happen. As t...
angular.injector returns new instance of service on every call
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
9:39
Vote count: 0 I created a simple plunk that demonstrates the issue. When I use angular.injector(['ng', 'MyModule']).get('MyService') I seem to get a new instance every time it is called, or at least behaves as such. In the plunk, notice how the "Increment" button calls the same instance of the servi...
Using CSS and/or JavaScript, how do I scale a block element to appear close to the same size on multiple mobile devices?
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
9:39
Vote count: 0 I built a Google Cardboard app (or at least a Google Cardboard-compatible app with room for improvement) that works well on phones with 5-6" screens (iOS and Android) and a Google Cardboard viewer designed to work with those 5-6" screens. However, if viewing the app in a larger "phable...
Rails Activc record API query by model reference
◷
تاریخ انتشار:
1395/1/18
|
ساعت:
8:25
Vote count: 0 Followings are rails app setup. ActiveAdmin.register Book do permit_params :name, :genre_id end class Book < ActiveRecord::Base belongs_to :genre validates :name, uniqueness: true validates :name, presence: true end class LocationSerializer < ActiveModel::Serializer attributes :id,:nam...