i have 10.5.8 OS X rite now.. i want it to be 10.6.3 .. i have downloaded the update but its ttelling u need 10.6 to update to 10.6.3 ] ]
so how to update from 10.5.8 to 10.6.3 ?
by this question what i mean is that if, by example, someone's username is "bob" then the while loop condition will be ($i < 10), and if the username is something else then the while loop condition will be ($i 10)
if($username == "bob")
{
//make this while loop condition: ($i < 10)
// it means: while($i <10){ so stuff}
}
else
{
//make the while loop condition: ($i >10)
}
Hi,
May I know the reason of getting the output of the following code as: 1,10,10? Why not it is as: 10, 10?
<script type="text/javascript">
var str="1, 100 or 1000?";
var patt1=/10?/g;
document.write(str.match(patt1));
</script>
in hexadecimal "10 10 10 10" system you have 0-255 posibilities right? in total 256 different posibilities as there are 8 1s and 0s.
how many different posibilities would i get?
if i had 10 digits. instead of 8?
or how would i calculate that in php ?
by this question what i mean is that if, by example, someone's username is "bob" then the while loop condition will be ($i < 10), and if the username is something else then the while loop condition will be ($i 10)
if($username == "bob")
{
//make this while loop condition: ($i < 10)
// it means: while($i <10){ so stuff}
}
else
{
//make the while loop condition: ($i >10)
}
Hi
in my db there are 5 fields (id, list_date, amount, total, m_from)
and contain data, for example :
1 - 1/1/2010 - 10 - 50 - 'example111'
1 - 1/1/2010 - 10 - 50 - 'example111'
1 - 1/4/2010 - 10 - 50 - 'example154
1 - 1/1/2010 - 10 - 50 - 'example111'
1 - 1/5/2010 - 10 - 50 - 'test'
I need to know how I can get dates from list_date but without repeatable dates like '1/1/2010, 1/5/2010, 1/4/2010'
Thanks in Advance.
I have the following table :
alertID inspectorID datelive dateread
1 none 2012-11-06 10:36:03.350 NULL
2 none 2012-11-06 10:36:25.043 NULL
3 none 2012-11-06 10:36:42.433 NULL
1 31030 2012-11-06 10:37:19.193 2012-06-11 10:34:47.000
I want to select the alerts that dont have the inspectors ID against it AND where the alert ID doenst match the one that has the inspectorID against it, ie inspector has read alert 1 so i only want it to return alerts 2 & 3
Am using Classic ASP and MS-SQL
Cheers
Hi again, here is my coding which gives me the error 'warning: unknown conversion type character 0x20 in format'
int subtotal;
long long a,b,c,d,e,f,g,h,i,j,k,l,m;
subtotal = (1*(a+c+e+g+i+k))+(3*(b+d+f+h+j+l));
printf(" = %d % 10 = %d; (10 - %d) % 10 = %lld\n", subtotal,subtotal%10,subtotal%10,m);
any idea why this is wrong?
these steps were send by my iSP admin for ver10.10 and i'm using 11.10...
step 1 sucessfully implemented till point 7 after that the problems are marked after '//'
Step 2 i cannot completely do the step 2
How to make Connect Communications VPN connection in Ubuntu 10.10.
1st Step:-
1- Go to System > Administration > Synaptic Package Manage
2- Search for “PPTP”, check “network-manager-PPTP” and click “Apply”
3- Click on the Network Manager tray icon with your right mouse button and choose “Edit Connections…”.
4- Go to the “VPN” tab and click “Add”.
5- Choose “Point-to-Point Tunneling Protocol (PPTP)” as the VPN Connection Type
6- Check the VPN Connection Type and click “Create”.
7- Give your VPN connection a name and assign all the necessary information
• Gateway = blue.connect.net.pk if you got Blue Package
or
• Gateway = green.connect.net.pk if you got Green Package
or
• Gateway = blueplus.connect.net.pk if you got BluePlus Package
or
• Gateway = red.connect.net.pk if you got Red Package
• User name = Connect Communications Userid
• Password = Connect Communications Password
8- Now Click on “Advanced”
Authentication
• Unchecked “PAP" // cannot uncheck
• Unchecked “MSCHAP" // cannot uncheck
• Unchecked “CHAP"
• Checked only “MSCHAPv2"
EAP shown in ver11.10 and cannot be unchecked
Security And Compression.
• Unchecked “Use Point-to-Point encryption (MPPE)”.
• Unchecked “Allow statefull encryption”.
• Unchecked “Allow BSD data Compression”.
• Unchecked “Allow Deflate data Compression”.
• Unchecked “Use TCP Header Compression”.
• Unchecked “Send PPP echo Packets”
Then Press “OK” then “Apply”.
9-Now you are able to connect to the specified VPN connection via the Networking Manager
Then you can connect to VPN in the menu bar and your Internet icon will have a lock when the connection is successful.
2nd Step:-
Open Terminal window.
First, you open a terminal (Applications > Accessories > Terminal):
Run command “sudo”
Now gave root Password.
Then run command “netstat -r -n”
It will show some lines and for example from the last line pick the IP from 2nd column like 10.111.0.1
0.0.0.0 10.111.0.1 0.0.0.0 UG 0 0 0 eth0
Now run the fallowing command.
echo “route add -net 10.101.8.0 netmask 255.255.252.0 gw 10.152.24.1” > /etc/rc.local
note :- 10.111.0.1 is an example IP
now run “ sh /etc/rc.local “
CVE DescriptionCVSSv2 Base ScoreComponentProduct and Resolution
CVE-2012-0724 Denial of Service (DoS) vulnerability
10.0
Adobe Flashplayer
Solaris 10
SPARC: 125332-24 X86: 125333-23
CVE-2012-0725 Denial of Service (DoS) vulnerability
10.0
CVE-2012-0768 Denial of Service(DoS) vulnerability
10.0
CVE-2012-0769 Information disclosure vulnerability
5.0
CVE-2012-0772 Denial of Service (DoS) vulnerability
10.0
CVE-2012-0773 Denial of Service (DoS) vulnerability
10.0
This notification describes vulnerabilities fixed in third-party components that are included in Oracle's product distributions.Information about vulnerabilities affecting Oracle products can be found on Oracle Critical Patch Updates and Security Alerts page.
Here is an example of me utilizing path finding. The red grid represents the grid utilized by my A* library to locate a distance. This picture is only an example, currently it is all calculated on the 1x1 pixel level (pretty darn laggy).
I want to make it so that the farther I click, the less accurate it will be (split the map into larger grid pieces). Edit: as mentioned by Eric, this is not a required game mechanic. I am perfectly fine with any method that allows me to make this accurate while still fast. This isn't the really the topic of this question though. The problem I have is, my current library uses a two dimensional grid of integers. The higher the number in a cell, the more resistance for that grid tile. Currently I'm setting all unwalkable spots to Integer Max.
Here is an example of what I want:
I'm just not sure how I should set up the arrays of integers of the grid. Every time an element is added/removed to/from the game, it's collision details are updated in the table.
Here is a picture of what the map looks like on my collision layer:
I probably shouldn't be creating new arrays every time I have to do a path find because my game needs to support tons of PF at the same time.
Should I have multiple arrays that are all updated when the dynamic elements are updated (a building is built/a building is destroyed).
The problem I see with this is that it will probably make the creation and destruction of buildings a little more laggy than I would want because it would be setting the collision grid for each built in accuracy level. I would also have to add more/remove some arrays if I ever in the future changed the map size.
Should I generate the new array based on an accuracy value every time I need to PF?
The problem I see with this is that it will probably make any form of PF just as laggy because it will have to search through a MapWidth x MapHeight number of cells to shrink it all down.
Or is there a better way? I'm certainly not the best at optimizing really anything. I've just started dealing with XNA so I'm not used to having optimization code really doing much of an affect until now... :(
If you need code examples, please ask. I'll add it as an edit.
EDIT:
While this doesn't directly relate to the question, I figure the more information I provide, the better. To keep your units from moving as accurately to the players desired position, I've decided that once the unit PFs over to the less accurate grid piece, it will then PF on a more accurate level to the exact position requested.
Hi,
We are using the ReportViewer control to display SSRS reports in our ASP.NET application. On pages where we use the ReportViewer control the session does not time out. The reason for this is the ReportViewer control emits a "setTimeOut" javascript function which reads the Session timeout value from the web.config and pings the server 1 minute before the configured value and keeps the session alive. For example, if the session timeout value is 5 minutes, the ReportViewer pings the server on the 4th minute. We used fidldler to verify this behavior. In addition, if we remove the ReportViewer control from the page, the sessions times out as expected.
We also tried using the ReportViewer control in a sample application and observed the same behaviour.
Has anyone faced this issue?
Regards,
Saurabh
I have an ActiveX control written in C++ that runs in Internet Explorer 8. Most of the time (approx 90%) when the tab or browser containing the control is closed, there is an access violation like this:
The thread 'Win32 Thread' (0x1bf0) has exited with code 0 (0x0).
Unhandled exception at 0x77b3b9fd in iexplore.exe: 0xC0000005: Access violation reading location 0x65007408.
The access violation occurs after the call to OnDestroy() but before the call to the control's destructor.
The debug output says:
No symbols are loaded for any call stack frame. The source code cannot be displayed.
None of my code is present in the stacktrace, although perhaps the heap was corrupted at some earlier point during execution.
What lifecycle events does an ActiveX control receive between the call to OnDestroy() and the control's destructor?
I have used following config of NLog to add the log text to control of specified Name on specified form.
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="control" xsi:type="FormControl" append="true"
controlName="textBox1" formName="Form1"/>
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="control"/>
</rules>
</nlog>
I have a form with name Form1 and control on it with the name textBox1.
Still nLog cretes a new form in runtime and adds a docked textbox to it and shows the logs in it.
Now how to make nLogwrite the logs to MY form and MY Control
I have a control which has an ImageButton which is tied to an OnClick event... Upon clicking this control, a postback is performed and the event handler is not called. AutoEventWireup is set to true, and I've double checked spelling etc.... We haven't touched this control in over a year and it has been working fine until a couple of weeks ago.
We have made changes to controls which load this control... so I'm wondering, what kind of changes could we have made to stop this event handler from being called? There is quite a bit of Javascript going on, so this could be the culprit too...
Edit: Some clarification... we are dynamically loading the parent control of the ImageButton in the OnLoad event of the page... if that makes sense.
This is in continuation with my last question posted "Continuous Memory leak while using WpfHWndSource"
I have to load an WPF User Control in an MFC Modal Dialog that is being invoked from the ocx control. For this I have created a MFC Regular Dll(Mixed Mode Regular dll with clr option enabled), I have created a modal dialog which will host wpf user control using HWndSource. This exported dialog is placed as a child Dialog of the above MFC dialog that is being invoked from the ocx. Ny intermediate dialog uses C++/Cli code.
When the main MFC dialog is closed, I am deleteing the ptr reference of the intermediate dialog created on the heap.
In the the dipose of the .Net User Control, I have set most of the references that I have created to null, unsubscribed to the events (to avoid weak refernces), unbinded from the propertes(by using clear binding).
Called delete on the HwndSource and the user control(which basically calls the dispose method). But I do not see complete memory being released.
Any help would be greatful.
Hopefully this is a straightforward question, but googling has proved fruitless (and frustrating, to say the least). Links to good documentation would be greatly appreciated.
Here's the problem. We have a web application with an associated ActiveX control. (The control wraps a crufty old MFC application if it matters.) Moving forward, we expect to release multiple versions of this application, and each will have a corresponding version of the control.
If someone accesses two versions of the web application, then that user should end up with two different versions of the control on his system. (The controls should play nice and not clobber each other.) In addition, I want to automate this process. Our system has a global version number that applies to all components. If we change the version number, the next build should produce a new version of the control.
What's the best way to do this?
Just as the question asks.
I have an Esri map control and want to add a Rastor image to the control in WPF and don't know how to do it. I see that I can add layers to the Map control, but is there a way to add a Raster image to a map control?
I did find this code to turn the raster image into a Dynamic layer, but Im still lost on how to add a dynamic layer to the control it self.
http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=16723
Thank you!
I'm trying to implement a control similar to Firefox's Rich List Box:
However, I can only find the XUL implementation of this control, and I don't want to have to include a XUL processing engine in my application just to get a cool looking listbox. I've been trying to implement one on my own by customizing MFC's CListBox control, but am starting to realize it may take more time than I had intended. Before continuing to implement this control from scratch, I was wondering if anyone knew of a similar control that already exists, either commercial or open source. The main functionality I would like to have is:
Small display for non selected items that expands when selected.
Ability to add arbitrary controls to the expanded view.
Preferably native code, but can probably use managed controls via native/managed interop with out too much extra work.
Any help would be appreciated, I don't want to have to reinvent the wheel if I don't have to.
I'm implementing a custom control that inherits from Control. I want it to be focusable (it's a kind of list box).
In the constructor, I do
SetStyle(ControlStyles.Selectable, true);
I can now use Tab to navigate to the control.
However, when the control receives a mouse click, it does not automatically claim focus. I can work around this, of course:
protected override void OnMouseDown(MouseEventArgs e)
{
Focus();
base.OnMouseDown(e);
}
But this feels like a kludge that should not be necessary. Is this really the way to go? Or is there some way to tell Control to claim focus automatically when it receives a mouse click?
I'm starting to design a custom control with rather complex drawing. It will be a kind of chart (a kind of radar chart). It will be composed of a few axises with labels, line-regions (like spider-network) and filled shapes.
The main question is what's the difference between using Path control and Polygon control? What's better to use here?
The goal is to prepare control with minimal amount of c# and try to do as much as possible in xaml / binding. The next important requirement is that control should resize to parent containers' width - if possible without any long recalulations in c#.
I have an ASP.NET user control that is used in another use control. The parent user control uses data-binding to bind to a custom property of the child user control.
What method can I override or page event where I am ensured that the property state is set?
I think in a page it is PageLoaded versus the Page_Load override? I am looking for this in the user control because my property is always null even though it is set.
Thanks.