local

proxy for mac and windows

I have a requirement that I need to restrict my kids from browsing some sites . I want to be the adminbstrator for my machine, but other users have limited access to internet. Is there any software / proxy for this ? i want solution for both windows / linux and mac ...

ReportViewer in WPF behaving differently on similar machines

I have a reportviewer control in a pop up window inside my WPF application. When the report is to be printed, on some client machines it gives the following message "Some parameters or credentials have not been specified". This error does not come on every client machine even though the machines are identical in every respect. I have t...

How to enable Map Local over https with Charles Proxy?

I'm using Charles Proxy's handy Map Local tool to develop CSS documents. This way I can immediately see my edits without having to redeploy the whole thing which in the wonderful world of enterprise-level webapps saves a considerable amount of time. I just discovered that Map Local doesn't work with the https protocol. I have no problem...

C structure pointer dereferencing speed...

Hello. I have a question regarding the speed of pointer dereferencing. I have a structure like so: typedef struct _TD_RECT TD_RECT; struct _TD_RECT { double left; double top; double right; double bottom; }; My question is, which of these would be faster and why? CASE 1: TD_RECT *pRect; ... for(i = 0; i < m; i++) { if(p[...

How to setup a local xampp behind my company's proxy

I am trying to do curl requests through my local xampp setup but my company has a firewall proxy that needs to authenticate on port 8080. Can I have apache login to this proxy authenticate and complete the curl requests? ...

How to get rid of 'Name ... used only once: possible typo at ...' ?

use YAML::XS; local $YAML::XS::DumpCode=1; ... Name "YAML::XS::DumpCode" used only once: possible typo at .. Well, I know I can suppress this specific warning, but it's kind'a ugly. Am I doing anything wrong? I'm not used to be warned :) ...

PHP/Javascript: Tell two computers apart from same network

I'm developing a site where you are not allowed to login on multiple accounts on one computer, but I do not know how to do this. The method has to be: Cross-platform (can be used on Windows/Mac/Linux clients). Browser independent. This is to avoid some users exploiting multiple users to gain unfair advantages, while still allowing tw...

Effective ip->location query

Hello all, I have two tables: one is ip_group_city from ipinfodb.com containing ip_start numbers for determining location of IPs, and other is "visits" with information about web site visitor containing column 'ip'. I need to select top 10 region_code (from ip_group_city) by checking region_code for each IP from "visits" table. Right ...

How can I overcome the adobe flash .."potentially unsafe operation" warning message

Hello all I have desktop application that using Youtube Player API to stream video to the application but each time The player loads I have the security warning , is there any way to overcome this ? maybe setup simple web server in my application This is the last option for me . ...

Linking to External Stylesheets with HTTP:// or local path

What are the pros and cons of each? Is there a difference? CSS Stylesheets in HTML. ...

Joda Time: Convert UTC to local

I want to convert a Joda Time UTC DateTime object to local time. Here's a laborious way to do it which seems to work. But there must be a better way. Here's the code (in Scala) without surrounding declarations: val dtUTC = new DateTime("2010-10-28T04:00") println("dtUTC = " + dtUTC) val dtLocal = timestampLocal(dtUTC) ...

ruby: how to load .rb file in the local context

How this simple task can be done in Ruby? I have some simple config file === config.rb config = { 'var' => 'val' } I want to load config file from some method, defined in main.rb file so that the local variables from config.rb became local vars of that method. Something like this: === main.rb Class App def loader load('co...

problems with iphone code to check server file date

I want to check the dates on files -- zip, jpg, or whatever -- on my server and, if they are newer than the copies on my iPhone, to download them. I wrote the following method based on a post here that's about a year old. It has two problems: + (NSString *) f_GetServerFileDate:(NSString *)MyURL { NSURL *oURL = [NSURL URLWithString:...