Vote count: 0 Hows it going. Here is what is happening: I have an Excel "program" where there are 200 workbooks that are linked to one another over a private cloud file sharing network. (Dropbox.com) Each workbook is edited from a different server but is still part of the same file sharing Dropbox network. It is also Macro enabled. My goal is the following: I would like to have all 200 workbooks that are shared on this file network to have automatically updating links from VARIOUS servers. The problem I am having: Users would have to manually open all of the 200 workbooks in order for their links to be updated. (They had access to all 200) After doing a few tests, my best reasoning is becaus...
ادامه مطلبVote count: 0 I don't get the workflow. On my developer machine I create models, database context etc. Then I create a migration, update my local database schema. Next, I want to deploy my app to a server. I copy the result of deploy command to the server. The database schema is being updated automatically. That's great, before today I had to dnx ef database update manually. What if I have to change my models and therefore database schema too? I have made changes needed and copy MyApp.exe to the server. Will the database schema update performs automatically too? Or should I make some configuration manually? Can I rollback a migration if it had been applied to the database now? Previously it ...
ادامه مطلبVote count: 0 Use IIS to configure the local site, and then compile the project is completed, the browser loads the page becomes very slow, before although it will be slower, but up to 1 to 2 minutes to load out (may contain some precompiled loading dll file), but now become very slow, for the first time takes 6 to 7 minutes to load. I used the 'Fusion Log Viewer' to view the assembly binding log loading, found some dlls take a long time. Note that the image below shows the page loading assembly: assembly loding image I made reference to this link: http://blog.lavablast.com/post/2010/12/01/Slash-your-ASPNET-compileload-time.aspx Then I have set the file "C:WindowsMicrosoft.NETFramework64v4.0...
ادامه مطلبVote count: 0 I have a created an ascx form that is loaded from a couple different pages. The end-goal is to change a couple urls (in the control's Text value) depending on which page has loaded the ascx form. form.ascx...
ادامه مطلبVote count: 0 I want to find app similar to function which was in old telephones. Everytime it make a popup like "XXX want to use inteet, allow?" and answers Yes and No. It's helpful for inteational roaming, becouse i can allow only for specyfic processes and block inteet for auto updates. Or there is other solutions to safe using inteet in inteational roaming using similar way to written above (allow inteet permission only for specyfic processes to exclude auto updates and other background processes) I hope for quick respond asked 21 secs agoRBB Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I try to send a SOAP EnvelopXMl to a Web Service with a certificate file (certificate.p12). I have this following class to manage it : public class SoapClientManager { private string _url; private string _envXml; public String Url { get { retu this._url; } set { this._url = value; } } public String EnvXml { get { retu this._envXml; } set { this._envXml = value; } } public string CallWebService() { HttpWebRequest request = CreateWebRequest(_url); XmlDocument soapEnvelopeXml = createEnveloppeXml(_envXml); using (Stream stream = request.GetRequestStream()) { soapEnvelopeXml.Save(stream); } using (WebResponse response = request.GetResponse()) { using (StreamReader rd = new StreamRe...
ادامه مطلبVote count: 0 I'm currently working on a side project using python and NetSuite Webservices. I've been able to send off a request for data centers successfully. I'm using the element tree import to parse the xml requests and responses. No matter what I try to grab one of the urls below I end up getting no value and I'm assuming this has to do with name spacing which i'm terrible with. WEBSERVICES__XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX https://rest.na1.netsuite.com https://webservices.na1.netsuite.com https://system.na1.netsuite.com import xml.etree.ElementTree as ET ns = {'platformCore': 'u:messages_2016_1.platform.webservices.netsuite.com'} xml.find('platformCore:webservicesDomain', ns) the xml.f...
ادامه مطلبVote count: 0 In the OWASP CSRF guidelines (https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet) their number one "no brainer" recommendation for CSRF protection is to validate that the origin header matches the current request origin. However, I've noticed ASP.NET MVC 4.0 doesn't seem to do this by default (note: I haven't tested Web API yet; this is just plain MVC controllers) Is there a good reason this isn't enabled by default? Is there a built-in feature I can simply just tu on or do I have to roll-my-own? if I do implement origin checking, are there any caveats I might have missed? I appreciate that you can't trust headers if the browser has been co...
ادامه مطلبVote count: -1 Hello, Right now i am in the process of "Sorting Files" to get the correct information from the latest file. I am using a different but a good way in my mind to do this process. I seem to always get the retu of 1 from this code but there are over 100 files. The code is VB.NET And it is easy to read after i just explained what its for. Dim lineread As Integer = 1 Dim pageread As Integer = 1 Private Sub ScanPage_Tick(sender As Object, e As EventArgs) Handles ScanPage.Tick Dim database As String = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) If My.Computer.FileSystem.FileExists(database & "DEVFOURM" & "S1P" & pageread & ".txt") = True Then pageread += 1 Exit Sub E...
ادامه مطلبVote count: 0 I'm creating a simple ASP.net MVC form using bootstrap. My form looks like: @using(Html.BeginForm()){ @Html.TextBox("City", "", new { placeholder = "City" }) @Html.TextBox("State", "", new { placeholder = "State", maxlength = "2" }) @Html.TextBox("Zip", "", new { placeholder = "Zip Code" }) } Although I'm using appropriate classes for columns and textboxes should be inline, they are appearing in different rows. To my understanding, as long as the column widths are within a limit of 12 columns, inline elements should appear in the same row. Why is there a line break between these elements? N.B: If I remove divs for individual columns and put all textboxes in a single div, they a...
ادامه مطلبVote count: 0 I have this situation: I got main activity that user will open when he start an app an inside that activity is a Viewpager alongside tabs in top bar so user can navigate between 4 fragments. Every fragment is using retrofit to do some network request like load news data, load about section etc. I am adding fragments to pager in classic way: private void setupViewPager(ViewPager viewPager) { ViewPagerAdapter adapter = new ViewPagerAdapter(getSupportFragmentManager()); adapter.addFrag(new WelcomeFragment(), "Home"); adapter.addFrag(new NewsFragment(), "News"); adapter.addFrag(new AboutFragment(), "About"); adapter.addFrag(new Locators(), "Locations"); viewPager.setAdapter(adapter...
ادامه مطلبVote count: 0 I have a working .NET REST client code. I need to convert the .NET code into PHP. After a lot of time spent to convert the code I have no clue on how to proceed further. The relevant code in .NET is as below: Public Function GetDemographicDetail(ByVal UID As Decimal) As DataSet Dim DsResult As New DataSet Dim proxyobject As WebProxy = New WebProxy("http://proxyserver:80/", True) 'Variable to hold the XML file. Dim sample As String 'URL of the Webservice. Dim serviceBaseUrl As String = "http://srdh.punjab.gov.in:80/searchservice/searchservice/searchService" Dim req As WebRequest = WebRequest.Create(serviceBaseUrl) req.Proxy = proxyobject Dim resourceUrl As String = "" Dim method...
ادامه مطلبVote count: 0 I need to authenticate the user using asp.net identity then need to use the social login to get there profile detail. Owin does't allow two login at the same time. please help me out of this. thanks in advance. asked 1 min agoNitin Singh Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I want to use asp.net identity as my web api authentication provider and authorization server, but there is only one thing that make me skeptical and hesitate more about using it, which is it's long token (512 bit), I also Implemented ISecureDate interface and customize my token generation using JWT but I only managed to reduced my token length to 483 (which is not much different from default Microsoft token length), Because most of our apis are authorized so the users will send the long (512 bit) token in every request, keep it in mind that performance is a key factor for our web app and since we're living in Iran,the inteet speed is considerably slow (in comparison with other...
ادامه مطلبVote count: 0 Recently I'm doing a project about broadcast my location infos (latitude, longitude, bearing and speed) from gps module in smartphone, then ppls or drivers who are closer to each other could get the distance and avoid the collision(actually part of the VANET). I waa use the Wi-Fi Direct to broadcast these infos without establishing coections among the devices. Just fill the infos into the name of Wi-Fi Direct ssid and change it when gps data changes. Then a problem occurs that the delay is really long. When I switched on the Wifi Direct of one device, another one could find it after about 1 second. However it’s not enough when comes to the vehicular network. This problem became...
ادامه مطلبVote count: 0 Using the following code to retrieve data via a php file from MySQL works great on wifi but not on mobile it seems to truncate the response. Any help to approach debugging this would be much appreciated. See print outputs pasted into code below for cell v wifi func get(){ let urlcustom = "http://myserver.com/swiftly/phpget.php?team_id=(theteam)" let url = URL(string: urlcustom) let data = try? Data(contentsOf: url!) values = try! JSONSerialization.jsonObject(with: data!, options: JSONSerialization.ReadingOptions.mutableContainers) as! NSArray tableView.reloadData() print("get ran (data)") // mobile phone cell coection - FAIL // get ran Optional() // Wifi Coection //get ran Opti...
ادامه مطلبVote count: 0 I have the following topology: Home broadband coection (mostly for TV and wireless devices) Home Office broadband coection in an adjacent building (mostly wired coections for servers, workstations and printers) I want each building to use its own coection, but I want to be able to use office resources from the house. My initial thought was to have have a subnet for each and coect the two routers together. However, all attempt so far have resulted in all the traffic going through the office coection. Is there a simple solution like subnetting a Class C network? asked 1 min agoAndrew Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I've been using Renci.SshNet in C# to check some info about a server using an SSH coection. I am trying to use the command: sshClient.RunCommand("show ports").Result; to generate a string and check if all the ports on a server are enabled. The RunCommand().Result method has worked perfectly with every other command but for some reason refuses to print anything when I try to run "show ports." Does anyone know why this could be the case? asked 32 secs agoJpskida Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I've been trying to use onDelete="SET NULL" with one of my entities, but it retus this error: [Creation Error] The aotation @ORMOneToMany declared on property AppBundleEntityGenre::$movie does not have a property named "onDelete". Available properties: mappedBy, targetEntity, cascade, fetch, orphanRemoval, indexBy Entity looks like this: /** * Movie array * * @ORMOneToMany( * targetEntity="AppBundleEntityMovie", * mappedBy="genres", * onDelete="SET NULL") * */ protected $movie; What am I doing wrong? asked 23 secs agoNunuz Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have an application in asp.net, looking to host with dedicated server,I need good performance for my site I have read about nginx server which has multiple pros like Load Balancing, solves c10K problem, reverse proxy and many more But I have asp.net application is it good Idea tohost it with nginx?? asked 44 secs agosatsvelke Let's block ads! بخوانید...
ادامه مطلب