Autor: muradshafiqAdmin

MySite Newsfeed FeedCache Time erhöhen

Wie lange in einem Newsfeed zurück in die Vergangenheit navigiert werden kann, hängt von zwei Parametern ab. Inspiriert von einem Skript mit dem anschließenden Repopulation des FeedCache von http://www.von-borries.ch/blog/Lists/Posts/Post.aspx?ID=86 hier die angepasste Version mit einigen Verbesserungen:

[code language="powershell"]

#VARIABLES
#--------------------------------------------------------------
$feedcachetimeinhours = 720 #default_value = 168
$mysite = "http://mysitehost.contoso.com"
$loglocation = "C:\temp\repopulate.txt"
$iisreset = $false
$user = whoami #This user needs to have FullControl on UPSA (Admin and Connection Rights); although it needs local admin rights on all SharePoint Servers
#--------------------------------------------------------------

clear
write-host -f yellow "Loading SharePoint PS SnapIn if needed..."
Add-PSSnapin microsoft.sharepoint.powershell –ea SilentlyContinue
write-host -f yellow "Updating FeedCache Time"
$upa = Get-SPServiceApplication | where {$_.TypeName -Like "User Profile Service Application"}
$upa.FeedCacheTTLHours = $feedcachetimeinhours
$upa.FeedCacheLastModifiedTimeTtlDeltaHours = $feedcachetimeinhours
$upa.Update()

write-host -f yellow "Get UPS Proxy"
$UPSProxy = Get-SPServiceApplicationProxy | ?{$_.typename -like "*user*"}

write-host -f yellow "Get User Profiles"
$ServiceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext((get-spsite $mysite))
$ProfileManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($ServiceContext)
$AllProfiles = $ProfileManager.GetEnumerator()

$tabName = "Issues"
$table = New-Object system.Data.DataTable "$tabName"
$col1 = New-Object system.Data.DataColumn Account,([string])
$col2 = New-Object system.Data.DataColumn ErrorMessage,([string])
$table.columns.add($col1)
$table.columns.add($col2)
$table.colum

$i=0

write-host -f yellow "Updating FeedCache for each User Profile"
write-host -f yellow " This shouldn't take long... :-)"

foreach($profile in $AllProfiles)
{
if ($i % 50 -eq 0) {write-host "." -NoNewline}
$AccountName = $profile.AccountName
if ($profile.FeedIdentifier -ne $null)
{
try
{
write-host ""
write-host " " $AccountName "> " -f green -nonewline
Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy $UPSProxy -AccountName $AccountName -ErrorAction stop
}
catch
{
$ErrorMessage = $_.Exception.Message
write-host $AccountName -fore red
write-host $ErrorMessage -fore yellow
$row = $table.NewRow()
$row.Account = $AccountName
$row.ErrorMessage = $ErrorMessage
$table.Rows.Add($row)
}
}
$i++
}

if ($table.Rows.Count -gt 0)
{
$table | fl Account,ErrorMessage
write-host "Check the listet Issues" -f Red
write-host "Try to reexecute the command: Update-SPRepopulateMicroblogFeedCache -ProfileServiceApplicationProxy UPSProxy -AccountName AccountName" -f Red
write-host "A list of these accounts has also been stored @" $loglocation -f Yellow
$table | Out-File $loglocation
pause
}

write-host "******************************** FINISHED ********************************" -BackgroundColor green -ForegroundColor Black
write-host "Goto your MySite and check if the activty feeds are listed as expected" -f green
write-host "URL: $mysite" -f green

[/code]

HTPC Idee – Der Multimedia-PC im Wohnzimmer in günstig

Multimedia-PC fürs Wohnzimmer. Nicht für über 500 EUR “ready-made” und nicht unter 500 EUR für das neueste, sondern knapp 150 EUR und Vielfalt im Decoding aller Formate! 

