i want to send request on Https so do i need to install the SSL certificate as the steps are given for apple push notification
please help me i am new and i have never worked on OpenSSL
Hi all
Say I got 3 entities: Business, Employee and Payment. A payment has a foreign key to an Employee, while the Employee has an foreign key to a business.
Now, I want to create a query which gives me all payments for a given business. I really don't have a clue about how to do this - I guess I want something like:
mySession.CreateCriteria<Payment>()
.Add(Criterion.Expression.Eq(/* Employee_FK => Employee.Business_FK == BusinessID */);
Any help would be greatly appreciated :)
ok help me only in this question we have m length of pattern and k variable here for (i=0; i <= k; ++i) R[i] = ~1;
instead of k should be m yes? boolean[]R=new boolean[m+1];
look at this algorithm
http://en.wikipedia.org/wiki/Bitap_algorithm
i need the source code of an application that can upload and download automatically from the remote computer (FTP) using java langauge. if any body gey help or the code, kindly contact me through my mail address [email protected]. thanks
Hi friends
I am new to Programming.During last year I learned flash programming as well as Asp.net
I am good at both.
But i am confused about choosing asp.net or flash programming
As per career which one will get me good salary and
which one will me more secure
Please help me on this with reasoning which one i should choose
I have two tables: subject and student.
I'm trying to count the number of subjects enrolled by each student. How do I do that?I'm trying the code below but it doesn't give the answer I need. Please help.
SELECT COUNT( subject.SUBJECT ) , student.IDNO, student.FIRSTNAME, subject.SUBJECT
FROM student, subject
GROUP BY subject.SUBJECT
LIMIT 0 , 30
I need help with select statement in SQL Server / T-SQL
My table looks like this:
Id (int)
QuestionId (int)
GenreId (int)
I want to select random N rows from this table so that maximum number of same GenreId in the result set is less than X for all GenreId-s except one. For that one GenreId, I need row count with that GenreId to be equal to Y.
how i can make http request to my page
i dont know that you understand me or not
but i want to make a site like [www.break-rules.info][1]
how i can make all links and forms actions redirect back to my script
iam using php
**can you help me please**
I have two table
First table
BID Town
1 ABC
2 ABC2
3 ABC
Second Table
PID BID AmountFirst AmountSecond AmountThird Minority
1__ 1___ 1000_____ 1000________ 1000_____ SC
2__ 2___ 2000_____ 1000_______ 2000_____ ST
3__ 3___ 1000____ 1000_______ 1000_______ SC
BID is foreign key in Second table.
I want sum AmountFirst + AmountSecond +AmountThird for individualTown
e.g for ABC town answer should be : 6000 (summation of PID 1 and PID 2)
I want Linq query for this..Please help
"8,5,,1,4,7,,,,7,,1,9,3,6,,,8,6,3,9,,2,5,4,,,,,3,2,,,7,4,1,1,,4,,6,9,,5,,,,5,,,1,,6,3,,,6,5,,,,7,4,,1,7,6,,,,8,,5,,,7,1,,3,9,"
I'm doing a programming challenge where i need to parse this sequence into my sudoku script.
Need to get the above sequence into 8,5,0,1,4,7,0,0,0,7,0,1,9,3,6,0,0,8.........
I tried re but without success, help is appreciated, thanks.
hi everybody fisrt of all this is not homework and now question is like this suppose
i have array int a[]=new int[]{0xBCDA,0xABFE,0xBCAD,0xEFCA,0xFFCA} i know that there is always some hexadecimal number which occurs in all number or in this case A is repeat in array everywhere so my aim is print only repeat number and other numbers should be zero
so my new array should be like this
0x000A, 0xA000,0x00A0 0x000A,0x000A any idea please help me?
p.s please nobody say that this is homework
You need to use division and remainder by 10. Consider this example:
163 divided by 10 is 16 remainder 3
16 divided by 10 is 1 remainder 6
1 divided by 10 is 0 remainder 1
You'll notice the remainder is always the last digit of the number that's being divided. Now figure out a way to do this in C...
How do i do it in c Help :(
i have set mName, mContact and memail as my variables.. and i want to use them in setter and getters.. can any body help me doing so? only want to know the syntax..
regards..
I have to make a process in Oracle/PLSQL.....i have to verify that the interval of time between start_date and end_date from a new row that i create must not intersect other start_dates and end_dates from other rows.
Now I need to check each row for that condition and if it doesn't correspond the repetitive instruction should stop and after that to display a message such as "The interval of time given is not correct".
I don't know how to make repetitive instructions in Oracle/PLSQL and I would appreciate if you would help me.
Hi, i've a problem for a table update. follow table structure:
Table1
tableid
...
...
productID_1
productID_2
productID_3
Table2
productID
Total
I've to totalize each product in table2.
For example:
SELECT COUNT(*) as tot, ProductID_1 FROM Table1 GROUP Table1
then the UPDATE table2 SET total =..??? (how can i do) WHERE productID_1 = ....
Hope you can help me.
Thank you
Hello Plase Must Get more Help 4 My busines Plase Tell me How to Get more work and client in My bar I hav small bar but not have mutch client how to get more client
Hello,
I need help with select statement in MSSQL.
My table looks like this:
Id (int)
QuestionId (int)
GenreId (int)
I want to select random N rows from this table so that maximum number of same GenreId in the result set is less than X for all GenreId-s except one. For that one GenreId, I need row count with that GenreId to be equal to Y.
Thanks in advance
I am having trouble figuring our how I can get results only when products.published, product_types.published, and product_cats.published = 1 but my query isn't working. Please help:
SELECT
`products`.`title`,
`products`.`menu_id`,
`products`.`short_description`,
`products`.`datasheet_icon`,
`products`.`datasheet`,
`products`.`ordering`,
`products`.`product_type_id`,
CASE WHEN CHAR_LENGTH(`products`.`alias`)
THEN CONCAT_WS(':', `products`.`id`, `products`.`alias`)
ELSE `products`.`id`
END AS slug
FROM
`products`,
`product_cats`,
`product_types`
WHERE
`products`.published=1 AND
`product_cats`.published=1 AND
`product_types`.published=1 AND
`products`.`product_cat_id`='42' AND
`product_types`.`id` IN (1,40,48,49,50)
GROUP BY `products`.`id`
ORDER BY `product_types`.`ordering`, `products`.`ordering`
I need help making an c++ program with a function that uses int Disc(int A, int B, int C) and calculates returns B*B-4*A*C and use the function Disc in the program..... i have this so far.
void main(){
cout << Disc(a,b,c);
}
How can I get a specific value from an object?
I'm trying to get a value of an instance
for eg.
ListOfPpl newListOfPpl = new ListOfPpl(id, name, age);
Object item = newListOfPpl;
How can I get a value of name from an Object item??
Even if it is easy or does not interest you can anyone help me??
I am using django, nginx and apache. When I access my site with a URL (e.g., http://www.foo.com/) what appears in my browser address is the IP address with admin appended (e.g., http://123.45.67.890/admin/). When I access the site by IP, it is redirected as expected by django's urls.py (e.g., http://123.45.67.890/ - http://123.45.67.890/accounts/login/?next=/)
I would like to have the name URL act the same way as the IP. That is, if the URL goes to a new view, the host in the browser address should remain the same and not change to the IP address. Where should I be looking to fix this?
My files:
; cpa.com (apache)
NameVirtualHost *:8080
<VirtualHost *:8080>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/htm
DocumentRoot /path/to/root
ServerName www.foo.com
<IfModule mod_rpaf.c>
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1
</IfModule>
<Directory /public/static>
AllowOverride None
AddHandler mod_python .py
PythonHandler mod_python.publisher
</Directory>
Alias / /dj
<Location />
SetHandler python-program
PythonPath "['/usr/lib/python2.5/site-packages/django', '/usr/lib/python2.5/site-packages/django/forms'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE dj.settings
PythonDebug On
</Location>
</VirtualHost>
;
; ports.conf (apache)
Listen 127.0.0.1:8080
;
; cpa.conf (nginx)
server {
listen 80;
server_name www.foo.com;
location /static {
root /var/public;
index index.html;
}
location /cpa/js {
root /var/public/js;
}
location /cpa/css {
root /var/public/css;
}
location /djmedia {
alias "/usr/lib/python2.5/site-packages/django/contrib/admin/media/";
}
location / {
include /etc/nginx/proxy.conf;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8080;
}
}
;
; proxy.conf (nginx)
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 500;
proxy_buffers 32 4k;
When pinging my domain name which points to my home public IP from two different servers on my LAN, it shows them pinging different IP. Further investigation shows dig and nslookup providing different results. See below.
A little history. My IP used to be 11.22.33.444 and is hosted by Comcast. I changed routers, and it somehow got changed to 55.66.77.888. I've since updated my 1and1 domain name to point to the 55.66.77.888. desktop is a basic server, runs the web server, and connects wirelessly to my LAN. laptop is a GUI and connected via CAT5. Both operate Centos6.4. My old router was a D-Link, and used their "Virtual Server" feature to pass port 80 to desktop. My new router is a Linksys, and I use their "Port Forwarding" feature to pass port 80 to desktop (however, I haven't gotten this part working yet).
What is going on??? Why the different IPs? Obviously, it most somehow be stored on the server, but why does the actual machine even know the public IP since it is on a LAN? How do I purge the old IP?
[root@desktop etc]# dig +short myDomain.com
11.22.33.444
[root@desktop etc]# nslookup www.myDomain.com
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
Name: www.myDomain.com
Address: 55.66.77.888
[root@desktop etc]# dig myDomain.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.6 <<>> myDomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13822
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;myDomain.com. IN A
;; ANSWER SECTION:
myDomain.com. 16031 IN A 11.22.33.444
;; Query time: 21 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Oct 21 04:36:52 2013
;; MSG SIZE rcvd: 44
[root@desktop etc]#
[root@laptop ~]# dig +short myDomain.com
55.66.77.888
[root@laptop ~]# nslookup www.myDomain.com
Server: 192.168.0.1
Address: 192.168.0.1#53
Non-authoritative answer:
Name: www.myDomain.com
Address: 55.66.77.888
[root@laptop ~]#
I am making the switch to VoIP. I chose voip.ms as my service provider and Mediatrix 4102 as my ATA.
One reason why I chose the Mediatrix over other popular consumer ATAs is that it's supposed to be easy to place it in front of the router, so it can give priority to its own upstream traffic over the home network's upstream traffic. This is supposed to work transparently, with the ATA and router sharing the same public IP address (the one obtained from the modem).
They call this feaure Transparent IP Address Sharing, or TAS. Their promotional brochure describes it like this:
The Mediatrix 4102 also uses its innovative TAS (Transparent IP Address Sharing) technology and an embedded PPPoE client to allow the PC (or router) connected to the second Ethernet port to have the same public IP address, eliminating the need for private IP addresses or address translations.
I am interested by this feature because my router, an Apple Time Capsule, doesn't support QoS and cannot give priority to the voice packets if the ATA is behind the router.
However, after hours of searching the web, reading the documentation, and good ol' trial and error, I haven't been able to configure the Mediatrix to run in this mode.
Then I found a version of the manual that looks like it was for a previous version of the firmware (SIP), where there is an entire section dedicated to configuring TAS (starting at page 209).
But my Mediatrix comes with the DGW 2.0 firmware, whose documentation does not mention TAS at all.
So I tried to follow the TAS setup instructions from the SIP documentation and apply them to my DGW firmware, using the Variable Mapping Between SIP v5.0 and DGW v2.0 document as a reference, but no success. Some required SIP variables don't have an equivalent in DGW.
So it looks like the DGW firmware does not support TAS at all, or if it does they are not doing anything to help us set it up.
So right now, the Mediatrix is behind the router and VoIP works perfectly except when my upstream bandwidth is saturated.
My questions are:
Is downgrading to SIP firmware the only way to have my Mediatrix 4102 run in TAS mode? If not, anybody knows how to setup TAS on the DGW firmware?
Is TAS mode the only way to give priority to the voice packets if I want to keep my current router (Apple Time Capsule)?
Thanks!
I am making the switch to VoIP. I chose voip.ms as my service provider and Mediatrix 4102 as my ATA.
One reason why I chose the Mediatrix over other popular consumer ATAs is that it's supposed to be easy to place it in front of the router, so it can give priority to its own upstream traffic over the home network's upstream traffic. This is supposed to work transparently, with the ATA and router sharing the same public IP address (the one obtained from the modem).
They call this feaure Transparent IP Address Sharing, or TAS. Their promotional brochure describes it like this:
The Mediatrix 4102 also uses its innovative TAS (Transparent IP Address Sharing) technology and an embedded PPPoE client to allow the PC (or router) connected to the second Ethernet port to have the same public IP address, eliminating the need for private IP addresses or address translations.
I am interested by this feature because my router, an Apple Time Capsule, doesn't support QoS and cannot give priority to the voice packets if the ATA is behind the router.
However, after hours of searching the web, reading the documentation, and good ol' trial and error, I haven't been able to configure the Mediatrix to run in this mode.
Then I found a version of the manual that looks like it was for a previous version of the firmware (SIP), where there is an entire section dedicated to configuring TAS (starting at page 209).
But my Mediatrix comes with the DGW 2.0 firmware, whose documentation does not mention TAS at all.
So I tried to follow the TAS setup instructions from the SIP documentation and apply them to my DGW firmware, using the Variable Mapping Between SIP v5.0 and DGW v2.0 document as a reference, but no success. Some required SIP variables don't have an equivalent in DGW.
So it looks like the DGW firmware does not support TAS at all, or if it does they are not doing anything to help us set it up.
So right now, the Mediatrix is behind the router and VoIP works perfectly except when my upstream bandwidth is saturated.
My questions are:
Is downgrading to SIP firmware the only way to have my Mediatrix 4102 run in TAS mode? If not, anybody knows how to setup TAS on the DGW firmware?
Is TAS mode the only way to give priority to the voice packets if I want to keep my current router (Apple Time Capsule)?
Thanks!
When I traceroute to this IP (108.162.198.181) it stops after 1 hop. But tracerouting to a domain (www.gomodule.com) with the same IP shows 9 hops ending in that target.
traceroute to www.gomodule.com (108.162.198.81), 64 hops max, 52 byte packets
1 192.168.1.1 (192.168.1.1) 131.667 ms 48.532 ms 48.837 ms
2 118.69.255.124 (118.69.255.124) 91.521 ms 79.177 ms 30.679 ms
3 42.117.11.225 (42.117.11.225) 30.270 ms 32.091 ms 29.698 ms
4 118.69.253.213 (118.69.253.213) 32.234 ms
118.69.253.237 (118.69.253.237) 70.667 ms
118.69.253.213 (118.69.253.213) 82.440 ms
5 118.69.253.245 (118.69.253.245) 64.554 ms 80.277 ms 130.224 ms
6 118.69.251.205 (118.69.251.205) 65.635 ms
118.69.249.78 (118.69.249.78) 133.234 ms
118.69.251.205 (118.69.251.205) 224.111 ms
7 118.69.251.249 (118.69.251.249) 156.679 ms 111.965 ms 64.165 ms
8 cloudflare1-rge.hkix.net (202.40.160.246) 64.102 ms 64.498 ms 74.581 ms
9 108.162.198.81 (108.162.198.81) 66.873 ms 67.426 ms 69.054 ms
-vs-
traceroute to 108.162.198.181 (108.162.198.181), 64 hops max, 52 byte packets
1 192.168.1.1 (192.168.1.1) 96.588 ms 3.003 ms 4.976 ms
2 118.69.255.124 (118.69.255.124) 45.223 ms 31.449 ms 31.225 ms
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
...