|
Once you've committed a file to Git, it will be tracked even if you update the .gitignore file to exclude it.
You'll need to delete your local copy of the file, commit your changes, and then restore your local copy.
In this case, try cleaning the solution, committing the changes, and then rebuilding.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thank you for that tip!
I deleted the folders and files.
Commited the deleted stuff.
Now VS will not try to include the /bin and /obj folders and files in every commit.
Thank you!
|
|
|
|
|
Hello guys,
I've been given a chance to work in a company as a web developer, but they want me to use Oracle Apex which I've never heard before.
What do you know of the plataform? Is it worth learning it?
|
|
|
|
|
I don't know much about it; however, since it is a low-code platform you will likely not write much code so it depends on what you want to do in your job.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Well you have a simple choice: accept the job and learn it, or find a different job.
|
|
|
|
|
Hope you're doing well. I need help with my project, can you help me? please let me know. Thanks
Vikram
|
|
|
|
|
Pick an appropriate forum or go to the quick answers menu and click "Ask a question".
Describe the problem you're having with proper detail.
|
|
|
|
|
cp (articles) search result[^]
Sorting these to obtain off-title items can be done by altering initial settings in the left panel. If you choose an article and go to it's page sometimes you'll get more off-title matches listed in the right panel.
[EDIT]
Sorry, I mispoke, there's no right-panel "Related" stuff in article. That feature is found in Question & Answer. You can always read an article, try it's code to see if it suits your purpose, or better yet recieve an error during compile, and post a general question about that error there. Better yet just ask questions about the code you download through the article right there at the bottom of the article page.
[/EDIT]
|
|
|
|
|
Private Sub btnTotalCost_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTotalCost.Click
lblTotalCost.Text = "YOU HAVE ORDERED:" & vbNewLine
lblTotalCost.Text = lblTotalCost.Text & "ROOM TYPE" & vbNewLine & "--------" & vbNewLine
If radLuxury.Checked Then
lblTotalCost.Text = lblTotalCost.Text & "Luxury = $210" & vbNewLine
ElseIf radSuperior.Checked Then
lblTotalCost.Text = lblTotalCost.Text & "Superior = $150" & vbNewLine
Else
lblTotalCost.Text = lblTotalCost.Text & "Standard = $110" & vbNewLine
End If
lblTotalCost.Text = lblTotalCost.Text & vbNewLine & "MEAL OPTIONS" & vbNewLine & "--------" & vbNewLine
If chkBufferBreakfast.Checked Then
lblTotalCost.Text = lblTotalCost.Text & "Buffer Breakfast = $40" & vbNewLine
End If
If chkBufferDinner.Checked Then
lblTotalCost.Text = lblTotalCost.Text & "Buffer Dinner = $60" & vbNewLine
End If
lblTotalCost.Text = lblTotalCost.Text & vbNewLine & "AMENITIES" & vbNewLine & "--------" & vbNewLine
If chkInternet.Checked Then
lblTotalCost.Text = lblTotalCost.Text & "Internet = $10" & vbNewLine
End If
If chkEntertainment.Checked Then
lblTotalCost.Text = lblTotalCost.Text & "Entertainment = $20" & vbNewLine
End If
If chkSpaServices.Checked Then
lblTotalCost.Text = lblTotalCost.Text & "Spa Services = $50" & vbNewLine
End If
End Sub
|
|
|
|
|
|
I was thinking of doing the page source on each and every messageboard page and cntrl+a then cntrl+c and then pasting it into text files and just going back and deleting everything except usernames and actual messages, but is there a freeware or trialware program that can do this, basically ONLY copy the actual messages (including html links) and the username the message belongs to, ignoring all the user profile info, signatures, times/dates, etc.
Any and all help would be appreciated, I would think this wouldn't be too complicated to just write a program for, ignoring some text and just accumulating certain other text. I am very rusty on programming is there a website that I could just ad-hoc a solution for this and built a rudimentary program to scan thousands or millions of pages of 10 messages each? Thank you!
|
|
|
|
|
You probably need to write a web scraper. Google will find samples and tutorials on the subject.
|
|
|
|
|
I haven't found any reliable answers on google so I am asking here. I know these two expressions produce the same results but I would like to know which one is faster and why is it faster. If I were to use them in two different loops with each one iterating about 100 times, would one loop finish earlier than the other? and by what margin?
|
|
|
|
|
So why not try it out?
It could vary with the implementation, and with the Python version. If you try it out for yourself, you get the right answer for your installation.
I would be very surprised if there was any difference at all. There will always be some random fluctuations, due to interrupts and OS activity, but that should affect both alternatives equally.
In any case: In 100 iterations, the difference would be so small it would not be possible to measure. Iterate at least a few million times before drawing any conclusion.
|
|
|
|
|
Well I don't know how to try this out for myself. I am just a beginner in python so I don't know much about measuring the time taken by a program to complete. Could you please explain how this could be done?
|
|
|
|
|
I do not code in Python on a regular basis, and if I do, I have to google a lot...
So I googled "python timing", and the first hit, at performance - Measure time elapsed in Python - Stack Overflow[^] discusses a few alternatives. It looks like the best solution would be something like
from timeit import default_timer as timer
start = timer()
# ...
end = timer()
print(end - start) # Time in seconds, e.g. 5.38091952400282 Obviously, the "# ..." indicates where you put you one-million iterations loop.
|
|
|
|
|
|
There hardly is a difference in the work python performs for either statement:
>>> import dis
>>> def inplace_add():
... a = 0
... a += 1
...
>>> def add_and_assign():
... a = 0
... a = a + 1
...
>>> dis.dis(inplace_add)
2 0 LOAD_CONST 1 (0)
3 STORE_FAST 0 (a)
3 6 LOAD_FAST 0 (a)
9 LOAD_CONST 2 (1)
12 INPLACE_ADD
13 STORE_FAST 0 (a)
16 LOAD_CONST 0 (None)
19 RETURN_VALUE
>>> dis.dis(add_and_assign)
2 0 LOAD_CONST 1 (0)
3 STORE_FAST 0 (a)
3 6 LOAD_FAST 0 (a)
9 LOAD_CONST 2 (1)
12 BINARY_ADD
13 STORE_FAST 0 (a)
16 LOAD_CONST 0 (None)
19 RETURN_VALUE
|
|
|
|
|
I have two C# apps that address the same server "\stlmo1". stlmo1 has a C:, D: and E: drive. The E: drive is the data drive that I need to address. I used to be able to address the share called "\stlmo1" and it mapped to the root of the E: drive but that was before a ransomware hit. Then the share was gone. I can share the E: drive, but it is "\stlmo1\E" now. That causes all kinds of problems since 3 servers are looking at that location. Can anyone suggest how to share the E: drive on \stlmo1 as "\stlmo1"
|
|
|
|
|
That doesn't look like a valid UNC path. The share name is always required, not just the host name.
Even with Distributed File System[^] you'd still need a domain name and a namespace.
Do you have any documentation on how the server was set up previously?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I have no idea how it was set up originally, but it did work and only had the server name. ... My research agrees with you though, it shouldn't have worked.
|
|
|
|
|
I am not sure this is the place to ask. I found this site when a Google search return a page for EMLReader.
My issue is with our mail archive/journaling. When we retrieve messages they are downloaded with file names like: 00db2d52a8081ad5e1e8e8da3fd020c3bc06e12a7b87798056be9e45f68dba8c.eml
When they are uploaded the names contain information like subject, To and From.
Is there a way to grab information from the EML file and rename it with the subject line for example?
|
|
|
|
|
You should be able to use MimeKit[^] to parse the file. If you just want the subject, you don't even need to load the whole file:
public static string GetMessageSubject(string fileName)
{
var headers = MimeKit.HeaderList.Load(fileName);
return headers[MimeKit.HeaderId.Subject];
} NB: Be aware that the message subject could contain characters which are not valid in a filename. It could also be longer than the maximum allowable filename, or make the file's path longer than the maximum allowable file path.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thank you for your reply.
More specifically I am looking for something that would rename all the files within a folder. We have folders that can contain over 100,000 files.
Unfortunately I am not an expert at scripting so I am looking for a complete script.
If I wanted to add To and From in the name would it be as simple as adding another line like:
return headers[MimeKit.HeaderId.To];
|
|
|
|
|
Yes, headers[MimeKit.HeaderId.To] will return the list of addresses in the "To" field, and headers[MimeKit.HeaderId.From] will return the list of addresses in the "From" field.
There could potentially be multiple addresses in both fields. And the same caveat about invalid characters and filename/path length limitations applies.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|