back soft

مطالب مرتبط با «server» در back soft | نویسنده: استخدام کار

storing pdf data into database(sql server 2012)

Vote count: 0 So here's a scene, i have converted excel file into pdf. uploaded in my website. Now i want to store the DATA of pdf file into database. I need to read the data and store the data into database. Say, in my excel file, i have a column named Student Name, converted this file into pdf. So this header will stored as a Column in Database.. looked foe this problem on google. FileStream will do somewhat but not the all. P.S. I need to store pdf's Data. not pdf file. Database : Sql Server 2012 asked 44 secs agoDinav Ahire Let's block ads! بخوانید...

ادامه مطلب

Bonobo Installation - Server Error in Application : Exceptionless.Mvc

Vote count: 0 I'm trying to install Bonobo 5.2.0. on Windows Server 2008R2 under IIS7. After installation I'm receiving this error: Server Error in '/Bonobo' Application. Could not load file or assembly 'Exceptionless.Mvc' or one of its dependencies. The system caot find the file specified. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Exceptionless.Mvc' or one of its dependencies. The system caot find the file specified. Source Error: An unhandled exception ...

ادامه مطلب

ruby on rails virus using server for ddos

Vote count: 1 How to clean ruby on rails app if I've been infected with some virus that uses my DigitalOcean server to send outgoing traffic? Probably for ddos attacks. I just made new droplet with all security updates, but when I run budle install it started to spit large traffic. asked 3 mins agoDanielsV Let's block ads! بخوانید...

ادامه مطلب

Why cant send mail through smtp server?

Vote count: 0 I try to send mail from hotmail to yahoo/gmail using code as below with smtp.live.com or smtp-mail.outlook.com but keep getting error : String to = SendTo.getText(); String from = useame; java.security.Security.addProvider(new com.sun.net.ssl.inteal.ssl.Provider()); Properties properties = System.getProperties(); properties.put("mail.smtp.ssl.enable","true"); properties.put("mail.smtp.host", "smtp.live.com"); // i try smtp-mail.outlook.com also cant properties.put("mail.smtp.port", 465); properties.put("mail.smtp.auth", "true"); Authenticator authenticator = new Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { retu new PasswordAuthentication(usea...

ادامه مطلب

failed to load resource , the server responded with a status of 500(internal server error) and failed to parse SourceMap

