server-side

Random sorting query Access

旧时模样 提交于 2019-11-30 09:07:00
问题 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

Does it make sense to build pure JavaScript based web applications (both client and server side)?

旧巷老猫 提交于 2019-11-30 08:41:59
I've always considered JavaScript as a great addition (or rather, for the last couple of years, as a must have) to the client side of any web application. Even when I started to use Mootools, which takes a big step away from DOM manipulation, and aims toward a general purpose, OO framework, I still didn't think that I would consider using JavaScript for server-side development. JavaScript belongs to the front, period - that's what I thought. Well, it seems like according to some damn smart people , I was wrong. For the first time ever, the web development platform contest called Plat_Form

Using jquery to get per row totals and grand total of table

梦想与她 提交于 2019-11-30 07:26:09
So the short version of this is: Can I traverse only the elements within the matched element of the selectors before the each() ? Or is there a simpler way of getting what I want without an each() loop? I thought this would be much easier, which makes me think I'm just missing some fundamental principle of element traversing with jquery. So here's the scenario: I have a table (and it is appropriate in this case), where each cell has a text input . The last input is read-only and is supposed to be the total sum of the other values entered on that row. I have a really messy js script for finding

Question about listening and backlog for sockets

本小妞迷上赌 提交于 2019-11-30 07:26:02
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 time, what would happen? (I am calling Socket.Select in a loop and checking readability of the

Server Side Javascript: Why?

孤街浪徒 提交于 2019-11-29 22:14:59
Is the use of server side javascript prevalent? Why would one use it as opposed the any other server side scripting? Is there a specific use case(s) that makes it better than other server side languages? Also, confused on how to get started experimenting with it, I'm on freeBSD, what would I need installed in order to run server side javascript? It goes like this: Servers are expensive, but users will give you processing time in their browsers for free. Therefore, server-side code is relatively expensive compared to client-side code on any site big enough to need to run more than one server.

When to use “client-side routing” or “server-side routing”?

試著忘記壹切 提交于 2019-11-29 19:11:06
I'm a little bit confused about this, and I feel slightly stupid asking this question, but I want to understand it. So, say I'm working with a client side web framework, like Backbone, Angular or Durandal. This framework includes routing. But I of course still have a server for database stuff, and so on, which also has routing. My question now is: When to use "client-side routing" or "server-side routing"? How is it "decided" whether routing is already performed on the client side or whether the request is first sent to the web server? I have a particularly hard time imagining this because the

Do copyright dates need to be updated? [closed]

╄→гoц情女王★ 提交于 2019-11-29 18:35:47
Every now and then I see a web site that has an old copyright date. In my mind, I always think "Look at the sucker who forgot to update his copyright year!" Then, while I was hard-coding a copyright year into the site I'm currently designing, it suddenly struck me: How the hell am I going to remember to update this? My immediate reaction was just to use some server-side coding to automatically display the current year. Bam, fixed. Later, I began to ponder to myself, if someone as big and smart as Google can overlook this , perhaps there's something wrong in doing it this way. Maybe I'm doing

Serverside and clientside javascript

こ雲淡風輕ζ 提交于 2019-11-29 16:56:25
Does serverside javascript exist, if yes, is it possible to clientside javascript to interact with serverside javascript? For example, is it possible for clientside javascript to request from the serverside javascript to return part of a json file which is stored on the server without downloading the whole json file? I understand that I can do this with other serverside languages like aspx, php etc etc, but wanted to know if serverside javascript exists and if it can do something similar with json files? Does serverside javascript exist http://en.wikipedia.org/wiki/Comparison_of_server-side

How to generate sitemap with react router

眉间皱痕 提交于 2019-11-29 16:46:12
问题 I'm trying to figure out how to dynamically generate sitemap in reactJS server side (express) web app. I'm using react router. 回答1: For simple ReactJS sitemap integration with React Router, you should check out the react-router-sitemap package. It's fairly configurable as well, as you can see in the docs, so if you need to include change frequency or things like that, you should be able to do it no problem. Or were you looking for a way to implement one yourself? 回答2: Try this one to generate

PHP server side timer

自闭症网瘾萝莉.ら 提交于 2019-11-29 12:56:09
I need to make a page that has a timer counting down. I want the timer to be server side, meaning that when ever a user opens the page the counter will always be at the same time for all users. When the timer hits zero I need to be able to run another script, that does some stuff along with resetting the timer. How would I be able to make something like this with php? x29a Judging from "when ever a user opens the page" there should not be an auto-update mechanism of the page? If this is not what you meant, look into AJAX (as mentioned in the comments) or more simply the HTML META refresh.