Verlauf: Anfangs war ich von den Android TV Boxen und Pearls Meteorit sehr angetan. Aber Divx BluRay FullHD und aufwendige Sachen etc. trau ich dieser nicht zu. Außerdem meist nur Android 2.x und viel zu viele Einschränkungen, vom Gesamteindruck und Übersetzungsfehlern ganz zu schweigen. Das Schlimmste: Das Gerät denkt die ganze Zeit im Landscape oder Portrait Modus, d.h. AngryBirds geht zwar, aber Youtube-Vollbild geht nie wieder weg, oder umgekehrt: Vollbild geht nie und AngryBirds nur “hochkant”…
Die Livestreams, die ich beziehen möchte, sind meist verschiedenster Art (verschiedene Protokolle) und eine Implementierung von Streaming überhaupt in Androidsystem ist fraglich. Zumal man sich auch nicht auf ein Protokoll oder einen Bereich festlegen möchte… Einzig mit DolphinHD sollen Flash Inhalte in Vollbild darstellbar sein. Also verworfen. Danach fiel mir der ION (Nvidia) i.V.m. Intels Atom ins Auge, viel zu teuer (Hauptplatine ca. 200 EUR usw.). Da ich trotz CUDA nicht sicher sein kann, dass ich morgen oder übermorgen evtl. was anderes will (oder Inhalte abspielen will, die nicht für CUDA/ion optimiert wurden) und es dann nicht geht, habe ich es einige Tage später wieder verworfen.
Danach war der Gedanke so eher an ein skalierbares und grafik- und cpu-starkes System. Nun, stark ist es nicht geworden, aber zumindest skalierbar.Lenovo Thinkcentre M57 (Intel C2D E4400, 1GB DDR2-RAM, 80 GB SATA green, DVD-ROM, eSATA, 8xUSB, Low-Profile-Slots, 280 Watt NT)
Abmessungen: ca. 34x31x9 cm (finde ich ausreichend klein, gilt als Small Form Factor SFF)
DVD-ROM wird abgeklemmt, da nicht benötigt, Medienstreaming über LAN und Internet, im Low-Profile-Slot kommt eine Radeon HD5450 pci-e karte rein, die über HDMI an den TV geht.Als GUI habe ich natürlich XBMC auserkoren, hat mir bisher am Besten gefallen, intuitiv, hoher WAF (ich kannte diese Abkürzung vorher nicht!!!), Optik gefällt mir sehr gut (habs am normalen Rechner ausprobiert). Das System wird WinXP als Grundlage erhalten, evtl. Ubuntu oder die XBMC Linux Distr. wie openelec.  

Wegen DXVA habe ich mich zu Windows 7 entschieden. XBMC ist nett und gut für jemanden, der seine Musikbibliothek (+Videos) aufräumt, für mich kommt es leider nicht in Frage. Also ein Win7 mit FF und MediaPlayer Classic tut’s jetzt.

Als Eingabegerät ist Logitech K400 angeschafft worden. Als HDMI Kabel habe ich das AmazonBasics HDMI mit Stoffgeflecht oder sowas, sieht edel aus, hoffe, es ist auch gut. Medien kommen vom Hauptrechner, LAN-Freigabe oder direkt aus Youtube!

Entgegen der Aussage im Internet, dass Thinkcentre M57 nicht mit HD5450
kompatibel sein soll, habe ich bei Amazon eine Bewertung gelesen, in der
stand, dass zur Unterstützung lediglich ein BIOS-Update notwendig wird. Tatsächlich ist das so: Vor dem Update erkennt er die Karte nicht, bootet nicht usw. Nach dem Update geht alles einwandfrei. Habe bisher 3 solcher PCs gebastelt, bei allen das gleiche “Phänomen”.

Ich habe hatte trotzdem noch einige Zweifel:

1) Reicht das Netzteil für die Config inkl. Graka?
2) Extra LowProfile Kühler neben Graka?
3) Extra Lüftungssystem im 5,25 Schacht statt DVD-ROM, Geräuschentwicklung?
4) Unterstützen Ubuntu oder die anderen XBMC Distributionen Lüftersteuerung (sofern von restlicher Hardware untersützt)? Und Speedstep?
5) Schaltet ihr eure HTPCs komplett aus oder nur Standby? Probleme dabei?

Kosten: 

Thinkcentre M57 80,-
Logitech K400 33,-
HD5450 27,-
HDMI Kabel 14,-
=====================
Total: 154,-

