back soft

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

Unable to create jmx file using proxycontrol in java

Vote count: 0 I wrote a code in java to record HTTP Traffic in a browser using jmeter. However i'm unable to save the recorded traffic in jmx file. I opened a port using the code and set the same port to the browser. When i try to execute the code it throws an exception. import java.io.File; import java.io.FileOutputStream; import junit.framework.TestSuite; import org.apache.jmeter.config.Arguments; import org.apache.jmeter.control.LoopController; import org.apache.jmeter.control.gui.LogicControllerGui; import org.apache.jmeter.control.gui.LoopControlPanel; import org.apache.jmeter.control.gui.TestPlanGui; import org.apache.jmeter.control.gui.WorkBenchGui; import org.apache.jmeter.engine.Sta...

ادامه مطلب

Converting image to string using the Base64 algorithm

Vote count: 0 I am new to android. I am trying to capture the image and store it in firebase. Since we need to convert the image to string and then store it in firebase, I am using the base64 algorithm. The methods for capturing image and storing it in the database is : public void capturePhoto(View v) { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, CAMERA_REQUEST); } protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == CAMERA_REQUEST && resultCode == RESULT_OK) { Bitmap photo = (Bitmap) data.getExtras().get("data"); ImageView imageView = (ImageView) findViewById(R.id.imageView); imageView.setImageBit...

ادامه مطلب

F# FTP request using Implicit SSL

Vote count: 0 I am trying to make a file request to an FTP server using implicit SSL. I can not find any good documentation on how to do this in F#. This is what I have so far: let user = "user_name" let pwd = "password" let ftpLocation = @"ftps://#server ip here#/#location of file#" let fileRequest = new WebClient() fileRequest.Credentials...

ادامه مطلب

Can read images using jquery

Vote count: 0 var fileExt = {};fileExt[0] = ".png";fileExt[1] = ".jpg";fileExt[2] = ".gif"; $.ajax({ url: 'http://localhost:55638/Content/Images/',success: function (data) { $("#fileNames").html(' '); debugger; //List all png or jpg or gif file names in the page $(data).find('a:contains(" + fileExt[0] + "),a:contains(" + fileExt[1] + "),a:contains(" + fileExt[2] + ")').each(function () { var filename = this.href.replace(window.location.host, "").replace("http:///", ""); $("#fileNames").append(' ' + filename + ' '); }); $("#fileNames").append(' '); } }); Above is my code. i didn't even go to inside ajax call. asked 2 mins agoJagadeeswararo This entry passed through the Full-Text RSS service -...

ادامه مطلب

Azure hosted website with GoDaddy on the side using SendGrid

Vote count: 0 I am trying to understand how all this works, this a how it fits together question rather than a how to do it question. My plan is to move my current GoDaddy ASP.Net website to Azure. GoDaddy will not scale and its database it unreliable. The GoDaddy website has the purchased URL and email based addresses using myUrl, noreply@myUrl.com and contact email I correspond to. From what I have read, from Azure I probably want to use SendGrid instead of GoDaddy to send website emails, I may eventually have thousands of non-spam emails eventually. Leaving my email support correspondence with GoDaddy email abilities. I have read about problems using SendGrid from a GoDaddy based website ...

ادامه مطلب

Loop reading from file causing segmentation fault 11

Vote count: 0 I caot figure out why I'm getting the error Segmentation fault: 11 Here is my code: int main() { ifstream inFile; inFile.open("myfile.txt", ifstream::in); cin.rdbuf(inFile.rdbuf()); while(cin.good()) { Expression* expression; char paren, comma; cin >> paren; expression = SubExpression::parse(); cin >> comma; parseAssignments(); cout...

ادامه مطلب

How I can add my datagridview in existing excel file using c#

Vote count: 0 Hello well I have this problem, I want to export my datagrid in a existing excel sheet but I do not how I can conect with my sheet Any help is appreciated. `try { if (dgvLog.DataSource != null) { SaveFileDialog fichero = new SaveFileDialog(); fichero.Filter = "Excel (.xls)|.xls"; if (fichero.ShowDialog() == DialogResult.OK) { Microsoft.Office.Interop.Excel.Application aplicacion; Microsoft.Office.Interop.Excel.Workbook libros_trabajo; Microsoft.Office.Interop.Excel.Worksheet hoja_trabajo; aplicacion = new Microsoft.Office.Interop.Excel.Application(); libros_trabajo = aplicacion.Workbooks.Add(); hoja_trabajo = (Microsoft.Office.Interop.Excel.Worksheet)libros_trabajo.Worksheets.g...

ادامه مطلب

Application.OnKey stopped working using %q "Alt + q" yesterday

Vote count: 0 I have been using the code bellow for a long time but yesterday it stopped working using the Alt or % key it still works using shift and Ctrl It stopped working in all workbooks any ideas on why this happened? Thanks Works using 'Shift Application.OnKey "+q", "Open_AllButtonsUserForm" 'Ctrl Application.OnKey "^q", "Open_AllButtonsUserForm" Not working with Alt Sub Auto_Open() Application.OnKey "%q", "Open_AllButtonsUserForm" End Sub asked 1 min agoTim This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

Uri parameters doens't seem to work when using restTemplate on jasperserver rest service

Vote count: 0 I have a post method that should post something to an url in the format of: http://jasperserver.com?update=true. If I sent the request with something like postmen, the request works fine. When I use the code below tough, it doesn't seem like the update parameter does anything. I thought that the {update} would be replaced by true from the vars map. String url = "http://jasperserver.com/import?update={update}"; HttpHeaders headers = createHttpHeaders(MediaType.MULTIPART_FORM_DATA, MediaType.APPLICATION_JSON, jasperServerSetting); MultiValueMap map = new LinkedMultiValueMap(); map.add("name", patch.issue); map.add("filename", patch.issue); ByteArrayResource contentAsResource = ne...

ادامه مطلب

splitting values in double quotes using c#

Vote count: -1 I have text file with values like "444","/5"," ", " "," john" I want to get only values with double quotes So I want five strings as below after splitting first = "444" second = "/5" third = " " fourth =" " fifth = "john" .Split("' '") doesn't seem to work edited 58 secs ago asked 2 mins agoRameez This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

How to get content from Div which have other HTML tags using Regexp

Vote count: 0 I have div which contain other html tags along with text I want to extract only text from this div OR inside all html tags Repair Help Repair Video Repair Q&A Cross Reference Information Part Number 285753A (AP3963893) replaces 1195967, 280152, 285140, 285743, 285753, 3352470, 3363664, 3364002, 3364003, 62672, 62693, 661560, 80008, 8559748, AH1485646, EA1485646, PS1485646. Here is my Regexp preg_match_all("/(.*)/s", $urlcontent, $description); Its working fine whenever I assign this complete div to $urlcontent variable. But when I am fetching data from real url like $urlcontent = "www.test.com/test.html"; its retuing complete webpage script. How can I get inside content of ...

ادامه مطلب

how to automatically get keywords in a title using mysql

Vote count: 0 I am trying to produce keywords automatically from a given title in PHP if a form is submitted. I want to get keywords which are not included in stopwords in mysql. example: My title is: How to get related questions using title using MATCH() AGAINST() the keywords are : questions, title, match Is this possible in PHP? asked 59 secs agosmz This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....

ادامه مطلب

Draw exactly 1 pixel width line using C/C++ and WinApi

Vote count: 0 I am trying to draw the line using C/C++ code and Win API functions. For the specific reason I need to have exactly 1 pixel line width, but what I am getting on the screen is completely different. Depending on the ways of Pen/Brush settings it could be either 2 or 3 pixels wide line and never 1. Just for the test I’ve tried to draw 3 pixels line and as a result getting 5 pixels. The same story with other kind of drawing primitives: rounded rectangles, rectangles, ellipses etc. Is there any way to disable such shadow bounding around drawn lines? Code sample of drawing function is below. void DisplayDrawings (HDC hDC, HWND hWnd) { LOGBRUSH stLogBrush; RECT rRect = {0,0,0,0}; HBIT...

ادامه مطلب

Using the API Root without using a DRF Router

Vote count: 0 I am building an API with the full gambit of CRUD operations, and want to use the regular Django-style urlconf lines instead of using a router. Currently, I have a chunk of code that looks like this: router = routers.DefaultRouter() router.register(r'media', media_views.MediaViewSet) router.register(r'mediaservers', servers_views.MediaServersViewSet) router.register(r'masterservers', servers_views.MasterServersViewSet) And later on in the urls.py I have entries like these: url(r'^apiroot/', router.get_api_root_view()), url(r'^apiv1/(?P[a-b]+)/$', include(router.urls)), (The 2nd line is under construction, so I know it doesn't work as-is yet) My question is this: If I remove the...

ادامه مطلب

Meteor: Hot Code Push Causing App to Crash

Vote count: 0 We have a Meteor application that houses a web application and a mobile application. The web application is built in the standard Meteor fashion (both, client, server, etc.). The mobile application is included as a package. The package.js for the mobile app only loads client-side files in the web.cordova context. We are having issues with pushing new updates to the mobile app. The mobile app has been built using meteor, deployed via Apple Enterprise and a direct download of an Android *.apk file. Installs go off without a hitch. When we make updates to either the app's client or the main app's server code, however, the app often crashes (white screen) or misbehaves in other way...

ادامه مطلب

Displaying JSON data acquired from a WebRequest in ASP.NET 5 using MVC 6

Vote count: 0 this is my first question, so I apologize if I mess up the formatting or do this wrong in general, feel free to give me pointers, I'm always open to lea. Anyway, my issue at hand is that I have a web application I'm working on using ASP.NET 5 and MVC 6, all up to date, and so far for testing, I've been using the localdb and working with fake data. Now, I have a url, with an API token, and login info, and I am using a WebRequest to get the data and stream it with a StreamReader into a variable, writing it, and then trying to retu it. WebRequest req = WebRequest.Create(@"https://url.fortheapi.com/api/search/things?criteria=" + userInput); req.Method = "GET"; req.Headers["useame"]...

ادامه مطلب

How to sort an array using bubble method in c++

Vote count: 0 I'm trying to sort a string array according to increasing id, but when I run the program the array is not will sorted void sortList(string ID[], string students[], float score[], char grade[], int size){ for (int pass=1; pass...

ادامه مطلب

How to set FROM in php mailer using Gmail SMTP

Vote count: 0 I was trying to set from in php mailer (gmail smtp). But in inbox it shows from mygmailaccount@gmail.com. here is my code : $this->_mail->Useame = "mygmailaccount@gmail.com"; //Password to use for SMTP authentication $this->_mail->Password = 'mypassword'; $this->_mail->From="support@mydomain.com"; $this->_mail->FromName="Support Team"; //Set who the message is to be sent from $this->_mail->setFrom('support@mydomain.com', 'Support Team',false); But when i receive email in inbox its show from : mygmailaccount@gmail.com and i want to show from : support@mydomain.com Can anyone help me to find out what i am missing. Many Thanks asked 1 min agoMaverick This entry passed through the ...

ادامه مطلب

Updating a Access table with Data from an Excel spreadsheet using VBA

Vote count: 0 Been tasked with changing some code to do a new task but unsure how to go about it as I'm pretty new to VBA. I have an access table called Stock , with columns PartNo, Remark, ProdDesc, Price, cusDesc. I have a excel spreadsheet with the same columns that have selected items from the Access table which have had their prices updated. Below is code that I am trying to adapt to allow me to import updated items new prices to the table while keeping the other items intact. Currently this code overwrites the current data in the table with the data in the excel spreadsheet. Appreciate the help. Private Sub Command0_Click() Dim xlApp As Object Dim txt As String Const clmNoPartNo As Int...

ادامه مطلب

How to fetch data only from hovered series when using multiple series highchart?

Vote count: 0 I am generating 10 multiple series in one chart, by-default two series are kept visible others are hidden, others are displayed when clicked on buttons respectively. But the problem is "On hover data is being fetched only from last rendered series", I want to fetch data from series on which i hover. Code to fetch data is this: var $reporting = $('#hist_riskvalue'); /*HTML Div where data will be displayed*/ var $reporting2 = $('#hist_gindex'); /*HTML Div where data will be displayed*/ plotOptions: { series: { compare: 'percent', point: { events: { mouseOver: function () { var series = this.series.chart.series, x = this.x, y = this.y, output = Highcharts.numberFormat(Math.abs(y))...

ادامه مطلب