Mongoose connection.on('open') never gets called inside my controller.js
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
13:14
Vote count: 0 My Main server.js code where i start my server and co ects to mongoDb Server if(process.env.MONGOLAB_URI) { mongoose.co ect(process.env.MONGOLAB_URI); } else { mongoose.co ect("mongodb://localhost/itrack"); } mongoose.co ection.on('open', function() { // This line is getting printed he...
SCZ Compression and decompression
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
12:12
Vote count: 0 i want SCZ Compression and decompression tool for change the Bytes into SCZ.Compression, if you have dll of (SCZ - Simple Compression Utilities and Library) then i want to use dll of scz , SCZ detail and defination on this URL (http://scz-compress.sourceforge.net/) please guide me and ...
Does setting a pointer to NULL affect original item you were pointing at?
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
12:12
Vote count: 0 I have a pointer to a node in a linked list: struct node *temp = head.next If I set this pointer to NULL such as: temp = NULL; will this also affect the node I was pointing to? i.e. head.next is now NULL? asked 1 min agounconditionalcoder 1 Answer Vote count: 0 will this also affect th...
In background NSURLSession why are secure cookies lost?
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
12:12
Vote count: 0 I'm developing an app that logs into a HTTPS website. After authentication, the website sends a final cookie that is marked as 'Secure'. The app works when I use defaultSessionConfiguration() for NSURLSession(). When I change one line in the app to use the backgroundSessionConfiguratio...
Has anyone seen this code? (Injected Script)
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
11:06
Vote count: 0 It seems to be obfuscated, It was injected on one of my clients sites. Does anyone recognize this? Is it harmful? <?php $ghacbiaz = '27id%6< x7fw6* x7f_*#ujojRk3`{666~6<&w6< x24]25 x24- x24-!% x24- x24*!|! xtr_split("%tjw!>!#]y84]275]y83]248]y83]256]y81g}k~~9{d%:osvufs:~928>> x22:ftmbg...
Store data in List of singleton class
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
11:06
Vote count: -1 I'm having a singleton class, I need to assign datatable values to singleton class of list and store that as session class singletionfunctio ame { // Something here } please guide me on this. edited just nowun-lucky asked 2 mins agoSindhu Let's block ads! (Why?)
Using the tar command to display all files in a .tar archive to a file and to standard output
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
11:06
Vote count: 0 Is it possible to direct that input from this command to a file and also to standard output? tar -t all.tar Also Is there a way to kill all processes ru ing lets say an xclock? asked 1 min agoJimBob101 Let's block ads! (Why?)
Iterate and show all elements from many to many relationship Laravel 5.2
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
9:55
Vote count: 0 im trying to query data from a Many to Many relationship in Laravel 5.2 But when I want to retrieve the data im getting blank information. I have some doubts because the data I received only detect quick_tags but theres is no data in there and it should be quickTags. I'm doing this in ...
Vertical Scroll in Desktop Change to Carousel in Mobile View
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
9:55
Vote count: 0 This is the exampleenter image description here of the view. Sorry i just made a structure in the paint. And I want it to be carousel view in mobile. What are the options to do that? Except in cloning. asked 3 mins agoPaul Reggie Valenzuela Let's block ads! (Why?)
OpenJPA Wrong order for delete of child when deleting parent
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
9:55
Vote count: 0 The order of deletes for OpenJPA 2.3.x are happening in the wrong order and I can't figure out why. Given these JPA mappings // grandparent @Entity @Table(name = "three_phase_motor_input") public class ThreePhaseMotorInput implements IThreePhaseMotorInput, Serializable { @Id @Generated...
Read txt file in Java and find newline character
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
8:54
Vote count: 0 So I'm trying to read a txt file in java and every time I find a newline I shall print "new line" in another txt file. This is what I have so far: if (string.matches("n")){ write.println("new line"); But this is not working. Can anybody help me please? asked 51 secs agoMarcos Guimaraes...
Javascript reverse array of numbers and subtract 2, then 1, then 0 then add 1, add 2 etc
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
8:54
Vote count: 0 Sorry for the awful title. I've crashed enough browsers and asking for help. Here's the specific problem I'm trying to solve. Create a function called 'reversedLooper' that when passed an array will loop through it backwards and subtract 2 from the last element, 1 from the second to la...
canvas2d toDataURL() different output on different browser
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
8:54
Vote count: 0 the same image,the same size of canvas,but output is different.I want the same output,how should i do it? var canvas = document.createElement('canvas'), ctx = canvas.getContext('2d'), img = new Image; img.crossOrigin = 'Anonymous'; img.onload = function(){ canvas.height = img.height; c...
Html and Css coding required for banner ads placement
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
7:40
Vote count: -1 I need help to place ba er ads in my website as per given format. Required Format I'm using a ready script for my website. I got the advertisement codes from the ad networks already. And I placed those codes to my index.php file. Please see what it looks (existing format). Existing fo...
spark context in java application sl4j error
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
7:40
Vote count: 0 I've been trying to run a Spark application that I'm planing to use as standalone with Cassandra as data source. I have deleted the rest of the code because i kept getting errors, and I realized that I have an issue with the spark context initialization. Here is my source code : import...
auto POST file to url with perl
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
7:40
Vote count: 0 How can i automatically post to a url form using perl but it has a file upload; Example in html <form method="post" action="http://www.EXTHOST.com/mobile/upload.asp" data-ajax="false" enctype="multipart/form-data"> <input name="title" id="title" value="Title" type="text"> <input name="...
How to display a "by" object in long format
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
6:22
Vote count: 0 The by function from base R has its own special output class, "by", which comes with a special print format. For ease of putting the results into tables, I'd really like to arrange the results of "by" as a data frame with columns indicating the levels of the factors used to subset: b <...
How to call methode in Main() C#
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
6:22
Vote count: 0 Hello i just started lea ing C# today so im a begi er and i got stocked in the problem that i cant call the view method inside main () i created a two class's one called product: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threadin...
How to send Kryo serialized objects over JMS?
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
6:22
Vote count: 0 I would like to use Kryo to (de-)serialize objects and send/receive them via JMS. The problem I'm having is that both sides, sender and receiver, must register the classes with the same ID. Kryo has a method register (Class type, int id) that I use. Unfortunately id is an int (as compa...
MIT-SCHEME (load-option 'format) on windows
◷
تاریخ انتشار:
1395/1/10
|
ساعت:
4:59
Vote count: 0 I want to use the fromat procedure in mit-scheme. (load-option 'format) in mit-scheme gives me the error "ca ot locate a load-option database" This is on a windows 10 machine, it works for me on my mac. from the manual under section 2.6.2 - Environment Variables for the Runtime System ...