Über ein Jahr später:
PC ist superleise, bei wöchentlich 12h Fernsehen/Streamen und sonst TV im Standby und PC im Hybrid-Standby (jederzeit per Funk wakeable) ist der jährliche Stromverbrauch unter 70 EUR, gemessen mit Voltcraft Energy Count 3000.

Das Beste ist ja, wenn man später keinen mehr braucht oder will, kann man den immer noch prima als Büro Rechner nutzen, da die Leistung absolut ausreicht. Win 7 läuft ziemlich flüssig!

Tipp: Der Energiesparmodus des Fersehers bringt bei mir nicht nur “ein paar Watt” Ersparnis, sondern schaltet bei Dämmerung (~70 Watt) und Nachtfernsehen (~40 Watt) das Display soweit herunter. Und das anstelle von 120-140 Watt bei voller Helligkeit und ohne Öko-Modus!

Hinweis: Dieser Beitrag wurde von mir in einem Forum verfasst und hier wird er ergänzt und gepflegt.

CyanogenMod CM 10.2 Nightlies OTA update boot stuck eMMC Superbrick Bug SOLVED

I had the Nightly 10.2 20130821 on my Samsung Galaxy S2 (i9100) when a new nightly was announced by CM Updater in Settings. When I updated, the phone hung up. I could get into CWM but I couldn’t mount anything.

E: Can´t mount /cache/recovery/comand
E: Can´t mount /cache/recovery/log
E: Can´t open /cache/recovery/log
E: Can´t mount /cache/recovery/last_log
E: Can´t open /cache/recovery/last_log

While formatting it showed up

make_extf4fs failed on /dev/block/mmcblk0p7

After several tryings with Odin and losing all of my data on the phone (who cares if your contacts are in Google, your mails are always online and your pictures in Dropbox) I tried

GT-I9100_JB_ClockworkMod-Recovery_6.0.2.9.tar – 5.91 MB from xda-developers

and it worked!

What NOT helped:

  • old CWM: went to SGS i9100 bootsplash with triangle, then hung there, sometimes also black screen after that
  • Dorimanx/Siyah Kernel: boot to dorimanx and then hung up
  • Wiping or formatting “/cache” in CWM three times.

After it worked, I tried again to install CM-10.2-20130821, then made OTA update and rebooted: it hung again and I could reproduce that the solution works.

My device has the eMMC Superbrick Bug which I could prove with the “eMMC Brickbug Check” when it showed up

eMMC chip

Type: VYL00M

Date: 10/2011

CID: 150100…ae39

FwRev: 0X19

Brick Bug?

YES. Insane chip.

CM 10.2-20130821 -DIFF- CM 10.2-20130826

  • Home button works, option was added in settings and is already activated
  • Phone feels slower
  • Less surprising reboots (just one instead of four)

The first CM10 ROM was most stable: cm-10.1-20130618-EXPERIMENTAL-i9100-GERRIT44413.zip

You better get a CM9 stable…

Ah, just fyi, you find two branches for i9100 in CyanogenMod repo: galaxys2 and i9100. galaxys2 was the old one and has CM7 and CM9 stable versions available while the i9100 branch is the CM10 development branch and has experimental and nightlies but no stable yet.

SharePoint-Gruppen löschen

Durch das versehentliche Aktivieren / Migrieren vom Record Center entstehen in jeder migrierten Website die SharePoint-Gruppen “record center web service submitter” /  “Absender des Datenarchiv-Webdiensts für …”. Diese sind – sofern ungenutzt – unnötig und können gelöscht werden. Dazu folgendes Skript ausführen.

[code language="powershell"]

Write-Host "Diese Site hat" $spGroups.Count "Gruppen." -f Magenta

$groups = $spGroups | ? {$_.Name -like "Absender des Datenarchiv-Webdiensts*"}
Write-Host "Gefunden:" $groups.Count "Gruppen die gelöscht werden können" -f Magenta

ForEach($group in $groups) {
Write-Host "Deleting" $group.Name "..." -f Red
$spGroups.Remove($group.Name)
}

$spWeb.Dispose()

[/code]

Präsentiert von WordPress & Theme erstellt von Anders Norén