server-side

Random sorting query Access

≡放荡痞女 提交于 2019-11-29 12:18:30
I'm using this simple query to use a random sorting on a ms-access database: SELECT pk FROM TABLE ORDER BY Rnd(pk) asc And it's working fine when i test it with Microsoft Access 2010 However, when i call this query using classic asp, random sorting doesn't work. Here's my code: set Rs = Server.CreateObject("ADODB.Recordset") Rs.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("/dbfolder") & "\dbname.mdb" Rs.Source = "SELECT pk FROM TABLE ORDER BY Rnd(pk) asc" Rs.CursorType = 3 Rs.CursorLocation = 2 Rs.LockType = 3 Rs.Open() do while not Rs.eof 'do stuff Rs

Server-side jquery

天涯浪子 提交于 2019-11-29 11:21:14
Say I have a script written in perl or python. What's the easiest way to write a function that would use jquery selectors on strings as part of it? i.e. to be able to do: jquery_selector('table.new#element', text) where jquery_selector is a function that runs a jquery selector on the html string stored in text . Even if it was just limited to returning strings (not full jquery objects), it would still be really useful. i.e. if you were required to give a javascript function as a callback which would render the results to something comprehensible in the scripting language: jquery_selector(

Why do we need server side as well as client side validation for Web applications?

南楼画角 提交于 2019-11-29 10:21:27
Is there any high level reason to have both client side and server side validations for a web application ? Because your client side validation may be subverted. For example - on the web, if you are using javascript for validation, it is very easy to either turn javascript off, or change how it works using tools such as FireBug. Event with other client/server methods, it is possible for the data link to be subverted and the "validated" data can be changed on the way to the server ( Man In The Middle attack). In general, the maxim "never trust the client" is the reason that you need to always

Question about listening and backlog for sockets

℡╲_俬逩灬. 提交于 2019-11-29 09:38:15
问题 I am writing an application in C# that needs to handle incoming connections and I've never done server side programming before. This leads me to these following questions: Pros and cons of high backlog / low backlog? Why shouldn't we set the backlog to a huge number? If I call Socket.Listen(10), after 10 Accept()s do I have to call Listen() again? Or do I have to call Listen() after every Accept()? If I set my backlog to 0 and hypothetically two people want to connect to my server at the same

How do I use a DataPager with Server Side Paging?

无人久伴 提交于 2019-11-29 08:43:23
问题 I'm trying to use a DataPager to do Server Side paging. Here is my code <asp:DataPager ID="pgrFooBars" PagedControlID="lvFooBars" QueryStringField="page" runat="server" > <Fields> <asp:NumericPagerField /> </Fields> </asp:DataPager> Code Behind protected void Page_Load(object sender, EventArgs e) { ConfigureBlogPostListView(); } private void ConfigureBlogPostListView() { int pageNum; int.TryParse(Request.Params["page"], out pageNum); int pageSize = 20; PagedList<IFooBar> FooBars = FooService

Login Check in Server Side

十年热恋 提交于 2019-11-29 05:22:43
I would like know how to implement the Login Check example by comparing the username and password on Server-side using Web-Services in Android. A Complete Example for Authentication is Here Use HttpPost method to check login. This will make the login secured. you can also check out Parse.io , the service will handle most of the server-side for you, depending on what you actually want to do. 来源: https://stackoverflow.com/questions/9256647/login-check-in-server-side

Printing a Report Server-Side and Silently

无人久伴 提交于 2019-11-29 04:44:54
I am trying to write a program that allows me to print a ssrs report(.rdl file) from the server-side code to a predetermined printer without any pop ups asking me which printer I want to use can this be done? EDIT Also pasted the code for the ReportViewerDisposer implementation I'm using. Together with the class ReportViewerDisposer found here I'm using the following code, which is part of a larger project, but you should be able to adapt it easily: private string m_printerName; private string m_server; private string m_path; private string m_name; private Dictionary<string, string> m

The max message size quota for incoming messages (65536) …To increase the quota, use the MaxReceivedMessageSize property

回眸只為那壹抹淺笑 提交于 2019-11-28 23:14:29
I got this crazy problem I'm trying to deal with. I know that when we're getting huge amount of data we must increase the quota on client .config file, but what am I supposed to do if my client is sending huge data "to" the WCF server? It works perfectly normal when I'm sending small sized input parameter. Unfortunately, it breaks down when the input grows bigger. Debugger it says: Bad Request, 400; on trace file it is: The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding

Understanding Heroku server status 143

本秂侑毒 提交于 2019-11-28 20:59:46
I'm wondering about Heroku server status and can't find any documentation about this topic. Example: Process exited with status 143 Can anyone explain this example? And where would I find resources for future reference? Exit code 143 means that your process was terminated by a SIGTERM. This is generally sent when you do any commands that require your dynos to restart (config:set, restart, scale down...). It is an idle state when it does not receive any request for a while. When it receives a request it will start again. 来源: https://stackoverflow.com/questions/15767685/understanding-heroku

Google Analytics API - Programmatically fetch page views in server side

别来无恙 提交于 2019-11-28 20:55:48
We have a web application that consists of several pages. We registered our web app domain to Google Analytics and page views tracking works as expected (In the Analytics panel we can see page views for each page). Now we want this page views info to be stored in the back-end inside our DB. So we want to create a back-end process that will run once each day, and fetch the page views from Analytics API. This is of course need to be done in code. From initial research it seems that in order to access Analytics API an authentication process must take place, meaning a human user must type in an id