unresolved external symbol _loadlibrarya_@4 and _getprocaddress_@8 in Fortran

Uncategorized
Question: I have problems with Fortran when accessing external DLL. I'm not familiar with Fortran. Error showing here stdcall external LoadLibraryA, GetProcAddress. The code as below:Subroutine GetDLLEntryPoint (EntryPoint,ModuleName) stdcall external LoadLibraryA, GetProcAddress !error here integer*4 LoadLibraryA, GetProcAddress integer*4 pl, plvalue, EntryPoint integer *4 pm character*100 LibraryName, ModuleName EntryPoint=0 LibraryName = "MY.DLL"//char(0) pl = loc(LibraryName) plvalue = LoadLibraryA(val(pl)) if (plvalue.ne.0) then pm = loc(ModuleName) EntryPoint = GetProcAddress (val(plvalue), val(pm)) endif RETURN end The error in the Absoft Fortran compiler is: error LNK2001: unresolved external symbol _loadlibrarya_@4 error LNK2001: unresolved external symbol _getprocaddress_@8 Answer: Read more
Read More

Controller method is not getting called from View in MVC

Uncategorized
Question: In my MVC application, i want to set source for image which is set by calling method of controller. My View code is Manage Controller:public FileContentResult ConvertToImage(long id) { return convertedImage; } The issue i am facing is my controller method is not getting called. Can any one tell me whats wrong with the code? I did some research on how can we call method, and i think syntax wise its fine. Answer: If you want the output of the action to be returned there, i suggest you rather use this:@Html.Action("ConvertToImage", "Manage", new { id= item.Id}) This will return your result. Read more
Read More

How to query firebase on the last (x,y)?

Uncategorized
Question: I am listing an array based on the votes (orderByChild('up')) and like to divide them into pages (limitToLast(10*formData.page)). However, limitToLast() only takes one attribute rather then two, so for example if I am the page 10, I would have a huge list of items... ref.orderByChild('up').limitToLast(10*formData.page).once('value', function(snapshot) { var data = []; snapshot.forEach(function(child) { data.unshift(child.val()); }); response.writeHead(200, {'Content-Type': 'application/javascript'}); response.write(JSON.stringify(data)); response.end(); }, function (errorObject) { console.log('Database reading error: ' + errorObject.code); response.writeHead(500, {'Content-Type': 'text/html'}); response.write('Database reading error: ' + errorObject.code); response.end(); }); Answer: from what i can conclude you are trying to divide the data into seperate pages. try the startAt() and endAt() query on the firebase database ref. For example:ref.orderByChild('up').startAt(10*formData.page).endAt(10*(formData.page + 1)).once('value', function(snapshot) { var data = []; snapshot.forEach(function(child) { data.unshift(child.val()); }); response.writeHead(200, {'Content-Type': 'application/javascript'}); response.write(JSON.stringify(data)); response.end(); }, function…
Read More

Checking internet connection at runtime in unity

Uncategorized
Question: How can i check internet connection inside Update Function in unity? , to know that when user is connected or not , and based on that just disable some functionality of my game ? seems look like that there is no question like this been asked before (as writing title and stack overflow suggesting similar questions) or if it is, it just checking the connection in Start function. please help me to figure out what can i do for this type of problem in unity. by the way tanx for helping! void Update () { if (Application.internetReachability == NetworkReachability.NotReachable) { Debug.Log ("No internet access"); } else { Debug.Log ("internet connection"); } } Answer: You need to run your Update function periodically. http://unitylore.com/articles/timers-in-unity/ could be used for this:using UnityEngine; public…
Read More

navigation bar not showing when uploaded online

html
Question: kind sir's does anybody know why my navigation bar is not showing when i upload it in a free web host (x10hosting and 000webhost) but when i run it in localhost its perfectly working. this is when i run it in localhost and this what happens when i run it online this is the html code Home Home Speakers About Contact Reservation Sign Out Sign Up Sign In Admin control Speaker Reservation Welcome to Online Speaker Reservation. We are an organization established in 2005 by Rey Vibal, which engages the skills of performing artists directors and writers for the purpose of tuition in the performing arts, theatrical and film production, corporate training, wellness and sharing methodologies. Copyright 2017 this is the css codes /*navigation bar*/ nav { height: 60px;…
Read More

Settings SpinnerDateModel’s start, end, and CalendarField returns invalid calendarField exception

java
Question: I need help in settings the start value, end value and step or increments of JSpinner containing time value in "HH:mm" format. I've been trying to fix my error for almost 2 hours now. Calendar value = Calendar.getInstance(); value.set(Calendar.HOUR_OF_DAY, 7); value.set(Calendar.MINUTE, 0); Calendar start = Calendar.getInstance(); start.set(Calendar.HOUR_OF_DAY, 7); start.set(Calendar.MINUTE, 0); Calendar end = Calendar.getInstance(); end.set(Calendar.HOUR_OF_DAY, 18); end.set(Calendar.MINUTE, 0); Calendar step = Calendar.getInstance(); step.set(Calendar.HOUR_OF_DAY,00); step.set(Calendar.MINUTE, 15); model = new SpinnerDateModel(); model.setValue(value.getTime()); model.setStart(start.getTime()); model.setStart(end.getTime()); model.setCalendarField(step.get(Calendar.MINUTE)); spinner = new JSpinner(model); editor = new JSpinner.DateEditor(spinner, "HH:mm"); editor.getTextField().setEditable(true); spinner.setEditor(editor); What I want to achieve is for the spinner's value = 7:00am start = 7:00am end = 6pm or 18:00 increments/step = 7:00 -> 7:15 -> 7:30 -> 7:45 The value is working correctly and starts with 7:00am However, I'm having problems setting the value…
Read More

How to send email notification with Jenkins?

email
Question: I want to send a email when my build failed. I've configured my System Admin e-mail address : test@gmail.com and SMTP server : smtp.gmail.com. Here's my code in my pipeline : pipeline{ agent none stages{ stage('test'){ agent{ label 'VStest' } steps{ script{ //nothing } } } } post{ always{ mail to: 'test@gmail.com', subject: "Failed Pipeline: ${currentBuild.fullDisplayName}", body: "Something is wrong with ${env.BUILD_URL}" echo "sent" } } } I'm getting the error : com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. Someone knows why? Thx. Answer: You are using the default SMTP port (25) which will not work with a Gmail account. Try using port 465 for SSL or port 587 for TLS. This guide might help: http://www.360logica.com/blog/email-notification-in-jenkins/ Read more
Read More