Vote count: 0 This is the server.js file var express = require('express'); var app = express(); var mongoose = require('mongoose'); var bodyParser = require('body-parser'); app.use(bodyParser.json()); mongoose.coect("mongodb://localhost/test"); var todoschema = new mongoose.Schema ({ name : {type: String, required: true} }); var todomodel = mongoose.model('todolist',todoschema); app.get('/',function(req,res){ res.sendFile('C:\Users\Rohit\Desktop\New folder\files\index.html'); }) app.get('/todolist', function (req, res){ todomodel.find(function(err,tasks){ res.json(tasks); }); }); app.post('/todolist', function (req, res) { todomodel.insert(req.body, function(err, task) { res.json(task); }); ...

ادامه مطلب

Build C++ codes in docker container extremely slow then build on same server

Vote count: 0 We are using ebay's delivering-ci-solution-with-apache-mesos approach for our CI system. Unfortunately, we found that when we use "make -j $NUM_OF_CPU" to accelerate our build, it build as slow as "make -j 1". But if we run the same "make -j $NUM_OF_CPU" outside container, we got a pretty good result. So I do some dig out. Inside Container, I run N process with endless while loop, N CPU cores jump to 100% usage; but if I run a shell script to spawn process and kill it after 2 seconds, the CPU usage is very low. asked 2 mins ago张云辉 Let's block ads! بخوانید...

ادامه مطلب

Issue while requesting a file(image/pdf/excel sheet) from server and then pipe to res

Vote count: 0 Scenario: I have to send user file which is stored remotely in a server(cloudinary) to browser. I'm able to request an image from server and then pipe it to browser but it's not working for other files like pdf, excel sheet, etc. exports.fetchFile = function(req, res, next){ var fileUrl = "/" + req.params.fileUrl; console.log(fileUrl); async.auto({ 'A': function(callback) { var queryObj = { 'myUrl' : fileUrl}; // DB Query to retrieve user file information like url, type, etc. UserFileCtrl.fetchUserFile(queryObj, callback); } }, function(err, results){ if(err) { retu res.send(500, "error"); } var secureUrl = results['A']['secureUrl']; var fileType = results['A']['fileType']; // ...

ادامه مطلب

SQL Server many-to-many relationship table naming

Vote count: 0 In SQL Server 2012, I have a table "Window" and another table "WindowAction" and i need to join the tow tables with many-to-many relationship . And my question is what i should name the third table?? Is "WindowWindowAction" is correct ?? Thank You. asked 2 mins agouser3870553 Let's block ads! بخوانید...

ادامه مطلب

Fetch to GraphQL server from Redux client returning before request finishes?

Vote count: 0 I'm trying to make a POST to a GraphQL server in a React Redux app. retu (dispatch) => fetch(API_URL, { method: 'POST', body: JSON.stringify(query) }) .then(response => response.json()) .then(json => dispatch({ type: CREATE_USER, payload: json })) When I place a breakpoint in the response.json() part of the code and the browser pauses there, the network panel shows a 200 OK but no response and was me that my request is not finished yet. The response object looks like this: Response { body: null, bodyUsed: false, headers: Headers, ok: false, status: 0, statusText: "", type: "opaque", url: "" } The code never reaches the second then and the console shows an error SyntaxError: Une...

ادامه مطلب

Client server image sharing

Vote count: -1 I'm making a web application using ASP.NET MVC (.Net 4.6). My application allows user to register an account and upload file to my site. I don't know how I can secure user's image files, and display the image to View only to the owner (just like the Imageshack) I don't know what steps I have to take, and how to do it. Can anyone give me advices please ? Thank you :). asked 1 min agoRedplane Let's block ads! بخوانید...

ادامه مطلب

Getting raw data of files (eg. PDFs, .docx, .png, etc) via JavaScript, and saving them to a server disk

Vote count: 0 I'm ruing a front-end app that allows users to enter a destination URL that can be any file type really. PDFs, or Word documents, or images. The app only needs to run in Chrome, and so I'd like to make the request to the file on the front end, and then send that data to a server for storage (and later, for downloading). I'm confused on how to do that. Should it be done via a Blob, ArrayBuffer? Any tips or directions would be great. Have been having trouble finding tutorials on this. asked 1 min agoonassar Let's block ads! بخوانید...

ادامه مطلب

Is there a way to update the TLS certificates in a net/http server without any downtime?

Vote count: 0 I have a simple https server serving a simple page like so (no error handling for brevity): package main import ( "crypto/tls" "fmt" "net/http" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) { fmt.Fprintf(w, "hello!") }) xcert, _ := tls.LoadX509KeyPair("cert1.crt", "key1.pem") tlsConf := &tls.Config{ Certificates: []tls.Certificate{xcert}, } srv := &http.Server{ Addr: ":https", Handler: mux, TLSConfig: tlsConf, } srv.ListenAndServeTLS("", "") } I want to use a Let's Encrypt TLS certificate to serve the content over https. I would like to be able to do certificate renewals and update the certificate in the server with...

ادامه مطلب

Get all the Quickblox groups list from server

Vote count: 0 I am using quickblox api 2.5.1 in android for chat, I want to get all the quickblox groups list which is available in quickblox server.Currently i am getting the list of groups which is created by me or which i am the member of that group. asked 3 mins agoPranav Darji Let's block ads! بخوانید...

ادامه مطلب

Creating index in SQL Server with ONLINE = ON if supported

Vote count: 0 I'm creating an index in a SQL Server table with ONLINE = ON option: CREATE INDEX IX_Name ON Users (Name) WITH ONLINE = ON If this script is run on non-Enterprise SQL Server edition I get this error: Online index operations can only be performed in Enterprise edition of SQL Server. How to write a SQL script to use ONLINE = ON option on Enterprise editions and not to use it for non-supported editions? asked 3 mins agoalexey Let's block ads! بخوانید...

ادامه مطلب

Styling raster and vector layers using remote sld in mapserver

Vote count: 0 I have a mapfile and a remote sld that I want to use to style my vector layer. But each time I put a request the map is retued without a style.My mapfile is as follows: MAP NAME "MAPSERVER QUICKSTART" EXTENT -137 29 -53 88 UNITS DD SHAPEPATH "/data/world" SIZE 800 600 IMAGETYPE PNG24 PROJECTION "init=epsg:4326" END WEB IMAGEPATH '/tmp/' IMAGEURL '/tmp/' TEMPPATH '/tmp/' METADATA ows_enable_request "*" END END LAYER NAME "admin" STATUS ON TYPE POLYGON DATA "countries" CLASS STYLE COLOR 246 241 223 OUTLINECOLOR 0 0 0 END END END END I am using the following request to access the map. Get map request What is it that I could be doing wrong asked 51 secs agokartoza-geek Let's block ...

ادامه مطلب

Determine Server Side Rendering on React js

Vote count: 0 I'm developing React and want to know how to determine that its rendered on server side or not. How to check if server side rendering is enabled? asked 56 secs agoadrian hartanto Let's block ads! بخوانید...

ادامه مطلب

Enable Server Session Reuse

Vote count: 0 The following code is broken because there is a large (almost 1 second) pause between each request. I strongly suspect because the TLS sessions are not reused, and so the handshake is repeated. Any ideas how to fix it? Do I need to dig into the SSLEngine stuff in order to get session reuse? (The client works fine on other servers.) SSLContext context = SSLContext.getInstance("TLS"); context.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null); SSLServerSocketFactory ssf = context.getServerSocketFactory(); SSLServerSocket servSocket = (SSLServerSocket) ssf.createServerSocket(5696); servSocket.setWantClientAuth(true); for (;;) SSLSocket c = (SSLSocket) servSocket.accept(); as...

ادامه مطلب

sql server select as base64 column

Vote count: 0 Is there any simple function for get this output. SELECT Title FROM Table WHERE Id = 1 ---- My title Desire function or etc ... SELECT MYBASE64ENCODE(Title) FROM Table WHERE Id = 1 ---- TXkgdGl0bGU= I need the function for ecnode string to base64. asked 1 min agosweb Let's block ads! بخوانید...

ادامه مطلب

Capturing class changes triggered by event listeners using a MutationObserver

Vote count: 0 I am having a problem with determining why a class is not being removed in an each function. I want to check and see if the element containing a specific class is being manipulated somehow by some other event or function. This code is not succeeding in removing the class 'cc-gone' from the content elements. var content = form.find('.cc-form-content-container'); $(content).each(function() { console.log('unhiding content containers'); $(this).removeClass('cc-gone'); }); I tried adding a MutationObserver, copying the demo, with slight modifications (the class name to track and the console output): // select the target node var target = document.querySelector('.cc-form-content-cont...

ادامه مطلب

Symfony Server crashes when extending FOSUserBundle's default template layout.html.twig

Vote count: 0 I am trying to get the basic user login ruing from the FOSUserBundle. I am using Symfony 3.0.6. I followed the description to setup everything from the FOSUserBundle: https://symfony.com/doc/master/bundles/FOSUserBundle/index.html DB is up and ruing everything seems fine except I cant figure out how to override the layout.html.twig from the FOSUserBundle. I followed this description for achieving that: https://symfony.com/doc/master/bundles/FOSUserBundle/overriding_templates.html I now have a file "layout.html.twig" in the folder "Resources/FOSUserBundle/views" with the content being the same as in the last link provided above. This leads to the following error: Unable to find ...

ادامه مطلب