That may be the case for something like a programming technique/paradigm but almost certainly not for something that relates to an 8 (or more) year old
- browser
- hardware platform
- Operating system
That may be the case for something like a programming technique/paradigm but almost certainly not for something that relates to an 8 (or more) year old
I've been googling this. Opinions vary. Obama himself asked for authorization, but stated he felt he was not legally REQUIRED to get it back in 2013.
Well, the analysts I've heard recently stated what I said earlier about the legality. It's probably only illegal if you are a black Democrat president.
Wikipedia says the unit cost is $1.87 million.
So 50-60 comes out to between $93 million and $112 million for just a few hours of down time. Doesn't sound like all that high-priced tech is very effective.
I don't see that he had much of a choice.
I agree with what he did, however, he had the choice to go to Congress and get permission (which is legal) or to just go ahead on his own (which is not legal).
he saw Obama as flunking his test the first time and looking weak
Even though Trump was against takiong action against Syria at that time, AND Congress denied Obama the approval he legally needed to laynch a strike.
You would think that after 50-60 Tomahawk missiles the Syriain airport would have been out of commission for more than a few hours. How much did those missiles cost?
Two final comments:
Factorial should probably return a long unsigned int rather than a float. And your test
if (n==0)
will cause your function to fail if passed a negative number. You might want to change it to
if (n <= 1)
return 1;
else
return n*factorial(n-1);
You have a couple of problems.
You have to write your own factorial function. However, pow
, and cos
are in math.h
so unless one of your compiler switches is doing something weird they should be defined. I don't use gcc
so I can't help there.
Your series expansion is incorrect. Your powers have to be 2, 4, 6... instead of 1, 2, 3...
Your parameters for pow
are reversed. Try
double my_cos(double c) {
int sign = -1;
double result = 1.0;
for (int i=2; i<=10; i+=2) {
result += sign * pow(c,i) / factorial(i);
sign = -sign;
}
return result;
}
If you need i
to be the loop counter you could do
double my_cos(double c) {
int sign = -1;
double result = 1.0;
for (int i=1; i<=10; i++) {
result += sign * pow(c,2*i) / factorial(2*i);
sign = -sign;
}
return result;
}
We can't call names because USA voted for a that
In 2016, 56.9% of eligible voters actually voted. The rest were either deliberately disenfranchised, or have given up on the system. So Trump was elected by less than 29% of the eligible voters.
Let me end this with how I admire liberals in USA , they are a beacon for all of us.
Keep in mind that Hillary was bound to be a "status quo" president. She was pulled to the left only through the efforts of Bernie Sanders.
I am not a member of any organized political party. I am a Democrat.
- Will Rogers
That doesn't do what the OP requested. Plus, why bother to create a batch file that contains only one line and does only one specific thing for a specific folder?
Also, please do not revive old threads.
Google may appreciate it but the rest of us who are repeatedly spammed with junk mail certainly do not.
According to Dell you are correct - 8 Beeps: Reseat the LCD cable or replace the LCD screen
If you have an HDMI port (I think that laptop does) you could try cabling to an external monitor with that prior to booting. It might be seen as a duplicate display (showing the same as what would be on your laptop display), whereas a VGA connection might be seen as a second display which might not work until configured through Windows.
RE: PM. Your input routine should look like
void getUserInput(int *numHospitalRooms, int *numFlowers)
{
do {
printf("\nHow many hospital rooms: ");
scanf("%d", numHospitalRooms);
if (*numHospitalRooms < 1 || *numHospitalRooms > 5)
{
printf("\nInvalid number of rooms, room number must be between 1-5!\n");
}
}while((*numHospitalRooms < 1 || *numHospitalRooms > 5));
do {
printf("\nEnter number of flowers: ");
scanf("%d", numFlowers);
if (*numFlowers < 0)
{
printf("\nInvalid number of flowers, negative values are not accepted!\n");
}
}while((*numFlowers < 0));
}
Compare the placement of the *
and &
operators with your original code. You'll also have to make sure that you account for the fact that numHospitalRooms
ranges from 1-5 but the array index must be from 0-4. Your calc would then be
float totalCost = (flowerCost + hospitalRoomsPrices_Array[numHospitalRooms] - 1);
Your declaration is
void getUserInput(int *numHospitalRooms, int *numFlowers);
but you are calling it with
getUserInput(numHospitalRooms, numFlowers);
You define the parameters as pointer to int
but you are passing int
. You'' have to change your call to
getUserInput(&numHospitalRooms, &numFlowers);
Likewise, within getUserInput
, you will have to change all variable references to reflect the fact that the parameters are pointers. Thus instead of
if (numHospitalRooms < 1 || numHospitalRooms > 5)
you'll have to use
if (*numHospitalRooms < 1 || *numHospitalRooms > 5)
Just dandy. Hope you can say the same. Welcome to Daniweb.
A company in Canada recently lost a class actions suit because of privacy issues. It seems that their product, which can be controlled remotely via smart phone, was collecting temperature, frequency and duration of use and sending it back to the head office. The product was a vibrator (yes, that kind of vibrator). Customers were justifiably upset.
My first program was in BASIC on a mainframe at the University of Saskatchewan in 1971.
Glad to help. Come on back if you have more questions.
I strongly urge you to get into the habit of naming your controls for their purpose. For demo purposes, Button1
and Checkbox1
are fine but in a larger program with many controls it will become impossible to follow your code. A control named btnSubmitForm
is a lot clearer than Button17
.
You don't need the line
Dim settings As New My.MySettings
Delete it. Go to
Project -> Properties
then select the Settings
tab. Create a variable named ButtonVisible
. You should use a name like that rather than checked
because it more clearly indicates what state you are trying to preserve. Make ButtonVisible
a Boolean. Set the Value
field to False
.
Your code will look like
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Button1.Visible = My.Settings.ButtonVisible
CheckBox1.Checked = My.Settings.ButtonVisible
End Sub
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
My.Settings.ButtonVisible = Button1.Visible
End Sub
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
Dim chk As CheckBox = sender
Button1.Visible = chk.Checked
End Sub
End Class
Not in one line, but you could do
For i As Integer = 0 To 2
cars(i).Visible = True
Next
or if you want to make it more general (assuming you are looping over all cars)
For Each car In cars
car.Visible = True
Next
Verizon and Comcast have made public statements to the effect that they did not sell customers' individual web browsing history before the FCC privacy rules were adopted and have no plans to do so now that they have been repealed.
Please note the distinction between "we have no plans to" and "we will never". Six months or a year from now they could develop a plan to sell private data without invalidating their prior claim.
Also notable is that Verizon privacy officer Karen Zacharia said in a blog post Friday the company has two programs that use customer browsing data. One allows marketers to access "de-identified information to determine which customers fit into groups that advertisers are trying to reach" while the other "provides aggregate insights that might be useful for advertisers and other businesses."
Only AT&T stated clearly that they "will not sell your personal information to anyone, for any purpose. Period." In a blog post Friday, AT&T said it would not change those policies after Trump signs the repeal.
Assuming that your settings variable is a Boolean you can just do
CheckBox1.Checked = My.Settings.check
Button1.Visible = My.Settings.check
in your form load event handler. You'll want to restore the Checkbox state as well so the two stay in sync. Just make that in the form closing handler you do
My.Settings.check = Button1.Visible
to save the last state.
Unfortunately, when the big providers have the ability to buy enough poiliticians so that they can create laws to prevent fair competition, I can't see that happening. Chattanooga, Tennessee successfully created an public utility based internet service that was both inexpensive (compared to the big three) and high speed. Laws were quickly passed in several other states to make this sort of thing illegal.
I'm completely baffled that the Republicans did that
It just make it legal for the big corporations to make even more money than they are making now at the expense of the rest of us. Why wouldn't the republicans be in favour of that?
That would depend on what the database engine is and how it is configured. The difference is in the connection string and you can get the correct format here.
Also, depending on the database engine, you will be using ADO, OleDB or SQLclient.
I find that using too high a voltage lets the smoke out of the chips. Once you let the smoke out things stop working. My father-in-law did that with a powered usb hub. Makes a nifty paperweight, though.
Leo: "You seem troubled. What's on your mind"?
Phyllis: "My daughter, Bess, wants to marry a boy whose parents are midgets."
Leo: "What's her problem? Can't she find one?"
We will be happy to help you if you show us what you have done so far and explain what you are having trouble with.
Michael Flynn has requested an immunity deal in order to "tell all" about the Trump/Russian involvement. The Senate Investigation Committee has announced that they have refused him immunity. Possible scenarios:
As a retired general, perhaps the last scenario is the most likely (take one for the team). But as a Republican, the party of "personal responsibility", I can't see him doing anything other than putting all the blame on someone else.
He is on record as stating that anyone who asks for immunity is obviously guilty, and a criminal, so that leans me back toward the "falling on his sword" scenario. But then again, the president has, on multiple occasions, denied ever saying things for which there is clear video evidence of him saying.
My head hurts.
We'd be happy to help. Please show us what code you have so far.
Here's a tip for next time. Whenever I buy something that has a power adaptor, I put a label on the power pack identifying what it is for, and a label on what it plugs into identifying the specs of the adaptor.
Unless you are connecting to the db using the server name and the database instance in which case you server name in the connection string would look like
\\164.128.12.93\dbserver
\\merlin\dbserver
assuming that the IP address of the server is 164.128.12.93 or the server name is merlin.
How about modifying the bot until you find the problem so that it stops invalidating the links? Better to let a few dead links through for now instead of killing everything.
Republicans in the US have voted to gut FCC regulations that protect the privacy of internet users. The change in regulations would allow ISPs to sell customer data to marketers. In response, Adam McElhaney has started a GoFundMe campaign. In his own words
I plan on purchasing the Internet histories of all legislators, congressmen, executives, and their families and make them easily searchable at searchinternethistory.com.
He hoped to raise $10,000. To date he has raised over $54,000.
You could try copying everything in the Release
folder (in your project) into a folder on the flash drive. I've done that when copying apps between two of my laptops, however, I have the same .net framework installed on both so your target computer would likely have to have the same framework as that used to build the app.
I have set up a dozen or so systems for friends/family, several with SSD/HDD combos. Regardless, I always use the same configuration. I create a C partition and a D partition. For SSD/HDD, the C partition is the entire SSD and the D drive is the HDD.
Once I have Windows installed I create folders on the D drive named
Then I open Explorer. For each of the current My Pictures
, My Music
, etc, I right click and select Properties
then go to the Location
tab. Click on Move
, then select one of the newly created folders on D. You will be asked if you want to move all files in the original folder to the new folder. Click Yes
.
If you have a very large SSD you may even want to create C and D partitions on the SSD, then an E partition on the HDD. My C partition (Windows 10) is 120 gig and with all the apps I have installed I have about 52 gig free. My wife's computer has C/D on the SSD and everything else on E. I use FastStone for viewing pictures and I have it configured to save the thumbnail database on D. This greatly reduces the FastStone startup time when you have a lot of pictures.
My younger son just got a gaming system built with an SSD/HDD combo. Several of his games run under Steam. The Steam engine is installed on C but the …
/xd
is used to exclude subfolders and only applies when copying actual folders.
/sl
is used to replicate symlinks that are in the source tree to the target tree (rather than copy the folders that the symlinks point to).
What you are asking can not be done because it doesn't make sense. It's like asking someone to draw a square circle or an equilateral triangle with a right angle. If you have two pointers that both point to the same thing then the things must be equal because they are the same thing. If you want the two things to be different then they have to be different things and you can't use pointers (symlinks).
@Robert_57 - you do realize that the browser version being used when this thread was created have been upgraded so many times that the questiob no longer requires an answer.
No way that happened
That's the problem you run into swhen you have a president who consistently behaves in the way that he does. Nothing, no matter how outrageous, seems beyond the pale anymore.
And when I see several clips of Trump during the campaign saying that he will immediately repeal and replace Obamacare with something better, followed by a recent clip of him saying "I never said immediately", then all the denials coming from Spicer mean exactly SFA.
You don't use robocopy to create a symlink. You can use the junction
command to do that.
D:\>junction /?
Junction v1.02 - Win2K junction creator and reparse point viewer
Copyright (C) 2000 Mark Russinovich
Systems Internals - http://www.sysinternals.com
The first usage is for displaying reparse point information, and the
second usage is for creating or deleting a NTFS junction point:
usage: junction [-s] <file or directory>
-s Recurse subdirectories
usage: junction [-d] <junction directory> [<junction target>]
-d Delete the specified junction
example: junction d:\link c:\winnt
You are going to have to give us more information.
problem is: both text box show same data
Of course they do. Your code
Me.txtamount.Text = .SubItems(mlngCUST_LAST_IDX)
Me.txtdate.Text = .SubItems(mlngCUST_LAST_IDX)
is assigning the same value to both textboxes. C hange it to
Me.txtamount.Text = .SubItems(mlngCUST_LAST_IDX)
Me.txtdate.Text = .SubItems(mlngCUST_DATE_IDX)
Not to mention that it is super easy for the marker (if he/she is to inclined) to do a search online of your code to see if you just copied it. If caught plagiarizing you would likely be expelled. That's a blackk mark that can really haunt you.
I also enjoy funny books and I also have gadgets, although I spend most of my time on just one (laptop). I used to be a programmer (I am now retired - in Canada). I am 63 years old and I am pleased you want to be a part of this community. Welcome aboard.
Please note that most internet connections have a higher download than upload speed because most users consume (download) more data than they create (upload). Having said that, rproffitt's suggestion is quite likely the culprit.
Are you trying to exclude a subfolder of the symlink folder? If so, you can't do that. If I'm still mistaken then can you possibly explain what you want by showing us the folder structure of your source, and what you want the target to look like? Please label physical folders with <DIR>
and symlink folders with <JUNCTION>
as would be displayed in a command shell dir listing.
It is possible that your connection somehow got switched to "metered". If set to metered, downloads are deferred, although for how long I am not sure. I've attached a script (vbs) that you can execute to get a connection's metered/non-metered status and set it to one state or the other.
At home I have a 160 gig/month connection but at the cottage I have a cap of 3 gig/month so I set the cottage connection to metered to defer the download of updates.
'
' Name:
'
' metered.vbs
'
' Description:
'
' Command line utility to set an internet connection to metered
' or non-metered
'
' Usage:
'
' metered
'
' Show existing profiles
'
' metered <profile>
'
' Show metered/non-metered status of <profile>
'
' metered <profile> ON | OFF
'
' Set metered status of <profile> to on or off
'
' Notes:
'
' The default engine for running scripts is wscript.exe. Before
' running this script you should set the default engine to cscript.exe
' (command line - wscript is windowed). Open a command shell as
' Administrator and enter:
'
' cscript //nologo //h:cscript //s
'
' You will only have to do this once.
'
' Audit:
'
' 2017-02-28 rj tweaked output format slightly
' 2016-11-10 rj original code
'
set wso = CreateObject("Wscript.Shell")
set arg = Wscript.Arguments
Select Case arg.Count
Case 0 'no args - show all profile names
profiles = Filter(ExecCmd("netsh wlan show profiles"),":")
Wscript.Echo Join(profiles,vbcrlf) …
The above command did work within Robocopy, not in the way I had hoped.
If it doesn't do what you want then it isn't working (the way you want). Technically, any command that doesn't generate an error can be considered to "work" in that it does exactly what it is told to do even if what it is told to do isn't what you want it to do. Confused yet? So am I because I am no longer sure what you are trying to do.
The easiest way to convert is
ahodStat = IIf(chkAhod.Checked, "Yes", "No")
in which case your code could be simplified to
Private Sub btnCopyNotes_Click(sender As Object, e As EventArgs) Handles btnCopyNotes.Click
'Copies Info to Clipboard
Clipboard.SetText("BTN: " + txtWtn.Text + Environment.NewLine +
"Acct Name: " + txtAcctName.Text + Environment.NewLine +
"Spoke With: " + txtSpokeWith.Text + Environment.NewLine +
"Verified: " + cboVerified.Text + Environment.NewLine +
"Email: " + txtEmail.Text + Environment.NewLine +
"Issue: " + txtIssue.Text + Environment.NewLine +
"AHOD: " + IIf(chkAhod.Checked, "Yes", "No"))
End Sub
A symbolic link is just a pointer to a folder. It is typically used for compatibility reasons. They may also be called "junctions". For example, if you do the following in a command shell in Windows 10
c:
dir /a:d
you might see
2016-04-18 18:48 <DIR> $Recycle.Bin
2017-03-11 11:08 <DIR> AMD
2016-04-01 11:28 <DIR> Apps
2016-10-18 15:41 <DIR> boot
2017-03-25 11:36 <DIR> Config.Msi
2016-04-01 13:23 <DIR> Dell
2016-04-15 13:43 <JUNCTION> Documents and Settings [C:\Users]
2016-04-01 11:43 <DIR> Drivers
2017-03-25 15:54 <DIR> Intel
2017-01-24 19:39 <DIR> PerfLogs
2017-02-23 20:24 <DIR> Program Files
2017-03-18 08:15 <DIR> Program Files (x86)
2017-03-25 11:36 <DIR> ProgramData
2016-10-05 15:36 <DIR> Recovery
2017-03-27 09:08 <DIR> System Volume Information
2016-06-17 08:25 <DIR> TMRescueDisk
2016-10-05 15:41 <DIR> Users
2017-03-25 15:54 <DIR> Windows
Note the folder listed with <JUNCTION>
. The folder name, Documents and Settings
. That folder doesn't really exist. It is just a symlink. If you cd
into ityou will actually end up in C:\Users
. That is because older versions of Windows stored the user profiles in Documents and Settings
and any apps that look for profiles in that folder will actually get redirected to the correct folder.
It's sort of (and not sort of) like a shortcut on your desktop. The shortcut is a link to something (an app, folder, file, internet site, etc). You can copy the shortcut to another location. Doing so does not copy the app (or foilder, file...). It just copies the reference to it and running the copied shortcut has the same …